File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 49
49
50
50
config .substitutions .append (("%PATH%" , config .environment ["PATH" ]))
51
51
config .substitutions .append (("%shlibext" , config .llvm_shlib_ext ))
52
+ config .substitutions .append (("%llvm_src_root" , config .llvm_src_root ))
52
53
config .substitutions .append (("%mlir_src_root" , config .mlir_src_root ))
53
54
config .substitutions .append (("%host_cxx" , config .host_cxx ))
54
55
config .substitutions .append (("%host_cc" , config .host_cc ))
Original file line number Diff line number Diff line change 3
3
import sys
4
4
5
5
config.target_triple = "@LLVM_TARGET_TRIPLE@"
6
+ config.llvm_src_root = "@LLVM_SOURCE_DIR@"
6
7
config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
7
8
config.llvm_shlib_ext = "@SHLIBEXT@"
8
9
config.llvm_shlib_dir = lit_config.substitute(path(r"@SHLIBDIR@"))
Original file line number Diff line number Diff line change 4
4
// Run tablegen to generate OmpCommon.td in temp directory first.
5
5
// RUN: mkdir -p %t/mlir/Dialect/OpenMP
6
6
// RUN: mlir-tblgen --gen-directive-decl --directives-dialect=OpenMP \
7
- // RUN: %S/../../../llvm /include/llvm/Frontend/OpenMP/OMP.td \
8
- // RUN: -I %S/../../../llvm /include > %t/mlir/Dialect/OpenMP/OmpCommon.td
7
+ // RUN: %llvm_src_root /include/llvm/Frontend/OpenMP/OMP.td \
8
+ // RUN: -I %llvm_src_root /include > %t/mlir/Dialect/OpenMP/OmpCommon.td
9
9
10
- // RUN: not mlir-tblgen -verify-openmp-ops -I %S/../.. /include -I %t %s 2>&1 | FileCheck %s
10
+ // RUN: not mlir-tblgen -verify-openmp-ops -I %mlir_src_root /include -I %t %s 2>&1 | FileCheck %s
11
11
12
12
include "mlir/Dialect/OpenMP/OpenMPOpBase.td"
13
13
Original file line number Diff line number Diff line change 6
6
// Run tablegen to generate OmpCommon.td in temp directory first.
7
7
// RUN: mkdir -p %t/mlir/Dialect/OpenMP
8
8
// RUN: mlir-tblgen --gen-directive-decl --directives-dialect=OpenMP \
9
- // RUN: %S/../../../llvm /include/llvm/Frontend/OpenMP/OMP.td \
10
- // RUN: -I %S/../../../llvm /include > %t/mlir/Dialect/OpenMP/OmpCommon.td
9
+ // RUN: %llvm_src_root /include/llvm/Frontend/OpenMP/OMP.td \
10
+ // RUN: -I %llvm_src_root /include > %t/mlir/Dialect/OpenMP/OmpCommon.td
11
11
12
- // RUN: mlir-tblgen -gen-op-decls -I %S/../.. /include -I %t %s | FileCheck %s --check-prefix=DECL
13
- // RUN: mlir-tblgen -gen-op-doc -I %S/../.. /include -I %t %s | FileCheck %s --check-prefix=DOC
12
+ // RUN: mlir-tblgen -gen-op-decls -I %mlir_src_root /include -I %t %s | FileCheck %s --check-prefix=DECL
13
+ // RUN: mlir-tblgen -gen-op-doc -I %mlir_src_root /include -I %t %s | FileCheck %s --check-prefix=DOC
14
14
15
15
include "mlir/Dialect/OpenMP/OpenMPOpBase.td"
16
16
You can’t perform that action at this time.
0 commit comments