Make the default triple optional by allowing an empty string
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 16 Sep 2015 05:34:32 +0000 (05:34 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 16 Sep 2015 05:34:32 +0000 (05:34 +0000)
commit793a2b15e7c0b8340fc3369348444823e55ceba5
tree0eb4275978b8f78d0dd183d20779e17d10d771d7
parentecd56aa51827c1236bbbfa802731621951d41e53
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
191 files changed:
include/llvm/Config/config.h.cmake
test/BugPoint/remove_arguments_test.ll
test/CodeGen/Generic/lit.local.cfg
test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll
test/CodeGen/PowerPC/2006-08-15-SelectionCrash.ll
test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
test/CodeGen/PowerPC/2007-11-19-VectorSplitting.ll
test/CodeGen/PowerPC/load-shift-combine.ll
test/CodeGen/X86/2006-10-02-BoolRetCrash.ll
test/CodeGen/X86/2009-06-05-VariableIndexInsert.ll
test/CodeGen/X86/2009-06-06-ConcatVectors.ll
test/CodeGen/X86/2010-02-01-DbgValueCrash.ll
test/CodeGen/X86/2010-07-06-DbgCrash.ll
test/CodeGen/X86/GC/alloc_loop.ll
test/CodeGen/X86/GC/cg-O0.ll
test/CodeGen/X86/GC/lower_gcroot.ll
test/CodeGen/X86/extractelement-shuffle.ll
test/CodeGen/X86/vshift_scalar.ll
test/DebugInfo/2009-10-16-Phi.ll [deleted file]
test/DebugInfo/2009-11-03-InsertExtractValue.ll [deleted file]
test/DebugInfo/2009-11-05-DeadGlobalVariable.ll [deleted file]
test/DebugInfo/2009-11-06-NamelessGlobalVariable.ll [deleted file]
test/DebugInfo/2009-11-10-CurrentFn.ll [deleted file]
test/DebugInfo/2010-01-05-DbgScope.ll [deleted file]
test/DebugInfo/2010-03-12-llc-crash.ll [deleted file]
test/DebugInfo/2010-03-19-DbgDeclare.ll [deleted file]
test/DebugInfo/2010-03-24-MemberFn.ll [deleted file]
test/DebugInfo/2010-04-06-NestedFnDbgInfo.ll [deleted file]
test/DebugInfo/2010-04-19-FramePtr.ll [deleted file]
test/DebugInfo/2010-05-03-DisableFramePtr.ll [deleted file]
test/DebugInfo/2010-05-03-OriginDIE.ll [deleted file]
test/DebugInfo/2010-05-10-MultipleCU.ll [deleted file]
test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll [deleted file]
test/DebugInfo/2010-07-19-Crash.ll [deleted file]
test/DebugInfo/2010-10-01-crash.ll [deleted file]
test/DebugInfo/Generic/2009-10-16-Phi.ll [new file with mode: 0644]
test/DebugInfo/Generic/2009-11-03-InsertExtractValue.ll [new file with mode: 0644]
test/DebugInfo/Generic/2009-11-05-DeadGlobalVariable.ll [new file with mode: 0644]
test/DebugInfo/Generic/2009-11-06-NamelessGlobalVariable.ll [new file with mode: 0644]
test/DebugInfo/Generic/2009-11-10-CurrentFn.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-01-05-DbgScope.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-03-12-llc-crash.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-03-19-DbgDeclare.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-03-24-MemberFn.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-04-19-FramePtr.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-05-03-DisableFramePtr.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-05-03-OriginDIE.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-05-10-MultipleCU.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-07-19-Crash.ll [new file with mode: 0644]
test/DebugInfo/Generic/2010-10-01-crash.ll [new file with mode: 0644]
test/DebugInfo/Generic/PR20038.ll [new file with mode: 0644]
test/DebugInfo/Generic/accel-table-hash-collisions.ll [new file with mode: 0644]
test/DebugInfo/Generic/array.ll [new file with mode: 0644]
test/DebugInfo/Generic/block-asan.ll [new file with mode: 0644]
test/DebugInfo/Generic/bug_null_debuginfo.ll [new file with mode: 0644]
test/DebugInfo/Generic/constant-pointers.ll [new file with mode: 0644]
test/DebugInfo/Generic/constant-sdnodes-have-dbg-location.ll [new file with mode: 0644]
test/DebugInfo/Generic/constantfp-sdnodes-have-dbg-location.ll [new file with mode: 0644]
test/DebugInfo/Generic/cross-cu-inlining.ll [new file with mode: 0644]
test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll [new file with mode: 0644]
test/DebugInfo/Generic/cross-cu-linkonce.ll [new file with mode: 0644]
test/DebugInfo/Generic/cu-range-hole.ll [new file with mode: 0644]
test/DebugInfo/Generic/cu-ranges.ll [new file with mode: 0644]
test/DebugInfo/Generic/dbg-at-specficiation.ll [new file with mode: 0644]
test/DebugInfo/Generic/dead-argument-order.ll [new file with mode: 0644]
test/DebugInfo/Generic/debug-info-always-inline.ll [new file with mode: 0644]
test/DebugInfo/Generic/debug-info-qualifiers.ll [new file with mode: 0644]
test/DebugInfo/Generic/debuginfofinder-forward-declaration.ll [new file with mode: 0644]
test/DebugInfo/Generic/debuginfofinder-multiple-cu.ll [new file with mode: 0644]
test/DebugInfo/Generic/dwarf-public-names.ll [new file with mode: 0644]
test/DebugInfo/Generic/empty.ll [new file with mode: 0644]
test/DebugInfo/Generic/enum-types.ll [new file with mode: 0644]
test/DebugInfo/Generic/enum.ll [new file with mode: 0644]
test/DebugInfo/Generic/global.ll [new file with mode: 0644]
test/DebugInfo/Generic/gmlt.test [new file with mode: 0644]
test/DebugInfo/Generic/gvn.ll [new file with mode: 0644]
test/DebugInfo/Generic/incorrect-variable-debugloc.ll [new file with mode: 0644]
test/DebugInfo/Generic/incorrect-variable-debugloc1.ll [new file with mode: 0644]
test/DebugInfo/Generic/inheritance.ll [new file with mode: 0644]
test/DebugInfo/Generic/inline-debug-info-multiret.ll [new file with mode: 0644]
test/DebugInfo/Generic/inline-debug-info.ll [new file with mode: 0644]
test/DebugInfo/Generic/inline-no-debug-info.ll [new file with mode: 0644]
test/DebugInfo/Generic/inline-scopes.ll [new file with mode: 0644]
test/DebugInfo/Generic/inlined-arguments.ll [new file with mode: 0644]
test/DebugInfo/Generic/inlined-vars.ll [new file with mode: 0644]
test/DebugInfo/Generic/lit.local.cfg [new file with mode: 0644]
test/DebugInfo/Generic/location-verifier.ll [new file with mode: 0644]
test/DebugInfo/Generic/lto-comp-dir.ll [new file with mode: 0644]
test/DebugInfo/Generic/member-order.ll [new file with mode: 0644]
test/DebugInfo/Generic/member-pointers.ll [new file with mode: 0644]
test/DebugInfo/Generic/missing-abstract-variable.ll [new file with mode: 0644]
test/DebugInfo/Generic/multiline.ll [new file with mode: 0644]
test/DebugInfo/Generic/namespace.ll [new file with mode: 0644]
test/DebugInfo/Generic/namespace_function_definition.ll [new file with mode: 0644]
test/DebugInfo/Generic/namespace_inline_function_definition.ll [new file with mode: 0644]
test/DebugInfo/Generic/nodebug.ll [new file with mode: 0644]
test/DebugInfo/Generic/piece-verifier.ll [new file with mode: 0644]
test/DebugInfo/Generic/recursive_inlining.ll [new file with mode: 0644]
test/DebugInfo/Generic/restrict.ll [new file with mode: 0644]
test/DebugInfo/Generic/skeletoncu.ll [new file with mode: 0644]
test/DebugInfo/Generic/sugared-constants.ll [new file with mode: 0644]
test/DebugInfo/Generic/template-recursive-void.ll [new file with mode: 0644]
test/DebugInfo/Generic/tu-composite.ll [new file with mode: 0644]
test/DebugInfo/Generic/tu-member-pointer.ll [new file with mode: 0644]
test/DebugInfo/Generic/two-cus-from-same-file.ll [new file with mode: 0644]
test/DebugInfo/Generic/typedef.ll [new file with mode: 0644]
test/DebugInfo/Generic/unconditional-branch.ll [new file with mode: 0644]
test/DebugInfo/Generic/varargs.ll [new file with mode: 0644]
test/DebugInfo/Generic/version.ll [new file with mode: 0644]
test/DebugInfo/PR20038.ll [deleted file]
test/DebugInfo/X86/dbg-at-specficiation.ll [deleted file]
test/DebugInfo/X86/recursive_inlining.ll [deleted file]
test/DebugInfo/accel-table-hash-collisions.ll [deleted file]
test/DebugInfo/array.ll [deleted file]
test/DebugInfo/block-asan.ll [deleted file]
test/DebugInfo/bug_null_debuginfo.ll [deleted file]
test/DebugInfo/constant-pointers.ll [deleted file]
test/DebugInfo/constant-sdnodes-have-dbg-location.ll [deleted file]
test/DebugInfo/constantfp-sdnodes-have-dbg-location.ll [deleted file]
test/DebugInfo/cross-cu-inlining.ll [deleted file]
test/DebugInfo/cross-cu-linkonce-distinct.ll [deleted file]
test/DebugInfo/cross-cu-linkonce.ll [deleted file]
test/DebugInfo/cu-range-hole.ll [deleted file]
test/DebugInfo/cu-ranges.ll [deleted file]
test/DebugInfo/dead-argument-order.ll [deleted file]
test/DebugInfo/debug-info-always-inline.ll [deleted file]
test/DebugInfo/debug-info-qualifiers.ll [deleted file]
test/DebugInfo/debuginfofinder-forward-declaration.ll [deleted file]
test/DebugInfo/debuginfofinder-multiple-cu.ll [deleted file]
test/DebugInfo/dwarf-public-names.ll [deleted file]
test/DebugInfo/empty.ll [deleted file]
test/DebugInfo/enum-types.ll [deleted file]
test/DebugInfo/enum.ll [deleted file]
test/DebugInfo/global.ll [deleted file]
test/DebugInfo/gmlt.test [deleted file]
test/DebugInfo/gvn.ll [deleted file]
test/DebugInfo/incorrect-variable-debugloc.ll [deleted file]
test/DebugInfo/incorrect-variable-debugloc1.ll [deleted file]
test/DebugInfo/inheritance.ll [deleted file]
test/DebugInfo/inline-debug-info-multiret.ll [deleted file]
test/DebugInfo/inline-debug-info.ll [deleted file]
test/DebugInfo/inline-no-debug-info.ll [deleted file]
test/DebugInfo/inline-scopes.ll [deleted file]
test/DebugInfo/inlined-arguments.ll [deleted file]
test/DebugInfo/inlined-vars.ll [deleted file]
test/DebugInfo/lit.local.cfg [deleted file]
test/DebugInfo/location-verifier.ll [deleted file]
test/DebugInfo/lto-comp-dir.ll [deleted file]
test/DebugInfo/member-order.ll [deleted file]
test/DebugInfo/member-pointers.ll [deleted file]
test/DebugInfo/missing-abstract-variable.ll [deleted file]
test/DebugInfo/multiline.ll [deleted file]
test/DebugInfo/namespace.ll [deleted file]
test/DebugInfo/namespace_function_definition.ll [deleted file]
test/DebugInfo/namespace_inline_function_definition.ll [deleted file]
test/DebugInfo/nodebug.ll [deleted file]
test/DebugInfo/piece-verifier.ll [deleted file]
test/DebugInfo/restrict.ll [deleted file]
test/DebugInfo/skeletoncu.ll [deleted file]
test/DebugInfo/sugared-constants.ll [deleted file]
test/DebugInfo/template-recursive-void.ll [deleted file]
test/DebugInfo/tu-composite.ll [deleted file]
test/DebugInfo/tu-member-pointer.ll [deleted file]
test/DebugInfo/two-cus-from-same-file.ll [deleted file]
test/DebugInfo/typedef.ll [deleted file]
test/DebugInfo/unconditional-branch.ll [deleted file]
test/DebugInfo/varargs.ll [deleted file]
test/DebugInfo/version.ll [deleted file]
test/Feature/optnone-llc.ll
test/Feature/optnone.ll
test/LTO/X86/bcsection.ll
test/LTO/X86/current-section.ll
test/LTO/X86/list-symbols.ll
test/Linker/subprogram-linkonce-weak.ll
test/Linker/type-unique-odr-a.ll
test/Linker/type-unique-simple-a.ll
test/Linker/type-unique-simple2-a.ll
test/Linker/type-unique-simple2.ll
test/Linker/type-unique-type-array-a.ll
test/MC/ELF/cfi-version.ll
test/Other/2010-05-06-Printer.ll
test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll
test/lit.cfg
test/tools/llvm-mc/basic.test
test/tools/llvm-mc/fatal_warnings.test
test/tools/llvm-mc/line_end_with_space.test
test/tools/llvm-mc/lit.local.cfg [new file with mode: 0644]
test/tools/llvm-mc/no_warnings.test