浏览代码

Make the default triple optional by allowing an empty string

When building LLVM as a (potentially dynamic) library that can be linked against
by multiple compilers, the default triple is not really meaningful.
We allow to explicitely set it to an empty string when configuring LLVM.
In this case, said "target independent" tests in the test suite that are using
the default triple are disabled by matching the newly available feature
"default_triple".

Reviewers: probinson, echristo
Differential Revision: http://reviews.llvm.org/D12660

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247775 91177308-0d34-0410-b5e6-96231b3b80d8
Mehdi Amini 10 年之前
父节点
当前提交
793a2b15e7
共有 100 个文件被更改,包括 30 次插入9 次删除
  1. 4 2
      include/llvm/Config/config.h.cmake
  2. 1 1
      test/BugPoint/remove_arguments_test.ll
  3. 1 1
      test/CodeGen/Generic/lit.local.cfg
  4. 1 0
      test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll
  5. 1 0
      test/CodeGen/PowerPC/2006-08-15-SelectionCrash.ll
  6. 1 0
      test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
  7. 1 0
      test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
  8. 1 0
      test/CodeGen/PowerPC/2007-11-19-VectorSplitting.ll
  9. 1 0
      test/CodeGen/PowerPC/load-shift-combine.ll
  10. 1 0
      test/CodeGen/X86/2006-10-02-BoolRetCrash.ll
  11. 1 0
      test/CodeGen/X86/2009-06-05-VariableIndexInsert.ll
  12. 1 0
      test/CodeGen/X86/2009-06-06-ConcatVectors.ll
  13. 2 0
      test/CodeGen/X86/2010-02-01-DbgValueCrash.ll
  14. 1 0
      test/CodeGen/X86/2010-07-06-DbgCrash.ll
  15. 1 0
      test/CodeGen/X86/GC/alloc_loop.ll
  16. 1 0
      test/CodeGen/X86/GC/cg-O0.ll
  17. 1 0
      test/CodeGen/X86/GC/lower_gcroot.ll
  18. 1 0
      test/CodeGen/X86/extractelement-shuffle.ll
  19. 1 0
      test/CodeGen/X86/vshift_scalar.ll
  20. 0 0
      test/DebugInfo/Generic/2009-10-16-Phi.ll
  21. 0 0
      test/DebugInfo/Generic/2009-11-03-InsertExtractValue.ll
  22. 0 0
      test/DebugInfo/Generic/2009-11-05-DeadGlobalVariable.ll
  23. 0 0
      test/DebugInfo/Generic/2009-11-06-NamelessGlobalVariable.ll
  24. 0 0
      test/DebugInfo/Generic/2009-11-10-CurrentFn.ll
  25. 0 0
      test/DebugInfo/Generic/2010-01-05-DbgScope.ll
  26. 0 0
      test/DebugInfo/Generic/2010-03-12-llc-crash.ll
  27. 0 0
      test/DebugInfo/Generic/2010-03-19-DbgDeclare.ll
  28. 0 0
      test/DebugInfo/Generic/2010-03-24-MemberFn.ll
  29. 0 0
      test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll
  30. 0 0
      test/DebugInfo/Generic/2010-04-19-FramePtr.ll
  31. 0 0
      test/DebugInfo/Generic/2010-05-03-DisableFramePtr.ll
  32. 0 0
      test/DebugInfo/Generic/2010-05-03-OriginDIE.ll
  33. 0 0
      test/DebugInfo/Generic/2010-05-10-MultipleCU.ll
  34. 0 0
      test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll
  35. 0 0
      test/DebugInfo/Generic/2010-07-19-Crash.ll
  36. 0 0
      test/DebugInfo/Generic/2010-10-01-crash.ll
  37. 0 0
      test/DebugInfo/Generic/PR20038.ll
  38. 0 0
      test/DebugInfo/Generic/accel-table-hash-collisions.ll
  39. 0 0
      test/DebugInfo/Generic/array.ll
  40. 0 0
      test/DebugInfo/Generic/block-asan.ll
  41. 0 0
      test/DebugInfo/Generic/bug_null_debuginfo.ll
  42. 0 0
      test/DebugInfo/Generic/constant-pointers.ll
  43. 0 0
      test/DebugInfo/Generic/constant-sdnodes-have-dbg-location.ll
  44. 0 0
      test/DebugInfo/Generic/constantfp-sdnodes-have-dbg-location.ll
  45. 0 0
      test/DebugInfo/Generic/cross-cu-inlining.ll
  46. 0 0
      test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll
  47. 0 0
      test/DebugInfo/Generic/cross-cu-linkonce.ll
  48. 0 0
      test/DebugInfo/Generic/cu-range-hole.ll
  49. 0 0
      test/DebugInfo/Generic/cu-ranges.ll
  50. 0 0
      test/DebugInfo/Generic/dbg-at-specficiation.ll
  51. 0 0
      test/DebugInfo/Generic/dead-argument-order.ll
  52. 0 0
      test/DebugInfo/Generic/debug-info-always-inline.ll
  53. 0 0
      test/DebugInfo/Generic/debug-info-qualifiers.ll
  54. 0 0
      test/DebugInfo/Generic/debuginfofinder-forward-declaration.ll
  55. 0 0
      test/DebugInfo/Generic/debuginfofinder-multiple-cu.ll
  56. 0 0
      test/DebugInfo/Generic/dwarf-public-names.ll
  57. 0 0
      test/DebugInfo/Generic/empty.ll
  58. 0 0
      test/DebugInfo/Generic/enum-types.ll
  59. 0 0
      test/DebugInfo/Generic/enum.ll
  60. 0 0
      test/DebugInfo/Generic/global.ll
  61. 0 0
      test/DebugInfo/Generic/gmlt.test
  62. 0 0
      test/DebugInfo/Generic/gvn.ll
  63. 0 0
      test/DebugInfo/Generic/incorrect-variable-debugloc.ll
  64. 0 0
      test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
  65. 0 0
      test/DebugInfo/Generic/inheritance.ll
  66. 0 0
      test/DebugInfo/Generic/inline-debug-info-multiret.ll
  67. 0 0
      test/DebugInfo/Generic/inline-debug-info.ll
  68. 0 0
      test/DebugInfo/Generic/inline-no-debug-info.ll
  69. 0 0
      test/DebugInfo/Generic/inline-scopes.ll
  70. 0 0
      test/DebugInfo/Generic/inlined-arguments.ll
  71. 0 0
      test/DebugInfo/Generic/inlined-vars.ll
  72. 3 0
      test/DebugInfo/Generic/lit.local.cfg
  73. 0 0
      test/DebugInfo/Generic/location-verifier.ll
  74. 0 0
      test/DebugInfo/Generic/lto-comp-dir.ll
  75. 0 0
      test/DebugInfo/Generic/member-order.ll
  76. 0 0
      test/DebugInfo/Generic/member-pointers.ll
  77. 0 0
      test/DebugInfo/Generic/missing-abstract-variable.ll
  78. 0 0
      test/DebugInfo/Generic/multiline.ll
  79. 0 0
      test/DebugInfo/Generic/namespace.ll
  80. 0 0
      test/DebugInfo/Generic/namespace_function_definition.ll
  81. 0 0
      test/DebugInfo/Generic/namespace_inline_function_definition.ll
  82. 0 0
      test/DebugInfo/Generic/nodebug.ll
  83. 0 0
      test/DebugInfo/Generic/piece-verifier.ll
  84. 0 0
      test/DebugInfo/Generic/recursive_inlining.ll
  85. 0 0
      test/DebugInfo/Generic/restrict.ll
  86. 0 0
      test/DebugInfo/Generic/skeletoncu.ll
  87. 0 0
      test/DebugInfo/Generic/sugared-constants.ll
  88. 0 0
      test/DebugInfo/Generic/template-recursive-void.ll
  89. 0 0
      test/DebugInfo/Generic/tu-composite.ll
  90. 0 0
      test/DebugInfo/Generic/tu-member-pointer.ll
  91. 0 0
      test/DebugInfo/Generic/two-cus-from-same-file.ll
  92. 0 0
      test/DebugInfo/Generic/typedef.ll
  93. 0 0
      test/DebugInfo/Generic/unconditional-branch.ll
  94. 0 0
      test/DebugInfo/Generic/varargs.ll
  95. 0 0
      test/DebugInfo/Generic/version.ll
  96. 0 3
      test/DebugInfo/lit.local.cfg
  97. 1 1
      test/Feature/optnone-llc.ll
  98. 0 1
      test/Feature/optnone.ll
  99. 2 0
      test/LTO/X86/bcsection.ll
  100. 1 0
      test/LTO/X86/current-section.ll

+ 4 - 2
include/llvm/Config/config.h.cmake

@@ -420,8 +420,10 @@
 /* Installation directory for data files */
 #cmakedefine LLVM_DATADIR "${LLVM_DATADIR}"
 
-/* Target triple LLVM will generate code for by default */
-#cmakedefine LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}"
+/* Target triple LLVM will generate code for by default
+ * Doesn't use `cmakedefine` because it is allowed to be empty.
+ */
+#define LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}"
 
 /* Installation directory for documentation */
 #cmakedefine LLVM_DOCSDIR "${LLVM_DOCSDIR}"

+ 1 - 1
test/BugPoint/remove_arguments_test.ll

@@ -5,7 +5,7 @@
 ; Test to make sure that arguments are removed from the function if they are
 ; unnecessary. And clean up any types that frees up too.
 
-; CHECK: target triple
+; CHECK: ModuleID
 ; CHECK-NOT: struct.anon
 %struct.anon = type { i32 }
 

+ 1 - 1
test/CodeGen/Generic/lit.local.cfg

@@ -1,3 +1,3 @@
-if 'native' not in config.available_features:
+if not config.target_triple:
     config.unsupported = True
 

+ 1 - 0
test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 define void @iterative_hash_host_wide_int() {
         %zero = alloca i32              ; <i32*> [#uses=2]

+ 1 - 0
test/CodeGen/PowerPC/2006-08-15-SelectionCrash.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 	%struct..0anon = type { i32 }
 	%struct.rtx_def = type { i16, i8, i8, [1 x %struct..0anon] }

+ 1 - 0
test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll

@@ -1,6 +1,7 @@
 ; RUN: llc < %s -march=ppc64
 ; RUN: llc < %s -march=ppc32
 ; RUN: llc < %s 
+; REQUIRES: default_triple
 
 define void @bitap() {
 entry:

+ 1 - 0
test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll

@@ -1,6 +1,7 @@
 ; RUN: llc < %s -march=ppc64
 ; RUN: llc < %s -march=ppc32
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 @qsz.b = external global i1             ; <i1*> [#uses=1]
 

+ 1 - 0
test/CodeGen/PowerPC/2007-11-19-VectorSplitting.ll

@@ -2,6 +2,7 @@
 ; RUN: llc < %s -march=ppc32 -mcpu=g3
 ; RUN: llc < %s -march=ppc32 -mcpu=g5
 ; PR1811
+; REQUIRES: default_triple
 
 define void @execute_shader(<4 x float>* %OUT, <4 x float>* %IN, <4 x float>*
 %CONST) {

+ 1 - 0
test/CodeGen/PowerPC/load-shift-combine.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 ; This used to cause a crash.  A standard load is converted to a pre-increment
 ; load.  Later the pre-increment load is combined with a subsequent SRL to

+ 1 - 0
test/CodeGen/X86/2006-10-02-BoolRetCrash.ll

@@ -1,5 +1,6 @@
 ; RUN: llc < %s 
 ; PR933
+; REQUIRES: default_triple
 
 define fastcc i1 @test() {
         ret i1 true

+ 1 - 0
test/CodeGen/X86/2009-06-05-VariableIndexInsert.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 define <2 x i64> @_mm_insert_epi16(<2 x i64> %a, i32 %b, i32 %imm) nounwind readnone {
 entry:

+ 1 - 0
test/CodeGen/X86/2009-06-06-ConcatVectors.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 define <2 x i64> @_mm_movpi64_pi64(<1 x i64> %a, <1 x i64> %b) nounwind readnone {
 entry:

+ 2 - 0
test/CodeGen/X86/2010-02-01-DbgValueCrash.ll

@@ -1,4 +1,6 @@
 ; RUN: llc -O1 < %s
+; REQUIRES: default_triple
+
 ; ModuleID = 'pr6157.bc'
 ; formerly crashed in SelectionDAGBuilder
 

+ 1 - 0
test/CodeGen/X86/2010-07-06-DbgCrash.ll

@@ -1,4 +1,5 @@
 ; RUN: llc -O0 -relocation-model pic < %s -o /dev/null
+; REQUIRES: default_triple
 ; PR7545
 @.str = private constant [4 x i8] c"one\00", align 1 ; <[4 x i8]*> [#uses=1]
 @.str1 = private constant [4 x i8] c"two\00", align 1 ; <[5 x i8]*> [#uses=1]

+ 1 - 0
test/CodeGen/X86/GC/alloc_loop.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 
 declare i8* @llvm_gc_allocate(i32)

+ 1 - 0
test/CodeGen/X86/GC/cg-O0.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s -O0
+; REQUIRES: default_triple
 
 define i32 @main() {
 entry:

+ 1 - 0
test/CodeGen/X86/GC/lower_gcroot.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 	%Env = type i8*
 

+ 1 - 0
test/CodeGen/X86/extractelement-shuffle.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 ; Examples that exhibits a bug in DAGCombine.  The case is triggered by the
 ; following program.  The bug is DAGCombine assumes that the bit convert

+ 1 - 0
test/CodeGen/X86/vshift_scalar.ll

@@ -1,4 +1,5 @@
 ; RUN: llc < %s
+; REQUIRES: default_triple
 
 ; Legalization test that requires scalarizing a vector.
 

+ 0 - 0
test/DebugInfo/2009-10-16-Phi.ll → test/DebugInfo/Generic/2009-10-16-Phi.ll


+ 0 - 0
test/DebugInfo/2009-11-03-InsertExtractValue.ll → test/DebugInfo/Generic/2009-11-03-InsertExtractValue.ll


+ 0 - 0
test/DebugInfo/2009-11-05-DeadGlobalVariable.ll → test/DebugInfo/Generic/2009-11-05-DeadGlobalVariable.ll


+ 0 - 0
test/DebugInfo/2009-11-06-NamelessGlobalVariable.ll → test/DebugInfo/Generic/2009-11-06-NamelessGlobalVariable.ll


+ 0 - 0
test/DebugInfo/2009-11-10-CurrentFn.ll → test/DebugInfo/Generic/2009-11-10-CurrentFn.ll


+ 0 - 0
test/DebugInfo/2010-01-05-DbgScope.ll → test/DebugInfo/Generic/2010-01-05-DbgScope.ll


+ 0 - 0
test/DebugInfo/2010-03-12-llc-crash.ll → test/DebugInfo/Generic/2010-03-12-llc-crash.ll


+ 0 - 0
test/DebugInfo/2010-03-19-DbgDeclare.ll → test/DebugInfo/Generic/2010-03-19-DbgDeclare.ll


+ 0 - 0
test/DebugInfo/2010-03-24-MemberFn.ll → test/DebugInfo/Generic/2010-03-24-MemberFn.ll


+ 0 - 0
test/DebugInfo/2010-04-06-NestedFnDbgInfo.ll → test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll


+ 0 - 0
test/DebugInfo/2010-04-19-FramePtr.ll → test/DebugInfo/Generic/2010-04-19-FramePtr.ll


+ 0 - 0
test/DebugInfo/2010-05-03-DisableFramePtr.ll → test/DebugInfo/Generic/2010-05-03-DisableFramePtr.ll


+ 0 - 0
test/DebugInfo/2010-05-03-OriginDIE.ll → test/DebugInfo/Generic/2010-05-03-OriginDIE.ll


+ 0 - 0
test/DebugInfo/2010-05-10-MultipleCU.ll → test/DebugInfo/Generic/2010-05-10-MultipleCU.ll


+ 0 - 0
test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll → test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll


+ 0 - 0
test/DebugInfo/2010-07-19-Crash.ll → test/DebugInfo/Generic/2010-07-19-Crash.ll


+ 0 - 0
test/DebugInfo/2010-10-01-crash.ll → test/DebugInfo/Generic/2010-10-01-crash.ll


+ 0 - 0
test/DebugInfo/PR20038.ll → test/DebugInfo/Generic/PR20038.ll


+ 0 - 0
test/DebugInfo/accel-table-hash-collisions.ll → test/DebugInfo/Generic/accel-table-hash-collisions.ll


+ 0 - 0
test/DebugInfo/array.ll → test/DebugInfo/Generic/array.ll


+ 0 - 0
test/DebugInfo/block-asan.ll → test/DebugInfo/Generic/block-asan.ll


+ 0 - 0
test/DebugInfo/bug_null_debuginfo.ll → test/DebugInfo/Generic/bug_null_debuginfo.ll


+ 0 - 0
test/DebugInfo/constant-pointers.ll → test/DebugInfo/Generic/constant-pointers.ll


+ 0 - 0
test/DebugInfo/constant-sdnodes-have-dbg-location.ll → test/DebugInfo/Generic/constant-sdnodes-have-dbg-location.ll


+ 0 - 0
test/DebugInfo/constantfp-sdnodes-have-dbg-location.ll → test/DebugInfo/Generic/constantfp-sdnodes-have-dbg-location.ll


+ 0 - 0
test/DebugInfo/cross-cu-inlining.ll → test/DebugInfo/Generic/cross-cu-inlining.ll


+ 0 - 0
test/DebugInfo/cross-cu-linkonce-distinct.ll → test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll


+ 0 - 0
test/DebugInfo/cross-cu-linkonce.ll → test/DebugInfo/Generic/cross-cu-linkonce.ll


+ 0 - 0
test/DebugInfo/cu-range-hole.ll → test/DebugInfo/Generic/cu-range-hole.ll


+ 0 - 0
test/DebugInfo/cu-ranges.ll → test/DebugInfo/Generic/cu-ranges.ll


+ 0 - 0
test/DebugInfo/X86/dbg-at-specficiation.ll → test/DebugInfo/Generic/dbg-at-specficiation.ll


+ 0 - 0
test/DebugInfo/dead-argument-order.ll → test/DebugInfo/Generic/dead-argument-order.ll


+ 0 - 0
test/DebugInfo/debug-info-always-inline.ll → test/DebugInfo/Generic/debug-info-always-inline.ll


+ 0 - 0
test/DebugInfo/debug-info-qualifiers.ll → test/DebugInfo/Generic/debug-info-qualifiers.ll


+ 0 - 0
test/DebugInfo/debuginfofinder-forward-declaration.ll → test/DebugInfo/Generic/debuginfofinder-forward-declaration.ll


+ 0 - 0
test/DebugInfo/debuginfofinder-multiple-cu.ll → test/DebugInfo/Generic/debuginfofinder-multiple-cu.ll


+ 0 - 0
test/DebugInfo/dwarf-public-names.ll → test/DebugInfo/Generic/dwarf-public-names.ll


+ 0 - 0
test/DebugInfo/empty.ll → test/DebugInfo/Generic/empty.ll


+ 0 - 0
test/DebugInfo/enum-types.ll → test/DebugInfo/Generic/enum-types.ll


+ 0 - 0
test/DebugInfo/enum.ll → test/DebugInfo/Generic/enum.ll


+ 0 - 0
test/DebugInfo/global.ll → test/DebugInfo/Generic/global.ll


+ 0 - 0
test/DebugInfo/gmlt.test → test/DebugInfo/Generic/gmlt.test


+ 0 - 0
test/DebugInfo/gvn.ll → test/DebugInfo/Generic/gvn.ll


+ 0 - 0
test/DebugInfo/incorrect-variable-debugloc.ll → test/DebugInfo/Generic/incorrect-variable-debugloc.ll


+ 0 - 0
test/DebugInfo/incorrect-variable-debugloc1.ll → test/DebugInfo/Generic/incorrect-variable-debugloc1.ll


+ 0 - 0
test/DebugInfo/inheritance.ll → test/DebugInfo/Generic/inheritance.ll


+ 0 - 0
test/DebugInfo/inline-debug-info-multiret.ll → test/DebugInfo/Generic/inline-debug-info-multiret.ll


+ 0 - 0
test/DebugInfo/inline-debug-info.ll → test/DebugInfo/Generic/inline-debug-info.ll


+ 0 - 0
test/DebugInfo/inline-no-debug-info.ll → test/DebugInfo/Generic/inline-no-debug-info.ll


+ 0 - 0
test/DebugInfo/inline-scopes.ll → test/DebugInfo/Generic/inline-scopes.ll


+ 0 - 0
test/DebugInfo/inlined-arguments.ll → test/DebugInfo/Generic/inlined-arguments.ll


+ 0 - 0
test/DebugInfo/inlined-vars.ll → test/DebugInfo/Generic/inlined-vars.ll


+ 3 - 0
test/DebugInfo/Generic/lit.local.cfg

@@ -0,0 +1,3 @@
+if not config.target_triple:
+    config.unsupported = True
+

+ 0 - 0
test/DebugInfo/location-verifier.ll → test/DebugInfo/Generic/location-verifier.ll


+ 0 - 0
test/DebugInfo/lto-comp-dir.ll → test/DebugInfo/Generic/lto-comp-dir.ll


+ 0 - 0
test/DebugInfo/member-order.ll → test/DebugInfo/Generic/member-order.ll


+ 0 - 0
test/DebugInfo/member-pointers.ll → test/DebugInfo/Generic/member-pointers.ll


+ 0 - 0
test/DebugInfo/missing-abstract-variable.ll → test/DebugInfo/Generic/missing-abstract-variable.ll


+ 0 - 0
test/DebugInfo/multiline.ll → test/DebugInfo/Generic/multiline.ll


+ 0 - 0
test/DebugInfo/namespace.ll → test/DebugInfo/Generic/namespace.ll


+ 0 - 0
test/DebugInfo/namespace_function_definition.ll → test/DebugInfo/Generic/namespace_function_definition.ll


+ 0 - 0
test/DebugInfo/namespace_inline_function_definition.ll → test/DebugInfo/Generic/namespace_inline_function_definition.ll


+ 0 - 0
test/DebugInfo/nodebug.ll → test/DebugInfo/Generic/nodebug.ll


+ 0 - 0
test/DebugInfo/piece-verifier.ll → test/DebugInfo/Generic/piece-verifier.ll


+ 0 - 0
test/DebugInfo/X86/recursive_inlining.ll → test/DebugInfo/Generic/recursive_inlining.ll


+ 0 - 0
test/DebugInfo/restrict.ll → test/DebugInfo/Generic/restrict.ll


+ 0 - 0
test/DebugInfo/skeletoncu.ll → test/DebugInfo/Generic/skeletoncu.ll


+ 0 - 0
test/DebugInfo/sugared-constants.ll → test/DebugInfo/Generic/sugared-constants.ll


+ 0 - 0
test/DebugInfo/template-recursive-void.ll → test/DebugInfo/Generic/template-recursive-void.ll


+ 0 - 0
test/DebugInfo/tu-composite.ll → test/DebugInfo/Generic/tu-composite.ll


+ 0 - 0
test/DebugInfo/tu-member-pointer.ll → test/DebugInfo/Generic/tu-member-pointer.ll


+ 0 - 0
test/DebugInfo/two-cus-from-same-file.ll → test/DebugInfo/Generic/two-cus-from-same-file.ll


+ 0 - 0
test/DebugInfo/typedef.ll → test/DebugInfo/Generic/typedef.ll


+ 0 - 0
test/DebugInfo/unconditional-branch.ll → test/DebugInfo/Generic/unconditional-branch.ll


+ 0 - 0
test/DebugInfo/varargs.ll → test/DebugInfo/Generic/varargs.ll


+ 0 - 0
test/DebugInfo/version.ll → test/DebugInfo/Generic/version.ll


+ 0 - 3
test/DebugInfo/lit.local.cfg

@@ -1,3 +0,0 @@
-if 'native' not in config.available_features:
-    config.unsupported = True
-

+ 1 - 1
test/Feature/optnone-llc.ll

@@ -4,7 +4,7 @@
 ; RUN: llc -O3 -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-Ox
 ; RUN: llc -misched-postra -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-MORE
 
-; REQUIRES: asserts, native
+; REQUIRES: asserts, default_triple
 
 ; This test verifies that we don't run Machine Function optimizations
 ; on optnone functions.

+ 0 - 1
test/Feature/optnone.ll

@@ -1,5 +1,4 @@
 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
-; REQUIRE: native
 
 ; Check for the presence of attribute optnone in the disassembly.
 

+ 2 - 0
test/LTO/X86/bcsection.ll

@@ -15,6 +15,8 @@
 ; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %T/bcsection.macho.o %T/bcsection.macho.bco
 ; RUN: llvm-nm %T/bcsection.macho.o | FileCheck %s
 
+; REQUIRES: default_triple
+
 ; CHECK: main
 define i32 @main() {
   ret i32 0

+ 1 - 0
test/LTO/X86/current-section.ll

@@ -1,4 +1,5 @@
 ; RUN: llvm-as < %s >%t1
 ; RUN: llvm-lto -o %t2 %t1
+; REQUIRES: default_triple
 
 module asm ".align 4"

部分文件因为文件数量过多而无法显示