File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
torch/csrc/jit/tensorexpr Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 35
35
#include < llvm/Passes/PassBuilder.h>
36
36
#pragma GCC diagnostic pop
37
37
38
+ #if LLVM_VERSION_MAJOR >= 18
39
+ #include < llvm/TargetParser/Host.h>
40
+ #else
38
41
#include < llvm/Support/Host.h>
42
+ #endif
39
43
#include < llvm/Support/TargetSelect.h>
40
44
#include < llvm/Transforms/IPO/AlwaysInliner.h>
41
45
#include < llvm/Transforms/Scalar/DCE.h>
Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ C10_DIAGNOSTIC_POP()
28
28
#include < llvm/IR/Mangler.h>
29
29
#include < llvm/Support/CFGUpdate.h>
30
30
#include < llvm/Support/DynamicLibrary.h>
31
+ #if LLVM_VERSION_MAJOR >= 18
32
+ #include < llvm/TargetParser/Host.h>
33
+ #else
31
34
#include < llvm/Support/Host.h>
35
+ #endif
32
36
#include < llvm/Support/raw_ostream.h>
33
37
#include < llvm/Target/TargetMachine.h>
34
38
You can’t perform that action at this time.
0 commit comments