File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed
llvm/lib/SYCLNativeCPUUtils/compiler_passes
compiler_pipeline/include/multi_llvm Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 1818
1919#include < llvm/ADT/ArrayRef.h>
2020#include < llvm/ADT/SmallVector.h>
21- #include < llvm/ADT/Triple.h>
2221#include < llvm/Analysis/IVDescriptors.h>
2322#include < llvm/Analysis/TargetLibraryInfo.h>
2423#include < llvm/IR/BasicBlock.h>
2524#include < llvm/IR/IRBuilder.h>
2625#include < llvm/IR/Instructions.h>
2726#include < llvm/Transforms/Utils/Cloning.h>
2827#include < multi_llvm/llvm_version.h>
28+ #include < multi_llvm/triple.h>
2929
3030namespace multi_llvm {
3131
Original file line number Diff line number Diff line change 1+ // Copyright (C) Codeplay Software Limited
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License") with LLVM
4+ // Exceptions; you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // https://github.com/codeplaysoftware/oneapi-construction-kit/blob/main/LICENSE.txt
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+ // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+ // License for the specific language governing permissions and limitations
13+ // under the License.
14+ //
15+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
16+ #ifndef MULTI_LLVM_TRIPLE_H_INCLUDED
17+ #define MULTI_LLVM_TRIPLE_H_INCLUDED
18+
19+ #include <multi_llvm/llvm_version.h>
20+
21+ #if LLVM_VERSION_MAJOR >= 17
22+ #include <llvm/TargetParser/Triple.h>
23+ #else
24+ #include <llvm/ADT/Triple.h>
25+ #endif
26+
27+ #endif // MULTI_LLVM_TRIPLE_H_INCLUDED
Original file line number Diff line number Diff line change 1414//
1515// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
1616
17- #include < llvm/ADT/Triple.h>
1817#include < llvm/Analysis/TargetTransformInfo.h>
1918#include < llvm/IR/IRBuilder.h>
2019#include < llvm/IR/Instructions.h>
2120#include < llvm/MC/TargetRegistry.h>
2221#include < llvm/Target/TargetMachine.h>
2322#include < multi_llvm/creation_apis_helper.h>
2423#include < multi_llvm/opaque_pointers.h>
24+ #include < multi_llvm/triple.h>
2525#include < multi_llvm/vector_type_helper.h>
2626
2727#include " debugging.h"
You can’t perform that action at this time.
0 commit comments