From 5a5ac124e1efaf208671f01c46edb15f29ed2a0b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:44:32 +0000 Subject: [PATCH] Vendor import of llvm trunk r238337: https://llvm.org/svn/llvm-project/llvm/trunk@238337 --- .gitignore | 4 +- CMakeLists.txt | 79 +- CODE_OWNERS.TXT | 24 +- LICENSE.TXT | 2 +- Makefile.config.in | 21 + Makefile.rules | 11 +- README.txt | 1 - autoconf/config.sub | 4 +- autoconf/configure.ac | 205 +- autoconf/m4/func_isinf.m4 | 42 - autoconf/m4/func_isnan.m4 | 27 - bindings/go/llvm/DIBuilderBindings.cpp | 131 +- bindings/go/llvm/DIBuilderBindings.h | 7 +- bindings/go/llvm/IRBindings.cpp | 10 +- bindings/go/llvm/InstrumentationBindings.cpp | 12 +- bindings/go/llvm/InstrumentationBindings.h | 4 +- bindings/go/llvm/SupportBindings.cpp | 1 - bindings/go/llvm/dibuilder.go | 32 + bindings/go/llvm/linker.go | 11 +- .../go/llvm/transforms_instrumentation.go | 11 +- bindings/ocaml/linker/linker_ocaml.c | 6 +- bindings/ocaml/linker/llvm_linker.ml | 8 +- bindings/ocaml/linker/llvm_linker.mli | 9 +- bindings/ocaml/llvm/llvm.ml | 2 + bindings/ocaml/llvm/llvm.mli | 6 + bindings/ocaml/llvm/llvm_ocaml.c | 9 + cmake/config-ix.cmake | 47 +- cmake/modules/AddLLVM.cmake | 164 +- cmake/modules/CheckAtomic.cmake | 11 +- cmake/modules/CrossCompile.cmake | 74 +- cmake/modules/HandleLLVMOptions.cmake | 110 +- cmake/modules/HandleLLVMStdlib.cmake | 26 +- cmake/modules/LLVM-Config.cmake | 39 +- cmake/modules/LLVMConfig.cmake.in | 2 + cmake/modules/LLVMProcessSources.cmake | 33 +- cmake/modules/Makefile | 7 + cmake/modules/TableGen.cmake | 15 +- cmake/platforms/iOS.cmake | 42 +- configure | 1335 +- docs/BitCodeFormat.rst | 2 +- docs/BitSets.rst | 70 + docs/BranchWeightMetadata.rst | 23 + docs/Bugpoint.rst | 2 +- docs/BuildingLLVMWithAutotools.rst | 332 + docs/CMake.rst | 53 +- docs/CodeGenerator.rst | 6 +- docs/CodingStandards.rst | 89 +- docs/CommandGuide/FileCheck.rst | 27 +- docs/CommandGuide/lit.rst | 4 +- docs/CommandGuide/llvm-cov.rst | 212 +- docs/CommandGuide/llvm-profdata.rst | 8 +- docs/CompilerWriterInfo.rst | 2 + docs/DeveloperPolicy.rst | 63 +- docs/ExceptionHandling.rst | 221 +- docs/ExtendingLLVM.rst | 97 +- docs/Extensions.rst | 23 + docs/FAQ.rst | 2 +- docs/Frontend/PerformanceTips.rst | 183 + docs/GarbageCollection.rst | 632 +- docs/GetElementPtr.rst | 34 +- docs/GettingStarted.rst | 377 +- docs/GettingStartedVS.rst | 4 +- docs/HowToBuildOnARM.rst | 2 +- docs/HowToSetUpLLVMStyleRTTI.rst | 26 +- docs/LangRef.rst | 853 +- docs/Lexicon.rst | 21 + docs/LibFuzzer.rst | 418 + docs/Makefile | 38 +- docs/MergeFunctions.rst | 6 +- docs/Passes.rst | 7 - docs/Phabricator.rst | 31 +- docs/ProgrammersManual.rst | 142 +- docs/R600Usage.rst | 60 +- docs/ReleaseNotes.rst | 617 +- docs/SourceLevelDebugging.rst | 780 +- docs/StackMaps.rst | 11 +- docs/Statepoints.rst | 429 +- docs/TestingGuide.rst | 19 + docs/Vectorizers.rst | 2 +- docs/WritingAnLLVMPass.rst | 4 +- docs/YamlIO.rst | 83 +- docs/conf.py | 4 +- docs/doxygen.cfg.in | 2366 +- docs/doxygen.css | 408 - docs/doxygen.footer | 13 - docs/doxygen.header | 9 - docs/index.rst | 24 + docs/tutorial/LangImpl1.rst | 11 +- docs/tutorial/LangImpl3.rst | 2 +- docs/tutorial/LangImpl5.rst | 4 +- docs/tutorial/LangImpl7.rst | 4 +- docs/tutorial/LangImpl8.rst | 52 +- docs/tutorial/LangImpl9.rst | 13 +- docs/tutorial/OCamlLangImpl3.rst | 2 +- docs/tutorial/OCamlLangImpl5.rst | 2 +- examples/BrainF/BrainF.cpp | 5 +- examples/ExceptionDemo/CMakeLists.txt | 5 +- examples/ExceptionDemo/ExceptionDemo.cpp | 56 +- examples/HowToUseJIT/HowToUseJIT.cpp | 1 + examples/Kaleidoscope/CMakeLists.txt | 1 + examples/Kaleidoscope/Chapter3/toy.cpp | 8 +- examples/Kaleidoscope/Chapter4/CMakeLists.txt | 4 +- examples/Kaleidoscope/Chapter4/toy.cpp | 313 +- examples/Kaleidoscope/Chapter5/CMakeLists.txt | 4 +- examples/Kaleidoscope/Chapter5/toy.cpp | 22 +- examples/Kaleidoscope/Chapter6/CMakeLists.txt | 4 +- examples/Kaleidoscope/Chapter6/toy.cpp | 24 +- examples/Kaleidoscope/Chapter7/CMakeLists.txt | 6 +- examples/Kaleidoscope/Chapter7/Makefile | 1 - examples/Kaleidoscope/Chapter7/toy.cpp | 31 +- examples/Kaleidoscope/Chapter8/CMakeLists.txt | 10 +- examples/Kaleidoscope/Chapter8/Makefile | 1 - examples/Kaleidoscope/Chapter8/toy.cpp | 103 +- .../Kaleidoscope/MCJIT/cached/toy-jit.cpp | 4 +- examples/Kaleidoscope/MCJIT/cached/toy.cpp | 254 +- examples/Kaleidoscope/MCJIT/complete/toy.cpp | 10 +- examples/Kaleidoscope/MCJIT/initial/toy.cpp | 252 +- examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp | 2 +- examples/Kaleidoscope/MCJIT/lazy/toy.cpp | 250 +- examples/Kaleidoscope/Orc/CMakeLists.txt | 4 + .../Orc/fully_lazy/CMakeLists.txt | 13 + examples/Kaleidoscope/Orc/fully_lazy/Makefile | 17 + .../Kaleidoscope/Orc/fully_lazy/README.txt | 21 + examples/Kaleidoscope/Orc/fully_lazy/toy.cpp | 1447 + .../Kaleidoscope/Orc/initial/CMakeLists.txt | 12 + examples/Kaleidoscope/Orc/initial/Makefile | 17 + examples/Kaleidoscope/Orc/initial/README.txt | 13 + examples/Kaleidoscope/Orc/initial/toy.cpp | 1339 + .../Orc/lazy_codegen/CMakeLists.txt | 12 + .../Kaleidoscope/Orc/lazy_codegen/Makefile | 17 + .../Kaleidoscope/Orc/lazy_codegen/README.txt | 13 + .../Kaleidoscope/Orc/lazy_codegen/toy.cpp | 1343 + .../Orc/lazy_irgen/CMakeLists.txt | 12 + examples/Kaleidoscope/Orc/lazy_irgen/Makefile | 17 + .../Kaleidoscope/Orc/lazy_irgen/README.txt | 16 + examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp | 1374 + examples/ParallelJIT/ParallelJIT.cpp | 1 + include/llvm-c/Core.h | 1 + include/llvm-c/Linker.h | 16 +- include/llvm-c/Transforms/Scalar.h | 3 + include/llvm-c/lto.h | 72 +- include/llvm/ADT/APFloat.h | 10 +- include/llvm/ADT/APInt.h | 21 +- include/llvm/ADT/APSInt.h | 73 +- include/llvm/ADT/ArrayRef.h | 86 +- include/llvm/ADT/BitVector.h | 41 +- include/llvm/ADT/DeltaAlgorithm.h | 2 + include/llvm/ADT/DenseMap.h | 107 +- include/llvm/ADT/DepthFirstIterator.h | 54 +- include/llvm/ADT/EpochTracker.h | 99 + include/llvm/ADT/EquivalenceClasses.h | 3 +- include/llvm/ADT/FoldingSet.h | 90 +- include/llvm/ADT/Hashing.h | 106 +- include/llvm/ADT/ImmutableList.h | 4 +- include/llvm/ADT/ImmutableMap.h | 62 +- include/llvm/ADT/ImmutableSet.h | 174 +- include/llvm/ADT/IndexedMap.h | 7 +- include/llvm/ADT/IntervalMap.h | 20 +- include/llvm/ADT/IntrusiveRefCntPtr.h | 13 +- include/llvm/ADT/MapVector.h | 5 + include/llvm/ADT/None.h | 5 +- include/llvm/ADT/Optional.h | 49 +- include/llvm/ADT/PointerUnion.h | 80 +- include/llvm/ADT/PostOrderIterator.h | 88 +- include/llvm/ADT/STLExtras.h | 367 +- include/llvm/ADT/ScopedHashTable.h | 4 +- include/llvm/ADT/SmallBitVector.h | 24 +- include/llvm/ADT/SmallPtrSet.h | 4 +- include/llvm/ADT/SmallVector.h | 98 +- include/llvm/ADT/SparseBitVector.h | 34 +- include/llvm/ADT/SparseMultiSet.h | 4 +- include/llvm/ADT/SparseSet.h | 4 +- include/llvm/ADT/StringMap.h | 2 +- include/llvm/ADT/StringRef.h | 9 +- include/llvm/ADT/TinyPtrVector.h | 23 +- include/llvm/ADT/Triple.h | 47 +- include/llvm/ADT/Twine.h | 104 +- include/llvm/ADT/edit_distance.h | 2 +- include/llvm/ADT/ilist.h | 12 +- include/llvm/ADT/iterator.h | 4 +- include/llvm/Analysis/AliasAnalysis.h | 50 +- include/llvm/Analysis/AliasSetTracker.h | 18 +- include/llvm/Analysis/AssumptionCache.h | 43 +- include/llvm/Analysis/BlockFrequencyInfo.h | 2 +- .../llvm/Analysis/BlockFrequencyInfoImpl.h | 3 - include/llvm/Analysis/CGSCCPassManager.h | 5 +- include/llvm/Analysis/CallGraph.h | 6 +- include/llvm/Analysis/ConstantFolding.h | 30 +- include/llvm/Analysis/ConstantsScanner.h | 93 - include/llvm/Analysis/DependenceAnalysis.h | 13 +- include/llvm/Analysis/DominanceFrontierImpl.h | 4 +- .../Analysis/FunctionTargetTransformInfo.h | 49 - include/llvm/Analysis/IVUsers.h | 1 - include/llvm/Analysis/InlineCost.h | 8 +- include/llvm/Analysis/InstructionSimplify.h | 80 +- include/llvm/Analysis/IntervalIterator.h | 33 +- .../llvm/Analysis/IteratedDominanceFrontier.h | 96 + include/llvm/Analysis/JumpInstrTableInfo.h | 2 +- include/llvm/Analysis/LazyValueInfo.h | 7 +- include/llvm/Analysis/LibCallAliasAnalysis.h | 12 +- include/llvm/Analysis/LibCallSemantics.h | 47 + include/llvm/Analysis/Loads.h | 3 +- include/llvm/Analysis/LoopAccessAnalysis.h | 552 + include/llvm/Analysis/LoopInfo.h | 221 +- include/llvm/Analysis/LoopInfoImpl.h | 56 +- include/llvm/Analysis/MemoryBuiltins.h | 21 +- .../llvm/Analysis/MemoryDependenceAnalysis.h | 16 +- include/llvm/Analysis/PHITransAddr.h | 8 +- include/llvm/Analysis/Passes.h | 17 +- include/llvm/Analysis/PostDominators.h | 2 +- include/llvm/Analysis/RegionInfo.h | 18 +- include/llvm/Analysis/RegionInfoImpl.h | 8 +- include/llvm/Analysis/RegionIterator.h | 20 - include/llvm/Analysis/ScalarEvolution.h | 98 +- .../llvm/Analysis/ScalarEvolutionExpander.h | 129 +- include/llvm/Analysis/SparsePropagation.h | 4 +- include/llvm/Analysis/TargetFolder.h | 29 +- include/llvm/Analysis/TargetLibraryInfo.def | 1029 + include/llvm/Analysis/TargetLibraryInfo.h | 328 + include/llvm/Analysis/TargetTransformInfo.h | 682 +- .../llvm/Analysis/TargetTransformInfoImpl.h | 441 + include/llvm/Analysis/ValueTracking.h | 157 +- include/llvm/Bitcode/BitCodes.h | 4 +- include/llvm/Bitcode/BitcodeWriterPass.h | 14 +- include/llvm/Bitcode/BitstreamReader.h | 26 +- include/llvm/Bitcode/LLVMBitCodes.h | 41 +- include/llvm/Bitcode/ReaderWriter.h | 21 +- include/llvm/CodeGen/AsmPrinter.h | 117 +- include/llvm/CodeGen/BasicTTIImpl.h | 767 + include/llvm/CodeGen/CallingConvLower.h | 33 +- include/llvm/CodeGen/CommandFlags.h | 114 +- include/llvm/CodeGen/DIE.h | 203 +- include/llvm/CodeGen/DwarfStringPoolEntry.h | 51 + .../CodeGen/ForwardControlFlowIntegrity.h | 122 - include/llvm/CodeGen/FunctionLoweringInfo.h | 18 +- include/llvm/CodeGen/GCMetadata.h | 297 +- include/llvm/CodeGen/GCMetadataPrinter.h | 56 +- include/llvm/CodeGen/GCStrategy.h | 245 +- include/llvm/CodeGen/GCs.h | 35 +- include/llvm/CodeGen/ISDOpcodes.h | 37 +- include/llvm/CodeGen/JumpInstrTables.h | 105 - include/llvm/CodeGen/LatencyPriorityQueue.h | 2 - include/llvm/CodeGen/LexicalScopes.h | 58 +- .../llvm/CodeGen/LinkAllCodegenComponents.h | 1 + include/llvm/CodeGen/LiveInterval.h | 52 +- include/llvm/CodeGen/LiveIntervalAnalysis.h | 23 +- include/llvm/CodeGen/LiveIntervalUnion.h | 4 +- include/llvm/CodeGen/LivePhysRegs.h | 19 +- include/llvm/CodeGen/LiveRangeEdit.h | 2 +- include/llvm/CodeGen/LiveStackAnalysis.h | 3 +- include/llvm/CodeGen/MachineBasicBlock.h | 32 +- .../llvm/CodeGen/MachineBlockFrequencyInfo.h | 2 +- .../llvm/CodeGen/MachineDominanceFrontier.h | 4 +- include/llvm/CodeGen/MachineDominators.h | 76 +- include/llvm/CodeGen/MachineFrameInfo.h | 34 +- include/llvm/CodeGen/MachineFunction.h | 11 +- .../llvm/CodeGen/MachineFunctionAnalysis.h | 2 +- include/llvm/CodeGen/MachineInstr.h | 356 +- include/llvm/CodeGen/MachineInstrBuilder.h | 15 +- include/llvm/CodeGen/MachineLoopInfo.h | 4 +- include/llvm/CodeGen/MachineMemOperand.h | 18 + include/llvm/CodeGen/MachineModuleInfo.h | 69 +- include/llvm/CodeGen/MachineModuleInfoImpls.h | 16 +- include/llvm/CodeGen/MachineOperand.h | 10 +- include/llvm/CodeGen/MachinePassRegistry.h | 9 +- include/llvm/CodeGen/MachinePostDominators.h | 2 +- include/llvm/CodeGen/MachineRegionInfo.h | 6 +- include/llvm/CodeGen/MachineRegisterInfo.h | 38 +- include/llvm/CodeGen/MachineSSAUpdater.h | 4 +- include/llvm/CodeGen/MachineScheduler.h | 4 +- include/llvm/CodeGen/MachineValueType.h | 69 +- include/llvm/CodeGen/PBQP/Graph.h | 74 +- include/llvm/CodeGen/PBQP/ReductionRules.h | 32 +- include/llvm/CodeGen/Passes.h | 58 +- include/llvm/CodeGen/RegAllocPBQP.h | 138 +- include/llvm/CodeGen/RegisterPressure.h | 15 - include/llvm/CodeGen/RegisterScavenging.h | 39 +- include/llvm/CodeGen/ResourcePriorityQueue.h | 8 +- include/llvm/CodeGen/RuntimeLibcalls.h | 4 + include/llvm/CodeGen/ScheduleDAG.h | 6 - include/llvm/CodeGen/ScheduleDAGInstrs.h | 2 +- include/llvm/CodeGen/SelectionDAG.h | 424 +- include/llvm/CodeGen/SelectionDAGISel.h | 13 +- include/llvm/CodeGen/SelectionDAGNodes.h | 615 +- include/llvm/CodeGen/SlotIndexes.h | 2 +- .../llvm/CodeGen/StackMapLivenessAnalysis.h | 64 - include/llvm/CodeGen/StackMaps.h | 41 +- .../CodeGen/TargetLoweringObjectFileImpl.h | 93 +- include/llvm/CodeGen/TargetSchedule.h | 3 + include/llvm/CodeGen/ValueTypes.h | 7 +- include/llvm/CodeGen/ValueTypes.td | 36 +- include/llvm/CodeGen/VirtRegMap.h | 4 +- include/llvm/CodeGen/WinEHFuncInfo.h | 157 + include/llvm/Config/config.h.cmake | 66 +- include/llvm/Config/config.h.in | 66 +- include/llvm/Config/llvm-config.h.cmake | 4 + include/llvm/Config/llvm-config.h.in | 3 + include/llvm/DebugInfo/DIContext.h | 52 +- .../DWARFAbbreviationDeclaration.h | 14 +- .../{ => DWARF}/DWARFAcceleratorTable.h | 9 +- .../DebugInfo/{ => DWARF}/DWARFCompileUnit.h | 2 +- .../llvm/DebugInfo/{ => DWARF}/DWARFContext.h | 30 +- .../DebugInfo/{ => DWARF}/DWARFDebugAbbrev.h | 2 +- .../{ => DWARF}/DWARFDebugArangeSet.h | 0 .../DebugInfo/{ => DWARF}/DWARFDebugAranges.h | 0 .../DebugInfo/{ => DWARF}/DWARFDebugFrame.h | 0 .../{ => DWARF}/DWARFDebugInfoEntry.h | 4 +- .../DebugInfo/{ => DWARF}/DWARFDebugLine.h | 2 +- .../DebugInfo/{ => DWARF}/DWARFDebugLoc.h | 2 +- .../{ => DWARF}/DWARFDebugRangeList.h | 2 + .../DebugInfo/{ => DWARF}/DWARFFormValue.h | 5 +- .../DebugInfo/{ => DWARF}/DWARFRelocMap.h | 0 .../llvm/DebugInfo/{ => DWARF}/DWARFSection.h | 3 +- .../DebugInfo/{ => DWARF}/DWARFTypeUnit.h | 2 +- .../llvm/DebugInfo/{ => DWARF}/DWARFUnit.h | 57 +- .../DebugInfo/PDB/ConcreteSymbolEnumerator.h | 59 + .../llvm/DebugInfo/PDB/DIA/DIADataStream.h | 33 + .../DebugInfo/PDB/DIA/DIAEnumDebugStreams.h | 35 + .../DebugInfo/PDB/DIA/DIAEnumLineNumbers.h | 35 + .../DebugInfo/PDB/DIA/DIAEnumSourceFiles.h | 37 + .../llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h | 37 + .../llvm/DebugInfo/PDB/DIA/DIALineNumber.h | 39 + include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h | 206 + include/llvm/DebugInfo/PDB/DIA/DIASession.h | 51 + .../llvm/DebugInfo/PDB/DIA/DIASourceFile.h | 36 + include/llvm/DebugInfo/PDB/DIA/DIASupport.h | 33 + include/llvm/DebugInfo/PDB/IPDBDataStream.h | 37 + include/llvm/DebugInfo/PDB/IPDBEnumChildren.h | 33 + include/llvm/DebugInfo/PDB/IPDBLineNumber.h | 36 + include/llvm/DebugInfo/PDB/IPDBRawSymbol.h | 211 + include/llvm/DebugInfo/PDB/IPDBSession.h | 61 + include/llvm/DebugInfo/PDB/IPDBSourceFile.h | 37 + include/llvm/DebugInfo/PDB/PDB.h | 26 + include/llvm/DebugInfo/PDB/PDBContext.h | 60 + include/llvm/DebugInfo/PDB/PDBExtras.h | 38 + include/llvm/DebugInfo/PDB/PDBSymDumper.h | 61 + include/llvm/DebugInfo/PDB/PDBSymbol.h | 97 + .../llvm/DebugInfo/PDB/PDBSymbolAnnotation.h | 39 + include/llvm/DebugInfo/PDB/PDBSymbolBlock.h | 41 + .../llvm/DebugInfo/PDB/PDBSymbolCompiland.h | 38 + .../DebugInfo/PDB/PDBSymbolCompilandDetails.h | 55 + .../DebugInfo/PDB/PDBSymbolCompilandEnv.h | 37 + include/llvm/DebugInfo/PDB/PDBSymbolCustom.h | 39 + include/llvm/DebugInfo/PDB/PDBSymbolData.h | 61 + include/llvm/DebugInfo/PDB/PDBSymbolExe.h | 46 + include/llvm/DebugInfo/PDB/PDBSymbolFunc.h | 80 + .../DebugInfo/PDB/PDBSymbolFuncDebugEnd.h | 49 + .../DebugInfo/PDB/PDBSymbolFuncDebugStart.h | 49 + include/llvm/DebugInfo/PDB/PDBSymbolLabel.h | 49 + .../DebugInfo/PDB/PDBSymbolPublicSymbol.h | 47 + include/llvm/DebugInfo/PDB/PDBSymbolThunk.h | 57 + .../llvm/DebugInfo/PDB/PDBSymbolTypeArray.h | 45 + .../DebugInfo/PDB/PDBSymbolTypeBaseClass.h | 60 + .../llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h | 40 + .../llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h | 36 + .../DebugInfo/PDB/PDBSymbolTypeDimension.h | 36 + .../llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h | 55 + .../llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h | 37 + .../DebugInfo/PDB/PDBSymbolTypeFunctionArg.h | 37 + .../DebugInfo/PDB/PDBSymbolTypeFunctionSig.h | 50 + .../llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h | 35 + .../llvm/DebugInfo/PDB/PDBSymbolTypePointer.h | 43 + .../llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h | 54 + include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h | 52 + .../llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h | 40 + .../DebugInfo/PDB/PDBSymbolTypeVTableShape.h | 39 + include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h | 34 + .../DebugInfo/PDB/PDBSymbolUsingNamespace.h | 36 + include/llvm/DebugInfo/PDB/PDBTypes.h | 516 + .../llvm/ExecutionEngine/ExecutionEngine.h | 82 +- include/llvm/ExecutionEngine/JITSymbolFlags.h | 81 + .../llvm/ExecutionEngine/ObjectMemoryBuffer.h | 63 + .../Orc/CompileOnDemandLayer.h | 547 + .../llvm/ExecutionEngine/Orc/CompileUtils.h | 62 + .../llvm/ExecutionEngine/Orc/ExecutionUtils.h | 182 + .../llvm/ExecutionEngine/Orc/IRCompileLayer.h | 148 + .../ExecutionEngine/Orc/IRTransformLayer.h | 101 + .../ExecutionEngine/Orc/IndirectionUtils.h | 295 + include/llvm/ExecutionEngine/Orc/JITSymbol.h | 77 + .../llvm/ExecutionEngine/Orc/LambdaResolver.h | 62 + .../ExecutionEngine/Orc/LazyEmittingLayer.h | 304 + .../ExecutionEngine/Orc/ObjectLinkingLayer.h | 284 + .../ExecutionEngine/Orc/OrcTargetSupport.h | 53 + .../ExecutionEngine/OrcMCJITReplacement.h | 38 + .../ExecutionEngine/RTDyldMemoryManager.h | 133 +- include/llvm/ExecutionEngine/RuntimeDyld.h | 151 +- .../llvm/ExecutionEngine/RuntimeDyldChecker.h | 7 +- .../ExecutionEngine/SectionMemoryManager.h | 8 +- include/llvm/IR/Argument.h | 5 + include/llvm/IR/Attributes.h | 71 +- include/llvm/IR/BasicBlock.h | 75 +- include/llvm/IR/CFG.h | 30 +- include/llvm/IR/CallSite.h | 51 +- include/llvm/IR/Comdat.h | 2 +- include/llvm/IR/Constant.h | 4 +- include/llvm/IR/ConstantFolder.h | 25 +- include/llvm/IR/ConstantRange.h | 33 +- include/llvm/IR/Constants.h | 94 +- include/llvm/IR/DIBuilder.h | 474 +- include/llvm/IR/DataLayout.h | 52 +- include/llvm/IR/DebugInfo.h | 1021 +- include/llvm/IR/DebugInfoFlags.def | 36 + include/llvm/IR/DebugInfoMetadata.h | 2227 + include/llvm/IR/DebugLoc.h | 111 +- include/llvm/IR/DerivedTypes.h | 27 +- include/llvm/IR/DiagnosticInfo.h | 1 + include/llvm/IR/Function.h | 139 +- include/llvm/IR/GVMaterializer.h | 7 +- include/llvm/IR/GetElementPtrTypeIterator.h | 50 +- include/llvm/IR/GlobalAlias.h | 26 +- include/llvm/IR/GlobalObject.h | 4 +- include/llvm/IR/GlobalValue.h | 37 +- include/llvm/IR/GlobalVariable.h | 8 +- include/llvm/IR/IRBuilder.h | 225 +- include/llvm/IR/IRPrintingPasses.h | 7 +- include/llvm/IR/InlineAsm.h | 60 +- include/llvm/IR/InstIterator.h | 29 +- include/llvm/IR/InstVisitor.h | 2 +- include/llvm/IR/InstrTypes.h | 25 +- include/llvm/IR/Instruction.h | 64 +- include/llvm/IR/Instructions.h | 341 +- include/llvm/IR/IntrinsicInst.h | 42 +- include/llvm/IR/Intrinsics.h | 29 +- include/llvm/IR/Intrinsics.td | 64 +- include/llvm/IR/IntrinsicsBPF.td | 24 + include/llvm/IR/IntrinsicsHexagon.td | 463 +- include/llvm/IR/IntrinsicsPowerPC.td | 387 +- include/llvm/IR/IntrinsicsSystemZ.td | 376 + include/llvm/IR/IntrinsicsX86.td | 707 +- include/llvm/IR/LLVMContext.h | 8 +- include/llvm/IR/LegacyPassManager.h | 4 +- include/llvm/IR/LegacyPassNameParser.h | 12 +- include/llvm/IR/MDBuilder.h | 6 + include/llvm/IR/Metadata.def | 73 +- include/llvm/IR/Metadata.h | 654 +- include/llvm/IR/Module.h | 42 +- include/llvm/IR/NoFolder.h | 25 +- include/llvm/IR/Operator.h | 70 +- include/llvm/IR/PassManager.h | 34 +- include/llvm/IR/PassManagerInternal.h | 1 + include/llvm/IR/PatternMatch.h | 49 + include/llvm/IR/PredIteratorCache.h | 89 +- include/llvm/IR/Statepoint.h | 255 +- include/llvm/IR/Type.h | 7 +- include/llvm/IR/TypeBuilder.h | 10 +- include/llvm/IR/Use.h | 2 +- include/llvm/IR/UseListOrder.h | 10 +- include/llvm/IR/User.h | 8 +- include/llvm/IR/Value.h | 33 +- include/llvm/IR/ValueHandle.h | 2 +- include/llvm/IR/ValueMap.h | 21 +- include/llvm/IR/Verifier.h | 13 +- include/llvm/InitializePasses.h | 38 +- include/llvm/LTO/LTOCodeGenerator.h | 44 +- include/llvm/LineEditor/LineEditor.h | 2 +- include/llvm/LinkAllPasses.h | 15 +- include/llvm/Linker/Linker.h | 8 +- include/llvm/MC/ConstantPools.h | 9 +- include/llvm/MC/MCAsmBackend.h | 71 +- include/llvm/MC/MCAsmInfo.h | 49 +- include/llvm/MC/MCAsmInfoELF.h | 3 +- include/llvm/MC/MCAsmLayout.h | 40 +- include/llvm/MC/MCAssembler.h | 633 +- include/llvm/MC/MCCodeEmitter.h | 9 +- include/llvm/MC/MCCodeGenInfo.h | 40 +- include/llvm/MC/MCContext.h | 346 +- include/llvm/MC/MCDisassembler.h | 13 +- include/llvm/MC/MCDwarf.h | 55 +- include/llvm/MC/MCELF.h | 2 - include/llvm/MC/MCELFObjectWriter.h | 24 +- include/llvm/MC/MCELFStreamer.h | 41 +- include/llvm/MC/MCExpr.h | 142 +- include/llvm/MC/MCFixup.h | 10 +- include/llvm/MC/MCFixupKindInfo.h | 2 +- include/llvm/MC/MCInst.h | 31 +- include/llvm/MC/MCInstBuilder.h | 16 +- include/llvm/MC/MCInstPrinter.h | 42 +- include/llvm/MC/MCInstrAnalysis.h | 4 +- include/llvm/MC/MCInstrDesc.h | 513 +- include/llvm/MC/MCInstrInfo.h | 13 +- include/llvm/MC/MCInstrItineraries.h | 45 +- include/llvm/MC/MCLabel.h | 19 +- include/llvm/MC/MCLinkerOptimizationHint.h | 14 +- include/llvm/MC/MCMachObjectWriter.h | 82 +- include/llvm/MC/MCObjectFileInfo.h | 288 +- include/llvm/MC/MCObjectStreamer.h | 51 +- include/llvm/MC/MCObjectWriter.h | 64 +- include/llvm/MC/MCParser/AsmLexer.h | 6 +- include/llvm/MC/MCParser/MCAsmLexer.h | 12 +- include/llvm/MC/MCParser/MCAsmParser.h | 74 +- .../llvm/MC/MCParser/MCAsmParserExtension.h | 6 +- include/llvm/MC/MCParser/MCParsedAsmOperand.h | 5 +- include/llvm/MC/MCRelocationInfo.h | 4 +- include/llvm/MC/MCSection.h | 199 +- include/llvm/MC/MCSectionCOFF.h | 13 +- include/llvm/MC/MCSectionELF.h | 40 +- include/llvm/MC/MCSectionMachO.h | 12 +- include/llvm/MC/MCStreamer.h | 382 +- include/llvm/MC/MCSubtargetInfo.h | 22 +- include/llvm/MC/MCSymbol.h | 436 +- include/llvm/MC/MCSymbolizer.h | 20 +- include/llvm/MC/MCTargetAsmParser.h | 8 +- include/llvm/MC/MCValue.h | 17 +- include/llvm/MC/MCWinCOFFObjectWriter.h | 18 +- include/llvm/MC/MCWinCOFFStreamer.h | 7 +- include/llvm/MC/MCWinEH.h | 8 +- include/llvm/MC/SectionKind.h | 6 +- include/llvm/MC/SubtargetFeature.h | 28 +- include/llvm/Object/Archive.h | 20 +- include/llvm/Object/Binary.h | 4 +- include/llvm/Object/COFF.h | 30 + include/llvm/Object/ELF.h | 24 +- include/llvm/Object/ELFObjectFile.h | 68 +- include/llvm/Object/ELFTypes.h | 113 +- include/llvm/Object/ELFYAML.h | 88 +- include/llvm/Object/IRObjectFile.h | 2 +- include/llvm/Object/MachO.h | 5 +- include/llvm/Object/MachOUniversal.h | 10 +- include/llvm/Object/ObjectFile.h | 14 +- include/llvm/Object/SymbolicFile.h | 12 +- include/llvm/Option/Arg.h | 8 +- include/llvm/Option/ArgList.h | 39 +- include/llvm/Option/OptSpecifier.h | 4 +- include/llvm/Option/OptTable.h | 5 +- include/llvm/Option/Option.h | 1 - include/llvm/Pass.h | 8 +- include/llvm/PassAnalysisSupport.h | 2 +- include/llvm/PassInfo.h | 4 +- include/llvm/PassManager.h | 39 - include/llvm/Passes/PassBuilder.h | 105 + include/llvm/ProfileData/CoverageMapping.h | 107 +- .../llvm/ProfileData/CoverageMappingReader.h | 80 +- include/llvm/ProfileData/InstrProfReader.h | 25 +- include/llvm/ProfileData/InstrProfWriter.h | 8 +- include/llvm/ProfileData/SampleProf.h | 34 +- include/llvm/Support/ARMBuildAttributes.h | 7 +- include/llvm/Support/AlignOf.h | 14 +- include/llvm/Support/Allocator.h | 26 +- include/llvm/Support/BranchProbability.h | 2 +- include/llvm/Support/COFF.h | 12 +- include/llvm/Support/COM.h | 36 + include/llvm/Support/CommandLine.h | 507 +- include/llvm/Support/Compiler.h | 144 +- include/llvm/Support/Compression.h | 4 +- include/llvm/Support/ConvertUTF.h | 8 + include/llvm/Support/CrashRecoveryContext.h | 2 - include/llvm/Support/DataExtractor.h | 1 - include/llvm/Support/Debug.h | 3 +- include/llvm/Support/Dwarf.def | 350 + include/llvm/Support/Dwarf.h | 339 +- include/llvm/Support/ELF.h | 79 +- include/llvm/Support/ELFRelocs/Mips.def | 5 + include/llvm/Support/Endian.h | 23 +- include/llvm/Support/EndianStream.h | 25 + include/llvm/Support/ErrorOr.h | 6 +- include/llvm/Support/FileOutputBuffer.h | 4 +- include/llvm/Support/FileSystem.h | 9 +- include/llvm/Support/FileUtilities.h | 4 +- include/llvm/Support/Format.h | 198 +- include/llvm/Support/FormattedStream.h | 76 +- include/llvm/Support/GCOV.h | 147 +- include/llvm/Support/GenericDomTree.h | 95 +- .../llvm/Support/GenericDomTreeConstruction.h | 20 +- include/llvm/Support/GraphWriter.h | 3 +- include/llvm/Support/LockFileManager.h | 8 +- include/llvm/Support/MathExtras.h | 390 +- include/llvm/Support/MemoryBuffer.h | 6 +- include/llvm/Support/MipsABIFlags.h | 102 + include/llvm/Support/Mutex.h | 6 +- include/llvm/Support/MutexGuard.h | 4 +- include/llvm/Support/OnDiskHashTable.h | 7 +- include/llvm/Support/Options.h | 2 +- include/llvm/Support/PrettyStackTrace.h | 4 +- include/llvm/Support/Program.h | 3 +- include/llvm/Support/RWMutex.h | 6 +- include/llvm/Support/RandomNumberGenerator.h | 6 +- include/llvm/Support/Regex.h | 3 +- include/llvm/Support/Registry.h | 9 +- include/llvm/Support/ScaledNumber.h | 25 +- include/llvm/Support/Signals.h | 15 +- include/llvm/Support/SourceMgr.h | 4 +- include/llvm/Support/SpecialCaseList.h | 30 +- include/llvm/Support/StreamingMemoryObject.h | 39 +- include/llvm/Support/StringPool.h | 4 +- include/llvm/Support/SwapByteOrder.h | 20 + include/llvm/Support/SystemUtils.h | 2 - include/llvm/Support/TargetParser.h | 155 + include/llvm/Support/TargetRegistry.h | 2122 +- include/llvm/Support/Timer.h | 7 +- include/llvm/Support/ToolOutputFile.h | 21 +- include/llvm/Support/UnicodeCharRanges.h | 4 + include/llvm/Support/UniqueLock.h | 4 +- include/llvm/Support/Watchdog.h | 4 +- include/llvm/Support/YAMLParser.h | 57 +- include/llvm/Support/YAMLTraits.h | 167 +- include/llvm/Support/circular_raw_ostream.h | 23 +- include/llvm/Support/raw_os_ostream.h | 2 +- include/llvm/Support/raw_ostream.h | 249 +- include/llvm/Support/type_traits.h | 10 +- include/llvm/TableGen/Record.h | 190 +- include/llvm/TableGen/SetTheory.h | 8 +- include/llvm/TableGen/TableGenBackend.h | 3 +- include/llvm/Target/Target.td | 20 + include/llvm/Target/TargetCallingConv.h | 1 + include/llvm/Target/TargetFrameLowering.h | 45 +- include/llvm/Target/TargetInstrInfo.h | 392 +- include/llvm/Target/TargetIntrinsicInfo.h | 4 +- include/llvm/Target/TargetLibraryInfo.h | 802 - include/llvm/Target/TargetLowering.h | 348 +- .../llvm/Target/TargetLoweringObjectFile.h | 77 +- include/llvm/Target/TargetMachine.h | 202 +- include/llvm/Target/TargetOptions.h | 84 +- include/llvm/Target/TargetRegisterInfo.h | 42 +- include/llvm/Target/TargetSelectionDAG.td | 32 + include/llvm/Target/TargetSelectionDAGInfo.h | 5 +- include/llvm/Target/TargetSubtargetInfo.h | 44 +- include/llvm/Transforms/IPO.h | 4 + include/llvm/Transforms/IPO/LowerBitSets.h | 198 + .../llvm/Transforms/IPO/PassManagerBuilder.h | 23 +- .../llvm/Transforms/InstCombine/InstCombine.h | 46 + .../InstCombine/InstCombineWorklist.h | 19 +- include/llvm/Transforms/Instrumentation.h | 41 +- include/llvm/Transforms/Scalar.h | 73 +- include/llvm/Transforms/Scalar/EarlyCSE.h | 39 + .../Transforms/Scalar/LowerExpectIntrinsic.h | 40 + include/llvm/Transforms/Scalar/SimplifyCFG.h | 46 + .../llvm/Transforms/Utils/BasicBlockUtils.h | 158 +- include/llvm/Transforms/Utils/BuildLibCalls.h | 32 +- include/llvm/Transforms/Utils/Cloning.h | 65 +- include/llvm/Transforms/Utils/Local.h | 47 +- include/llvm/Transforms/Utils/LoopUtils.h | 194 +- include/llvm/Transforms/Utils/ModuleUtils.h | 21 + include/llvm/Transforms/Utils/SSAUpdater.h | 7 +- .../llvm/Transforms/Utils/SimplifyLibCalls.h | 29 +- .../llvm/Transforms/Utils/SymbolRewriter.h | 7 +- include/llvm/Transforms/Utils/UnrollLoop.h | 15 +- include/llvm/Transforms/Utils/VectorUtils.h | 4 +- include/llvm/module.modulemap | 69 +- lib/Analysis/AliasAnalysis.cpp | 78 +- lib/Analysis/AliasAnalysisCounter.cpp | 5 +- lib/Analysis/AliasAnalysisEvaluator.cpp | 2 +- lib/Analysis/AliasDebugger.cpp | 2 +- lib/Analysis/AliasSetTracker.cpp | 9 +- lib/Analysis/Analysis.cpp | 7 +- lib/Analysis/AssumptionCache.cpp | 15 + lib/Analysis/BasicAliasAnalysis.cpp | 195 +- lib/Analysis/BlockFrequencyInfo.cpp | 8 +- lib/Analysis/BlockFrequencyInfoImpl.cpp | 54 +- lib/Analysis/BranchProbabilityInfo.cpp | 84 +- lib/Analysis/CFGPrinter.cpp | 4 +- lib/Analysis/CFLAliasAnalysis.cpp | 305 +- lib/Analysis/CMakeLists.txt | 10 +- lib/Analysis/CodeMetrics.cpp | 1 + lib/Analysis/ConstantFolding.cpp | 287 +- lib/Analysis/CostModel.cpp | 3 +- lib/Analysis/Delinearization.cpp | 6 +- lib/Analysis/DependenceAnalysis.cpp | 90 +- lib/Analysis/DivergenceAnalysis.cpp | 337 + lib/Analysis/FunctionTargetTransformInfo.cpp | 50 - lib/Analysis/IPA/CallGraphSCCPass.cpp | 52 +- lib/Analysis/IPA/GlobalsModRef.cpp | 14 +- lib/Analysis/IPA/InlineCost.cpp | 195 +- lib/Analysis/IVUsers.cpp | 15 +- lib/Analysis/InstructionSimplify.cpp | 348 +- lib/Analysis/IteratedDominanceFrontier.cpp | 95 + lib/Analysis/JumpInstrTableInfo.cpp | 55 - lib/Analysis/LLVMBuild.txt | 2 +- lib/Analysis/LazyValueInfo.cpp | 118 +- lib/Analysis/LibCallAliasAnalysis.cpp | 6 +- lib/Analysis/LibCallSemantics.cpp | 27 + lib/Analysis/Lint.cpp | 560 +- lib/Analysis/Loads.cpp | 28 +- lib/Analysis/LoopAccessAnalysis.cpp | 1427 + lib/Analysis/LoopInfo.cpp | 109 +- lib/Analysis/LoopPass.cpp | 8 +- lib/Analysis/MemDepPrinter.cpp | 19 +- lib/Analysis/MemDerefPrinter.cpp | 70 + lib/Analysis/MemoryBuiltins.cpp | 67 +- lib/Analysis/MemoryDependenceAnalysis.cpp | 187 +- lib/Analysis/ModuleDebugInfoPrinter.cpp | 68 +- lib/Analysis/NoAliasAnalysis.cpp | 7 +- lib/Analysis/PHITransAddr.cpp | 7 +- lib/Analysis/RegionPass.cpp | 27 +- lib/Analysis/RegionPrinter.cpp | 2 +- lib/Analysis/ScalarEvolution.cpp | 1247 +- lib/Analysis/ScalarEvolutionAliasAnalysis.cpp | 3 +- lib/Analysis/ScalarEvolutionExpander.cpp | 223 +- lib/Analysis/ScopedNoAliasAA.cpp | 7 +- .../TargetLibraryInfo.cpp | 609 +- lib/Analysis/TargetTransformInfo.cpp | 668 +- lib/Analysis/TypeBasedAliasAnalysis.cpp | 22 +- lib/Analysis/ValueTracking.cpp | 1324 +- lib/AsmParser/CMakeLists.txt | 3 + lib/AsmParser/LLLexer.cpp | 53 +- lib/AsmParser/LLLexer.h | 1 - lib/AsmParser/LLParser.cpp | 1149 +- lib/AsmParser/LLParser.h | 56 +- lib/AsmParser/LLToken.h | 11 +- lib/AsmParser/Parser.cpp | 5 +- lib/Bitcode/Reader/BitcodeReader.cpp | 1267 +- lib/Bitcode/Reader/BitcodeReader.h | 365 - lib/Bitcode/Reader/BitstreamReader.cpp | 40 +- lib/Bitcode/Reader/CMakeLists.txt | 3 + lib/Bitcode/Writer/BitcodeWriter.cpp | 595 +- lib/Bitcode/Writer/BitcodeWriterPass.cpp | 16 +- lib/Bitcode/Writer/ValueEnumerator.cpp | 39 +- lib/Bitcode/Writer/ValueEnumerator.h | 25 +- lib/CMakeLists.txt | 2 + lib/CodeGen/AggressiveAntiDepBreaker.cpp | 10 + lib/CodeGen/AggressiveAntiDepBreaker.h | 6 +- lib/CodeGen/Analysis.cpp | 16 +- lib/CodeGen/AsmPrinter/ARMException.cpp | 42 +- lib/CodeGen/AsmPrinter/AddressPool.cpp | 6 +- lib/CodeGen/AsmPrinter/AddressPool.h | 2 +- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 902 +- lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp | 192 +- lib/CodeGen/AsmPrinter/AsmPrinterHandler.h | 4 + .../AsmPrinter/AsmPrinterInlineAsm.cpp | 67 +- lib/CodeGen/AsmPrinter/ByteStreamer.h | 43 +- lib/CodeGen/AsmPrinter/DIE.cpp | 218 +- lib/CodeGen/AsmPrinter/DIEHash.cpp | 10 +- .../AsmPrinter/DbgValueHistoryCalculator.cpp | 23 +- .../AsmPrinter/DbgValueHistoryCalculator.h | 14 +- lib/CodeGen/AsmPrinter/DebugLocEntry.h | 91 +- lib/CodeGen/AsmPrinter/DebugLocList.h | 25 - lib/CodeGen/AsmPrinter/DebugLocStream.h | 133 + lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp | 107 +- lib/CodeGen/AsmPrinter/DwarfAccelTable.h | 18 +- lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 64 +- lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 277 +- lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 46 +- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1141 +- lib/CodeGen/AsmPrinter/DwarfDebug.h | 223 +- lib/CodeGen/AsmPrinter/DwarfException.h | 49 +- lib/CodeGen/AsmPrinter/DwarfExpression.cpp | 131 +- lib/CodeGen/AsmPrinter/DwarfExpression.h | 43 +- lib/CodeGen/AsmPrinter/DwarfFile.cpp | 57 +- lib/CodeGen/AsmPrinter/DwarfFile.h | 23 +- lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 66 +- lib/CodeGen/AsmPrinter/DwarfStringPool.h | 26 +- lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 844 +- lib/CodeGen/AsmPrinter/DwarfUnit.h | 290 +- lib/CodeGen/AsmPrinter/EHStreamer.cpp | 146 +- lib/CodeGen/AsmPrinter/EHStreamer.h | 33 +- lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp | 36 +- lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp | 76 +- lib/CodeGen/AsmPrinter/Win64Exception.cpp | 433 +- lib/CodeGen/AsmPrinter/Win64Exception.h | 11 +- .../AsmPrinter/WinCodeViewLineTables.cpp | 123 +- .../AsmPrinter/WinCodeViewLineTables.h | 2 +- lib/CodeGen/AtomicExpandPass.cpp | 75 +- lib/CodeGen/BasicTargetTransformInfo.cpp | 634 +- lib/CodeGen/BranchFolding.cpp | 74 +- lib/CodeGen/CMakeLists.txt | 11 +- lib/CodeGen/CodeGen.cpp | 22 +- lib/CodeGen/CodeGenPrepare.cpp | 771 +- lib/CodeGen/CoreCLRGC.cpp | 54 + lib/CodeGen/CriticalAntiDepBreaker.h | 2 +- lib/CodeGen/DeadMachineInstructionElim.cpp | 2 +- lib/CodeGen/DwarfEHPrepare.cpp | 133 +- lib/CodeGen/EarlyIfConversion.cpp | 19 +- lib/CodeGen/ErlangGC.cpp | 50 +- lib/CodeGen/ExecutionDepsFix.cpp | 35 +- lib/CodeGen/ForwardControlFlowIntegrity.cpp | 374 - lib/CodeGen/GCMetadata.cpp | 125 +- lib/CodeGen/GCMetadataPrinter.cpp | 4 +- lib/CodeGen/GCRootLowering.cpp | 354 + lib/CodeGen/GCStrategy.cpp | 397 +- lib/CodeGen/GlobalMerge.cpp | 298 +- lib/CodeGen/IfConversion.cpp | 90 +- lib/CodeGen/InlineSpiller.cpp | 20 +- lib/CodeGen/InterferenceCache.cpp | 3 +- lib/CodeGen/InterferenceCache.h | 4 +- lib/CodeGen/JumpInstrTables.cpp | 296 - lib/CodeGen/LLVMTargetMachine.cpp | 126 +- lib/CodeGen/LatencyPriorityQueue.cpp | 13 - lib/CodeGen/LexicalScopes.cpp | 127 +- lib/CodeGen/LiveDebugVariables.cpp | 80 +- lib/CodeGen/LiveDebugVariables.h | 5 +- lib/CodeGen/LiveInterval.cpp | 527 +- lib/CodeGen/LiveIntervalAnalysis.cpp | 72 +- lib/CodeGen/LivePhysRegs.cpp | 33 +- lib/CodeGen/LiveRangeCalc.cpp | 57 +- lib/CodeGen/LiveRangeCalc.h | 27 +- lib/CodeGen/LiveRangeEdit.cpp | 37 +- lib/CodeGen/LiveStackAnalysis.cpp | 6 +- lib/CodeGen/LiveVariables.cpp | 1 + lib/CodeGen/LocalStackSlotAllocation.cpp | 12 +- lib/CodeGen/MachineBasicBlock.cpp | 36 +- lib/CodeGen/MachineBlockPlacement.cpp | 484 +- lib/CodeGen/MachineCSE.cpp | 17 +- lib/CodeGen/MachineCombiner.cpp | 36 +- lib/CodeGen/MachineCopyPropagation.cpp | 6 +- lib/CodeGen/MachineDominators.cpp | 66 + lib/CodeGen/MachineFunction.cpp | 88 +- lib/CodeGen/MachineFunctionPass.cpp | 3 +- lib/CodeGen/MachineInstr.cpp | 212 +- lib/CodeGen/MachineLICM.cpp | 330 +- lib/CodeGen/MachineLoopInfo.cpp | 1 + lib/CodeGen/MachineModuleInfo.cpp | 62 +- lib/CodeGen/MachineModuleInfoImpls.cpp | 9 +- lib/CodeGen/MachineRegisterInfo.cpp | 6 +- lib/CodeGen/MachineScheduler.cpp | 38 +- lib/CodeGen/MachineSink.cpp | 24 +- lib/CodeGen/MachineTraceMetrics.cpp | 31 +- lib/CodeGen/MachineVerifier.cpp | 262 +- lib/CodeGen/OcamlGC.cpp | 13 +- lib/CodeGen/PHIElimination.cpp | 21 +- lib/CodeGen/Passes.cpp | 95 +- lib/CodeGen/PeepholeOptimizer.cpp | 6 +- lib/CodeGen/PostRASchedulerList.cpp | 6 +- lib/CodeGen/PrologEpilogInserter.cpp | 227 +- lib/CodeGen/PrologEpilogInserter.h | 78 - lib/CodeGen/RegAllocBase.cpp | 1 + lib/CodeGen/RegAllocFast.cpp | 13 +- lib/CodeGen/RegAllocGreedy.cpp | 12 +- lib/CodeGen/RegAllocPBQP.cpp | 255 +- lib/CodeGen/RegisterClassInfo.cpp | 7 +- lib/CodeGen/RegisterCoalescer.cpp | 797 +- lib/CodeGen/RegisterPressure.cpp | 21 +- lib/CodeGen/ScheduleDAG.cpp | 4 +- lib/CodeGen/ScheduleDAGInstrs.cpp | 200 +- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4050 +- lib/CodeGen/SelectionDAG/FastISel.cpp | 66 +- .../SelectionDAG/FunctionLoweringInfo.cpp | 514 +- lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 23 +- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 568 +- .../SelectionDAG/LegalizeFloatTypes.cpp | 477 +- .../SelectionDAG/LegalizeIntegerTypes.cpp | 402 +- lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | 31 +- lib/CodeGen/SelectionDAG/LegalizeTypes.h | 49 +- .../SelectionDAG/LegalizeTypesGeneric.cpp | 15 +- .../SelectionDAG/LegalizeVectorOps.cpp | 90 +- .../SelectionDAG/LegalizeVectorTypes.cpp | 357 +- .../SelectionDAG/ResourcePriorityQueue.cpp | 16 +- lib/CodeGen/SelectionDAG/SDNodeDbgValue.h | 16 +- .../SelectionDAG/ScheduleDAGRRList.cpp | 2 +- .../SelectionDAG/ScheduleDAGSDNodes.cpp | 20 +- lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h | 2 +- lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp | 2 +- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 918 +- .../SelectionDAG/SelectionDAGBuilder.cpp | 3023 +- .../SelectionDAG/SelectionDAGBuilder.h | 299 +- .../SelectionDAG/SelectionDAGDumper.cpp | 40 +- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 244 +- .../SelectionDAG/StatepointLowering.cpp | 582 +- lib/CodeGen/SelectionDAG/StatepointLowering.h | 24 +- lib/CodeGen/SelectionDAG/TargetLowering.cpp | 269 +- lib/CodeGen/ShadowStackGC.cpp | 412 +- lib/CodeGen/ShadowStackGCLowering.cpp | 460 + lib/CodeGen/ShrinkWrap.cpp | 388 + lib/CodeGen/SjLjEHPrepare.cpp | 52 +- lib/CodeGen/SlotIndexes.cpp | 2 +- lib/CodeGen/SpillPlacement.h | 2 +- lib/CodeGen/SplitKit.cpp | 10 +- lib/CodeGen/SplitKit.h | 2 +- lib/CodeGen/StackColoring.cpp | 5 +- lib/CodeGen/StackMapLivenessAnalysis.cpp | 64 +- lib/CodeGen/StackMaps.cpp | 210 +- lib/CodeGen/StackProtector.cpp | 20 +- lib/CodeGen/StackSlotColoring.cpp | 12 +- lib/CodeGen/StatepointExampleGC.cpp | 11 +- lib/CodeGen/TailDuplication.cpp | 6 +- lib/CodeGen/TargetFrameLoweringImpl.cpp | 12 + lib/CodeGen/TargetInstrInfo.cpp | 57 +- lib/CodeGen/TargetLoweringBase.cpp | 324 +- lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 445 +- lib/CodeGen/TargetOptionsImpl.cpp | 26 +- lib/CodeGen/TargetSchedule.cpp | 42 +- lib/CodeGen/TwoAddressInstructionPass.cpp | 75 +- lib/CodeGen/UnreachableBlockElim.cpp | 4 +- lib/CodeGen/VirtRegMap.cpp | 13 +- lib/CodeGen/WinEHPrepare.cpp | 2482 + lib/DebugInfo/CMakeLists.txt | 23 +- lib/DebugInfo/DWARF/CMakeLists.txt | 22 + .../DWARFAbbreviationDeclaration.cpp | 2 +- .../{ => DWARF}/DWARFAcceleratorTable.cpp | 2 +- .../{ => DWARF}/DWARFCompileUnit.cpp | 9 +- lib/DebugInfo/{ => DWARF}/DWARFContext.cpp | 69 +- .../{ => DWARF}/DWARFDebugAbbrev.cpp | 2 +- .../{ => DWARF}/DWARFDebugArangeSet.cpp | 2 +- .../{ => DWARF}/DWARFDebugAranges.cpp | 8 +- lib/DebugInfo/{ => DWARF}/DWARFDebugFrame.cpp | 213 +- .../{ => DWARF}/DWARFDebugInfoEntry.cpp | 27 +- lib/DebugInfo/{ => DWARF}/DWARFDebugLine.cpp | 2 +- lib/DebugInfo/{ => DWARF}/DWARFDebugLoc.cpp | 5 +- .../{ => DWARF}/DWARFDebugRangeList.cpp | 2 +- lib/DebugInfo/{ => DWARF}/DWARFFormValue.cpp | 108 +- lib/DebugInfo/{ => DWARF}/DWARFTypeUnit.cpp | 9 +- lib/DebugInfo/{ => DWARF}/DWARFUnit.cpp | 20 +- lib/DebugInfo/DWARF/LLVMBuild.txt | 22 + lib/DebugInfo/DWARF/Makefile | 14 + .../{ => DWARF}/SyntaxHighlighting.cpp | 0 .../{ => DWARF}/SyntaxHighlighting.h | 0 lib/DebugInfo/DWARF/module.modulemap | 1 + lib/DebugInfo/LLVMBuild.txt | 8 +- lib/DebugInfo/Makefile | 9 +- lib/DebugInfo/PDB/CMakeLists.txt | 77 + lib/DebugInfo/PDB/DIA/DIADataStream.cpp | 73 + lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp | 53 + lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp | 50 + lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp | 50 + lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp | 54 + lib/DebugInfo/PDB/DIA/DIALineNumber.cpp | 75 + lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp | 1095 + lib/DebugInfo/PDB/DIA/DIASession.cpp | 205 + lib/DebugInfo/PDB/DIA/DIASourceFile.cpp | 67 + lib/DebugInfo/PDB/IPDBSourceFile.cpp | 32 + lib/DebugInfo/PDB/LLVMBuild.txt | 23 + lib/DebugInfo/PDB/Makefile | 14 + lib/DebugInfo/PDB/PDB.cpp | 39 + lib/DebugInfo/PDB/PDBContext.cpp | 133 + lib/DebugInfo/PDB/PDBExtras.cpp | 339 + lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp | 28 + lib/DebugInfo/PDB/PDBSymDumper.cpp | 146 + lib/DebugInfo/PDB/PDBSymbol.cpp | 151 + lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp | 24 + lib/DebugInfo/PDB/PDBSymbolBlock.cpp | 23 + lib/DebugInfo/PDB/PDBSymbolCompiland.cpp | 24 + .../PDB/PDBSymbolCompilandDetails.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp | 31 + lib/DebugInfo/PDB/PDBSymbolCustom.cpp | 28 + lib/DebugInfo/PDB/PDBSymbolData.cpp | 27 + lib/DebugInfo/PDB/PDBSymbolExe.cpp | 22 + lib/DebugInfo/PDB/PDBSymbolFunc.cpp | 102 + lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolLabel.cpp | 22 + lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolThunk.cpp | 22 + lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp | 29 + lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp | 24 + lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp | 26 + lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp | 34 + lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp | 25 + .../PDB/PDBSymbolTypeFunctionArg.cpp | 24 + .../PDB/PDBSymbolTypeFunctionSig.cpp | 90 + lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp | 29 + lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp | 24 + lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp | 22 + lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp | 24 + .../PDB/PDBSymbolTypeVTableShape.cpp | 25 + lib/DebugInfo/PDB/PDBSymbolUnknown.cpp | 23 + lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp | 25 + lib/DebugInfo/module.modulemap | 1 - lib/ExecutionEngine/CMakeLists.txt | 5 + lib/ExecutionEngine/EventListenerCommon.h | 68 - lib/ExecutionEngine/ExecutionEngine.cpp | 216 +- .../ExecutionEngineBindings.cpp | 17 +- .../GDBRegistrationListener.cpp | 2 +- .../IntelJITEvents/IntelJITEventListener.cpp | 6 +- .../IntelJITEvents/LLVMBuild.txt | 2 +- .../IntelJITEvents/jitprofiling.c | 5 +- .../Interpreter/CMakeLists.txt | 2 +- lib/ExecutionEngine/Interpreter/Execution.cpp | 33 +- .../Interpreter/ExternalFunctions.cpp | 9 +- lib/ExecutionEngine/Interpreter/Interpreter.h | 2 +- lib/ExecutionEngine/LLVMBuild.txt | 4 +- lib/ExecutionEngine/MCJIT/CMakeLists.txt | 1 - lib/ExecutionEngine/MCJIT/MCJIT.cpp | 104 +- lib/ExecutionEngine/MCJIT/MCJIT.h | 86 +- lib/ExecutionEngine/Makefile | 2 +- .../OProfileJIT/OProfileJITEventListener.cpp | 2 - lib/ExecutionEngine/Orc/CMakeLists.txt | 9 + lib/ExecutionEngine/Orc/ExecutionUtils.cpp | 102 + lib/ExecutionEngine/Orc/IndirectionUtils.cpp | 183 + lib/ExecutionEngine/Orc/LLVMBuild.txt | 22 + lib/ExecutionEngine/Orc/Makefile | 13 + .../Orc/OrcMCJITReplacement.cpp | 128 + lib/ExecutionEngine/Orc/OrcMCJITReplacement.h | 356 + lib/ExecutionEngine/Orc/OrcTargetSupport.cpp | 138 + .../RuntimeDyld/CMakeLists.txt | 1 + .../RuntimeDyld/RuntimeDyld.cpp | 281 +- .../RuntimeDyld/RuntimeDyldCOFF.cpp | 88 + .../RuntimeDyld/RuntimeDyldCOFF.h | 50 + .../RuntimeDyld/RuntimeDyldChecker.cpp | 47 +- .../RuntimeDyld/RuntimeDyldCheckerImpl.h | 3 +- .../RuntimeDyld/RuntimeDyldELF.cpp | 562 +- .../RuntimeDyld/RuntimeDyldELF.h | 52 +- .../RuntimeDyld/RuntimeDyldImpl.h | 82 +- .../RuntimeDyld/RuntimeDyldMachO.cpp | 36 +- .../RuntimeDyld/RuntimeDyldMachO.h | 14 +- .../Targets/RuntimeDyldCOFFX86_64.h | 216 + .../Targets/RuntimeDyldMachOAArch64.h | 5 +- .../RuntimeDyld/Targets/RuntimeDyldMachOARM.h | 4 +- .../Targets/RuntimeDyldMachOI386.h | 5 +- .../Targets/RuntimeDyldMachOX86_64.h | 5 +- .../{MCJIT => }/SectionMemoryManager.cpp | 0 lib/ExecutionEngine/TargetSelect.cpp | 14 +- lib/Fuzzer/CMakeLists.txt | 28 + lib/Fuzzer/FuzzerCrossOver.cpp | 51 + lib/Fuzzer/FuzzerDriver.cpp | 291 + lib/Fuzzer/FuzzerFlags.def | 60 + lib/Fuzzer/FuzzerIO.cpp | 94 + lib/Fuzzer/FuzzerInterface.cpp | 27 + lib/Fuzzer/FuzzerInterface.h | 98 + lib/Fuzzer/FuzzerInternal.h | 167 + lib/Fuzzer/FuzzerLoop.cpp | 339 + lib/Fuzzer/FuzzerMain.cpp | 20 + lib/Fuzzer/FuzzerMutate.cpp | 71 + lib/Fuzzer/FuzzerSHA1.cpp | 202 + lib/Fuzzer/FuzzerSanitizerOptions.cpp | 19 + lib/Fuzzer/FuzzerTraceState.cpp | 365 + lib/Fuzzer/FuzzerUtil.cpp | 76 + lib/Fuzzer/README.txt | 2 + lib/Fuzzer/cxx_fuzzer_tokens.txt | 218 + lib/Fuzzer/pull_and_push_fuzz_corpus.sh | 17 + lib/Fuzzer/test/CMakeLists.txt | 91 + lib/Fuzzer/test/CounterTest.cpp | 14 + lib/Fuzzer/test/CxxTokensTest.cpp | 24 + lib/Fuzzer/test/DFSanMemcmpTest.cpp | 12 + lib/Fuzzer/test/DFSanSimpleCmpTest.cpp | 30 + .../test/FourIndependentBranchesTest.cpp | 18 + lib/Fuzzer/test/FullCoverageSetTest.cpp | 20 + lib/Fuzzer/test/FuzzerUnittest.cpp | 73 + lib/Fuzzer/test/InfiniteTest.cpp | 24 + lib/Fuzzer/test/NullDerefTest.cpp | 22 + lib/Fuzzer/test/SimpleTest.cpp | 21 + lib/Fuzzer/test/TimeoutTest.cpp | 22 + lib/Fuzzer/test/UserSuppliedFuzzerTest.cpp | 47 + lib/Fuzzer/test/dfsan/CMakeLists.txt | 14 + lib/Fuzzer/test/fuzzer.test | 30 + lib/Fuzzer/test/lit.cfg | 14 + lib/Fuzzer/test/lit.site.cfg.in | 3 + lib/Fuzzer/test/unit/lit.cfg | 7 + lib/Fuzzer/test/unit/lit.site.cfg.in | 2 + lib/IR/AsmWriter.cpp | 939 +- lib/IR/AsmWriter.h | 129 - lib/IR/AttributeImpl.h | 21 +- lib/IR/Attributes.cpp | 192 +- lib/IR/AutoUpgrade.cpp | 363 +- lib/IR/BasicBlock.cpp | 54 +- lib/IR/CMakeLists.txt | 6 +- lib/IR/ConstantFold.cpp | 177 +- lib/IR/ConstantFold.h | 4 + lib/IR/ConstantRange.cpp | 45 +- lib/IR/Constants.cpp | 192 +- lib/IR/ConstantsContext.h | 108 +- lib/IR/Core.cpp | 43 +- lib/IR/DIBuilder.cpp | 1354 +- lib/IR/DataLayout.cpp | 153 +- lib/IR/DebugInfo.cpp | 1375 +- lib/IR/DebugInfoMetadata.cpp | 551 + lib/IR/DebugLoc.cpp | 135 +- lib/IR/DiagnosticInfo.cpp | 13 +- lib/IR/Dominators.cpp | 8 +- lib/IR/Function.cpp | 139 +- lib/IR/GCOV.cpp | 335 +- lib/IR/Globals.cpp | 41 +- lib/IR/IRBuilder.cpp | 136 +- lib/IR/IRPrintingPasses.cpp | 19 +- lib/IR/InlineAsm.cpp | 17 +- lib/IR/Instruction.cpp | 17 +- lib/IR/Instructions.cpp | 400 +- lib/IR/LLVMContext.cpp | 13 +- lib/IR/LLVMContextImpl.cpp | 77 +- lib/IR/LLVMContextImpl.h | 809 +- lib/IR/LeaksContext.h | 103 - lib/IR/LegacyPassManager.cpp | 7 +- lib/IR/MDBuilder.cpp | 26 +- lib/IR/Mangler.cpp | 6 +- lib/IR/Metadata.cpp | 707 +- lib/IR/MetadataImpl.h | 46 + lib/IR/MetadataTracking.cpp | 7 +- lib/IR/Module.cpp | 40 +- lib/IR/Operator.cpp | 44 + lib/IR/Pass.cpp | 4 +- lib/IR/Statepoint.cpp | 26 +- lib/IR/Type.cpp | 5 + lib/IR/TypeFinder.cpp | 2 +- lib/IR/UseListOrder.cpp | 43 - lib/IR/Value.cpp | 151 +- lib/IR/ValueSymbolTable.cpp | 2 +- lib/IR/ValueTypes.cpp | 2 + lib/IR/Verifier.cpp | 2821 +- lib/IRReader/CMakeLists.txt | 3 + lib/LLVMBuild.txt | 4 +- lib/LTO/CMakeLists.txt | 5 + lib/LTO/LLVMBuild.txt | 2 +- lib/LTO/LTOCodeGenerator.cpp | 207 +- lib/LTO/LTOModule.cpp | 13 +- lib/LineEditor/CMakeLists.txt | 5 +- lib/Linker/CMakeLists.txt | 3 + lib/Linker/LinkModules.cpp | 170 +- lib/MC/CMakeLists.txt | 4 + lib/MC/ConstantPools.cpp | 15 +- lib/MC/ELFObjectWriter.cpp | 1371 +- lib/MC/MCAsmInfo.cpp | 5 +- lib/MC/MCAsmInfoCOFF.cpp | 4 + lib/MC/MCAsmInfoDarwin.cpp | 27 +- lib/MC/MCAsmInfoELF.cpp | 6 +- lib/MC/MCAsmStreamer.cpp | 59 +- lib/MC/MCAssembler.cpp | 354 +- lib/MC/MCCodeGenInfo.cpp | 2 +- lib/MC/MCContext.cpp | 329 +- lib/MC/MCDisassembler/Disassembler.cpp | 50 +- .../MCDisassembler/MCExternalSymbolizer.cpp | 16 +- lib/MC/MCDwarf.cpp | 159 +- lib/MC/MCELF.cpp | 4 +- lib/MC/MCELFObjectTargetWriter.cpp | 21 + lib/MC/MCELFStreamer.cpp | 201 +- lib/MC/MCExpr.cpp | 162 +- lib/MC/MCInst.cpp | 15 +- lib/MC/MCInstPrinter.cpp | 6 +- lib/MC/MCInstrDesc.cpp | 70 + lib/MC/MCLinkerOptimizationHint.cpp | 6 +- lib/MC/MCMachOStreamer.cpp | 108 +- lib/MC/MCNullStreamer.cpp | 2 +- lib/MC/MCObjectFileInfo.cpp | 652 +- lib/MC/MCObjectStreamer.cpp | 91 +- lib/MC/MCObjectWriter.cpp | 31 +- lib/MC/MCParser/AsmLexer.cpp | 2 +- lib/MC/MCParser/AsmParser.cpp | 182 +- lib/MC/MCParser/CMakeLists.txt | 3 + lib/MC/MCParser/COFFAsmParser.cpp | 12 +- lib/MC/MCParser/DarwinAsmParser.cpp | 12 +- lib/MC/MCParser/ELFAsmParser.cpp | 88 +- lib/MC/MCSection.cpp | 86 + lib/MC/MCSectionELF.cpp | 17 +- lib/MC/MCSectionMachO.cpp | 6 +- lib/MC/MCStreamer.cpp | 62 +- lib/MC/MCSubtargetInfo.cpp | 19 +- lib/MC/MCSymbol.cpp | 31 +- lib/MC/MCValue.cpp | 8 +- lib/MC/MCWin64EH.cpp | 11 +- lib/MC/MCWinEH.cpp | 20 +- lib/MC/MachObjectWriter.cpp | 256 +- lib/MC/SubtargetFeature.cpp | 30 +- lib/MC/WinCOFFObjectWriter.cpp | 349 +- lib/MC/WinCOFFStreamer.cpp | 36 +- lib/Makefile | 6 +- lib/Object/Archive.cpp | 110 +- lib/Object/Binary.cpp | 1 + lib/Object/CMakeLists.txt | 3 + lib/Object/COFFObjectFile.cpp | 81 +- lib/Object/ELFYAML.cpp | 214 +- lib/Object/IRObjectFile.cpp | 16 +- lib/Object/MachOObjectFile.cpp | 136 +- lib/Object/ObjectFile.cpp | 1 + lib/Object/RecordStreamer.cpp | 2 +- lib/Object/RecordStreamer.h | 2 +- lib/Object/SymbolicFile.cpp | 1 + lib/Option/Arg.cpp | 35 +- lib/Option/ArgList.cpp | 40 +- lib/Option/CMakeLists.txt | 3 + lib/Option/OptTable.cpp | 14 +- lib/Option/Option.cpp | 8 +- lib/Passes/CMakeLists.txt | 8 + lib/Passes/LLVMBuild.txt | 22 + lib/Passes/Makefile | 14 + .../Passes.cpp => lib/Passes/PassBuilder.cpp | 59 +- {tools/opt => lib/Passes}/PassRegistry.def | 12 + lib/ProfileData/CMakeLists.txt | 3 + lib/ProfileData/CoverageMapping.cpp | 157 +- lib/ProfileData/CoverageMappingReader.cpp | 389 +- lib/ProfileData/CoverageMappingWriter.cpp | 8 +- lib/ProfileData/InstrProf.cpp | 8 +- lib/ProfileData/InstrProfReader.cpp | 41 +- lib/ProfileData/InstrProfWriter.cpp | 33 +- lib/Support/APFloat.cpp | 10 +- lib/Support/APInt.cpp | 109 +- lib/Support/Allocator.cpp | 5 - lib/Support/CMakeLists.txt | 34 +- lib/Support/COM.cpp | 23 + lib/Support/CommandLine.cpp | 444 +- lib/Support/Compression.cpp | 1 + lib/Support/ConvertUTFWrapper.cpp | 45 +- lib/Support/CrashRecoveryContext.cpp | 2 - lib/Support/DAGDeltaAlgorithm.cpp | 26 +- lib/Support/DataStream.cpp | 6 +- lib/Support/Debug.cpp | 72 +- lib/Support/Dwarf.cpp | 364 +- lib/Support/FileOutputBuffer.cpp | 14 +- lib/Support/FoldingSet.cpp | 11 +- lib/Support/FormattedStream.cpp | 1 + lib/Support/GraphWriter.cpp | 28 +- lib/Support/Host.cpp | 233 +- lib/Support/IsInf.cpp | 49 - lib/Support/IsNAN.cpp | 33 - lib/Support/LockFileManager.cpp | 73 +- lib/Support/MemoryBuffer.cpp | 1 - lib/Support/Path.cpp | 18 +- lib/Support/PrettyStackTrace.cpp | 50 +- lib/Support/Process.cpp | 21 +- lib/Support/Program.cpp | 1 + lib/Support/RandomNumberGenerator.cpp | 6 +- lib/Support/Regex.cpp | 6 +- lib/Support/ScaledNumber.cpp | 1 + lib/Support/SmallPtrSet.cpp | 19 +- lib/Support/SourceMgr.cpp | 2 - lib/Support/SpecialCaseList.cpp | 60 +- lib/Support/StreamingMemoryObject.cpp | 24 +- lib/Support/StringExtras.cpp | 1 - lib/Support/StringMap.cpp | 5 +- lib/Support/SystemUtils.cpp | 2 - lib/Support/TargetParser.cpp | 467 + lib/Support/TargetRegistry.cpp | 53 +- lib/Support/Timer.cpp | 2 - lib/Support/Triple.cpp | 297 +- lib/Support/Twine.cpp | 13 +- lib/Support/Unix/COM.inc | 27 + lib/Support/Unix/Host.inc | 24 +- lib/Support/Unix/Process.inc | 16 +- lib/Support/Unix/Program.inc | 18 +- lib/Support/Unix/Signals.inc | 70 +- lib/Support/Valgrind.cpp | 3 +- lib/Support/Windows/COM.inc | 37 + lib/Support/Windows/Path.inc | 57 +- lib/Support/Windows/Process.inc | 19 +- lib/Support/Windows/Program.inc | 3 +- lib/Support/Windows/Signals.inc | 285 +- lib/Support/Windows/TimeValue.inc | 1 + lib/Support/Windows/WindowsSupport.h | 7 +- lib/Support/YAMLParser.cpp | 358 +- lib/Support/YAMLTraits.cpp | 115 +- lib/Support/raw_ostream.cpp | 95 +- lib/Support/regcomp.c | 4 +- lib/TableGen/CMakeLists.txt | 3 + lib/TableGen/Error.cpp | 5 + lib/TableGen/Main.cpp | 36 +- lib/TableGen/Record.cpp | 527 +- lib/TableGen/SetTheory.cpp | 43 +- lib/TableGen/TGLexer.h | 3 +- lib/TableGen/TGParser.cpp | 246 +- lib/TableGen/TGParser.h | 4 +- lib/TableGen/TableGenBackend.cpp | 35 +- lib/Target/AArch64/AArch64.h | 3 - lib/Target/AArch64/AArch64.td | 11 + lib/Target/AArch64/AArch64A53Fix835769.cpp | 16 +- .../AArch64/AArch64A57FPLoadBalancing.cpp | 56 +- .../AArch64/AArch64AddressTypePromotion.cpp | 1 + .../AArch64/AArch64AdvSIMDScalarPass.cpp | 16 +- lib/Target/AArch64/AArch64AsmPrinter.cpp | 118 +- .../AArch64/AArch64BranchRelaxation.cpp | 4 +- lib/Target/AArch64/AArch64CallingConvention.h | 2 +- .../AArch64/AArch64CallingConvention.td | 2 +- .../AArch64CleanupLocalDynamicTLSPass.cpp | 8 +- lib/Target/AArch64/AArch64CollectLOH.cpp | 26 +- .../AArch64/AArch64ConditionOptimizer.cpp | 16 +- .../AArch64/AArch64ConditionalCompares.cpp | 8 +- .../AArch64/AArch64ExpandPseudoInsts.cpp | 13 +- lib/Target/AArch64/AArch64FastISel.cpp | 110 +- lib/Target/AArch64/AArch64FrameLowering.cpp | 260 +- lib/Target/AArch64/AArch64FrameLowering.h | 4 +- lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 311 +- lib/Target/AArch64/AArch64ISelLowering.cpp | 1140 +- lib/Target/AArch64/AArch64ISelLowering.h | 47 +- lib/Target/AArch64/AArch64InstrFormats.td | 228 +- lib/Target/AArch64/AArch64InstrInfo.cpp | 29 +- lib/Target/AArch64/AArch64InstrInfo.h | 7 +- lib/Target/AArch64/AArch64InstrInfo.td | 419 +- .../AArch64/AArch64LoadStoreOptimizer.cpp | 224 +- lib/Target/AArch64/AArch64MCInstLower.cpp | 10 +- lib/Target/AArch64/AArch64PBQPRegAlloc.cpp | 8 +- lib/Target/AArch64/AArch64PromoteConstant.cpp | 155 +- lib/Target/AArch64/AArch64RegisterInfo.cpp | 77 +- lib/Target/AArch64/AArch64RegisterInfo.h | 22 +- lib/Target/AArch64/AArch64SchedA57.td | 20 +- .../AArch64/AArch64SelectionDAGInfo.cpp | 9 +- .../AArch64/AArch64StorePairSuppress.cpp | 19 +- lib/Target/AArch64/AArch64Subtarget.cpp | 16 +- lib/Target/AArch64/AArch64Subtarget.h | 11 +- lib/Target/AArch64/AArch64TargetMachine.cpp | 62 +- lib/Target/AArch64/AArch64TargetMachine.h | 9 +- .../AArch64/AArch64TargetObjectFile.cpp | 23 +- lib/Target/AArch64/AArch64TargetObjectFile.h | 7 + .../AArch64/AArch64TargetTransformInfo.cpp | 327 +- .../AArch64/AArch64TargetTransformInfo.h | 147 + .../AArch64/AsmParser/AArch64AsmParser.cpp | 402 +- .../Disassembler/AArch64Disassembler.cpp | 123 +- .../AArch64ExternalSymbolizer.cpp | 6 +- .../InstPrinter/AArch64InstPrinter.cpp | 112 +- .../AArch64/InstPrinter/AArch64InstPrinter.h | 129 +- .../MCTargetDesc/AArch64AddressingModes.h | 6 +- .../MCTargetDesc/AArch64AsmBackend.cpp | 66 +- .../MCTargetDesc/AArch64ELFObjectWriter.cpp | 8 +- .../MCTargetDesc/AArch64ELFStreamer.cpp | 54 +- .../AArch64/MCTargetDesc/AArch64ELFStreamer.h | 4 +- .../AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp | 6 +- .../AArch64/MCTargetDesc/AArch64MCAsmInfo.h | 3 +- .../MCTargetDesc/AArch64MCCodeEmitter.cpp | 31 +- .../AArch64/MCTargetDesc/AArch64MCExpr.cpp | 3 +- .../AArch64/MCTargetDesc/AArch64MCExpr.h | 4 +- .../MCTargetDesc/AArch64MCTargetDesc.cpp | 132 +- .../MCTargetDesc/AArch64MCTargetDesc.h | 29 +- .../MCTargetDesc/AArch64MachObjectWriter.cpp | 161 +- .../MCTargetDesc/AArch64TargetStreamer.cpp | 9 +- .../MCTargetDesc/AArch64TargetStreamer.h | 42 + lib/Target/AArch64/Utils/AArch64BaseInfo.cpp | 1500 +- lib/Target/AArch64/Utils/AArch64BaseInfo.h | 125 +- lib/Target/ARM/A15SDOptimizer.cpp | 12 +- lib/Target/ARM/ARM.h | 4 - lib/Target/ARM/ARM.td | 71 +- lib/Target/ARM/ARMAsmPrinter.cpp | 584 +- lib/Target/ARM/ARMAsmPrinter.h | 22 +- lib/Target/ARM/ARMBaseInstrInfo.cpp | 98 +- lib/Target/ARM/ARMBaseInstrInfo.h | 2 +- lib/Target/ARM/ARMBaseRegisterInfo.cpp | 126 +- lib/Target/ARM/ARMBaseRegisterInfo.h | 29 +- lib/Target/ARM/ARMCallingConv.h | 163 +- lib/Target/ARM/ARMCallingConv.td | 2 +- lib/Target/ARM/ARMConstantIslandPass.cpp | 191 +- lib/Target/ARM/ARMConstantPoolValue.h | 2 +- lib/Target/ARM/ARMExpandPseudoInsts.cpp | 11 +- lib/Target/ARM/ARMFPUName.def | 34 - lib/Target/ARM/ARMFastISel.cpp | 49 +- lib/Target/ARM/ARMFrameLowering.cpp | 78 +- lib/Target/ARM/ARMFrameLowering.h | 7 +- lib/Target/ARM/ARMHazardRecognizer.cpp | 8 +- lib/Target/ARM/ARMISelDAGToDAG.cpp | 348 +- lib/Target/ARM/ARMISelLowering.cpp | 1415 +- lib/Target/ARM/ARMISelLowering.h | 58 +- lib/Target/ARM/ARMInstrFormats.td | 7 +- lib/Target/ARM/ARMInstrInfo.cpp | 47 +- lib/Target/ARM/ARMInstrInfo.td | 143 +- lib/Target/ARM/ARMInstrNEON.td | 236 +- lib/Target/ARM/ARMInstrThumb.td | 48 +- lib/Target/ARM/ARMInstrThumb2.td | 120 +- lib/Target/ARM/ARMInstrVFP.td | 111 +- lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 117 +- lib/Target/ARM/ARMMCInstLower.cpp | 10 +- lib/Target/ARM/ARMMachineFunctionInfo.cpp | 6 +- lib/Target/ARM/ARMMachineFunctionInfo.h | 21 +- lib/Target/ARM/ARMOptimizeBarriersPass.cpp | 2 - lib/Target/ARM/ARMRegisterInfo.cpp | 4 +- lib/Target/ARM/ARMRegisterInfo.h | 2 +- lib/Target/ARM/ARMRegisterInfo.td | 10 +- lib/Target/ARM/ARMSelectionDAGInfo.cpp | 190 +- lib/Target/ARM/ARMSelectionDAGInfo.h | 13 + lib/Target/ARM/ARMSubtarget.cpp | 95 +- lib/Target/ARM/ARMSubtarget.h | 25 +- lib/Target/ARM/ARMTargetMachine.cpp | 162 +- lib/Target/ARM/ARMTargetMachine.h | 7 +- lib/Target/ARM/ARMTargetObjectFile.cpp | 10 +- lib/Target/ARM/ARMTargetTransformInfo.cpp | 217 +- lib/Target/ARM/ARMTargetTransformInfo.h | 134 + lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 817 +- lib/Target/ARM/CMakeLists.txt | 3 +- .../ARM/Disassembler/ARMDisassembler.cpp | 430 +- lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 730 +- lib/Target/ARM/InstPrinter/ARMInstPrinter.h | 215 +- lib/Target/ARM/MCTargetDesc/ARMArchName.def | 50 - lib/Target/ARM/MCTargetDesc/ARMArchName.h | 27 - lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | 30 +- lib/Target/ARM/MCTargetDesc/ARMAsmBackend.h | 4 +- .../ARM/MCTargetDesc/ARMAsmBackendDarwin.h | 2 +- .../ARM/MCTargetDesc/ARMAsmBackendELF.h | 2 +- .../ARM/MCTargetDesc/ARMAsmBackendWinCOFF.h | 2 +- .../ARM/MCTargetDesc/ARMELFObjectWriter.cpp | 12 +- .../ARM/MCTargetDesc/ARMELFStreamer.cpp | 247 +- lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp | 1 + .../ARM/MCTargetDesc/ARMMCCodeEmitter.cpp | 32 +- lib/Target/ARM/MCTargetDesc/ARMMCExpr.cpp | 1 + lib/Target/ARM/MCTargetDesc/ARMMCExpr.h | 8 +- .../ARM/MCTargetDesc/ARMMCTargetDesc.cpp | 192 +- lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h | 47 +- .../ARM/MCTargetDesc/ARMMachObjectWriter.cpp | 111 +- .../ARM/MCTargetDesc/ARMTargetStreamer.cpp | 1 + .../ARM/MCTargetDesc/ARMUnwindOpAsm.cpp | 70 +- .../MCTargetDesc/ARMWinCOFFObjectWriter.cpp | 19 +- .../ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp | 15 +- lib/Target/ARM/MLxExpansionPass.cpp | 5 +- lib/Target/ARM/README-Thumb.txt | 2 +- lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp | 2 +- lib/Target/ARM/Thumb1FrameLowering.cpp | 44 +- lib/Target/ARM/Thumb1FrameLowering.h | 4 +- lib/Target/ARM/Thumb1InstrInfo.cpp | 13 +- lib/Target/ARM/Thumb1InstrInfo.h | 6 +- lib/Target/ARM/Thumb2ITBlockPass.cpp | 26 +- lib/Target/ARM/Thumb2InstrInfo.cpp | 27 +- lib/Target/ARM/Thumb2InstrInfo.h | 6 +- lib/Target/ARM/Thumb2RegisterInfo.cpp | 53 - lib/Target/ARM/Thumb2RegisterInfo.h | 38 - lib/Target/ARM/Thumb2SizeReduction.cpp | 37 +- ...RegisterInfo.cpp => ThumbRegisterInfo.cpp} | 150 +- ...umb1RegisterInfo.h => ThumbRegisterInfo.h} | 14 +- lib/Target/{ARM/ARMFPUName.h => BPF/BPF.h} | 22 +- lib/Target/BPF/BPF.td | 31 + lib/Target/BPF/BPFAsmPrinter.cpp | 87 + lib/Target/BPF/BPFCallingConv.td | 29 + lib/Target/BPF/BPFFrameLowering.cpp | 40 + lib/Target/BPF/BPFFrameLowering.h | 41 + lib/Target/BPF/BPFISelDAGToDAG.cpp | 160 + lib/Target/BPF/BPFISelLowering.cpp | 640 + lib/Target/BPF/BPFISelLowering.h | 90 + lib/Target/BPF/BPFInstrFormats.td | 33 + lib/Target/BPF/BPFInstrInfo.cpp | 168 + lib/Target/BPF/BPFInstrInfo.h | 60 + lib/Target/BPF/BPFInstrInfo.td | 560 + lib/Target/BPF/BPFMCInstLower.cpp | 77 + lib/Target/BPF/BPFMCInstLower.h | 43 + lib/Target/BPF/BPFRegisterInfo.cpp | 88 + lib/Target/BPF/BPFRegisterInfo.h | 40 + lib/Target/BPF/BPFRegisterInfo.td | 41 + lib/Target/BPF/BPFSubtarget.cpp | 31 + lib/Target/BPF/BPFSubtarget.h | 64 + lib/Target/BPF/BPFTargetMachine.cpp | 69 + lib/Target/BPF/BPFTargetMachine.h | 43 + lib/Target/BPF/CMakeLists.txt | 27 + lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp | 88 + lib/Target/BPF/InstPrinter/BPFInstPrinter.h | 42 + lib/Target/BPF/InstPrinter/CMakeLists.txt | 3 + lib/Target/BPF/InstPrinter/LLVMBuild.txt | 23 + lib/Target/BPF/InstPrinter/Makefile | 16 + lib/Target/BPF/LLVMBuild.txt | 32 + lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp | 85 + .../BPF/MCTargetDesc/BPFELFObjectWriter.cpp | 53 + lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h | 36 + .../BPF/MCTargetDesc/BPFMCCodeEmitter.cpp | 165 + .../BPF/MCTargetDesc/BPFMCTargetDesc.cpp | 110 + lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.h | 59 + lib/Target/BPF/MCTargetDesc/CMakeLists.txt | 6 + lib/Target/BPF/MCTargetDesc/LLVMBuild.txt | 23 + lib/Target/BPF/MCTargetDesc/Makefile | 16 + lib/Target/BPF/Makefile | 21 + .../BPF/TargetInfo/BPFTargetInfo.cpp} | 12 +- lib/Target/BPF/TargetInfo/CMakeLists.txt | 3 + lib/Target/BPF/TargetInfo/LLVMBuild.txt | 23 + lib/Target/BPF/TargetInfo/Makefile | 16 + lib/Target/CMakeLists.txt | 8 +- lib/Target/CppBackend/CPPBackend.cpp | 31 +- lib/Target/CppBackend/CPPTargetMachine.h | 17 +- .../TargetInfo/CppBackendTargetInfo.cpp | 4 +- lib/Target/Hexagon/CMakeLists.txt | 3 +- .../Disassembler/HexagonDisassembler.cpp | 40 +- lib/Target/Hexagon/Hexagon.h | 19 +- lib/Target/Hexagon/Hexagon.td | 42 +- lib/Target/Hexagon/HexagonAsmPrinter.cpp | 41 +- lib/Target/Hexagon/HexagonAsmPrinter.h | 9 +- lib/Target/Hexagon/HexagonCFGOptimizer.cpp | 16 +- .../Hexagon/HexagonCallingConvLower.cpp | 206 - lib/Target/Hexagon/HexagonCallingConvLower.h | 187 - lib/Target/Hexagon/HexagonCopyToCombine.cpp | 209 +- lib/Target/Hexagon/HexagonExpandCondsets.cpp | 1348 + .../Hexagon/HexagonExpandPredSpillCode.cpp | 195 +- lib/Target/Hexagon/HexagonFixupHwLoops.cpp | 136 +- lib/Target/Hexagon/HexagonFrameLowering.cpp | 1444 +- lib/Target/Hexagon/HexagonFrameLowering.h | 95 +- lib/Target/Hexagon/HexagonHardwareLoops.cpp | 953 +- lib/Target/Hexagon/HexagonISelDAGToDAG.cpp | 1821 +- lib/Target/Hexagon/HexagonISelLowering.cpp | 1876 +- lib/Target/Hexagon/HexagonISelLowering.h | 178 +- lib/Target/Hexagon/HexagonInstrFormats.td | 95 +- lib/Target/Hexagon/HexagonInstrFormatsV4.td | 94 +- lib/Target/Hexagon/HexagonInstrInfo.cpp | 868 +- lib/Target/Hexagon/HexagonInstrInfo.h | 43 +- lib/Target/Hexagon/HexagonInstrInfo.td | 2841 +- lib/Target/Hexagon/HexagonInstrInfoV3.td | 142 +- lib/Target/Hexagon/HexagonInstrInfoV4.td | 2836 +- lib/Target/Hexagon/HexagonInstrInfoV5.td | 1095 +- lib/Target/Hexagon/HexagonInstrInfoVector.td | 483 + lib/Target/Hexagon/HexagonIntrinsics.td | 4456 +- .../Hexagon/HexagonIntrinsicsDerived.td | 4 +- lib/Target/Hexagon/HexagonIntrinsicsV3.td | 47 +- lib/Target/Hexagon/HexagonIntrinsicsV4.td | 520 +- lib/Target/Hexagon/HexagonIntrinsicsV5.td | 470 +- lib/Target/Hexagon/HexagonMCInstLower.cpp | 13 +- .../Hexagon/HexagonMachineFunctionInfo.h | 9 +- .../Hexagon/HexagonMachineScheduler.cpp | 15 +- lib/Target/Hexagon/HexagonMachineScheduler.h | 8 +- lib/Target/Hexagon/HexagonNewValueJump.cpp | 56 +- lib/Target/Hexagon/HexagonOperands.td | 505 +- lib/Target/Hexagon/HexagonPeephole.cpp | 9 +- lib/Target/Hexagon/HexagonRegisterInfo.cpp | 323 +- lib/Target/Hexagon/HexagonRegisterInfo.h | 49 +- lib/Target/Hexagon/HexagonRegisterInfo.td | 8 +- .../Hexagon/HexagonSplitConst32AndConst64.cpp | 102 +- .../Hexagon/HexagonSplitTFRCondSets.cpp | 235 - lib/Target/Hexagon/HexagonSubtarget.cpp | 24 +- lib/Target/Hexagon/HexagonSubtarget.h | 24 +- lib/Target/Hexagon/HexagonTargetMachine.cpp | 51 +- lib/Target/Hexagon/HexagonTargetMachine.h | 3 +- .../Hexagon/HexagonTargetObjectFile.cpp | 17 +- lib/Target/Hexagon/HexagonTargetObjectFile.h | 11 +- lib/Target/Hexagon/HexagonVLIWPacketizer.cpp | 170 +- .../Hexagon/HexagonVarargsCallingConvention.h | 149 - .../Hexagon/MCTargetDesc/CMakeLists.txt | 2 +- .../MCTargetDesc/HexagonAsmBackend.cpp | 2 +- .../Hexagon/MCTargetDesc/HexagonBaseInfo.h | 2 +- .../MCTargetDesc/HexagonELFObjectWriter.cpp | 9 +- .../Hexagon/MCTargetDesc/HexagonFixupKinds.h | 137 + .../MCTargetDesc/HexagonInstPrinter.cpp | 53 +- .../Hexagon/MCTargetDesc/HexagonInstPrinter.h | 15 +- .../MCTargetDesc/HexagonMCCodeEmitter.cpp | 467 +- .../MCTargetDesc/HexagonMCCodeEmitter.h | 18 +- .../Hexagon/MCTargetDesc/HexagonMCInst.cpp | 223 - .../Hexagon/MCTargetDesc/HexagonMCInst.h | 108 - .../MCTargetDesc/HexagonMCInstrInfo.cpp | 248 + .../Hexagon/MCTargetDesc/HexagonMCInstrInfo.h | 122 + .../MCTargetDesc/HexagonMCTargetDesc.cpp | 39 +- .../MCTargetDesc/HexagonMCTargetDesc.h | 8 +- lib/Target/Hexagon/Makefile | 18 +- lib/Target/LLVMBuild.txt | 20 +- .../MSP430/InstPrinter/MSP430InstPrinter.cpp | 2 +- .../MSP430/InstPrinter/MSP430InstPrinter.h | 3 +- .../MCTargetDesc/MSP430MCTargetDesc.cpp | 7 +- .../MSP430/MCTargetDesc/MSP430MCTargetDesc.h | 2 + lib/Target/MSP430/MSP430AsmPrinter.cpp | 6 +- lib/Target/MSP430/MSP430FrameLowering.cpp | 5 +- lib/Target/MSP430/MSP430FrameLowering.h | 2 +- lib/Target/MSP430/MSP430ISelDAGToDAG.cpp | 25 +- lib/Target/MSP430/MSP430ISelLowering.cpp | 73 +- lib/Target/MSP430/MSP430ISelLowering.h | 11 +- lib/Target/MSP430/MSP430MCInstLower.cpp | 17 +- lib/Target/MSP430/MSP430RegisterInfo.h | 3 +- lib/Target/MSP430/MSP430Subtarget.cpp | 11 +- lib/Target/MSP430/MSP430Subtarget.h | 2 - lib/Target/MSP430/MSP430TargetMachine.cpp | 6 +- lib/Target/MSP430/MSP430TargetMachine.h | 2 +- lib/Target/MSP430/README.txt | 1 + lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 1211 +- .../Mips/Disassembler/MipsDisassembler.cpp | 512 +- .../Mips/InstPrinter/MipsInstPrinter.cpp | 3 +- lib/Target/Mips/InstPrinter/MipsInstPrinter.h | 3 +- .../Mips/MCTargetDesc/MipsABIFlagsSection.cpp | 15 +- .../Mips/MCTargetDesc/MipsABIFlagsSection.h | 113 +- lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp | 79 + lib/Target/Mips/MCTargetDesc/MipsABIInfo.h | 20 +- .../Mips/MCTargetDesc/MipsAsmBackend.cpp | 38 +- lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h | 9 +- .../Mips/MCTargetDesc/MipsELFObjectWriter.cpp | 200 +- .../Mips/MCTargetDesc/MipsELFStreamer.cpp | 25 +- .../Mips/MCTargetDesc/MipsELFStreamer.h | 15 +- lib/Target/Mips/MCTargetDesc/MipsFixupKinds.h | 5 +- .../Mips/MCTargetDesc/MipsMCCodeEmitter.cpp | 138 +- .../Mips/MCTargetDesc/MipsMCCodeEmitter.h | 27 +- lib/Target/Mips/MCTargetDesc/MipsMCExpr.h | 2 +- lib/Target/Mips/MCTargetDesc/MipsMCNaCl.h | 6 +- .../Mips/MCTargetDesc/MipsMCTargetDesc.cpp | 154 +- .../Mips/MCTargetDesc/MipsMCTargetDesc.h | 14 +- .../Mips/MCTargetDesc/MipsNaClELFStreamer.cpp | 20 +- .../Mips/MCTargetDesc/MipsOptionRecord.cpp | 26 +- .../Mips/MCTargetDesc/MipsTargetStreamer.cpp | 260 +- lib/Target/Mips/MicroMips32r6InstrFormats.td | 223 + lib/Target/Mips/MicroMips32r6InstrInfo.td | 329 + lib/Target/Mips/MicroMipsInstrFPU.td | 6 +- lib/Target/Mips/MicroMipsInstrFormats.td | 45 + lib/Target/Mips/MicroMipsInstrInfo.td | 118 +- lib/Target/Mips/Mips.h | 6 +- lib/Target/Mips/Mips.td | 59 +- lib/Target/Mips/Mips16FrameLowering.cpp | 30 +- lib/Target/Mips/Mips16FrameLowering.h | 6 +- lib/Target/Mips/Mips16HardFloat.cpp | 185 +- lib/Target/Mips/Mips16HardFloat.h | 43 - lib/Target/Mips/Mips16ISelDAGToDAG.cpp | 19 +- lib/Target/Mips/Mips16ISelLowering.cpp | 63 +- lib/Target/Mips/Mips16InstrInfo.cpp | 4 +- lib/Target/Mips/Mips16InstrInfo.h | 4 +- lib/Target/Mips/Mips16RegisterInfo.cpp | 6 +- lib/Target/Mips/Mips16RegisterInfo.h | 2 +- lib/Target/Mips/Mips32r6InstrFormats.td | 19 + lib/Target/Mips/Mips32r6InstrInfo.td | 181 +- lib/Target/Mips/Mips64InstrInfo.td | 127 +- lib/Target/Mips/MipsAsmPrinter.cpp | 299 +- lib/Target/Mips/MipsAsmPrinter.h | 37 +- lib/Target/Mips/MipsCCState.h | 4 +- lib/Target/Mips/MipsCallingConv.td | 11 +- lib/Target/Mips/MipsCondMov.td | 7 +- lib/Target/Mips/MipsConstantIslandPass.cpp | 8 +- lib/Target/Mips/MipsDelaySlotFiller.cpp | 178 +- lib/Target/Mips/MipsFastISel.cpp | 474 +- lib/Target/Mips/MipsFrameLowering.cpp | 19 +- lib/Target/Mips/MipsFrameLowering.h | 7 + lib/Target/Mips/MipsISelDAGToDAG.cpp | 37 +- lib/Target/Mips/MipsISelDAGToDAG.h | 15 +- lib/Target/Mips/MipsISelLowering.cpp | 410 +- lib/Target/Mips/MipsISelLowering.h | 22 +- lib/Target/Mips/MipsInstrFPU.td | 113 +- lib/Target/Mips/MipsInstrFormats.td | 27 + lib/Target/Mips/MipsInstrInfo.h | 6 +- lib/Target/Mips/MipsInstrInfo.td | 100 +- lib/Target/Mips/MipsLongBranch.cpp | 36 +- lib/Target/Mips/MipsMCInstLower.cpp | 11 +- lib/Target/Mips/MipsMSAInstrInfo.td | 161 +- lib/Target/Mips/MipsMachineFunction.cpp | 47 +- lib/Target/Mips/MipsMachineFunction.h | 5 +- lib/Target/Mips/MipsModuleISelDAGToDAG.cpp | 38 +- lib/Target/Mips/MipsModuleISelDAGToDAG.h | 58 - lib/Target/Mips/MipsOptimizePICCall.cpp | 2 +- lib/Target/Mips/MipsOptionRecord.h | 8 +- lib/Target/Mips/MipsOs16.cpp | 133 +- lib/Target/Mips/MipsOs16.h | 47 - lib/Target/Mips/MipsRegisterInfo.cpp | 23 +- lib/Target/Mips/MipsRegisterInfo.h | 17 +- lib/Target/Mips/MipsRegisterInfo.td | 19 + lib/Target/Mips/MipsSEFrameLowering.cpp | 161 +- lib/Target/Mips/MipsSEFrameLowering.h | 6 +- lib/Target/Mips/MipsSEISelDAGToDAG.cpp | 182 +- lib/Target/Mips/MipsSEISelDAGToDAG.h | 16 +- lib/Target/Mips/MipsSEISelLowering.cpp | 495 +- lib/Target/Mips/MipsSEInstrInfo.cpp | 11 +- lib/Target/Mips/MipsSEInstrInfo.h | 2 +- lib/Target/Mips/MipsSERegisterInfo.cpp | 22 +- lib/Target/Mips/MipsSERegisterInfo.h | 2 +- lib/Target/Mips/MipsSchedule.td | 4 + lib/Target/Mips/MipsSubtarget.cpp | 116 +- lib/Target/Mips/MipsSubtarget.h | 56 +- lib/Target/Mips/MipsTargetMachine.cpp | 108 +- lib/Target/Mips/MipsTargetMachine.h | 9 +- lib/Target/Mips/MipsTargetObjectFile.cpp | 42 +- lib/Target/Mips/MipsTargetObjectFile.h | 18 +- lib/Target/Mips/MipsTargetStreamer.h | 32 +- lib/Target/NVPTX/CMakeLists.txt | 1 - .../NVPTX/InstPrinter/NVPTXInstPrinter.cpp | 10 +- .../NVPTX/InstPrinter/NVPTXInstPrinter.h | 5 +- lib/Target/NVPTX/LLVMBuild.txt | 2 +- .../NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp | 2 + .../NVPTX/MCTargetDesc/NVPTXMCTargetDesc.cpp | 49 +- .../NVPTX/MCTargetDesc/NVPTXMCTargetDesc.h | 2 + lib/Target/NVPTX/NVPTX.h | 1 - lib/Target/NVPTX/NVPTX.td | 22 +- lib/Target/NVPTX/NVPTXAllocaHoisting.cpp | 40 +- lib/Target/NVPTX/NVPTXAllocaHoisting.h | 28 - lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 528 +- lib/Target/NVPTX/NVPTXAsmPrinter.h | 61 +- .../NVPTX/NVPTXAssignValidGlobalNames.cpp | 2 +- .../NVPTX/NVPTXFavorNonGenericAddrSpaces.cpp | 12 +- lib/Target/NVPTX/NVPTXFrameLowering.cpp | 12 +- lib/Target/NVPTX/NVPTXFrameLowering.h | 12 +- lib/Target/NVPTX/NVPTXGenericToNVVM.cpp | 4 +- lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp | 265 +- lib/Target/NVPTX/NVPTXISelDAGToDAG.h | 11 +- lib/Target/NVPTX/NVPTXISelLowering.cpp | 285 +- lib/Target/NVPTX/NVPTXISelLowering.h | 18 +- lib/Target/NVPTX/NVPTXInstrInfo.cpp | 4 +- lib/Target/NVPTX/NVPTXInstrInfo.h | 2 +- lib/Target/NVPTX/NVPTXInstrInfo.td | 70 +- lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp | 49 +- lib/Target/NVPTX/NVPTXLowerAggrCopies.h | 29 +- lib/Target/NVPTX/NVPTXLowerStructArgs.cpp | 4 +- lib/Target/NVPTX/NVPTXMCExpr.cpp | 10 + lib/Target/NVPTX/NVPTXMCExpr.h | 50 +- lib/Target/NVPTX/NVPTXPrologEpilogPass.cpp | 8 +- lib/Target/NVPTX/NVPTXRegisterInfo.cpp | 5 +- lib/Target/NVPTX/NVPTXRegisterInfo.h | 11 +- lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp | 6 +- lib/Target/NVPTX/NVPTXSection.h | 5 +- lib/Target/NVPTX/NVPTXSubtarget.cpp | 36 +- lib/Target/NVPTX/NVPTXSubtarget.h | 20 +- lib/Target/NVPTX/NVPTXTargetMachine.cpp | 64 +- lib/Target/NVPTX/NVPTXTargetMachine.h | 16 +- lib/Target/NVPTX/NVPTXTargetObjectFile.h | 19 +- lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp | 148 +- lib/Target/NVPTX/NVPTXTargetTransformInfo.h | 76 + lib/Target/NVPTX/NVPTXUtilities.cpp | 9 +- lib/Target/NVPTX/NVPTXVector.td | 8 +- lib/Target/NVPTX/NVPTXutil.cpp | 90 - lib/Target/NVPTX/NVPTXutil.h | 25 - lib/Target/NVPTX/NVVMReflect.cpp | 38 +- lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp | 315 +- lib/Target/PowerPC/CMakeLists.txt | 8 + .../PowerPC/Disassembler/PPCDisassembler.cpp | 87 +- .../PowerPC/InstPrinter/PPCInstPrinter.cpp | 86 +- .../PowerPC/InstPrinter/PPCInstPrinter.h | 11 +- .../PowerPC/MCTargetDesc/PPCAsmBackend.cpp | 12 +- .../MCTargetDesc/PPCELFObjectWriter.cpp | 2 +- .../PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp | 4 + .../PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp | 43 +- lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h | 7 +- .../PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp | 118 +- .../PowerPC/MCTargetDesc/PPCMCTargetDesc.h | 46 +- .../MCTargetDesc/PPCMachObjectWriter.cpp | 47 +- lib/Target/PowerPC/PPC.h | 16 +- lib/Target/PowerPC/PPC.td | 121 +- lib/Target/PowerPC/PPCAsmPrinter.cpp | 651 +- lib/Target/PowerPC/PPCCTRLoops.cpp | 26 +- lib/Target/PowerPC/PPCCallingConv.td | 47 +- lib/Target/PowerPC/PPCEarlyReturn.cpp | 202 + lib/Target/PowerPC/PPCFastISel.cpp | 114 +- lib/Target/PowerPC/PPCFrameLowering.cpp | 157 +- lib/Target/PowerPC/PPCFrameLowering.h | 50 +- lib/Target/PowerPC/PPCHazardRecognizers.cpp | 4 +- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 385 +- lib/Target/PowerPC/PPCISelLowering.cpp | 2719 +- lib/Target/PowerPC/PPCISelLowering.h | 190 +- lib/Target/PowerPC/PPCInstr64Bit.td | 148 +- lib/Target/PowerPC/PPCInstrAltivec.td | 248 +- lib/Target/PowerPC/PPCInstrFormats.td | 264 + lib/Target/PowerPC/PPCInstrHTM.td | 172 + lib/Target/PowerPC/PPCInstrInfo.cpp | 802 +- lib/Target/PowerPC/PPCInstrInfo.h | 2 +- lib/Target/PowerPC/PPCInstrInfo.td | 393 +- lib/Target/PowerPC/PPCInstrQPX.td | 1192 + lib/Target/PowerPC/PPCInstrVSX.td | 177 +- lib/Target/PowerPC/PPCLoopDataPrefetch.cpp | 232 + lib/Target/PowerPC/PPCLoopPreIncPrep.cpp | 390 + lib/Target/PowerPC/PPCMCInstLower.cpp | 23 +- lib/Target/PowerPC/PPCMachineFunctionInfo.cpp | 7 +- lib/Target/PowerPC/PPCMachineFunctionInfo.h | 7 + lib/Target/PowerPC/PPCRegisterInfo.cpp | 242 +- lib/Target/PowerPC/PPCRegisterInfo.h | 52 +- lib/Target/PowerPC/PPCRegisterInfo.td | 71 +- lib/Target/PowerPC/PPCSchedule.td | 398 +- lib/Target/PowerPC/PPCSchedule440.td | 8 + lib/Target/PowerPC/PPCScheduleA2.td | 2 + lib/Target/PowerPC/PPCScheduleE500mc.td | 6 + lib/Target/PowerPC/PPCScheduleE5500.td | 6 + lib/Target/PowerPC/PPCScheduleP7.td | 4 + lib/Target/PowerPC/PPCScheduleP8.td | 4 + lib/Target/PowerPC/PPCSubtarget.cpp | 88 +- lib/Target/PowerPC/PPCSubtarget.h | 54 +- lib/Target/PowerPC/PPCTLSDynamicCall.cpp | 170 + lib/Target/PowerPC/PPCTOCRegDeps.cpp | 156 + lib/Target/PowerPC/PPCTargetMachine.cpp | 153 +- lib/Target/PowerPC/PPCTargetMachine.h | 23 +- lib/Target/PowerPC/PPCTargetObjectFile.cpp | 2 +- lib/Target/PowerPC/PPCTargetObjectFile.h | 6 +- lib/Target/PowerPC/PPCTargetStreamer.h | 2 +- lib/Target/PowerPC/PPCTargetTransformInfo.cpp | 256 +- lib/Target/PowerPC/PPCTargetTransformInfo.h | 104 + lib/Target/PowerPC/PPCVSXCopy.cpp | 176 + lib/Target/PowerPC/PPCVSXFMAMutate.cpp | 335 + lib/Target/PowerPC/PPCVSXSwapRemoval.cpp | 821 + lib/Target/PowerPC/README.txt | 26 + lib/Target/PowerPC/README_ALTIVEC.txt | 132 + .../PowerPC/TargetInfo/PowerPCTargetInfo.cpp | 2 +- lib/Target/R600/AMDGPU.h | 6 +- lib/Target/R600/AMDGPU.td | 72 +- lib/Target/R600/AMDGPUAsmPrinter.cpp | 275 +- lib/Target/R600/AMDGPUAsmPrinter.h | 8 +- lib/Target/R600/AMDGPUFrameLowering.cpp | 5 +- lib/Target/R600/AMDGPUFrameLowering.h | 2 +- lib/Target/R600/AMDGPUISelDAGToDAG.cpp | 501 +- lib/Target/R600/AMDGPUISelLowering.cpp | 454 +- lib/Target/R600/AMDGPUISelLowering.h | 21 +- lib/Target/R600/AMDGPUInstrInfo.cpp | 37 +- lib/Target/R600/AMDGPUInstrInfo.h | 13 +- lib/Target/R600/AMDGPUInstrInfo.td | 24 +- lib/Target/R600/AMDGPUInstructions.td | 89 +- lib/Target/R600/AMDGPUMCInstLower.cpp | 41 +- lib/Target/R600/AMDGPUMachineFunction.cpp | 4 +- lib/Target/R600/AMDGPUPromoteAlloca.cpp | 28 +- lib/Target/R600/AMDGPURegisterInfo.cpp | 5 +- lib/Target/R600/AMDGPURegisterInfo.h | 3 +- lib/Target/R600/AMDGPUSubtarget.cpp | 43 +- lib/Target/R600/AMDGPUSubtarget.h | 35 +- lib/Target/R600/AMDGPUTargetMachine.cpp | 242 +- lib/Target/R600/AMDGPUTargetMachine.h | 26 +- lib/Target/R600/AMDGPUTargetTransformInfo.cpp | 97 +- lib/Target/R600/AMDGPUTargetTransformInfo.h | 78 + lib/Target/R600/AMDILCFGStructurizer.cpp | 26 +- lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp | 1217 +- lib/Target/R600/CIInstructions.td | 6 +- lib/Target/R600/CMakeLists.txt | 1 + lib/Target/R600/CaymanInstructions.td | 2 +- lib/Target/R600/EvergreenInstructions.td | 20 +- .../R600/InstPrinter/AMDGPUInstPrinter.cpp | 35 +- .../R600/InstPrinter/AMDGPUInstPrinter.h | 7 +- .../R600/MCTargetDesc/AMDGPUAsmBackend.cpp | 11 +- .../MCTargetDesc/AMDGPUELFObjectWriter.cpp | 2 +- .../R600/MCTargetDesc/AMDGPUMCTargetDesc.cpp | 63 +- .../R600/MCTargetDesc/AMDGPUMCTargetDesc.h | 7 +- .../R600/MCTargetDesc/R600MCCodeEmitter.cpp | 16 +- .../R600/MCTargetDesc/SIMCCodeEmitter.cpp | 145 +- lib/Target/R600/Processors.td | 27 +- lib/Target/R600/R600ClauseMergePass.cpp | 2 +- lib/Target/R600/R600ControlFlowFinalizer.cpp | 46 +- lib/Target/R600/R600ISelLowering.cpp | 320 +- lib/Target/R600/R600ISelLowering.h | 7 +- lib/Target/R600/R600InstrInfo.cpp | 14 +- lib/Target/R600/R600Instructions.td | 32 +- lib/Target/R600/R600MachineScheduler.cpp | 7 +- .../R600/R600OptimizeVectorRegisters.cpp | 4 +- lib/Target/R600/R600Packetizer.cpp | 2 +- lib/Target/R600/R600RegisterInfo.cpp | 10 +- lib/Target/R600/R600RegisterInfo.h | 2 +- .../R600/R600TextureIntrinsicsReplacer.cpp | 4 +- lib/Target/R600/R700Instructions.td | 2 +- lib/Target/R600/SIAnnotateControlFlow.cpp | 7 +- lib/Target/R600/SIDefines.h | 3 +- .../R600/SIFixControlFlowLiveIntervals.cpp | 96 + lib/Target/R600/SIFixSGPRCopies.cpp | 14 +- lib/Target/R600/SIFixSGPRLiveRanges.cpp | 1 + lib/Target/R600/SIFoldOperands.cpp | 15 +- lib/Target/R600/SIISelLowering.cpp | 513 +- lib/Target/R600/SIISelLowering.h | 14 +- lib/Target/R600/SIInsertWaits.cpp | 6 +- lib/Target/R600/SIInstrFormats.td | 288 +- lib/Target/R600/SIInstrInfo.cpp | 299 +- lib/Target/R600/SIInstrInfo.h | 25 +- lib/Target/R600/SIInstrInfo.td | 1185 +- lib/Target/R600/SIInstructions.td | 771 +- lib/Target/R600/SILoadStoreOptimizer.cpp | 67 +- lib/Target/R600/SIMachineFunctionInfo.cpp | 6 +- lib/Target/R600/SIPrepareScratchRegs.cpp | 116 +- lib/Target/R600/SIRegisterInfo.cpp | 34 +- lib/Target/R600/SIRegisterInfo.h | 5 +- lib/Target/R600/SIRegisterInfo.td | 65 +- lib/Target/R600/SIShrinkInstructions.cpp | 25 +- lib/Target/R600/SITypeRewriter.cpp | 5 +- lib/Target/R600/VIInstrFormats.td | 9 +- lib/Target/R600/VIInstructions.td | 81 + lib/Target/README.txt | 41 +- lib/Target/Sparc/AsmParser/SparcAsmParser.cpp | 158 +- lib/Target/Sparc/DelaySlotFiller.cpp | 17 +- .../Sparc/Disassembler/SparcDisassembler.cpp | 88 +- .../Sparc/InstPrinter/SparcInstPrinter.cpp | 48 +- .../Sparc/InstPrinter/SparcInstPrinter.h | 40 +- .../Sparc/MCTargetDesc/SparcAsmBackend.cpp | 71 +- .../MCTargetDesc/SparcELFObjectWriter.cpp | 8 +- .../Sparc/MCTargetDesc/SparcMCAsmInfo.cpp | 7 +- .../Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp | 47 +- lib/Target/Sparc/MCTargetDesc/SparcMCExpr.h | 6 +- .../Sparc/MCTargetDesc/SparcMCTargetDesc.cpp | 121 +- .../Sparc/MCTargetDesc/SparcMCTargetDesc.h | 14 +- lib/Target/Sparc/Sparc.td | 7 + lib/Target/Sparc/SparcAsmPrinter.cpp | 85 +- lib/Target/Sparc/SparcFrameLowering.cpp | 12 +- lib/Target/Sparc/SparcFrameLowering.h | 2 +- lib/Target/Sparc/SparcISelDAGToDAG.cpp | 44 +- lib/Target/Sparc/SparcISelLowering.cpp | 194 +- lib/Target/Sparc/SparcISelLowering.h | 10 +- lib/Target/Sparc/SparcInstr64Bit.td | 15 +- lib/Target/Sparc/SparcInstrAliases.td | 12 + lib/Target/Sparc/SparcInstrFormats.td | 17 +- lib/Target/Sparc/SparcInstrInfo.cpp | 5 +- lib/Target/Sparc/SparcInstrInfo.h | 2 + lib/Target/Sparc/SparcInstrInfo.td | 143 +- lib/Target/Sparc/SparcMCInstLower.cpp | 6 +- lib/Target/Sparc/SparcRegisterInfo.cpp | 16 +- lib/Target/Sparc/SparcRegisterInfo.h | 15 +- lib/Target/Sparc/SparcRegisterInfo.td | 41 + lib/Target/Sparc/SparcSelectionDAGInfo.h | 2 +- lib/Target/Sparc/SparcSubtarget.cpp | 30 +- lib/Target/Sparc/SparcSubtarget.h | 2 - lib/Target/Sparc/SparcTargetMachine.cpp | 60 +- lib/Target/Sparc/SparcTargetMachine.h | 19 +- .../Sparc/TargetInfo/SparcTargetInfo.cpp | 11 +- .../SystemZ/AsmParser/SystemZAsmParser.cpp | 311 +- lib/Target/SystemZ/CMakeLists.txt | 2 + .../Disassembler/SystemZDisassembler.cpp | 118 +- .../InstPrinter/SystemZInstPrinter.cpp | 118 +- .../SystemZ/InstPrinter/SystemZInstPrinter.h | 9 +- lib/Target/SystemZ/LLVMBuild.txt | 2 +- .../MCTargetDesc/SystemZMCAsmBackend.cpp | 10 +- .../MCTargetDesc/SystemZMCCodeEmitter.cpp | 59 +- .../SystemZ/MCTargetDesc/SystemZMCFixups.h | 3 +- .../MCTargetDesc/SystemZMCObjectWriter.cpp | 52 +- .../MCTargetDesc/SystemZMCTargetDesc.cpp | 60 +- .../MCTargetDesc/SystemZMCTargetDesc.h | 12 +- lib/Target/SystemZ/SystemZ.h | 27 + lib/Target/SystemZ/SystemZ.td | 1 + lib/Target/SystemZ/SystemZAsmPrinter.cpp | 135 +- lib/Target/SystemZ/SystemZAsmPrinter.h | 10 +- lib/Target/SystemZ/SystemZCallingConv.h | 61 + lib/Target/SystemZ/SystemZCallingConv.td | 42 +- .../SystemZ/SystemZConstantPoolValue.cpp | 5 + lib/Target/SystemZ/SystemZConstantPoolValue.h | 8 +- lib/Target/SystemZ/SystemZElimCompare.cpp | 2 +- lib/Target/SystemZ/SystemZFrameLowering.cpp | 5 +- lib/Target/SystemZ/SystemZFrameLowering.h | 2 +- lib/Target/SystemZ/SystemZISelDAGToDAG.cpp | 230 +- lib/Target/SystemZ/SystemZISelLowering.cpp | 2510 +- lib/Target/SystemZ/SystemZISelLowering.h | 215 +- lib/Target/SystemZ/SystemZInstrFP.td | 20 +- lib/Target/SystemZ/SystemZInstrFormats.td | 864 +- lib/Target/SystemZ/SystemZInstrInfo.cpp | 70 +- lib/Target/SystemZ/SystemZInstrInfo.h | 15 +- lib/Target/SystemZ/SystemZInstrInfo.td | 85 +- lib/Target/SystemZ/SystemZInstrVector.td | 1097 + lib/Target/SystemZ/SystemZLDCleanup.cpp | 143 + lib/Target/SystemZ/SystemZMCInstLower.cpp | 9 +- .../SystemZ/SystemZMachineFunctionInfo.h | 8 +- lib/Target/SystemZ/SystemZOperands.td | 137 +- lib/Target/SystemZ/SystemZOperators.td | 278 + lib/Target/SystemZ/SystemZPatterns.td | 14 + lib/Target/SystemZ/SystemZProcessors.td | 46 +- lib/Target/SystemZ/SystemZRegisterInfo.cpp | 3 +- lib/Target/SystemZ/SystemZRegisterInfo.h | 6 +- lib/Target/SystemZ/SystemZRegisterInfo.td | 147 +- .../SystemZ/SystemZSelectionDAGInfo.cpp | 47 +- lib/Target/SystemZ/SystemZShortenInst.cpp | 139 +- lib/Target/SystemZ/SystemZSubtarget.cpp | 19 +- lib/Target/SystemZ/SystemZSubtarget.h | 24 +- lib/Target/SystemZ/SystemZTargetMachine.cpp | 72 +- lib/Target/SystemZ/SystemZTargetMachine.h | 5 +- .../SystemZ/SystemZTargetTransformInfo.cpp | 258 + .../SystemZ/SystemZTargetTransformInfo.h | 78 + lib/Target/Target.cpp | 21 +- lib/Target/TargetLoweringObjectFile.cpp | 61 +- lib/Target/TargetMachine.cpp | 71 +- lib/Target/TargetMachineC.cpp | 52 +- lib/Target/TargetSubtargetInfo.cpp | 20 +- .../X86/AsmParser/X86AsmInstrumentation.cpp | 37 +- lib/Target/X86/AsmParser/X86AsmParser.cpp | 173 +- lib/Target/X86/AsmParser/X86AsmParserCommon.h | 5 + lib/Target/X86/AsmParser/X86Operand.h | 54 +- lib/Target/X86/CMakeLists.txt | 5 +- .../X86/Disassembler/X86Disassembler.cpp | 304 +- .../Disassembler/X86DisassemblerDecoder.cpp | 26 +- .../X86DisassemblerDecoderCommon.h | 14 +- .../X86/InstPrinter/X86ATTInstPrinter.cpp | 82 +- .../X86/InstPrinter/X86ATTInstPrinter.h | 16 +- .../X86/InstPrinter/X86InstComments.cpp | 319 +- .../X86/InstPrinter/X86IntelInstPrinter.cpp | 36 +- .../X86/InstPrinter/X86IntelInstPrinter.h | 8 +- lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp | 35 +- lib/Target/X86/MCTargetDesc/X86BaseInfo.h | 34 +- .../X86/MCTargetDesc/X86ELFObjectWriter.cpp | 431 +- .../X86/MCTargetDesc/X86ELFRelocationInfo.cpp | 4 +- lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp | 7 +- .../X86/MCTargetDesc/X86MCCodeEmitter.cpp | 116 +- .../X86/MCTargetDesc/X86MCTargetDesc.cpp | 242 +- lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h | 51 +- .../MCTargetDesc/X86MachORelocationInfo.cpp | 8 +- .../X86/MCTargetDesc/X86MachObjectWriter.cpp | 193 +- .../MCTargetDesc/X86WinCOFFObjectWriter.cpp | 10 +- .../X86/MCTargetDesc/X86WinCOFFStreamer.cpp | 12 +- lib/Target/X86/README-SSE.txt | 78 - lib/Target/X86/Utils/X86ShuffleDecode.cpp | 84 +- lib/Target/X86/Utils/X86ShuffleDecode.h | 12 + lib/Target/X86/X86.h | 19 +- lib/Target/X86/X86.td | 30 +- lib/Target/X86/X86AsmPrinter.cpp | 146 +- lib/Target/X86/X86AsmPrinter.h | 13 +- lib/Target/X86/X86CallFrameOptimization.cpp | 480 + lib/Target/X86/X86CallingConv.td | 141 +- lib/Target/X86/X86ExpandPseudo.cpp | 189 + lib/Target/X86/X86FastISel.cpp | 394 +- lib/Target/X86/X86FixupLEAs.cpp | 11 +- lib/Target/X86/X86FloatingPoint.cpp | 16 +- lib/Target/X86/X86FrameLowering.cpp | 894 +- lib/Target/X86/X86FrameLowering.h | 41 +- lib/Target/X86/X86ISelDAGToDAG.cpp | 239 +- lib/Target/X86/X86ISelLowering.cpp | 9372 ++- lib/Target/X86/X86ISelLowering.h | 221 +- lib/Target/X86/X86InstrAVX512.td | 2502 +- lib/Target/X86/X86InstrArithmetic.td | 8 +- lib/Target/X86/X86InstrCompiler.td | 222 +- lib/Target/X86/X86InstrControl.td | 38 +- lib/Target/X86/X86InstrExtension.td | 4 +- lib/Target/X86/X86InstrFMA.td | 9 +- lib/Target/X86/X86InstrFPStack.td | 20 +- lib/Target/X86/X86InstrFormats.td | 72 +- lib/Target/X86/X86InstrFragmentsSIMD.td | 206 +- lib/Target/X86/X86InstrInfo.cpp | 926 +- lib/Target/X86/X86InstrInfo.h | 26 +- lib/Target/X86/X86InstrInfo.td | 122 +- lib/Target/X86/X86InstrMMX.td | 68 +- lib/Target/X86/X86InstrSGX.td | 4 +- lib/Target/X86/X86InstrSSE.td | 2047 +- lib/Target/X86/X86InstrShiftRotate.td | 4 +- lib/Target/X86/X86InstrSystem.td | 38 +- lib/Target/X86/X86InstrXOP.td | 218 +- lib/Target/X86/X86IntrinsicsInfo.h | 474 +- lib/Target/X86/X86MCInstLower.cpp | 292 +- lib/Target/X86/X86MachineFunctionInfo.h | 20 +- lib/Target/X86/X86PadShortFunction.cpp | 20 +- lib/Target/X86/X86RegisterInfo.cpp | 112 +- lib/Target/X86/X86RegisterInfo.h | 17 +- lib/Target/X86/X86RegisterInfo.td | 20 +- lib/Target/X86/X86SchedHaswell.td | 6 +- lib/Target/X86/X86SelectionDAGInfo.cpp | 55 +- lib/Target/X86/X86Subtarget.cpp | 51 +- lib/Target/X86/X86Subtarget.h | 132 +- lib/Target/X86/X86TargetMachine.cpp | 115 +- lib/Target/X86/X86TargetMachine.h | 14 +- lib/Target/X86/X86TargetObjectFile.cpp | 44 +- lib/Target/X86/X86TargetObjectFile.h | 23 +- lib/Target/X86/X86TargetTransformInfo.cpp | 326 +- lib/Target/X86/X86TargetTransformInfo.h | 112 + lib/Target/X86/X86VZeroUpper.cpp | 16 +- lib/Target/X86/X86WinEHState.cpp | 374 + lib/Target/XCore/CMakeLists.txt | 1 - .../XCore/Disassembler/XCoreDisassembler.cpp | 18 +- .../XCore/InstPrinter/XCoreInstPrinter.cpp | 2 +- .../XCore/InstPrinter/XCoreInstPrinter.h | 3 +- .../XCore/MCTargetDesc/XCoreMCTargetDesc.cpp | 24 +- .../XCore/MCTargetDesc/XCoreMCTargetDesc.h | 2 + .../XCore/TargetInfo/XCoreTargetInfo.cpp | 2 +- lib/Target/XCore/XCore.h | 2 - lib/Target/XCore/XCoreAsmPrinter.cpp | 49 +- lib/Target/XCore/XCoreFrameLowering.cpp | 14 +- lib/Target/XCore/XCoreFrameLowering.h | 3 +- lib/Target/XCore/XCoreISelDAGToDAG.cpp | 25 +- lib/Target/XCore/XCoreISelLowering.cpp | 160 +- lib/Target/XCore/XCoreISelLowering.h | 11 +- lib/Target/XCore/XCoreInstrInfo.td | 11 +- lib/Target/XCore/XCoreLowerThreadLocal.cpp | 12 +- lib/Target/XCore/XCoreMCInstLower.cpp | 8 +- lib/Target/XCore/XCoreRegisterInfo.cpp | 4 +- lib/Target/XCore/XCoreRegisterInfo.h | 3 +- lib/Target/XCore/XCoreSubtarget.cpp | 5 +- lib/Target/XCore/XCoreSubtarget.h | 2 - lib/Target/XCore/XCoreTargetMachine.cpp | 16 +- lib/Target/XCore/XCoreTargetMachine.h | 7 +- lib/Target/XCore/XCoreTargetObjectFile.cpp | 107 +- lib/Target/XCore/XCoreTargetObjectFile.h | 27 +- lib/Target/XCore/XCoreTargetStreamer.h | 2 +- lib/Target/XCore/XCoreTargetTransformInfo.cpp | 80 - lib/Target/XCore/XCoreTargetTransformInfo.h | 72 + lib/Transforms/IPO/ArgumentPromotion.cpp | 108 +- lib/Transforms/IPO/CMakeLists.txt | 5 + lib/Transforms/IPO/ConstantMerge.cpp | 25 +- .../IPO/DeadArgumentElimination.cpp | 198 +- lib/Transforms/IPO/FunctionAttrs.cpp | 18 +- lib/Transforms/IPO/GlobalDCE.cpp | 26 +- lib/Transforms/IPO/GlobalOpt.cpp | 125 +- lib/Transforms/IPO/IPO.cpp | 3 +- lib/Transforms/IPO/Inliner.cpp | 145 +- lib/Transforms/IPO/LLVMBuild.txt | 2 +- lib/Transforms/IPO/LoopExtractor.cpp | 2 +- lib/Transforms/IPO/LowerBitSets.cpp | 732 + lib/Transforms/IPO/MergeFunctions.cpp | 66 +- lib/Transforms/IPO/PartialInlining.cpp | 10 +- lib/Transforms/IPO/PassManagerBuilder.cpp | 114 +- lib/Transforms/IPO/PruneEH.cpp | 4 +- lib/Transforms/IPO/StripSymbols.cpp | 24 +- lib/Transforms/InstCombine/CMakeLists.txt | 4 + .../InstCombine/InstCombineAddSub.cpp | 117 +- .../InstCombine/InstCombineAndOrXor.cpp | 53 +- .../InstCombine/InstCombineCalls.cpp | 390 +- .../InstCombine/InstCombineCasts.cpp | 262 +- .../InstCombine/InstCombineCompares.cpp | 231 +- .../{InstCombine.h => InstCombineInternal.h} | 305 +- .../InstCombineLoadStoreAlloca.cpp | 553 +- .../InstCombine/InstCombineMulDivRem.cpp | 46 +- lib/Transforms/InstCombine/InstCombinePHI.cpp | 17 +- .../InstCombine/InstCombineSelect.cpp | 347 +- .../InstCombine/InstCombineShifts.cpp | 31 +- .../InstCombineSimplifyDemanded.cpp | 278 +- .../InstCombine/InstCombineVectorOps.cpp | 129 +- .../InstCombine/InstructionCombining.cpp | 820 +- lib/Transforms/InstCombine/LLVMBuild.txt | 2 +- .../Instrumentation/AddressSanitizer.cpp | 950 +- .../Instrumentation/BoundsChecking.cpp | 32 +- lib/Transforms/Instrumentation/CMakeLists.txt | 3 + .../Instrumentation/DataFlowSanitizer.cpp | 156 +- .../Instrumentation/GCOVProfiling.cpp | 142 +- .../Instrumentation/InstrProfiling.cpp | 33 +- lib/Transforms/Instrumentation/LLVMBuild.txt | 2 +- .../Instrumentation/MemorySanitizer.cpp | 413 +- .../Instrumentation/SanitizerCoverage.cpp | 334 +- .../Instrumentation/ThreadSanitizer.cpp | 201 +- lib/Transforms/ObjCARC/ARCInstKind.cpp | 673 + lib/Transforms/ObjCARC/ARCInstKind.h | 123 + .../ObjCARC/ARCRuntimeEntryPoints.h | 50 +- lib/Transforms/ObjCARC/BlotMapVector.h | 108 + lib/Transforms/ObjCARC/CMakeLists.txt | 6 +- lib/Transforms/ObjCARC/DependencyAnalysis.cpp | 101 +- lib/Transforms/ObjCARC/DependencyAnalysis.h | 21 +- lib/Transforms/ObjCARC/ObjCARC.h | 266 +- lib/Transforms/ObjCARC/ObjCARCAPElim.cpp | 8 +- .../ObjCARC/ObjCARCAliasAnalysis.cpp | 37 +- lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h | 4 +- lib/Transforms/ObjCARC/ObjCARCContract.cpp | 501 +- lib/Transforms/ObjCARC/ObjCARCExpand.cpp | 14 +- lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 1528 +- lib/Transforms/ObjCARC/ObjCARCUtil.cpp | 254 - lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp | 31 +- lib/Transforms/ObjCARC/ProvenanceAnalysis.h | 9 +- .../ObjCARC/ProvenanceAnalysisEvaluator.cpp | 4 +- lib/Transforms/ObjCARC/PtrState.cpp | 404 + lib/Transforms/ObjCARC/PtrState.h | 210 + lib/Transforms/Scalar/ADCE.cpp | 74 +- .../Scalar/AlignmentFromAssumptions.cpp | 19 +- lib/Transforms/Scalar/BDCE.cpp | 410 + lib/Transforms/Scalar/CMakeLists.txt | 15 + lib/Transforms/Scalar/ConstantHoisting.cpp | 10 +- lib/Transforms/Scalar/ConstantProp.cpp | 13 +- .../Scalar/CorrelatedValuePropagation.cpp | 47 +- lib/Transforms/Scalar/DCE.cpp | 8 +- .../Scalar/DeadStoreElimination.cpp | 68 +- lib/Transforms/Scalar/EarlyCSE.cpp | 646 +- lib/Transforms/Scalar/Float2Int.cpp | 540 + lib/Transforms/Scalar/GVN.cpp | 366 +- lib/Transforms/Scalar/IndVarSimplify.cpp | 176 +- .../Scalar/InductiveRangeCheckElimination.cpp | 1495 + lib/Transforms/Scalar/JumpThreading.cpp | 40 +- lib/Transforms/Scalar/LICM.cpp | 439 +- lib/Transforms/Scalar/LLVMBuild.txt | 2 +- lib/Transforms/Scalar/LoadCombine.cpp | 39 +- lib/Transforms/Scalar/LoopDeletion.cpp | 8 +- lib/Transforms/Scalar/LoopDistribute.cpp | 976 + lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 146 +- lib/Transforms/Scalar/LoopInstSimplify.cpp | 18 +- lib/Transforms/Scalar/LoopInterchange.cpp | 1300 + lib/Transforms/Scalar/LoopRerollPass.cpp | 1311 +- lib/Transforms/Scalar/LoopRotation.cpp | 93 +- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 381 +- lib/Transforms/Scalar/LoopUnrollPass.cpp | 597 +- lib/Transforms/Scalar/LoopUnswitch.cpp | 55 +- .../LowerExpectIntrinsic.cpp | 118 +- lib/Transforms/Scalar/MemCpyOptimizer.cpp | 226 +- .../Scalar/MergedLoadStoreMotion.cpp | 11 +- lib/Transforms/Scalar/NaryReassociate.cpp | 481 + .../Scalar/PartiallyInlineLibCalls.cpp | 14 +- lib/Transforms/Scalar/PlaceSafepoints.cpp | 993 + lib/Transforms/Scalar/Reassociate.cpp | 114 +- .../Scalar/RewriteStatepointsForGC.cpp | 2506 + lib/Transforms/Scalar/SCCP.cpp | 29 +- lib/Transforms/Scalar/SROA.cpp | 195 +- lib/Transforms/Scalar/SampleProfile.cpp | 22 +- lib/Transforms/Scalar/Scalar.cpp | 21 +- .../Scalar/ScalarReplAggregates.cpp | 211 +- lib/Transforms/Scalar/Scalarizer.cpp | 28 +- .../Scalar/SeparateConstOffsetFromGEP.cpp | 199 +- lib/Transforms/Scalar/SimplifyCFGPass.cpp | 112 +- lib/Transforms/Scalar/Sink.cpp | 14 +- .../Scalar/SpeculativeExecution.cpp | 243 + .../Scalar/StraightLineStrengthReduce.cpp | 710 + lib/Transforms/Scalar/StructurizeCFG.cpp | 77 +- .../Scalar/TailRecursionElimination.cpp | 76 +- lib/Transforms/Utils/ASanStackFrameLayout.cpp | 8 +- lib/Transforms/Utils/AddDiscriminators.cpp | 45 +- lib/Transforms/Utils/BasicBlockUtils.cpp | 211 +- lib/Transforms/Utils/BreakCriticalEdges.cpp | 63 +- lib/Transforms/Utils/BuildLibCalls.cpp | 161 +- lib/Transforms/Utils/CMakeLists.txt | 6 +- lib/Transforms/Utils/CloneFunction.cpp | 224 +- lib/Transforms/Utils/CloneModule.cpp | 4 +- lib/Transforms/Utils/CodeExtractor.cpp | 30 +- lib/Transforms/Utils/CtorUtils.cpp | 3 +- lib/Transforms/Utils/DemoteRegToStack.cpp | 34 +- lib/Transforms/Utils/GlobalStatus.cpp | 2 +- lib/Transforms/Utils/InlineFunction.cpp | 234 +- lib/Transforms/Utils/IntegerDivision.cpp | 4 +- lib/Transforms/Utils/LCSSA.cpp | 32 +- lib/Transforms/Utils/LLVMBuild.txt | 2 +- lib/Transforms/Utils/Local.cpp | 147 +- lib/Transforms/Utils/LoopSimplify.cpp | 80 +- lib/Transforms/Utils/LoopUnroll.cpp | 51 +- lib/Transforms/Utils/LoopUnrollRuntime.cpp | 46 +- lib/Transforms/Utils/LoopUtils.cpp | 499 + lib/Transforms/Utils/LowerSwitch.cpp | 236 +- lib/Transforms/Utils/ModuleUtils.cpp | 32 + .../Utils/PromoteMemoryToRegister.cpp | 164 +- lib/Transforms/Utils/SSAUpdater.cpp | 51 +- lib/Transforms/Utils/SimplifyCFG.cpp | 661 +- lib/Transforms/Utils/SimplifyIndVar.cpp | 130 +- lib/Transforms/Utils/SimplifyInstructions.cpp | 12 +- lib/Transforms/Utils/SimplifyLibCalls.cpp | 348 +- lib/Transforms/Utils/SymbolRewriter.cpp | 15 +- lib/Transforms/Utils/ValueMapper.cpp | 219 +- lib/Transforms/Vectorize/BBVectorize.cpp | 72 +- lib/Transforms/Vectorize/CMakeLists.txt | 3 + lib/Transforms/Vectorize/LLVMBuild.txt | 2 +- lib/Transforms/Vectorize/LoopVectorize.cpp | 2710 +- lib/Transforms/Vectorize/SLPVectorizer.cpp | 521 +- lib/Transforms/Vectorize/Vectorize.cpp | 2 +- projects/CMakeLists.txt | 8 +- test/Analysis/AssumptionCache/basic.ll | 22 + .../BasicAA/2003-02-26-AccessSizeTest.ll | 8 +- test/Analysis/BasicAA/2003-03-04-GEPCrash.ll | 4 +- .../Analysis/BasicAA/2003-04-22-GEPProblem.ll | 8 +- test/Analysis/BasicAA/2003-04-25-GEPCrash.ll | 4 +- .../BasicAA/2003-05-21-GEP-Problem.ll | 6 +- .../Analysis/BasicAA/2003-06-01-AliasCrash.ll | 12 +- .../BasicAA/2003-07-03-BasicAACrash.ll | 4 +- .../BasicAA/2003-09-19-LocalArgument.ll | 4 +- .../BasicAA/2003-11-04-SimpleCases.ll | 14 +- .../BasicAA/2003-12-11-ConstExprGEP.ll | 12 +- .../BasicAA/2004-07-28-MustAliasbug.ll | 6 +- .../BasicAA/2006-03-03-BadArraySubscript.ll | 14 +- .../BasicAA/2006-11-03-BasicAAVectorCrash.ll | 4 +- .../2007-01-13-BasePointerBadNoAlias.ll | 8 +- .../BasicAA/2007-08-01-NoAliasAndGEP.ll | 14 +- .../BasicAA/2007-08-05-GetOverloadedModRef.ll | 6 +- .../BasicAA/2007-10-24-ArgumentsGlobals.ll | 6 +- test/Analysis/BasicAA/2007-11-05-SizeCrash.ll | 8 +- .../BasicAA/2007-12-08-OutOfBoundsCrash.ll | 8 +- test/Analysis/BasicAA/2008-04-15-Byval.ll | 6 +- .../BasicAA/2008-06-02-GEPTailCrash.ll | 4 +- .../Analysis/BasicAA/2008-11-23-NoaliasRet.ll | 2 +- .../Analysis/BasicAA/2009-03-04-GEPNoalias.ll | 6 +- .../BasicAA/2009-10-13-AtomicModRef.ll | 8 +- .../BasicAA/2009-10-13-GEP-BaseNoAlias.ll | 6 +- .../2010-09-15-GEP-SignedArithmetic.ll | 6 +- .../BasicAA/2014-03-18-Maxlookup-reached.ll | 22 +- test/Analysis/BasicAA/aligned-overread.ll | 8 +- .../BasicAA/args-rets-allocas-loads.ll | 4 +- test/Analysis/BasicAA/byval.ll | 6 +- test/Analysis/BasicAA/cas.ll | 4 +- test/Analysis/BasicAA/constant-over-index.ll | 11 +- test/Analysis/BasicAA/cs-cs.ll | 10 +- test/Analysis/BasicAA/dag.ll | 2 +- test/Analysis/BasicAA/featuretest.ll | 50 +- .../BasicAA/full-store-partial-alias.ll | 8 +- test/Analysis/BasicAA/gcsetest.ll | 10 +- test/Analysis/BasicAA/gep-alias.ll | 110 +- test/Analysis/BasicAA/global-size.ll | 16 +- test/Analysis/BasicAA/intrinsics.ll | 4 +- test/Analysis/BasicAA/invariant_load.ll | 6 +- test/Analysis/BasicAA/memset_pattern.ll | 2 +- test/Analysis/BasicAA/modref.ll | 36 +- test/Analysis/BasicAA/must-and-partial.ll | 8 +- test/Analysis/BasicAA/no-escape-call.ll | 10 +- test/Analysis/BasicAA/noalias-bugs.ll | 10 +- test/Analysis/BasicAA/noalias-geps.ll | 32 +- test/Analysis/BasicAA/noalias-param.ll | 4 +- test/Analysis/BasicAA/nocapture.ll | 10 +- test/Analysis/BasicAA/phi-aa.ll | 16 +- test/Analysis/BasicAA/phi-spec-order.ll | 26 +- test/Analysis/BasicAA/phi-speculation.ll | 28 +- test/Analysis/BasicAA/pr18573.ll | 8 +- test/Analysis/BasicAA/store-promote.ll | 14 +- test/Analysis/BasicAA/struct-geps.ll | 164 + test/Analysis/BasicAA/tailcall-modref.ll | 4 +- test/Analysis/BasicAA/underlying-value.ll | 8 +- test/Analysis/BasicAA/unreachable-block.ll | 2 +- test/Analysis/BasicAA/zext.ll | 64 +- test/Analysis/BlockFrequencyInfo/bad_input.ll | 3 +- test/Analysis/BlockFrequencyInfo/basic.ll | 4 +- .../loops_with_profile_info.ll | 204 + test/Analysis/BranchProbabilityInfo/basic.ll | 40 +- test/Analysis/BranchProbabilityInfo/loop.ll | 20 +- .../Analysis/BranchProbabilityInfo/pr18705.ll | 18 +- .../Analysis/BranchProbabilityInfo/pr22718.ll | 84 + .../CFLAliasAnalysis/asm-global-bugfix.ll | 16 + .../Analysis/CFLAliasAnalysis/branch-alias.ll | 73 + .../CFLAliasAnalysis/const-expr-gep.ll | 48 +- .../CFLAliasAnalysis/constant-over-index.ll | 4 +- .../full-store-partial-alias.ll | 16 +- .../CFLAliasAnalysis/gep-signed-arithmetic.ll | 12 +- .../CFLAliasAnalysis/multilevel-combine.ll | 2 +- test/Analysis/CFLAliasAnalysis/multilevel.ll | 4 +- .../CFLAliasAnalysis/must-and-partial.ll | 33 +- test/Analysis/CFLAliasAnalysis/simple.ll | 10 +- .../stratified-attrs-indexing.ll | 33 + .../CallGraph/2008-09-09-DirectCall.ll | 2 +- test/Analysis/CostModel/AArch64/store.ll | 4 +- test/Analysis/CostModel/ARM/gep.ll | 48 +- test/Analysis/CostModel/ARM/insertelement.ll | 12 +- test/Analysis/CostModel/PowerPC/load_store.ll | 16 +- test/Analysis/CostModel/X86/gep.ll | 48 +- test/Analysis/CostModel/X86/intrinsic-cost.ll | 16 +- test/Analysis/CostModel/X86/load_store.ll | 34 +- test/Analysis/CostModel/X86/loop_v2.ll | 12 +- .../CostModel/X86/masked-intrinsic-cost.ll | 89 + test/Analysis/CostModel/X86/testshiftlshr.ll | 16 +- test/Analysis/CostModel/X86/testshiftshl.ll | 16 +- .../Analysis/CostModel/X86/vectorized-loop.ll | 16 +- test/Analysis/CostModel/X86/vselect-cost.ll | 28 +- test/Analysis/CostModel/no_info.ll | 7 +- test/Analysis/Delinearization/a.ll | 4 +- .../Analysis/Delinearization/divide_by_one.ll | 70 + .../Delinearization/gcd_multiply_expr.ll | 46 +- test/Analysis/Delinearization/himeno_1.ll | 28 +- test/Analysis/Delinearization/himeno_2.ll | 28 +- .../iv_times_constant_in_subscript.ll | 6 +- .../multidim_ivs_and_integer_offsets_3d.ll | 4 +- ...multidim_ivs_and_integer_offsets_nts_3d.ll | 4 +- ...multidim_ivs_and_parameteric_offsets_3d.ll | 4 +- .../Delinearization/multidim_only_ivs_2d.ll | 12 +- .../multidim_only_ivs_2d_nested.ll | 2 +- .../Delinearization/multidim_only_ivs_3d.ll | 4 +- .../multidim_only_ivs_3d_cast.ll | 2 +- ..._two_accesses_different_delinearization.ll | 4 +- .../Analysis/Delinearization/type_mismatch.ll | 29 + test/Analysis/Delinearization/undef.ll | 4 +- test/Analysis/DependenceAnalysis/Banerjee.ll | 130 +- .../DependenceAnalysis/Constraints.ll | 103 + test/Analysis/DependenceAnalysis/Coupled.ll | 128 +- test/Analysis/DependenceAnalysis/ExactRDIV.ll | 112 +- test/Analysis/DependenceAnalysis/ExactSIV.ll | 112 +- test/Analysis/DependenceAnalysis/GCD.ll | 100 +- test/Analysis/DependenceAnalysis/Invariant.ll | 8 +- .../NonCanonicalizedSubscript.ll | 6 +- test/Analysis/DependenceAnalysis/PR21585.ll | 105 + .../DependenceAnalysis/Preliminary.ll | 86 +- .../DependenceAnalysis/Propagating.ll | 102 +- .../DependenceAnalysis/Separability.ll | 56 +- test/Analysis/DependenceAnalysis/StrongSIV.ll | 88 +- .../DependenceAnalysis/SymbolicRDIV.ll | 58 +- .../DependenceAnalysis/SymbolicSIV.ll | 72 +- test/Analysis/DependenceAnalysis/UsefulGEP.ll | 51 + .../DependenceAnalysis/WeakCrossingSIV.ll | 56 +- .../DependenceAnalysis/WeakZeroDstSIV.ll | 56 +- .../DependenceAnalysis/WeakZeroSrcSIV.ll | 56 +- test/Analysis/DependenceAnalysis/ZIV.ll | 18 +- .../DivergenceAnalysis/NVPTX/diverge.ll | 198 + .../DivergenceAnalysis/NVPTX/lit.local.cfg | 2 + test/Analysis/Dominators/invoke.ll | 2 +- .../GlobalsModRef/2008-09-03-ReadGlobals.ll | 2 +- test/Analysis/GlobalsModRef/aliastest.ll | 2 +- .../GlobalsModRef/chaining-analysis.ll | 2 +- .../Analysis/GlobalsModRef/indirect-global.ll | 8 +- test/Analysis/GlobalsModRef/modreftest.ll | 2 +- test/Analysis/GlobalsModRef/pr12351.ll | 6 +- .../Analysis/GlobalsModRef/volatile-instrs.ll | 4 +- test/Analysis/LazyCallGraph/basic.ll | 10 +- .../Lint/cppeh-catch-intrinsics-clean.ll | 109 + test/Analysis/Lint/cppeh-catch-intrinsics.ll | 278 + .../backward-dep-different-types.ll | 49 + .../resort-to-memchecks-only.ll | 57 + .../LoopAccessAnalysis/safe-no-checks.ll | 43 + .../store-to-invariant-check1.ll | 53 + .../store-to-invariant-check2.ll | 54 + .../store-to-invariant-check3.ll | 53 + .../underlying-objects-1.ll | 47 + .../underlying-objects-2.ll | 90 + .../unsafe-and-rt-checks.ll | 58 + .../LoopInfo/2003-05-15-NestingProblem.ll | 1 + .../memdep_requires_dominator_tree.ll | 6 +- .../2007-07-15-NegativeStride.ll | 2 +- .../2008-07-12-UnneededSelect1.ll | 6 +- .../2008-11-18-LessThanOrEqual.ll | 2 +- .../ScalarEvolution/2008-12-08-FiniteSGE.ll | 6 +- .../2009-01-02-SignedNegativeStride.ll | 4 +- .../2009-05-09-PointerEdgeCount.ll | 8 +- .../2009-07-04-GroupConstantsWidthMismatch.ll | 4 +- .../2012-03-26-LoadConstant.ll | 10 +- .../ScalarEvolution/SolveQuadraticEquation.ll | 2 +- .../avoid-infinite-recursion-0.ll | 2 +- test/Analysis/ScalarEvolution/avoid-smax-0.ll | 8 +- test/Analysis/ScalarEvolution/avoid-smax-1.ll | 30 +- .../ScalarEvolution/ext-antecedent.ll | 45 + test/Analysis/ScalarEvolution/fold.ll | 14 +- .../Analysis/ScalarEvolution/incorrect-nsw.ll | 26 + .../ScalarEvolution/infer-prestart-no-wrap.ll | 101 + .../ScalarEvolution/infer-via-ranges.ll | 30 + .../latch-dominating-conditions.ll | 55 + .../load-with-range-metadata.ll | 4 +- test/Analysis/ScalarEvolution/load.ll | 28 +- .../max-trip-count-address-space.ll | 6 +- .../ScalarEvolution/max-trip-count.ll | 22 +- .../Analysis/ScalarEvolution/min-max-exprs.ll | 53 + .../ScalarEvolution/nowrap-preinc-limits.ll | 44 + .../ScalarEvolution/nsw-offset-assume.ll | 22 +- test/Analysis/ScalarEvolution/nsw-offset.ll | 22 +- test/Analysis/ScalarEvolution/nsw.ll | 30 +- test/Analysis/ScalarEvolution/pr22179.ll | 6 +- test/Analysis/ScalarEvolution/pr22641.ll | 25 + test/Analysis/ScalarEvolution/pr22674.ll | 101 + .../ScalarEvolution/range-signedness.ll | 39 + test/Analysis/ScalarEvolution/scev-aa.ll | 52 +- .../scev-expander-incorrect-nowrap.ll | 30 + .../ScalarEvolution/scev-prestart-nowrap.ll | 82 + test/Analysis/ScalarEvolution/sext-inreg.ll | 2 +- test/Analysis/ScalarEvolution/sext-iv-0.ll | 14 +- test/Analysis/ScalarEvolution/sext-iv-1.ll | 24 +- test/Analysis/ScalarEvolution/sext-iv-2.ll | 8 +- test/Analysis/ScalarEvolution/sle.ll | 4 +- test/Analysis/ScalarEvolution/trip-count.ll | 66 +- test/Analysis/ScalarEvolution/trip-count11.ll | 12 +- test/Analysis/ScalarEvolution/trip-count12.ll | 4 +- test/Analysis/ScalarEvolution/trip-count2.ll | 2 +- test/Analysis/ScalarEvolution/trip-count3.ll | 6 +- test/Analysis/ScalarEvolution/trip-count4.ll | 4 +- test/Analysis/ScalarEvolution/trip-count5.ll | 10 +- test/Analysis/ScalarEvolution/trip-count6.ll | 4 +- test/Analysis/ScalarEvolution/trip-count7.ll | 30 +- .../ScalarEvolution/zext-signed-addrec.ll | 10 +- test/Analysis/ScalarEvolution/zext-wrap.ll | 2 +- .../Analysis/ScopedNoAliasAA/basic-domains.ll | 50 +- test/Analysis/ScopedNoAliasAA/basic.ll | 16 +- test/Analysis/ScopedNoAliasAA/basic2.ll | 22 +- .../TypeBasedAliasAnalysis/PR17620.ll | 8 +- .../TypeBasedAliasAnalysis/aliastest.ll | 16 +- .../argument-promotion.ll | 4 +- .../Analysis/TypeBasedAliasAnalysis/cyclic.ll | 26 + test/Analysis/TypeBasedAliasAnalysis/dse.ll | 16 +- .../TypeBasedAliasAnalysis/dynamic-indices.ll | 50 +- .../gvn-nonlocal-type-mismatch.ll | 16 +- test/Analysis/TypeBasedAliasAnalysis/licm.ll | 12 +- .../TypeBasedAliasAnalysis/placement-tbaa.ll | 30 +- .../TypeBasedAliasAnalysis/precedence.ll | 6 +- test/Analysis/TypeBasedAliasAnalysis/sink.ll | 4 +- .../TypeBasedAliasAnalysis/tbaa-path.ll | 198 +- .../ValueTracking/memory-dereferenceable.ll | 65 + test/Analysis/ValueTracking/pr23011.ll | 15 + test/Assembler/2002-04-29-NameBinding.ll | 2 +- .../Assembler/2002-07-25-ReturnPtrFunction.ll | 2 +- .../2002-08-15-ConstantExprProblem.ll | 2 +- .../2002-08-15-UnresolvedGlobalReference.ll | 2 +- test/Assembler/2002-08-16-ConstExprInlined.ll | 2 +- test/Assembler/2002-08-19-BytecodeReader.ll | 8 +- test/Assembler/2003-05-15-AssemblerProblem.ll | 4 +- .../2003-08-20-ConstantExprGEP-Fold.ll | 2 +- .../2004-01-11-getelementptrfolding.ll | 2 +- .../2004-04-04-GetElementPtrIndexTypes.ll | 8 +- test/Assembler/2004-06-07-VerifierBug.ll | 4 +- test/Assembler/2007-01-05-Cmp-ConstExpr.ll | 6 +- test/Assembler/2007-04-20-AlignedLoad.ll | 2 +- test/Assembler/2007-12-11-AddressSpaces.ll | 8 +- test/Assembler/2008-01-11-VarargAttrs.ll | 2 +- test/Assembler/2009-07-24-ZeroArgGEP.ll | 2 +- ...-02-05-FunctionLocalMetadataBecomesNull.ll | 22 +- test/Assembler/ConstantExprFold.ll | 10 +- test/Assembler/ConstantExprNoFold.ll | 18 +- test/Assembler/alias-use-list-order.ll | 8 +- test/Assembler/align-inst-load.ll | 2 +- test/Assembler/align-inst.ll | 2 +- test/Assembler/alloca-invalid-type-2.ll | 9 + test/Assembler/alloca-invalid-type.ll | 9 + test/Assembler/alloca-size-one.ll | 11 + test/Assembler/atomic.ll | 8 +- test/Assembler/auto_upgrade_intrinsics.ll | 2 +- test/Assembler/call-invalid-1.ll | 9 + test/Assembler/debug-info.ll | 72 + test/Assembler/drop-debug-info.ll | 29 + test/Assembler/extractvalue-no-idx.ll | 8 + test/Assembler/fast-math-flags.ll | 48 +- test/Assembler/flags.ll | 16 +- test/Assembler/functionlocal-metadata.ll | 55 - test/Assembler/generic-debug-node.ll | 27 + test/Assembler/getelementptr.ll | 28 +- test/Assembler/getelementptr_invalid_ptr.ll | 10 + test/Assembler/getelementptr_struct.ll | 2 +- test/Assembler/getelementptr_vec_idx1.ll | 2 +- test/Assembler/getelementptr_vec_idx2.ll | 2 +- test/Assembler/getelementptr_vec_idx3.ll | 2 +- test/Assembler/getelementptr_vec_idx4.ll | 5 + test/Assembler/getelementptr_vec_struct.ll | 2 +- test/Assembler/gv-invalid-type.ll | 4 + test/Assembler/half-constprop.ll | 4 +- test/Assembler/half-conv.ll | 2 +- test/Assembler/insertextractvalue.ll | 2 +- test/Assembler/insertvalue-invalid-type-1.ll | 7 + test/Assembler/insertvalue-invalid-type.ll | 9 + test/Assembler/invalid-datalayout14.ll | 3 + test/Assembler/invalid-datalayout15.ll | 3 + test/Assembler/invalid-datalayout16.ll | 3 + test/Assembler/invalid-datalayout17.ll | 3 + test/Assembler/invalid-datalayout18.ll | 3 + test/Assembler/invalid-datalayout19.ll | 6 + test/Assembler/invalid-datalayout20.ll | 6 + test/Assembler/invalid-datalayout21.ll | 6 + test/Assembler/invalid-datalayout22.ll | 6 + test/Assembler/invalid-datalayout23.ll | 6 + test/Assembler/invalid-datalayout24.ll | 6 + test/Assembler/invalid-debug-info-version.ll | 5 + .../invalid-generic-debug-node-tag-bad.ll | 4 + .../invalid-generic-debug-node-tag-missing.ll | 4 + ...invalid-generic-debug-node-tag-overflow.ll | 7 + ...valid-generic-debug-node-tag-wrong-type.ll | 4 + .../invalid-gep-mismatched-explicit-type.ll | 6 + .../invalid-gep-missing-explicit-type.ll | 7 + test/Assembler/invalid-label.ll | 11 + test/Assembler/invalid-landingpad.ll | 7 + .../invalid-load-mismatched-explicit-type.ll | 6 + .../invalid-load-missing-explicit-type.ll | 6 + .../invalid-mdcompileunit-language-bad.ll | 5 + ...invalid-mdcompileunit-language-overflow.ll | 9 + .../invalid-mdcompileunit-missing-language.ll | 4 + .../invalid-mdcompileunit-null-file.ll | 4 + .../invalid-mdcompositetype-missing-tag.ll | 4 + .../invalid-mdderivedtype-missing-basetype.ll | 4 + .../invalid-mdderivedtype-missing-tag.ll | 4 + .../invalid-mdenumerator-missing-name.ll | 4 + .../invalid-mdenumerator-missing-value.ll | 4 + test/Assembler/invalid-mdexpression-large.ll | 7 + test/Assembler/invalid-mdexpression-verify.ll | 9 + .../invalid-mdfile-missing-directory.ll | 4 + .../invalid-mdfile-missing-filename.ll | 4 + .../invalid-mdglobalvariable-empty-name.ll | 4 + .../invalid-mdglobalvariable-missing-name.ll | 4 + .../invalid-mdimportedentity-missing-scope.ll | 4 + .../invalid-mdimportedentity-missing-tag.ll | 4 + .../invalid-mdlexicalblock-missing-scope.ll | 4 + .../invalid-mdlexicalblock-null-scope.ll | 4 + ...dlexicalblockfile-missing-discriminator.ll | 4 + ...nvalid-mdlexicalblockfile-missing-scope.ll | 4 + .../invalid-mdlexicalblockfile-null-scope.ll | 4 + .../invalid-mdlocalvariable-missing-scope.ll | 4 + .../invalid-mdlocalvariable-missing-tag.ll | 4 + .../invalid-mdlocalvariable-null-scope.ll | 4 + .../Assembler/invalid-mdlocation-field-bad.ll | 2 +- .../invalid-mdlocation-field-twice.ll | 2 +- .../invalid-mdlocation-missing-scope-2.ll | 4 + .../invalid-mdlocation-missing-scope.ll | 4 + .../invalid-mdlocation-null-scope.ll | 4 + .../invalid-mdlocation-overflow-column.ll | 8 +- .../invalid-mdlocation-overflow-line.ll | 8 +- .../invalid-mdnamespace-missing-namespace.ll | 4 + test/Assembler/invalid-mdnode-badref.ll | 5 + .../invalid-mdsubrange-count-large.ll | 7 + .../invalid-mdsubrange-count-missing.ll | 4 + .../invalid-mdsubrange-count-negative.ll | 7 + .../invalid-mdsubrange-lowerBound-max.ll | 4 + .../invalid-mdsubrange-lowerBound-min.ll | 4 + .../invalid-mdsubroutinetype-missing-types.ll | 4 + ...id-mdtemplatetypeparameter-missing-type.ll | 4 + ...-mdtemplatevalueparameter-missing-value.ll | 5 + test/Assembler/invalid_cast4.ll | 4 + test/Assembler/large-comdat.ll | 9 + test/Assembler/mdcompileunit.ll | 31 + test/Assembler/mdexpression.ll | 16 + test/Assembler/mdfile-escaped-chars.ll | 9 + test/Assembler/mdglobalvariable.ll | 27 + test/Assembler/mdimportedentity.ll | 20 + test/Assembler/mdlexicalblock.ll | 25 + test/Assembler/mdlocalvariable.ll | 26 + test/Assembler/mdlocation.ll | 29 +- test/Assembler/mdnamespace.ll | 16 + test/Assembler/mdobjcproperty.ll | 19 + test/Assembler/mdsubprogram.ll | 28 + test/Assembler/mdsubrange-empty-array.ll | 14 + test/Assembler/mdsubroutinetype.ll | 23 + test/Assembler/mdtemplateparameter.ll | 24 + test/Assembler/mdtype-large-values.ll | 12 + test/Assembler/metadata-function-local.ll | 20 + test/Assembler/metadata-null-operands.ll | 11 + test/Assembler/metadata.ll | 18 +- test/Assembler/musttail-invalid-1.ll | 2 +- test/Assembler/musttail-invalid-2.ll | 2 +- test/Assembler/musttail.ll | 4 +- test/Assembler/numbered-values.ll | 2 +- test/Assembler/unnamed.ll | 2 +- test/Assembler/unsized-recursive-type.ll | 9 + test/Assembler/upgrade-loop-metadata.ll | 4 +- test/Assembler/uselistorder.ll | 6 +- test/Assembler/uselistorder_bb.ll | 6 +- test/Bindings/OCaml/core.ml | 13 +- test/Bindings/OCaml/linker.ml | 2 +- test/Bitcode/DICompileUnit-no-DWOId.ll | 9 + test/Bitcode/DICompileUnit-no-DWOId.ll.bc | Bin 0 -> 424 bytes .../Inputs/invalid-GCTable-overflow.bc | Bin 0 -> 452 bytes .../invalid-abbrev-fixed-size-too-big.bc | Bin 0 -> 612 bytes .../Inputs/invalid-abbrev-no-operands.bc | Bin 0 -> 452 bytes .../Inputs/invalid-abbrev-vbr-size-too-big.bc | Bin 0 -> 612 bytes test/Bitcode/Inputs/invalid-abbrev.bc | Bin 0 -> 129 bytes test/Bitcode/Inputs/invalid-align.bc | Bin 0 -> 428 bytes .../Inputs/invalid-array-element-type.bc | Bin 0 -> 452 bytes .../invalid-array-op-not-2nd-to-last.bc | Bin 0 -> 452 bytes .../Inputs/invalid-array-operand-encoding.bc | Bin 0 -> 579 bytes test/Bitcode/Inputs/invalid-array-type.bc | Bin 0 -> 612 bytes .../Inputs/invalid-bad-abbrev-number.bc | 1 + test/Bitcode/Inputs/invalid-bitwidth.bc | Bin 0 -> 224 bytes .../invalid-call-mismatched-explicit-type.bc | Bin 0 -> 1316 bytes ...invalid-call-non-function-explicit-type.bc | Bin 0 -> 1316 bytes test/Bitcode/Inputs/invalid-code-len-width.bc | Bin 0 -> 173 bytes .../Inputs/invalid-extract-0-indices.bc | Bin 0 -> 452 bytes .../Inputs/invalid-extractval-array-idx.bc | Bin 0 -> 450 bytes .../Inputs/invalid-extractval-struct-idx.bc | Bin 0 -> 444 bytes .../invalid-extractval-too-many-idxs.bc | Bin 0 -> 452 bytes .../Inputs/invalid-fixme-streaming-blob.bc | Bin 0 -> 371 bytes test/Bitcode/Inputs/invalid-fp-shift.bc | Bin 0 -> 612 bytes .../Inputs/invalid-function-argument-type.bc | Bin 0 -> 452 bytes .../Inputs/invalid-function-comdat-id.bc | Bin 0 -> 489 bytes .../Inputs/invalid-fwdref-type-mismatch-2.bc | Bin 0 -> 617 bytes .../Inputs/invalid-fwdref-type-mismatch.bc | Bin 0 -> 612 bytes .../invalid-gep-mismatched-explicit-type.bc | Bin 0 -> 448 bytes ...d-gep-operator-mismatched-explicit-type.bc | Bin 0 -> 492 bytes .../Inputs/invalid-global-var-comdat-id.bc | Bin 0 -> 488 bytes .../Inputs/invalid-insert-0-indices.bc | Bin 0 -> 452 bytes .../invalid-inserted-value-type-mismatch.bc | Bin 0 -> 452 bytes .../Inputs/invalid-insertval-array-idx.bc | Bin 0 -> 452 bytes .../Inputs/invalid-insertval-struct-idx.bc | Bin 0 -> 444 bytes .../Inputs/invalid-insertval-too-many-idxs.bc | Bin 0 -> 452 bytes ...invalid-invoke-mismatched-explicit-type.bc | Bin 0 -> 1728 bytes ...valid-invoke-non-function-explicit-type.bc | Bin 0 -> 1728 bytes .../invalid-load-mismatched-explicit-type.bc | Bin 0 -> 432 bytes .../Inputs/invalid-load-pointer-type.bc | Bin 0 -> 452 bytes test/Bitcode/Inputs/invalid-load-ptr-type.bc | Bin 0 -> 424 bytes .../Inputs/invalid-no-proper-module.bc | Bin 0 -> 612 bytes .../invalid-non-vector-extractelement.bc | Bin 0 -> 612 bytes .../invalid-non-vector-insertelement.bc | Bin 0 -> 612 bytes .../invalid-non-vector-shufflevector.bc | Bin 0 -> 612 bytes .../Inputs/invalid-pointer-element-type.bc | Bin 0 -> 644 bytes test/Bitcode/Inputs/invalid-pr20485.bc | Bin 0 -> 272 bytes test/Bitcode/Inputs/invalid-too-big-fwdref.bc | Bin 0 -> 452 bytes .../Inputs/invalid-type-table-forward-ref.bc | Bin 0 -> 452 bytes test/Bitcode/Inputs/invalid-unexpected-eof.bc | 1 + .../Inputs/invalid-vector-element-type.bc | Bin 0 -> 452 bytes test/Bitcode/arm32_neon_vcnt_upgrade.ll | 4 +- test/Bitcode/attributes.ll | 16 +- test/Bitcode/case-ranges-3.3.ll | 4 +- test/Bitcode/cmpxchg.3.6.ll | 13 + test/Bitcode/cmpxchg.3.6.ll.bc | Bin 0 -> 488 bytes test/Bitcode/constantsTest.3.2.ll | 8 +- test/Bitcode/debug-loc-again.ll | 36 + test/Bitcode/drop-debug-info.3.5.ll | 40 + test/Bitcode/drop-debug-info.3.5.ll.bc | Bin 0 -> 1264 bytes test/Bitcode/drop-debug-info.ll | 29 - .../Bitcode/function-encoding-rel-operands.ll | 8 +- test/Bitcode/highLevelStructure.3.2.ll | 2 +- test/Bitcode/invalid.ll | 2 +- test/Bitcode/invalid.test | 189 + test/Bitcode/linkage-types-3.2.ll | 12 +- test/Bitcode/memInstructions.3.2.ll | 142 +- test/Bitcode/metadata-2.ll | 6 +- test/Bitcode/miscInstructions.3.2.ll | 4 +- test/Bitcode/old-aliases.ll | 4 +- test/Bitcode/pr18704.ll | 2 +- test/Bitcode/upgrade-loop-metadata.ll | 4 +- test/Bitcode/use-list-order.ll | 14 +- test/Bitcode/weak-macho-3.5.ll | 11 + test/Bitcode/weak-macho-3.5.ll.bc | Bin 0 -> 352 bytes test/BugPoint/metadata.ll | 26 +- test/BugPoint/replace-funcs-with-null.ll | 17 + test/CMakeLists.txt | 13 +- test/CodeGen/AArch64/128bit_load_store.ll | 8 +- test/CodeGen/AArch64/PBQP-chain.ll | 90 +- test/CodeGen/AArch64/PBQP-coalesce-benefit.ll | 6 +- test/CodeGen/AArch64/PBQP-csr.ll | 54 +- test/CodeGen/AArch64/Redundantstore.ll | 6 +- test/CodeGen/AArch64/a57-csel.ll | 2 +- ...aarch64-2014-08-11-MachineCombinerCrash.ll | 105 +- .../aarch64-2014-12-02-combine-soften.ll | 2 +- .../AArch64/aarch64-a57-fp-load-balancing.ll | 168 +- ...arch64-address-type-promotion-assertion.ll | 12 +- .../AArch64/aarch64-address-type-promotion.ll | 10 +- test/CodeGen/AArch64/aarch64-be-bv.ll | 64 +- .../AArch64/aarch64-dynamic-stack-layout.ll | 491 + .../AArch64/aarch64-fix-cortex-a53-835769.ll | 58 +- test/CodeGen/AArch64/aarch64-gep-opt.ll | 46 +- test/CodeGen/AArch64/aarch64-smull.ll | 96 +- test/CodeGen/AArch64/addsub-shifted.ll | 34 +- test/CodeGen/AArch64/addsub.ll | 46 +- test/CodeGen/AArch64/addsub_ext.ll | 16 +- test/CodeGen/AArch64/alloca.ll | 2 +- test/CodeGen/AArch64/analyzecmp.ll | 8 +- test/CodeGen/AArch64/and-mask-removal.ll | 8 +- test/CodeGen/AArch64/argument-blocks.ll | 2 +- .../arm64-2011-03-17-AsmPrinterCrash.ll | 40 +- .../arm64-2011-03-21-Unaligned-Frame-Index.ll | 2 +- .../AArch64/arm64-2011-04-21-CPSRBug.ll | 2 +- .../AArch64/arm64-2011-10-18-LdStOptBug.ll | 2 +- .../arm64-2012-01-11-ComparisonDAGCrash.ll | 2 +- .../AArch64/arm64-2012-05-22-LdStOptBug.ll | 18 +- .../AArch64/arm64-2012-06-06-FPToUI.ll | 24 +- .../arm64-2012-07-11-InstrEmitterBug.ll | 2 +- test/CodeGen/AArch64/arm64-AdvSIMD-Scalar.ll | 4 +- test/CodeGen/AArch64/arm64-aapcs.ll | 13 +- test/CodeGen/AArch64/arm64-abi-varargs.ll | 44 +- test/CodeGen/AArch64/arm64-abi.ll | 12 +- test/CodeGen/AArch64/arm64-abi_align.ll | 68 +- .../AArch64/arm64-addr-mode-folding.ll | 64 +- .../AArch64/arm64-addr-type-promotion.ll | 26 +- test/CodeGen/AArch64/arm64-addrmode.ll | 48 +- .../AArch64/arm64-alloc-no-stack-realign.ll | 4 +- .../arm64-alloca-frame-pointer-offset.ll | 10 +- test/CodeGen/AArch64/arm64-andCmpBrToTBZ.ll | 4 +- test/CodeGen/AArch64/arm64-anyregcc-crash.ll | 2 +- test/CodeGen/AArch64/arm64-anyregcc.ll | 16 +- test/CodeGen/AArch64/arm64-atomic-128.ll | 4 +- test/CodeGen/AArch64/arm64-atomic.ll | 194 +- test/CodeGen/AArch64/arm64-basic-pic.ll | 8 +- test/CodeGen/AArch64/arm64-bcc.ll | 8 +- .../AArch64/arm64-big-endian-bitconverts.ll | 168 +- .../AArch64/arm64-big-endian-varargs.ll | 18 +- .../AArch64/arm64-big-endian-vector-caller.ll | 340 +- test/CodeGen/AArch64/arm64-big-stack.ll | 2 +- .../CodeGen/AArch64/arm64-bitfield-extract.ll | 52 +- test/CodeGen/AArch64/arm64-blockaddress.ll | 2 +- test/CodeGen/AArch64/arm64-call-tailcalls.ll | 4 +- test/CodeGen/AArch64/arm64-cast-opt.ll | 10 +- test/CodeGen/AArch64/arm64-ccmp-heuristics.ll | 108 +- test/CodeGen/AArch64/arm64-ccmp.ll | 6 +- .../AArch64/arm64-code-model-large-abs.ll | 8 +- .../AArch64/arm64-codegen-prepare-extload.ll | 638 + .../arm64-collect-loh-garbage-crash.ll | 8 +- test/CodeGen/AArch64/arm64-collect-loh-str.ll | 4 +- test/CodeGen/AArch64/arm64-collect-loh.ll | 10 +- .../AArch64/arm64-complex-copy-noneon.ll | 12 +- test/CodeGen/AArch64/arm64-const-addr.ll | 12 +- test/CodeGen/AArch64/arm64-convert-v4f64.ll | 63 +- test/CodeGen/AArch64/arm64-cse.ll | 10 +- .../arm64-dagcombiner-dead-indexed-load.ll | 4 +- .../AArch64/arm64-dagcombiner-load-slicing.ll | 42 +- test/CodeGen/AArch64/arm64-dup.ll | 53 +- test/CodeGen/AArch64/arm64-early-ifcvt.ll | 10 +- test/CodeGen/AArch64/arm64-elf-globals.ll | 18 +- test/CodeGen/AArch64/arm64-ext.ll | 46 +- test/CodeGen/AArch64/arm64-extend.ll | 4 +- test/CodeGen/AArch64/arm64-extern-weak.ll | 2 +- .../AArch64/arm64-extload-knownzero.ll | 2 +- .../AArch64/arm64-fast-isel-addr-offset.ll | 12 +- .../CodeGen/AArch64/arm64-fast-isel-alloca.ll | 4 +- test/CodeGen/AArch64/arm64-fast-isel-br.ll | 20 +- test/CodeGen/AArch64/arm64-fast-isel-call.ll | 10 +- .../AArch64/arm64-fast-isel-conversion.ll | 28 +- test/CodeGen/AArch64/arm64-fast-isel-fcmp.ll | 2 +- test/CodeGen/AArch64/arm64-fast-isel-gv.ll | 6 +- test/CodeGen/AArch64/arm64-fast-isel-icmp.ll | 2 +- .../AArch64/arm64-fast-isel-indirectbr.ll | 10 +- .../AArch64/arm64-fast-isel-intrinsic.ll | 20 +- .../AArch64/arm64-fast-isel-materialize.ll | 2 +- test/CodeGen/AArch64/arm64-fast-isel-rem.ll | 4 +- test/CodeGen/AArch64/arm64-fast-isel-ret.ll | 12 +- test/CodeGen/AArch64/arm64-fast-isel-store.ll | 2 +- test/CodeGen/AArch64/arm64-fast-isel.ll | 62 +- .../arm64-fastisel-gep-promote-before-add.ll | 6 +- test/CodeGen/AArch64/arm64-fcopysign.ll | 2 +- ...arm64-fixed-point-scalar-cvt-dagcombine.ll | 2 +- test/CodeGen/AArch64/arm64-fmax.ll | 34 +- test/CodeGen/AArch64/arm64-fmuladd.ll | 42 +- test/CodeGen/AArch64/arm64-fold-address.ll | 36 +- test/CodeGen/AArch64/arm64-fold-lsl.ll | 18 +- test/CodeGen/AArch64/arm64-fp128-folding.ll | 2 +- test/CodeGen/AArch64/arm64-fp128.ll | 48 +- test/CodeGen/AArch64/arm64-hello.ll | 2 +- .../AArch64/arm64-i16-subreg-extract.ll | 2 +- test/CodeGen/AArch64/arm64-indexed-memory.ll | 126 +- .../AArch64/arm64-indexed-vector-ldst-2.ll | 6 +- .../AArch64/arm64-indexed-vector-ldst.ll | 1389 +- test/CodeGen/AArch64/arm64-inline-asm.ll | 14 +- test/CodeGen/AArch64/arm64-join-reserved.ll | 2 +- test/CodeGen/AArch64/arm64-large-frame.ll | 6 +- test/CodeGen/AArch64/arm64-ld1.ll | 360 +- test/CodeGen/AArch64/arm64-ldp-aa.ll | 60 + test/CodeGen/AArch64/arm64-ldp.ll | 263 +- test/CodeGen/AArch64/arm64-ldur.ll | 28 +- test/CodeGen/AArch64/arm64-memcpy-inline.ll | 14 +- test/CodeGen/AArch64/arm64-memset-inline.ll | 2 +- .../AArch64/arm64-misaligned-memcpy-inline.ll | 14 + .../AArch64/arm64-misched-basic-A53.ll | 30 +- .../AArch64/arm64-misched-basic-A57.ll | 32 +- test/CodeGen/AArch64/arm64-neon-copy.ll | 4 +- test/CodeGen/AArch64/arm64-neon-select_cc.ll | 30 +- .../AArch64/arm64-neon-simd-ldst-one.ll | 52 +- test/CodeGen/AArch64/arm64-neon-v1i1-setcc.ll | 8 +- test/CodeGen/AArch64/arm64-neon-v8.1a.ll | 456 + .../AArch64/arm64-patchpoint-scratch-regs.ll | 4 +- .../AArch64/arm64-patchpoint-webkit_jscc.ll | 8 +- test/CodeGen/AArch64/arm64-patchpoint.ll | 24 +- .../CodeGen/AArch64/arm64-pic-local-symbol.ll | 4 +- test/CodeGen/AArch64/arm64-platform-reg.ll | 2 +- test/CodeGen/AArch64/arm64-popcnt.ll | 20 +- test/CodeGen/AArch64/arm64-prefetch.ll | 50 +- test/CodeGen/AArch64/arm64-promote-const.ll | 113 +- test/CodeGen/AArch64/arm64-redzone.ll | 6 +- .../arm64-register-offset-addressing.ll | 28 +- .../AArch64/arm64-regress-interphase-shift.ll | 2 +- test/CodeGen/AArch64/arm64-return-vector.ll | 2 +- test/CodeGen/AArch64/arm64-rev.ll | 38 +- test/CodeGen/AArch64/arm64-scaled_iv.ll | 12 +- test/CodeGen/AArch64/arm64-scvt.ll | 176 +- test/CodeGen/AArch64/arm64-shrink-wrapping.ll | 502 + .../AArch64/arm64-sitofp-combine-chains.ll | 2 +- test/CodeGen/AArch64/arm64-smaxv.ll | 72 +- test/CodeGen/AArch64/arm64-sminv.ll | 72 +- test/CodeGen/AArch64/arm64-spill-lr.ll | 46 +- test/CodeGen/AArch64/arm64-spill.ll | 2 +- test/CodeGen/AArch64/arm64-st1.ll | 89 +- test/CodeGen/AArch64/arm64-stack-no-frame.ll | 4 +- test/CodeGen/AArch64/arm64-stackmap-nops.ll | 2 +- test/CodeGen/AArch64/arm64-stackmap.ll | 24 +- test/CodeGen/AArch64/arm64-stp-aa.ll | 111 + test/CodeGen/AArch64/arm64-stp.ll | 24 +- test/CodeGen/AArch64/arm64-strict-align.ll | 4 +- test/CodeGen/AArch64/arm64-stur.ll | 12 +- test/CodeGen/AArch64/arm64-this-return.ll | 10 +- test/CodeGen/AArch64/arm64-tls-darwin.ll | 2 +- .../AArch64/arm64-tls-dynamic-together.ll | 2 +- test/CodeGen/AArch64/arm64-tls-dynamics.ll | 8 +- test/CodeGen/AArch64/arm64-tls-execs.ll | 4 +- .../AArch64/arm64-triv-disjoint-mem-access.ll | 8 +- test/CodeGen/AArch64/arm64-trn.ll | 40 +- test/CodeGen/AArch64/arm64-trunc-store.ll | 12 +- test/CodeGen/AArch64/arm64-umaxv.ll | 74 +- test/CodeGen/AArch64/arm64-uminv.ll | 73 +- test/CodeGen/AArch64/arm64-unaligned_ldst.ll | 6 +- test/CodeGen/AArch64/arm64-uzp.ll | 32 +- test/CodeGen/AArch64/arm64-vabs.ll | 288 +- test/CodeGen/AArch64/arm64-vadd.ll | 248 +- test/CodeGen/AArch64/arm64-vaddv.ll | 164 +- test/CodeGen/AArch64/arm64-vbitwise.ll | 18 +- test/CodeGen/AArch64/arm64-vcmp.ll | 52 +- test/CodeGen/AArch64/arm64-vcnt.ll | 12 +- test/CodeGen/AArch64/arm64-vcvt.ll | 2 +- test/CodeGen/AArch64/arm64-vector-imm.ll | 8 +- test/CodeGen/AArch64/arm64-vector-ldst.ll | 240 +- test/CodeGen/AArch64/arm64-vext.ll | 176 +- test/CodeGen/AArch64/arm64-vhadd.ll | 96 +- test/CodeGen/AArch64/arm64-vhsub.ll | 48 +- test/CodeGen/AArch64/arm64-virtual_base.ll | 4 +- test/CodeGen/AArch64/arm64-vmax.ll | 264 +- test/CodeGen/AArch64/arm64-vmul.ll | 446 +- test/CodeGen/AArch64/arm64-volatile.ll | 16 +- test/CodeGen/AArch64/arm64-vqadd.ll | 112 +- test/CodeGen/AArch64/arm64-vqsub.ll | 56 +- test/CodeGen/AArch64/arm64-vshift.ll | 608 +- test/CodeGen/AArch64/arm64-vshr.ll | 12 +- test/CodeGen/AArch64/arm64-vshuffle.ll | 95 +- test/CodeGen/AArch64/arm64-vsqrt.ll | 56 +- test/CodeGen/AArch64/arm64-vsra.ll | 56 +- test/CodeGen/AArch64/arm64-vsub.ll | 120 +- test/CodeGen/AArch64/arm64-weak-reference.ll | 2 +- test/CodeGen/AArch64/arm64-xaluo.ll | 2 +- .../AArch64/arm64-zextload-unscaled.ll | 12 +- test/CodeGen/AArch64/arm64-zip.ll | 32 +- test/CodeGen/AArch64/assertion-rc-mismatch.ll | 4 +- .../AArch64/atomic-ops-not-barriers.ll | 2 +- test/CodeGen/AArch64/atomic-ops.ll | 14 +- test/CodeGen/AArch64/basic-pic.ll | 8 +- test/CodeGen/AArch64/bitcast.ll | 27 + test/CodeGen/AArch64/bitfield-insert-0.ll | 4 +- test/CodeGen/AArch64/bitfield-insert.ll | 36 +- test/CodeGen/AArch64/bitfield.ll | 8 +- test/CodeGen/AArch64/blockaddress.ll | 2 +- test/CodeGen/AArch64/bool-loads.ll | 8 +- test/CodeGen/AArch64/br-to-eh-lpad.ll | 8 +- test/CodeGen/AArch64/breg.ll | 2 +- test/CodeGen/AArch64/callee-save.ll | 64 +- test/CodeGen/AArch64/cmpwithshort.ll | 12 +- test/CodeGen/AArch64/code-model-large-abs.ll | 8 +- .../AArch64/combine-comparisons-by-cse.ll | 89 +- test/CodeGen/AArch64/compare-branch.ll | 8 +- test/CodeGen/AArch64/complex-copy-noneon.ll | 12 +- test/CodeGen/AArch64/complex-int-to-fp.ll | 2 +- .../AArch64/concat_vector-scalar-combine.ll | 125 + .../AArch64/concat_vector-truncate-combine.ll | 43 + .../concat_vector-truncated-scalar-combine.ll | 18 + test/CodeGen/AArch64/cpus.ll | 1 + .../CodeGen/AArch64/dag-combine-invaraints.ll | 10 +- test/CodeGen/AArch64/dp-3source.ll | 4 +- test/CodeGen/AArch64/dp1.ll | 28 +- test/CodeGen/AArch64/dp2.ll | 54 +- test/CodeGen/AArch64/eliminate-trunc.ll | 8 +- test/CodeGen/AArch64/extern-weak.ll | 2 +- test/CodeGen/AArch64/f16-convert.ll | 67 +- test/CodeGen/AArch64/f16-instructions.ll | 765 + .../AArch64/fast-isel-address-extends.ll | 39 + .../AArch64/fast-isel-addressing-modes.ll | 92 +- .../AArch64/fast-isel-branch-cond-split.ll | 2 +- .../AArch64/fast-isel-branch_weights.ll | 2 +- test/CodeGen/AArch64/fast-isel-call-return.ll | 2 +- test/CodeGen/AArch64/fast-isel-cbz.ll | 2 +- test/CodeGen/AArch64/fast-isel-cmp-branch.ll | 2 +- test/CodeGen/AArch64/fast-isel-folding.ll | 2 +- test/CodeGen/AArch64/fast-isel-gep.ll | 14 +- test/CodeGen/AArch64/fast-isel-int-ext.ll | 86 +- test/CodeGen/AArch64/fast-isel-int-ext2.ll | 62 +- test/CodeGen/AArch64/fast-isel-int-ext3.ll | 20 +- test/CodeGen/AArch64/fast-isel-int-ext4.ll | 2 +- test/CodeGen/AArch64/fast-isel-int-ext5.ll | 19 + test/CodeGen/AArch64/fast-isel-logic-op.ll | 2 +- test/CodeGen/AArch64/fast-isel-memcpy.ll | 2 +- test/CodeGen/AArch64/fast-isel-mul.ll | 2 +- .../AArch64/fast-isel-runtime-libcall.ll | 4 +- test/CodeGen/AArch64/fast-isel-sdiv.ll | 2 +- test/CodeGen/AArch64/fast-isel-select.ll | 2 +- test/CodeGen/AArch64/fast-isel-shift.ll | 2 +- test/CodeGen/AArch64/fast-isel-sqrt.ll | 2 +- test/CodeGen/AArch64/fast-isel-tbz.ll | 2 +- test/CodeGen/AArch64/fast-isel-trunc.ll | 2 +- .../AArch64/fast-isel-vector-arithmetic.ll | 2 +- test/CodeGen/AArch64/fast-isel-vret.ll | 2 +- test/CodeGen/AArch64/floatdp_1source.ll | 10 +- test/CodeGen/AArch64/floatdp_2source.ll | 4 +- test/CodeGen/AArch64/fold-constants.ll | 21 + test/CodeGen/AArch64/fp128-folding.ll | 2 +- test/CodeGen/AArch64/fp16-instructions.ll | 109 - test/CodeGen/AArch64/fp16-v16-instructions.ll | 105 + test/CodeGen/AArch64/fp16-v4-instructions.ll | 103 +- test/CodeGen/AArch64/fp16-v8-instructions.ll | 118 +- .../CodeGen/AArch64/fp16-vector-load-store.ll | 12 +- test/CodeGen/AArch64/fp16-vector-nvcast.ll | 89 + test/CodeGen/AArch64/fpimm.ll | 6 +- test/CodeGen/AArch64/frameaddr.ll | 2 +- test/CodeGen/AArch64/free-zext.ll | 4 +- test/CodeGen/AArch64/func-argpassing.ll | 32 +- test/CodeGen/AArch64/func-calls.ll | 12 +- test/CodeGen/AArch64/funcptr_cast.ll | 2 +- .../AArch64/function-subtarget-features.ll | 21 + test/CodeGen/AArch64/ghc-cc.ll | 6 +- test/CodeGen/AArch64/global-alignment.ll | 10 +- test/CodeGen/AArch64/global-merge-1.ll | 12 +- test/CodeGen/AArch64/global-merge-2.ll | 6 +- test/CodeGen/AArch64/global-merge-3.ll | 10 +- test/CodeGen/AArch64/global-merge-4.ll | 54 +- .../AArch64/global-merge-group-by-use.ll | 94 + .../AArch64/global-merge-ignore-single-use.ll | 63 + test/CodeGen/AArch64/half.ll | 8 +- test/CodeGen/AArch64/i1-contents.ll | 4 +- test/CodeGen/AArch64/i128-align.ll | 4 +- .../AArch64/inline-asm-globaladdress.ll | 20 + .../AArch64/intrinsics-memory-barrier.ll | 6 +- test/CodeGen/AArch64/large_shift.ll | 21 + test/CodeGen/AArch64/ldst-opt.ll | 270 +- test/CodeGen/AArch64/ldst-regoffset.ll | 106 +- test/CodeGen/AArch64/ldst-unscaledimm.ll | 92 +- test/CodeGen/AArch64/ldst-unsignedimm.ll | 80 +- test/CodeGen/AArch64/lit.local.cfg | 2 +- test/CodeGen/AArch64/literal_pools_float.ll | 4 +- test/CodeGen/AArch64/local_vars.ll | 2 +- test/CodeGen/AArch64/logical_shifted_reg.ll | 12 +- test/CodeGen/AArch64/machine-copy-prop.ll | 2 +- .../AArch64/machine-sink-kill-flags.ll | 29 + test/CodeGen/AArch64/machine_cse.ll | 10 +- test/CodeGen/AArch64/merge-store.ll | 20 + test/CodeGen/AArch64/minmax.ll | 96 + test/CodeGen/AArch64/mul_pow2.ll | 3 +- test/CodeGen/AArch64/neon-fpround_f128.ll | 4 +- test/CodeGen/AArch64/neon-scalar-copy.ll | 126 +- .../AArch64/neon-truncStore-extLoad.ll | 6 +- test/CodeGen/AArch64/nzcv-save.ll | 4 +- test/CodeGen/AArch64/or-combine.ll | 44 + test/CodeGen/AArch64/paired-load.ll | 8 +- test/CodeGen/AArch64/pic-eh-stubs.ll | 2 +- .../AArch64/print-mrs-system-register.ll | 11 + test/CodeGen/AArch64/ragreedy-csr.ll | 106 +- test/CodeGen/AArch64/regress-tail-livereg.ll | 2 +- test/CodeGen/AArch64/regress-tblgen-chains.ll | 4 +- .../AArch64/regress-w29-reserved-with-fp.ll | 18 +- test/CodeGen/AArch64/remat-float0.ll | 18 + test/CodeGen/AArch64/remat.ll | 1 + test/CodeGen/AArch64/rm_redundant_cmp.ll | 64 +- test/CodeGen/AArch64/sibling-call.ll | 4 +- .../AArch64/stack-guard-remat-bitcast.ll | 2 +- test/CodeGen/AArch64/stack_guard_remat.ll | 2 +- test/CodeGen/AArch64/stackmap-liveness.ll | 47 + test/CodeGen/AArch64/tail-call.ll | 38 + .../CodeGen/AArch64/tailcall-explicit-sret.ll | 8 +- .../AArch64/tailcall-mem-intrinsics.ll | 31 + .../CodeGen/AArch64/tailcall_misched_graph.ll | 42 + test/CodeGen/AArch64/tbz-tbnz.ll | 2 +- test/CodeGen/AArch64/tst-br.ll | 4 +- test/CodeGen/AArch64/vcvt-oversize.ll | 16 + test/CodeGen/AArch64/zero-reg.ll | 2 +- test/CodeGen/ARM/2006-11-10-CycleInDAG.ll | 6 +- test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll | 34 +- test/CodeGen/ARM/2007-03-07-CombinerCrash.ll | 6 +- test/CodeGen/ARM/2007-03-13-InstrSched.ll | 24 +- .../ARM/2007-03-21-JoinIntervalsCrash.ll | 10 +- .../ARM/2007-03-27-RegScavengerAssert.ll | 6 +- .../ARM/2007-04-02-RegScavengerAssert.ll | 6 +- test/CodeGen/ARM/2007-04-03-PEIBug.ll | 2 +- .../CodeGen/ARM/2007-04-03-UndefinedSymbol.ll | 48 +- test/CodeGen/ARM/2007-04-30-CombinerCrash.ll | 10 +- .../ARM/2007-05-03-BadPostIndexedLd.ll | 12 +- test/CodeGen/ARM/2007-05-07-tailmerge-1.ll | 24 +- test/CodeGen/ARM/2007-05-09-tailmerge-2.ll | 26 +- test/CodeGen/ARM/2007-05-22-tailmerge-3.ll | 26 +- .../ARM/2007-05-23-BadPreIndexedStore.ll | 6 +- test/CodeGen/ARM/2007-08-15-ReuseBug.ll | 18 +- .../ARM/2008-02-04-LocalRegAllocBug.ll | 2 +- test/CodeGen/ARM/2008-02-29-RegAllocLocal.ll | 2 +- test/CodeGen/ARM/2008-03-05-SxtInRegBug.ll | 2 +- .../ARM/2008-03-07-RegScavengerAssert.ll | 4 +- .../CodeGen/ARM/2008-04-04-ScavengerAssert.ll | 2 +- .../CodeGen/ARM/2008-04-10-ScavengerAssert.ll | 36 +- .../ARM/2008-05-19-LiveIntervalsBug.ll | 6 +- .../CodeGen/ARM/2008-05-19-ScavengerAssert.ll | 2 +- .../ARM/2008-07-24-CodeGenPrepCrash.ll | 2 +- test/CodeGen/ARM/2008-08-07-AsmPrintBug.ll | 2 +- test/CodeGen/ARM/2009-02-16-SpillerBug.ll | 4 +- .../ARM/2009-02-22-SoftenFloatVaArg.ll | 2 +- test/CodeGen/ARM/2009-02-27-SpillerBug.ll | 4 +- test/CodeGen/ARM/2009-03-07-SpillerBug.ll | 2 +- test/CodeGen/ARM/2009-03-09-AddrModeBug.ll | 2 +- test/CodeGen/ARM/2009-04-06-AsmModifier.ll | 6 +- test/CodeGen/ARM/2009-04-08-AggregateAddr.ll | 10 +- test/CodeGen/ARM/2009-04-08-FREM.ll | 2 +- test/CodeGen/ARM/2009-04-08-FloatUndef.ll | 2 +- .../CodeGen/ARM/2009-04-09-RegScavengerAsm.ll | 2 +- test/CodeGen/ARM/2009-05-07-RegAllocLocal.ll | 2 +- .../ARM/2009-05-11-CodePlacementCrash.ll | 4 +- test/CodeGen/ARM/2009-06-02-ISelCrash.ll | 2 +- test/CodeGen/ARM/2009-06-04-MissingLiveIn.ll | 2 +- test/CodeGen/ARM/2009-06-22-CoalescerBug.ll | 6 +- .../ARM/2009-06-30-RegScavengerAssert.ll | 18 +- .../ARM/2009-06-30-RegScavengerAssert2.ll | 14 +- .../ARM/2009-06-30-RegScavengerAssert3.ll | 14 +- .../ARM/2009-06-30-RegScavengerAssert4.ll | 18 +- .../ARM/2009-06-30-RegScavengerAssert5.ll | 2 +- test/CodeGen/ARM/2009-07-01-CommuteBug.ll | 14 +- test/CodeGen/ARM/2009-07-18-RewriterBug.ll | 868 +- .../CodeGen/ARM/2009-07-22-ScavengerAssert.ll | 2 +- .../CodeGen/ARM/2009-07-22-SchedulerAssert.ll | 4 +- test/CodeGen/ARM/2009-07-29-VFP3Registers.ll | 2 +- .../ARM/2009-08-02-RegScavengerAssert-Neon.ll | 8 +- .../2009-08-15-RegScavenger-EarlyClobber.ll | 4 +- test/CodeGen/ARM/2009-08-21-PostRAKill.ll | 12 +- test/CodeGen/ARM/2009-08-21-PostRAKill2.ll | 2 +- test/CodeGen/ARM/2009-08-21-PostRAKill3.ll | 6 +- test/CodeGen/ARM/2009-08-31-LSDA-Name.ll | 26 +- test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll | 2 +- test/CodeGen/ARM/2009-09-09-fpcmp-ole.ll | 4 +- test/CodeGen/ARM/2009-09-13-InvalidSubreg.ll | 8 +- .../CodeGen/ARM/2009-09-13-InvalidSuperReg.ll | 14 +- .../ARM/2009-09-23-LiveVariablesBug.ll | 2 +- test/CodeGen/ARM/2009-09-24-spill-align.ll | 2 +- test/CodeGen/ARM/2009-09-28-LdStOptiBug.ll | 4 +- test/CodeGen/ARM/2009-10-02-NEONSubregsBug.ll | 4 +- test/CodeGen/ARM/2009-10-16-Scope.ll | 20 +- test/CodeGen/ARM/2009-10-27-double-align.ll | 2 +- test/CodeGen/ARM/2009-11-01-NeonMoves.ll | 2 +- test/CodeGen/ARM/2009-11-02-NegativeLane.ll | 2 +- .../ARM/2009-11-07-SubRegAsmPrinting.ll | 8 +- .../CodeGen/ARM/2009-11-13-ScavengerAssert.ll | 6 +- .../ARM/2009-11-13-ScavengerAssert2.ll | 46 +- .../CodeGen/ARM/2009-11-13-VRRewriterCrash.ll | 34 +- test/CodeGen/ARM/2009-12-02-vtrn-undef.ll | 8 +- test/CodeGen/ARM/2010-03-04-eabi-fp-spill.ll | 24 +- test/CodeGen/ARM/2010-03-04-stm-undef-addr.ll | 14 +- .../ARM/2010-04-15-ScavengerDebugValue.ll | 30 +- test/CodeGen/ARM/2010-05-17-FastAllocCrash.ll | 8 +- .../CodeGen/ARM/2010-05-18-LocalAllocCrash.ll | 8 +- test/CodeGen/ARM/2010-05-18-PostIndexBug.ll | 4 +- test/CodeGen/ARM/2010-05-19-Shuffles.ll | 2 +- test/CodeGen/ARM/2010-05-21-BuildVector.ll | 18 +- .../CodeGen/ARM/2010-06-11-vmovdrr-bitcast.ll | 2 +- .../CodeGen/ARM/2010-06-21-LdStMultipleBug.ll | 36 +- test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll | 40 +- .../ARM/2010-06-25-Thumb2ITInvalidIterator.ll | 62 +- test/CodeGen/ARM/2010-06-29-SubregImpDefs.ll | 4 +- test/CodeGen/ARM/2010-07-26-GlobalMerge.ll | 28 +- test/CodeGen/ARM/2010-08-04-EHCrash.ll | 12 +- test/CodeGen/ARM/2010-08-04-StackVariable.ll | 122 +- .../ARM/2010-11-15-SpillEarlyClobber.ll | 30 +- test/CodeGen/ARM/2010-12-08-tpsoft.ll | 2 +- test/CodeGen/ARM/2010-12-15-elf-lcomm.ll | 13 +- .../ARM/2010-12-17-LocalStackSlotCrash.ll | 2 +- .../CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll | 114 +- .../CodeGen/ARM/2011-02-04-AntidepMultidef.ll | 2 +- test/CodeGen/ARM/2011-02-07-AntidepClobber.ll | 12 +- .../CodeGen/ARM/2011-03-10-DAGCombineCrash.ll | 6 +- .../CodeGen/ARM/2011-03-15-LdStMultipleBug.ll | 12 +- test/CodeGen/ARM/2011-04-07-schediv.ll | 6 +- test/CodeGen/ARM/2011-04-11-MachineLICMBug.ll | 4 +- test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll | 2 +- .../ARM/2011-04-15-AndVFlagPeepholeBug.ll | 2 +- .../ARM/2011-04-15-RegisterCmpPeephole.ll | 4 +- test/CodeGen/ARM/2011-04-26-SchedTweak.ll | 10 +- .../ARM/2011-06-29-MergeGlobalsAlign.ll | 2 +- .../CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll | 108 +- test/CodeGen/ARM/2011-08-29-SchedCycle.ll | 2 +- test/CodeGen/ARM/2011-08-29-ldr_pre_imm.ll | 6 +- .../ARM/2011-09-09-OddVectorDivision.ll | 8 +- test/CodeGen/ARM/2011-09-28-CMovCombineBug.ll | 2 +- .../2011-10-26-ExpandUnalignedLoadCrash.ll | 10 +- .../ARM/2011-11-07-PromoteVectorLoadStore.ll | 8 +- .../ARM/2011-11-09-BitcastVectorDouble.ll | 2 +- .../2011-11-09-IllegalVectorFPIntConvert.ll | 8 +- test/CodeGen/ARM/2011-11-14-EarlyClobber.ll | 24 +- test/CodeGen/ARM/2011-11-28-DAGCombineBug.ll | 16 +- .../ARM/2011-11-29-128bitArithmetics.ll | 22 +- test/CodeGen/ARM/2011-11-30-MergeAlignment.ll | 4 +- test/CodeGen/ARM/2011-12-14-machine-sink.ll | 31 +- test/CodeGen/ARM/2011-12-19-sjlj-clobber.ll | 4 +- test/CodeGen/ARM/2012-01-23-PostRA-LICM.ll | 14 +- .../ARM/2012-01-24-RegSequenceLiveRange.ll | 2 +- test/CodeGen/ARM/2012-01-26-CopyPropKills.ll | 8 +- test/CodeGen/ARM/2012-02-01-CoalescerBug.ll | 2 +- test/CodeGen/ARM/2012-03-13-DAGCombineBug.ll | 2 +- .../CodeGen/ARM/2012-06-12-SchedMemLatency.ll | 4 +- .../ARM/2012-08-04-DtripleSpillReload.ll | 2 +- .../ARM/2012-08-08-legalize-unaligned.ll | 2 +- test/CodeGen/ARM/2012-08-09-neon-extload.ll | 12 +- test/CodeGen/ARM/2012-08-23-legalize-vmull.ll | 30 +- .../ARM/2012-08-27-CopyPhysRegCrash.ll | 6 +- .../ARM/2012-10-04-AAPCS-byval-align8.ll | 14 +- .../ARM/2012-10-04-FixedFrame-vs-byval.ll | 6 +- .../2012-10-18-PR14099-ByvalFrameAddress.ll | 3 +- test/CodeGen/ARM/2013-01-21-PR14992.ll | 12 +- .../2013-04-05-Small-ByVal-Structs-PR15293.ll | 30 +- .../CodeGen/ARM/2013-04-16-AAPCS-C5-vs-VFP.ll | 2 +- .../ARM/2013-04-18-load-overlap-PR14824.ll | 20 +- .../CodeGen/ARM/2013-04-21-AAPCS-VA-C.1.cp.ll | 4 +- ...013-05-02-AAPCS-ByVal-Structs-C4-C5-VFP.ll | 11 +- ...13-05-02-AAPCS-ByVal-Structs-C4-C5-VFP2.ll | 2 +- .../ARM/2013-05-07-ByteLoadSameAddress.ll | 38 +- .../ARM/2013-05-13-AAPCS-byval-padding.ll | 8 +- .../ARM/2013-05-31-char-shift-crash.ll | 2 +- .../ARM/2013-07-29-vector-or-combine.ll | 2 +- test/CodeGen/ARM/2013-10-11-select-stalls.ll | 2 +- .../2014-01-09-pseudo_expand_implicit_reg.ll | 8 +- .../2014-02-21-byval-reg-split-alignment.ll | 5 +- .../ARM/2014-07-18-earlyclobber-str-post.ll | 6 +- test/CodeGen/ARM/2014-08-04-muls-it.ll | 4 +- .../ARM/2015-01-21-thumbv4t-ldstr-opt.ll | 87 +- test/CodeGen/ARM/MergeConsecutiveStores.ll | 48 +- .../ARM/Windows/chkstk-movw-movt-isel.ll | 6 +- test/CodeGen/ARM/Windows/dllimport.ll | 4 +- test/CodeGen/ARM/Windows/frame-register.ll | 6 +- test/CodeGen/ARM/Windows/long-calls.ll | 2 +- .../ARM/Windows/movw-movt-relocations.ll | 4 +- test/CodeGen/ARM/Windows/pic.ll | 2 +- test/CodeGen/ARM/Windows/read-only-data.ll | 2 +- .../ARM/Windows/stack-probe-non-default.ll | 27 + test/CodeGen/ARM/Windows/vla.ll | 4 +- test/CodeGen/ARM/a15-partial-update.ll | 8 +- test/CodeGen/ARM/addrmode.ll | 4 +- test/CodeGen/ARM/aggregate-padding.ll | 101 + test/CodeGen/ARM/aliases.ll | 8 +- test/CodeGen/ARM/alloc-no-stack-realign.ll | 25 +- test/CodeGen/ARM/arguments.ll | 2 +- test/CodeGen/ARM/arm-and-tst-peephole.ll | 58 +- test/CodeGen/ARM/arm-asm.ll | 2 +- test/CodeGen/ARM/arm-modifier.ll | 8 +- test/CodeGen/ARM/arm-negative-stride.ll | 4 +- test/CodeGen/ARM/arm-ttype-target2.ll | 2 +- test/CodeGen/ARM/atomic-64bit.ll | 2 +- test/CodeGen/ARM/atomic-load-store.ll | 8 +- test/CodeGen/ARM/atomic-op.ll | 8 +- test/CodeGen/ARM/atomic-ops-v8.ll | 18 +- test/CodeGen/ARM/available_externally.ll | 2 +- test/CodeGen/ARM/avoid-cpsr-rmw.ll | 44 +- test/CodeGen/ARM/bfi.ll | 2 +- test/CodeGen/ARM/bfx.ll | 12 +- test/CodeGen/ARM/big-endian-neon-bitconv.ll | 96 +- test/CodeGen/ARM/big-endian-neon-extend.ll | 85 +- .../ARM/big-endian-neon-trunc-store.ll | 4 +- test/CodeGen/ARM/big-endian-ret-f64.ll | 2 +- test/CodeGen/ARM/big-endian-vector-caller.ll | 168 +- test/CodeGen/ARM/bswap16.ll | 4 +- test/CodeGen/ARM/build-attributes.ll | 297 + test/CodeGen/ARM/bx_fold.ll | 4 +- test/CodeGen/ARM/byval-align.ll | 76 + test/CodeGen/ARM/cache-intrinsic.ll | 8 +- test/CodeGen/ARM/call-tc.ll | 6 +- test/CodeGen/ARM/call.ll | 8 +- test/CodeGen/ARM/call_nolink.ll | 40 +- test/CodeGen/ARM/coalesce-dbgvalue.ll | 58 +- test/CodeGen/ARM/coalesce-subregs.ll | 43 +- test/CodeGen/ARM/code-placement.ll | 8 +- test/CodeGen/ARM/combine-movc-sub.ll | 63 + test/CodeGen/ARM/commute-movcc.ll | 4 +- test/CodeGen/ARM/compare-call.ll | 8 +- test/CodeGen/ARM/copy-paired-reg.ll | 2 +- test/CodeGen/ARM/crash-O0.ll | 4 +- test/CodeGen/ARM/crash-greedy-v6.ll | 14 +- test/CodeGen/ARM/crash.ll | 4 +- test/CodeGen/ARM/cse-call.ll | 4 +- test/CodeGen/ARM/cse-ldrlit.ll | 4 +- test/CodeGen/ARM/cse-libcalls.ll | 2 +- .../CodeGen/ARM/dagcombine-anyexttozeroext.ll | 6 +- test/CodeGen/ARM/darwin-section-order.ll | 21 - test/CodeGen/ARM/debug-frame-large-stack.ll | 2 +- test/CodeGen/ARM/debug-frame-vararg.ll | 126 +- test/CodeGen/ARM/debug-frame.ll | 98 +- test/CodeGen/ARM/debug-info-arg.ll | 72 +- test/CodeGen/ARM/debug-info-blocks.ll | 352 +- test/CodeGen/ARM/debug-info-branch-folding.ll | 104 +- test/CodeGen/ARM/debug-info-d16-reg.ll | 125 +- test/CodeGen/ARM/debug-info-no-frame.ll | 36 + test/CodeGen/ARM/debug-info-qreg.ll | 108 +- test/CodeGen/ARM/debug-info-s16-reg.ll | 139 +- test/CodeGen/ARM/debug-info-sreg2.ll | 38 +- test/CodeGen/ARM/debug-segmented-stacks.ll | 56 +- test/CodeGen/ARM/disable-fp-elim.ll | 25 + test/CodeGen/ARM/div.ll | 24 +- test/CodeGen/ARM/divmod.ll | 10 +- test/CodeGen/ARM/dwarf-eh.ll | 14 +- test/CodeGen/ARM/dyn-stackalloc.ll | 24 +- test/CodeGen/ARM/ehabi.ll | 16 +- test/CodeGen/ARM/emit-big-cst.ll | 2 +- test/CodeGen/ARM/extload-knownzero.ll | 2 +- test/CodeGen/ARM/extloadi1.ll | 2 +- test/CodeGen/ARM/fast-isel-GEP-coalesce.ll | 22 +- test/CodeGen/ARM/fast-isel-align.ll | 34 +- test/CodeGen/ARM/fast-isel-binary.ll | 6 +- test/CodeGen/ARM/fast-isel-br-const.ll | 6 +- test/CodeGen/ARM/fast-isel-br-phi.ll | 2 +- .../ARM/fast-isel-call-multi-reg-return.ll | 6 +- test/CodeGen/ARM/fast-isel-call.ll | 20 +- test/CodeGen/ARM/fast-isel-cmp-imm.ll | 6 +- test/CodeGen/ARM/fast-isel-conversion.ll | 6 +- test/CodeGen/ARM/fast-isel-crash.ll | 4 +- test/CodeGen/ARM/fast-isel-deadcode.ll | 2 +- test/CodeGen/ARM/fast-isel-ext.ll | 14 +- test/CodeGen/ARM/fast-isel-fold.ll | 18 +- test/CodeGen/ARM/fast-isel-frameaddr.ll | 8 +- test/CodeGen/ARM/fast-isel-icmp.ll | 6 +- test/CodeGen/ARM/fast-isel-indirectbr.ll | 6 +- test/CodeGen/ARM/fast-isel-intrinsic.ll | 26 +- test/CodeGen/ARM/fast-isel-ldr-str-arm.ll | 26 +- .../ARM/fast-isel-ldr-str-thumb-neg-index.ll | 56 +- test/CodeGen/ARM/fast-isel-ldrh-strh-arm.ll | 56 +- .../ARM/fast-isel-load-store-verify.ll | 10 +- test/CodeGen/ARM/fast-isel-mvn.ll | 10 +- test/CodeGen/ARM/fast-isel-pic.ll | 14 +- test/CodeGen/ARM/fast-isel-pred.ll | 24 +- test/CodeGen/ARM/fast-isel-redefinition.ll | 6 +- .../ARM/fast-isel-remat-same-constant.ll | 29 + test/CodeGen/ARM/fast-isel-ret.ll | 6 +- test/CodeGen/ARM/fast-isel-select.ll | 32 +- .../ARM/fast-isel-shift-materialize.ll | 25 + test/CodeGen/ARM/fast-isel-shifter.ll | 4 +- test/CodeGen/ARM/fast-isel-static.ll | 18 +- .../fast-isel-update-valuemap-for-extract.ll | 24 + test/CodeGen/ARM/fast-isel-vaddd.ll | 33 + test/CodeGen/ARM/fast-isel-vararg.ll | 20 +- test/CodeGen/ARM/fast-isel.ll | 18 +- .../ARM/fastisel-gep-promote-before-add.ll | 6 +- test/CodeGen/ARM/fcopysign.ll | 2 +- test/CodeGen/ARM/flag-crash.ll | 12 +- test/CodeGen/ARM/fnegs.ll | 4 +- test/CodeGen/ARM/fold-stack-adjust.ll | 22 +- test/CodeGen/ARM/fp.ll | 2 +- test/CodeGen/ARM/fp16-promote.ll | 903 + test/CodeGen/ARM/fp16.ll | 4 +- test/CodeGen/ARM/fpcmp-opt.ll | 8 +- test/CodeGen/ARM/fpmem.ll | 10 +- test/CodeGen/ARM/fptoint.ll | 4 +- test/CodeGen/ARM/frame-register.ll | 12 +- test/CodeGen/ARM/fusedMAC.ll | 2 +- test/CodeGen/ARM/ghc-tcreturn-lowered.ll | 4 +- test/CodeGen/ARM/global-merge-1.ll | 45 +- test/CodeGen/ARM/global-merge-addrspace.ll | 4 +- test/CodeGen/ARM/global-merge.ll | 8 +- test/CodeGen/ARM/globals.ll | 2 +- test/CodeGen/ARM/gv-stubs-crash.ll | 2 +- test/CodeGen/ARM/half.ll | 14 +- test/CodeGen/ARM/hello.ll | 2 +- test/CodeGen/ARM/hidden-vis-2.ll | 2 +- test/CodeGen/ARM/hidden-vis-3.ll | 4 +- test/CodeGen/ARM/ifconv-kills.ll | 6 +- test/CodeGen/ARM/ifconv-regmask.ll | 2 +- test/CodeGen/ARM/ifcvt-branch-weight-bug.ll | 2 +- test/CodeGen/ARM/ifcvt-branch-weight.ll | 8 +- test/CodeGen/ARM/ifcvt-dead-def.ll | 55 + test/CodeGen/ARM/ifcvt-iter-indbr.ll | 56 + test/CodeGen/ARM/ifcvt-regmask-noreturn.ll | 45 + test/CodeGen/ARM/ifcvt11.ll | 12 +- test/CodeGen/ARM/ifcvt3.ll | 4 +- test/CodeGen/ARM/ifcvt5.ll | 2 +- test/CodeGen/ARM/ifcvt6.ll | 2 +- test/CodeGen/ARM/ifcvt7.ll | 6 +- test/CodeGen/ARM/illegal-vector-bitcast.ll | 4 +- test/CodeGen/ARM/indirect-reg-input.ll | 2 +- test/CodeGen/ARM/indirectbr-2.ll | 10 +- test/CodeGen/ARM/indirectbr.ll | 6 +- test/CodeGen/ARM/inline-diagnostics.ll | 4 +- test/CodeGen/ARM/inlineasm-64bit.ll | 2 +- test/CodeGen/ARM/interrupt-attr.ll | 12 +- test/CodeGen/ARM/intrinsics-crypto.ll | 10 +- test/CodeGen/ARM/intrinsics-memory-barrier.ll | 6 +- test/CodeGen/ARM/invoke-donothing-assert.ll | 2 +- test/CodeGen/ARM/isel-v8i32-crash.ll | 2 +- test/CodeGen/ARM/krait-cpu-div-attribute.ll | 36 + test/CodeGen/ARM/large-stack.ll | 2 +- test/CodeGen/ARM/ldm.ll | 16 +- test/CodeGen/ARM/ldr.ll | 18 +- test/CodeGen/ARM/ldr_ext.ll | 10 +- test/CodeGen/ARM/ldr_frame.ll | 16 +- test/CodeGen/ARM/ldr_post.ll | 4 +- test/CodeGen/ARM/ldr_pre.ll | 6 +- test/CodeGen/ARM/ldrd-memoper.ll | 4 +- test/CodeGen/ARM/ldrd.ll | 20 +- test/CodeGen/ARM/ldst-f32-2-i32.ll | 6 +- test/CodeGen/ARM/ldstrex-m.ll | 6 +- test/CodeGen/ARM/ldstrex.ll | 12 +- test/CodeGen/ARM/load-global.ll | 2 +- test/CodeGen/ARM/load.ll | 8 +- test/CodeGen/ARM/load_i1_select.ll | 2 +- test/CodeGen/ARM/long.ll | 2 +- test/CodeGen/ARM/longMAC.ll | 41 + test/CodeGen/ARM/lsr-code-insertion.ll | 24 +- test/CodeGen/ARM/lsr-icmp-imm.ll | 4 +- test/CodeGen/ARM/lsr-scale-addr-mode.ll | 2 +- test/CodeGen/ARM/lsr-unfolded-offset.ll | 16 +- test/CodeGen/ARM/machine-cse-cmp.ll | 8 +- test/CodeGen/ARM/machine-licm.ll | 6 +- test/CodeGen/ARM/memcpy-inline.ll | 41 +- test/CodeGen/ARM/memfunc.ll | 388 +- test/CodeGen/ARM/memset-inline.ll | 4 +- test/CodeGen/ARM/minsize-litpools.ll | 4 +- test/CodeGen/ARM/misched-copy-arm.ll | 8 +- test/CodeGen/ARM/movcc-double.ll | 50 + test/CodeGen/ARM/mult-alt-generic-arm.ll | 46 +- test/CodeGen/ARM/negative-offset.ll | 8 +- test/CodeGen/ARM/neon-spfp.ll | 2 +- test/CodeGen/ARM/neon-v8.1a.ll | 166 + test/CodeGen/ARM/neon_cmp.ll | 4 +- test/CodeGen/ARM/neon_div.ll | 16 +- test/CodeGen/ARM/neon_fpconv.ll | 4 +- test/CodeGen/ARM/neon_ld1.ll | 8 +- test/CodeGen/ARM/neon_ld2.ll | 12 +- test/CodeGen/ARM/neon_spill.ll | 2 +- test/CodeGen/ARM/no-fpu.ll | 2 +- test/CodeGen/ARM/no-tail-call.ll | 44 +- test/CodeGen/ARM/none-macho.ll | 11 +- test/CodeGen/ARM/noopt-dmb-v7.ll | 15 + test/CodeGen/ARM/nop_concat_vectors.ll | 2 +- test/CodeGen/ARM/null-streamer.ll | 2 + test/CodeGen/ARM/odr_comdat.ll | 16 - test/CodeGen/ARM/optimize-dmbs-v7.ll | 2 +- test/CodeGen/ARM/optselect-regclass.ll | 4 +- test/CodeGen/ARM/phi.ll | 6 +- test/CodeGen/ARM/popcnt.ll | 36 +- test/CodeGen/ARM/pr13249.ll | 8 +- test/CodeGen/ARM/pr18364-movw.ll | 4 +- test/CodeGen/ARM/pr3502.ll | 2 +- test/CodeGen/ARM/prefetch.ll | 6 +- test/CodeGen/ARM/print-memb-operand.ll | 12 + test/CodeGen/ARM/private.ll | 2 +- test/CodeGen/ARM/reg_sequence.ll | 26 +- test/CodeGen/ARM/regpair_hint_phys.ll | 22 + test/CodeGen/ARM/saxpy10-a9.ll | 96 +- test/CodeGen/ARM/sched-it-debug-nodes.ll | 88 + test/CodeGen/ARM/section-name.ll | 2 +- test/CodeGen/ARM/segmented-stacks.ll | 2 +- test/CodeGen/ARM/select_xform.ll | 2 +- test/CodeGen/ARM/shifter_operand.ll | 10 +- .../CodeGen/ARM/sjlj-prepare-critical-edge.ll | 128 +- test/CodeGen/ARM/smul.ll | 2 +- test/CodeGen/ARM/space-directive.ll | 2 +- test/CodeGen/ARM/spill-q.ll | 2 +- test/CodeGen/ARM/ssp-data-layout.ll | 222 +- test/CodeGen/ARM/stack-alignment.ll | 120 +- .../ARM/stack-protector-bmovpcb_call.ll | 6 +- test/CodeGen/ARM/stack_guard_remat.ll | 2 +- test/CodeGen/ARM/stm.ll | 4 +- test/CodeGen/ARM/str_post.ll | 4 +- test/CodeGen/ARM/str_pre-2.ll | 4 +- test/CodeGen/ARM/str_pre.ll | 8 +- test/CodeGen/ARM/struct-byval-frame-index.ll | 58 +- test/CodeGen/ARM/struct_byval.ll | 21 +- test/CodeGen/ARM/sub-cmp-peephole.ll | 4 +- test/CodeGen/ARM/swift-atomics.ll | 4 +- test/CodeGen/ARM/swift-vldm.ll | 16 +- test/CodeGen/ARM/t2abs-killflags.ll | 23 + test/CodeGen/ARM/tail-dup-kill-flags.ll | 54 + test/CodeGen/ARM/tail-dup.ll | 16 +- test/CodeGen/ARM/test-sharedidx.ll | 40 +- test/CodeGen/ARM/this-return.ll | 10 +- test/CodeGen/ARM/thumb-alignment.ll | 54 + test/CodeGen/ARM/thumb-big-stack.ll | 6844 +++ test/CodeGen/ARM/thumb1-varalloc.ll | 36 +- test/CodeGen/ARM/thumb1_return_sequence.ll | 68 +- .../thumb2-size-reduction-internal-flags.ll | 173 + test/CodeGen/ARM/thumb_indirect_calls.ll | 2 +- test/CodeGen/ARM/tls1.ll | 2 +- test/CodeGen/ARM/tls2.ll | 2 +- test/CodeGen/ARM/tls3.ll | 2 +- test/CodeGen/ARM/trunc_ldr.ll | 8 +- test/CodeGen/ARM/truncstore-dag-combine.ll | 4 +- test/CodeGen/ARM/twoaddrinstr.ll | 2 +- test/CodeGen/ARM/uint64tof64.ll | 4 +- test/CodeGen/ARM/umulo-32.ll | 2 +- test/CodeGen/ARM/unaligned_load_store.ll | 8 +- .../ARM/unaligned_load_store_vector.ll | 162 +- test/CodeGen/ARM/undef-sext.ll | 4 +- test/CodeGen/ARM/vaba.ll | 108 +- test/CodeGen/ARM/vabd.ll | 80 +- test/CodeGen/ARM/vabs.ll | 28 +- test/CodeGen/ARM/vadd.ll | 100 +- .../ARM/varargs-spill-stack-align-nacl.ll | 4 +- test/CodeGen/ARM/vargs.ll | 4 +- test/CodeGen/ARM/vargs_align.ll | 12 +- test/CodeGen/ARM/vbits.ll | 208 +- test/CodeGen/ARM/vbsl-constant.ll | 48 +- test/CodeGen/ARM/vbsl.ll | 48 +- test/CodeGen/ARM/vceq.ll | 34 +- test/CodeGen/ARM/vcge.ll | 68 +- test/CodeGen/ARM/vcgt.ll | 72 +- test/CodeGen/ARM/vcnt.ll | 28 +- test/CodeGen/ARM/vcombine.ll | 24 +- test/CodeGen/ARM/vcvt-cost.ll | 20 +- test/CodeGen/ARM/vcvt-v8.ll | 32 +- test/CodeGen/ARM/vcvt.ll | 40 +- test/CodeGen/ARM/vcvt_combine.ll | 12 +- test/CodeGen/ARM/vdiv_combine.ll | 12 +- test/CodeGen/ARM/vdup.ll | 22 +- test/CodeGen/ARM/vector-DAGCombine.ll | 40 +- test/CodeGen/ARM/vector-extend-narrow.ll | 10 +- test/CodeGen/ARM/vector-load.ll | 253 + test/CodeGen/ARM/vector-promotion.ll | 76 +- test/CodeGen/ARM/vector-spilling.ll | 18 +- test/CodeGen/ARM/vector-store.ll | 258 + test/CodeGen/ARM/vext.ll | 50 +- test/CodeGen/ARM/vfcmp.ll | 44 +- test/CodeGen/ARM/vfp-libcalls.ll | 4 +- test/CodeGen/ARM/vfp-regs-dwarf.ll | 12 +- test/CodeGen/ARM/vfp.ll | 46 +- test/CodeGen/ARM/vget_lane.ll | 44 +- test/CodeGen/ARM/vhadd.ll | 96 +- test/CodeGen/ARM/vhsub.ll | 48 +- test/CodeGen/ARM/vicmp.ll | 40 +- test/CodeGen/ARM/vld1.ll | 12 +- test/CodeGen/ARM/vld2.ll | 8 +- test/CodeGen/ARM/vld3.ll | 10 +- test/CodeGen/ARM/vld4.ll | 10 +- test/CodeGen/ARM/vlddup.ll | 24 +- test/CodeGen/ARM/vldlane.ll | 96 +- test/CodeGen/ARM/vldm-liveness.ll | 16 +- test/CodeGen/ARM/vldm-sched-a9.ll | 20 +- test/CodeGen/ARM/vminmax.ll | 112 +- test/CodeGen/ARM/vminmaxnm.ll | 398 +- test/CodeGen/ARM/vmla.ll | 84 +- test/CodeGen/ARM/vmls.ll | 84 +- test/CodeGen/ARM/vmov.ll | 44 +- test/CodeGen/ARM/vmul.ll | 106 +- test/CodeGen/ARM/vneg.ll | 28 +- test/CodeGen/ARM/vpadal.ll | 48 +- test/CodeGen/ARM/vpadd.ll | 44 +- test/CodeGen/ARM/vpminmax.ll | 56 +- test/CodeGen/ARM/vqadd.ll | 64 +- test/CodeGen/ARM/vqdmul.ll | 64 +- test/CodeGen/ARM/vqshl.ll | 176 +- test/CodeGen/ARM/vqshrn.ll | 36 +- test/CodeGen/ARM/vqsub.ll | 64 +- test/CodeGen/ARM/vrec.ll | 32 +- test/CodeGen/ARM/vrev.ll | 40 +- test/CodeGen/ARM/vselect_imax.ll | 24 +- test/CodeGen/ARM/vshift.ll | 144 +- test/CodeGen/ARM/vshiftins.ll | 64 +- test/CodeGen/ARM/vshl.ll | 208 +- test/CodeGen/ARM/vshll.ll | 24 +- test/CodeGen/ARM/vshrn.ll | 18 +- test/CodeGen/ARM/vsra.ll | 128 +- test/CodeGen/ARM/vst1.ll | 34 +- test/CodeGen/ARM/vst2.ll | 38 +- test/CodeGen/ARM/vst3.ll | 36 +- test/CodeGen/ARM/vst4.ll | 36 +- test/CodeGen/ARM/vstlane.ll | 88 +- test/CodeGen/ARM/vsub.ll | 100 +- test/CodeGen/ARM/vtbl.ll | 40 +- test/CodeGen/ARM/vtrn.ll | 40 +- test/CodeGen/ARM/vuzp.ll | 32 +- test/CodeGen/ARM/vzip.ll | 32 +- test/CodeGen/ARM/warn-stack.ll | 4 +- test/CodeGen/ARM/weak2.ll | 2 +- test/CodeGen/ARM/wrong-t2stmia-size-opt.ll | 4 +- test/CodeGen/ARM/zextload_demandedbits.ll | 6 +- test/CodeGen/BPF/alu8.ll | 46 + test/CodeGen/BPF/atomics.ll | 20 + test/CodeGen/BPF/basictest.ll | 28 + test/CodeGen/BPF/byval.ll | 27 + test/CodeGen/BPF/cc_args.ll | 96 + test/CodeGen/BPF/cc_ret.ll | 48 + test/CodeGen/BPF/cmp.ll | 119 + test/CodeGen/BPF/ex1.ll | 46 + test/CodeGen/BPF/intrinsics.ll | 88 + test/CodeGen/BPF/lit.local.cfg | 2 + test/CodeGen/BPF/load.ll | 43 + test/CodeGen/BPF/loops.ll | 111 + test/CodeGen/BPF/many_args1.ll | 12 + test/CodeGen/BPF/many_args2.ll | 15 + test/CodeGen/BPF/sanity.ll | 117 + test/CodeGen/BPF/setcc.ll | 99 + test/CodeGen/BPF/shifts.ll | 101 + test/CodeGen/BPF/sockex2.ll | 326 + test/CodeGen/BPF/struct_ret1.ll | 17 + test/CodeGen/BPF/struct_ret2.ll | 12 + test/CodeGen/BPF/vararg1.ll | 9 + test/CodeGen/CPP/2009-05-01-Long-Double.ll | 4 +- test/CodeGen/CPP/2009-05-04-CondBr.ll | 10 +- test/CodeGen/Generic/2003-05-28-ManyArgs.ll | 190 +- test/CodeGen/Generic/2003-05-30-BadFoldGEP.ll | 10 +- test/CodeGen/Generic/2003-07-06-BadIntCmp.ll | 4 +- .../Generic/2003-07-07-BadLongConst.ll | 2 +- .../Generic/2003-07-08-BadCastToBool.ll | 2 +- .../Generic/2003-07-29-BadConstSbyte.ll | 8 +- .../2004-05-09-LiveVarPartialRegister.ll | 4 +- .../CodeGen/Generic/2005-04-09-GlobalInPHI.ll | 2 +- test/CodeGen/Generic/2005-12-01-Crash.ll | 2 +- .../Generic/2006-02-12-InsertLibcall.ll | 2 +- .../Generic/2006-03-01-dagcombineinfloop.ll | 30 +- test/CodeGen/Generic/2006-04-26-SetCCAnd.ll | 4 +- .../Generic/2006-05-06-GEP-Cast-Sink-Crash.ll | 4 +- .../2006-06-13-ComputeMaskedBitsCrash.ll | 8 +- .../Generic/2006-06-28-SimplifySetCCCrash.ll | 8 +- .../Generic/2006-09-02-LocalAllocCrash.ll | 24 +- .../Generic/2006-11-20-DAGCombineCrash.ll | 4 +- .../Generic/2007-01-15-LoadSelectCycle.ll | 4 +- test/CodeGen/Generic/2007-05-03-EHTypeInfo.ll | 4 +- .../Generic/2008-01-25-dag-combine-mul.ll | 12 +- test/CodeGen/Generic/2008-01-30-LoadCrash.ll | 6 +- test/CodeGen/Generic/2008-02-04-Ctlz.ll | 2 +- .../CodeGen/Generic/2008-02-20-MatchingMem.ll | 3 +- test/CodeGen/Generic/2008-02-25-NegateZero.ll | 6 +- .../Generic/2008-08-07-PtrToInt-SmallerInt.ll | 2 +- .../2009-03-29-SoftFloatVectorExtract.ll | 10 +- .../Generic/2009-04-28-i128-cmp-crash.ll | 4 +- .../Generic/2011-07-07-ScheduleDAGCrash.ll | 4 +- test/CodeGen/Generic/2012-06-08-APIntCrash.ll | 2 +- .../Generic/2014-02-05-OpaqueConstants.ll | 4 +- test/CodeGen/Generic/APIntLoadStore.ll | 512 +- test/CodeGen/Generic/ConstantExprLowering.ll | 2 +- test/CodeGen/Generic/MachineBranchProb.ll | 43 +- test/CodeGen/Generic/PBQP.ll | 34 +- test/CodeGen/Generic/add-with-overflow-128.ll | 4 +- test/CodeGen/Generic/add-with-overflow-24.ll | 8 +- test/CodeGen/Generic/add-with-overflow.ll | 8 +- test/CodeGen/Generic/annotate.ll | 2 +- test/CodeGen/Generic/badFoldGEP.ll | 6 +- test/CodeGen/Generic/badarg6.ll | 2 +- test/CodeGen/Generic/builtin-expect.ll | 46 +- test/CodeGen/Generic/cast-fp.ll | 28 +- test/CodeGen/Generic/constindices.ll | 30 +- test/CodeGen/Generic/crash.ll | 18 +- test/CodeGen/Generic/dag-combine-crash.ll | 2 +- test/CodeGen/Generic/dbg_value.ll | 4 +- test/CodeGen/Generic/empty-load-store.ll | 4 +- test/CodeGen/Generic/empty-phi.ll | 2 +- test/CodeGen/Generic/fastcall.ll | 2 +- test/CodeGen/Generic/fp-to-int-invalid.ll | 4 +- test/CodeGen/Generic/fwdtwice.ll | 2 +- test/CodeGen/Generic/global-ret0.ll | 2 +- test/CodeGen/Generic/hello.ll | 4 +- test/CodeGen/Generic/icmp-illegal.ll | 50 + .../CodeGen/Generic/inline-asm-mem-clobber.ll | 6 +- test/CodeGen/Generic/invalid-memcpy.ll | 2 +- test/CodeGen/Generic/negintconst.ll | 6 +- .../Generic/overloaded-intrinsic-name.ll | 57 + test/CodeGen/Generic/pr2625.ll | 4 +- test/CodeGen/Generic/print-add.ll | 8 +- test/CodeGen/Generic/print-arith-fp.ll | 56 +- test/CodeGen/Generic/print-arith-int.ll | 76 +- test/CodeGen/Generic/print-int.ll | 4 +- test/CodeGen/Generic/print-mul-exp.ll | 48 +- test/CodeGen/Generic/print-mul.ll | 16 +- test/CodeGen/Generic/print-shift.ll | 16 +- test/CodeGen/Generic/ptr-annotate.ll | 2 +- test/CodeGen/Generic/select.ll | 8 +- test/CodeGen/Generic/stop-after.ll | 2 +- test/CodeGen/Generic/undef-phi.ll | 8 +- test/CodeGen/Generic/v-split.ll | 4 +- test/CodeGen/Generic/vector-casts.ll | 14 +- .../Generic/vector-identity-shuffle.ll | 2 +- test/CodeGen/Generic/vector.ll | 45 +- test/CodeGen/Hexagon/BranchPredict.ll | 4 +- test/CodeGen/Hexagon/absaddr-store.ll | 6 +- test/CodeGen/Hexagon/absimm.ll | 2 +- test/CodeGen/Hexagon/adde.ll | 4 +- test/CodeGen/Hexagon/alu64.ll | 599 + test/CodeGen/Hexagon/always-ext.ll | 9 +- test/CodeGen/Hexagon/block-addr.ll | 19 +- test/CodeGen/Hexagon/brev_ld.ll | 140 + test/CodeGen/Hexagon/brev_st.ll | 112 + test/CodeGen/Hexagon/calling-conv-2.ll | 13 + test/CodeGen/Hexagon/calling-conv.ll | 73 + test/CodeGen/Hexagon/cext-check.ll | 18 +- test/CodeGen/Hexagon/cext-valid-packet2.ll | 24 +- test/CodeGen/Hexagon/circ_ld.ll | 135 + test/CodeGen/Hexagon/circ_ldd_bug.ll | 255 + test/CodeGen/Hexagon/circ_ldw.ll | 18 + test/CodeGen/Hexagon/circ_st.ll | 108 + test/CodeGen/Hexagon/clr_set_toggle.ll | 160 + test/CodeGen/Hexagon/cmp-not.ll | 50 - test/CodeGen/Hexagon/cmp-to-predreg.ll | 4 +- test/CodeGen/Hexagon/cmp_pred.ll | 1 + test/CodeGen/Hexagon/cmp_pred2.ll | 8 +- test/CodeGen/Hexagon/cmp_pred_reg.ll | 1 + test/CodeGen/Hexagon/cmpb_pred.ll | 7 +- test/CodeGen/Hexagon/combine.ll | 4 +- test/CodeGen/Hexagon/combine_ir.ll | 14 +- test/CodeGen/Hexagon/convertdptoint.ll | 8 +- test/CodeGen/Hexagon/convertdptoll.ll | 8 +- test/CodeGen/Hexagon/convertsptoint.ll | 8 +- test/CodeGen/Hexagon/convertsptoll.ll | 8 +- test/CodeGen/Hexagon/ctlz-cttz-ctpop.ll | 8 +- test/CodeGen/Hexagon/dadd.ll | 6 +- test/CodeGen/Hexagon/dmul.ll | 6 +- test/CodeGen/Hexagon/double.ll | 10 +- .../Hexagon/doubleconvert-ieee-rnd-near.ll | 8 +- test/CodeGen/Hexagon/dsub.ll | 6 +- test/CodeGen/Hexagon/dualstore.ll | 17 +- test/CodeGen/Hexagon/expand-condsets-basic.ll | 11 + .../Hexagon/expand-condsets-rm-segment.ll | 131 + test/CodeGen/Hexagon/expand-condsets-undef.ll | 28 + test/CodeGen/Hexagon/extload-combine.ll | 12 +- test/CodeGen/Hexagon/fadd.ll | 4 +- test/CodeGen/Hexagon/fcmp.ll | 6 +- test/CodeGen/Hexagon/float.ll | 10 +- .../Hexagon/floatconvert-ieee-rnd-near.ll | 10 +- test/CodeGen/Hexagon/fmul.ll | 4 +- test/CodeGen/Hexagon/frame.ll | 10 +- test/CodeGen/Hexagon/fsub.ll | 4 +- test/CodeGen/Hexagon/fusedandshift.ll | 2 +- test/CodeGen/Hexagon/gp-plus-offset-load.ll | 6 +- test/CodeGen/Hexagon/gp-plus-offset-store.ll | 4 +- test/CodeGen/Hexagon/gp-rel.ll | 6 +- test/CodeGen/Hexagon/hwloop-cleanup.ll | 13 +- test/CodeGen/Hexagon/hwloop-const.ll | 4 +- test/CodeGen/Hexagon/hwloop-crit-edge.ll | 58 + test/CodeGen/Hexagon/hwloop-dbg.ll | 56 +- test/CodeGen/Hexagon/hwloop-le.ll | 60 +- test/CodeGen/Hexagon/hwloop-loop1.ll | 68 + test/CodeGen/Hexagon/hwloop-lt.ll | 209 +- test/CodeGen/Hexagon/hwloop-lt1.ll | 8 +- test/CodeGen/Hexagon/hwloop-missed.ll | 49 + test/CodeGen/Hexagon/hwloop-ne.ll | 60 +- test/CodeGen/Hexagon/hwloop-ph-deadcode.ll | 23 + test/CodeGen/Hexagon/hwloop-pos-ivbump1.ll | 45 + test/CodeGen/Hexagon/hwloop-preheader.ll | 40 + test/CodeGen/Hexagon/hwloop-range.ll | 36 + test/CodeGen/Hexagon/hwloop-recursion.ll | 64 + test/CodeGen/Hexagon/hwloop-wrap.ll | 22 + test/CodeGen/Hexagon/hwloop-wrap2.ll | 67 + test/CodeGen/Hexagon/hwloop1.ll | 161 + test/CodeGen/Hexagon/hwloop2.ll | 37 + test/CodeGen/Hexagon/hwloop3.ll | 27 + test/CodeGen/Hexagon/hwloop4.ll | 76 + test/CodeGen/Hexagon/hwloop5.ll | 93 + test/CodeGen/Hexagon/i16_VarArg.ll | 18 +- test/CodeGen/Hexagon/i1_VarArg.ll | 28 +- test/CodeGen/Hexagon/i8_VarArg.ll | 18 +- .../Hexagon/idxload-with-zero-offset.ll | 64 +- test/CodeGen/Hexagon/intrinsics/alu32_alu.ll | 202 + test/CodeGen/Hexagon/intrinsics/alu32_perm.ll | 104 + test/CodeGen/Hexagon/intrinsics/cr.ll | 132 + test/CodeGen/Hexagon/intrinsics/xtype_alu.ll | 1020 + test/CodeGen/Hexagon/intrinsics/xtype_bit.ll | 329 + .../Hexagon/intrinsics/xtype_complex.ll | 349 + test/CodeGen/Hexagon/intrinsics/xtype_fp.ll | 388 + test/CodeGen/Hexagon/intrinsics/xtype_mpy.ll | 1525 + test/CodeGen/Hexagon/intrinsics/xtype_perm.ll | 252 + test/CodeGen/Hexagon/intrinsics/xtype_pred.ll | 351 + .../CodeGen/Hexagon/intrinsics/xtype_shift.ll | 723 + test/CodeGen/Hexagon/macint.ll | 4 +- test/CodeGen/Hexagon/mem-fi-add.ll | 29 + test/CodeGen/Hexagon/memops.ll | 420 +- test/CodeGen/Hexagon/memops1.ll | 16 +- test/CodeGen/Hexagon/memops2.ll | 8 +- test/CodeGen/Hexagon/memops3.ll | 8 +- test/CodeGen/Hexagon/misaligned-access.ll | 4 +- test/CodeGen/Hexagon/mpy.ll | 6 +- test/CodeGen/Hexagon/newvaluejump.ll | 4 +- test/CodeGen/Hexagon/newvaluejump2.ll | 17 +- test/CodeGen/Hexagon/newvaluestore.ll | 6 +- test/CodeGen/Hexagon/opt-fabs.ll | 2 +- test/CodeGen/Hexagon/opt-fneg.ll | 2 +- test/CodeGen/Hexagon/postinc-load.ll | 8 +- test/CodeGen/Hexagon/postinc-store.ll | 8 +- test/CodeGen/Hexagon/pred-absolute-store.ll | 5 +- test/CodeGen/Hexagon/pred-gp.ll | 4 +- test/CodeGen/Hexagon/pred-instrs.ll | 2 +- test/CodeGen/Hexagon/remove-endloop.ll | 56 + test/CodeGen/Hexagon/remove_lsr.ll | 26 +- test/CodeGen/Hexagon/shrink-frame-basic.ll | 36 + test/CodeGen/Hexagon/stack-align1.ll | 21 + test/CodeGen/Hexagon/stack-align2.ll | 27 + test/CodeGen/Hexagon/stack-alloca1.ll | 18 + test/CodeGen/Hexagon/stack-alloca2.ll | 23 + test/CodeGen/Hexagon/static.ll | 6 +- test/CodeGen/Hexagon/struct_args.ll | 2 +- test/CodeGen/Hexagon/struct_args_large.ll | 3 +- test/CodeGen/Hexagon/sube.ll | 4 +- .../Hexagon/tail-call-mem-intrinsics.ll | 31 + test/CodeGen/Hexagon/tfr-to-combine.ll | 4 +- test/CodeGen/Hexagon/union-1.ll | 8 +- test/CodeGen/Hexagon/vaddh.ll | 4 +- test/CodeGen/Hexagon/validate-offset.ll | 14 +- test/CodeGen/Hexagon/vect/vect-anyextend.ll | 15 + .../Hexagon/vect/vect-apint-truncate.ll | 27 + test/CodeGen/Hexagon/vect/vect-bad-bitcast.ll | 61 + test/CodeGen/Hexagon/vect/vect-bitcast-1.ll | 68 + test/CodeGen/Hexagon/vect/vect-bitcast.ll | 56 + test/CodeGen/Hexagon/vect/vect-cst-v4i32.ll | 29 + test/CodeGen/Hexagon/vect/vect-cst-v4i8.ll | 30 + test/CodeGen/Hexagon/vect/vect-cst.ll | 29 + test/CodeGen/Hexagon/vect/vect-extract.ll | 96 + test/CodeGen/Hexagon/vect/vect-fma.ll | 26 + .../CodeGen/Hexagon/vect/vect-illegal-type.ll | 50 + .../Hexagon/vect/vect-insert-extract-elt.ll | 71 + test/CodeGen/Hexagon/vect/vect-load-1.ll | 26 + test/CodeGen/Hexagon/vect/vect-load.ll | 76 + test/CodeGen/Hexagon/vect/vect-loadv4i16.ll | 73 + test/CodeGen/Hexagon/vect/vect-mul-v2i16.ll | 9 + test/CodeGen/Hexagon/vect/vect-mul-v2i32.ll | 9 + test/CodeGen/Hexagon/vect/vect-mul-v4i16.ll | 10 + test/CodeGen/Hexagon/vect/vect-mul-v4i8.ll | 9 + test/CodeGen/Hexagon/vect/vect-mul-v8i8.ll | 9 + test/CodeGen/Hexagon/vect/vect-no-tfrs-1.ll | 8 + test/CodeGen/Hexagon/vect/vect-no-tfrs.ll | 8 + test/CodeGen/Hexagon/vect/vect-packhl.ll | 10 + test/CodeGen/Hexagon/vect/vect-shift-imm.ll | 41 + test/CodeGen/Hexagon/vect/vect-shuffle.ll | 47 + test/CodeGen/Hexagon/vect/vect-splat.ll | 16 + test/CodeGen/Hexagon/vect/vect-store-v2i16.ll | 51 + test/CodeGen/Hexagon/vect/vect-truncate.ll | 42 + test/CodeGen/Hexagon/vect/vect-vaddb-1.ll | 8 + test/CodeGen/Hexagon/vect/vect-vaddb.ll | 8 + test/CodeGen/Hexagon/vect/vect-vaddh-1.ll | 8 + test/CodeGen/Hexagon/vect/vect-vaddh.ll | 8 + test/CodeGen/Hexagon/vect/vect-vaddw.ll | 8 + test/CodeGen/Hexagon/vect/vect-vaslw.ll | 33 + test/CodeGen/Hexagon/vect/vect-vshifts.ll | 279 + test/CodeGen/Hexagon/vect/vect-vsplatb.ll | 29 + test/CodeGen/Hexagon/vect/vect-vsplath.ll | 29 + test/CodeGen/Hexagon/vect/vect-vsubb-1.ll | 8 + test/CodeGen/Hexagon/vect/vect-vsubb.ll | 8 + test/CodeGen/Hexagon/vect/vect-vsubh-1.ll | 8 + test/CodeGen/Hexagon/vect/vect-vsubh.ll | 8 + test/CodeGen/Hexagon/vect/vect-vsubw.ll | 8 + test/CodeGen/Hexagon/vect/vect-xor.ll | 38 + test/CodeGen/Hexagon/vect/vect-zeroextend.ll | 23 + test/CodeGen/Hexagon/zextloadi1.ll | 4 +- test/CodeGen/Inputs/DbgValueOtherTargets.ll | 26 +- test/CodeGen/MSP430/2009-05-10-CyclicDAG.ll | 2 +- test/CodeGen/MSP430/2009-05-17-Rot.ll | 6 +- test/CodeGen/MSP430/2009-05-17-Shift.ll | 4 +- .../MSP430/2009-08-25-DynamicStackAlloc.ll | 4 +- .../CodeGen/MSP430/2009-09-18-AbsoluteAddr.ll | 8 +- test/CodeGen/MSP430/2009-10-10-OrImpDef.ll | 2 +- .../CodeGen/MSP430/2009-11-08-InvalidResNo.ll | 6 +- test/CodeGen/MSP430/2009-12-22-InlineAsm.ll | 4 +- test/CodeGen/MSP430/2010-05-01-CombinerAnd.ll | 2 +- test/CodeGen/MSP430/AddrMode-bis-rx.ll | 22 +- test/CodeGen/MSP430/AddrMode-bis-xr.ll | 24 +- test/CodeGen/MSP430/AddrMode-mov-rx.ll | 22 +- test/CodeGen/MSP430/AddrMode-mov-xr.ll | 10 +- test/CodeGen/MSP430/Inst16mi.ll | 8 +- test/CodeGen/MSP430/Inst16mm.ll | 22 +- test/CodeGen/MSP430/Inst16mr.ll | 10 +- test/CodeGen/MSP430/Inst16rm.ll | 10 +- test/CodeGen/MSP430/Inst8mi.ll | 8 +- test/CodeGen/MSP430/Inst8mm.ll | 18 +- test/CodeGen/MSP430/Inst8mr.ll | 10 +- test/CodeGen/MSP430/Inst8rm.ll | 10 +- test/CodeGen/MSP430/bit.ll | 24 +- test/CodeGen/MSP430/byval.ll | 4 +- test/CodeGen/MSP430/indirectbr.ll | 6 +- test/CodeGen/MSP430/indirectbr2.ll | 4 +- test/CodeGen/MSP430/inline-asm.ll | 4 +- test/CodeGen/MSP430/jumptable.ll | 4 +- test/CodeGen/MSP430/memset.ll | 2 +- test/CodeGen/MSP430/misched-msp430.ll | 2 +- .../CodeGen/MSP430/mult-alt-generic-msp430.ll | 46 +- test/CodeGen/MSP430/postinc.ll | 20 +- test/CodeGen/Mips/2008-07-03-SRet.ll | 6 +- .../Mips/2008-07-15-InternalConstant.ll | 4 +- test/CodeGen/Mips/2008-07-15-SmallSection.ll | 6 +- test/CodeGen/Mips/2008-08-01-AsmInline.ll | 12 +- test/CodeGen/Mips/2008-08-03-ReturnDouble.ll | 4 +- test/CodeGen/Mips/2008-10-13-LegalizerBug.ll | 4 +- test/CodeGen/Mips/2008-11-10-xint_to_fp.ll | 24 +- test/CodeGen/Mips/2009-11-16-CstPoolLoad.ll | 8 +- test/CodeGen/Mips/2010-07-20-Switch.ll | 2 +- test/CodeGen/Mips/2012-12-12-ExpandMemcpy.ll | 2 +- test/CodeGen/Mips/Fast-ISel/br1.ll | 6 +- test/CodeGen/Mips/Fast-ISel/callabi.ll | 865 +- .../Mips/Fast-ISel/constexpr-address.ll | 18 + test/CodeGen/Mips/Fast-ISel/fastalloca.ll | 32 + test/CodeGen/Mips/Fast-ISel/fpcmpa.ll | 52 +- test/CodeGen/Mips/Fast-ISel/fpext.ll | 6 +- test/CodeGen/Mips/Fast-ISel/fpintconv.ll | 8 +- test/CodeGen/Mips/Fast-ISel/fptrunc.ll | 6 +- test/CodeGen/Mips/Fast-ISel/icmpa.ll | 44 +- test/CodeGen/Mips/Fast-ISel/loadstore2.ll | 14 +- test/CodeGen/Mips/Fast-ISel/loadstoreconv.ll | 38 +- test/CodeGen/Mips/Fast-ISel/loadstrconst.ll | 6 +- test/CodeGen/Mips/Fast-ISel/logopm.ll | 606 + test/CodeGen/Mips/Fast-ISel/nullvoid.ll | 4 +- test/CodeGen/Mips/Fast-ISel/overflt.ll | 64 + test/CodeGen/Mips/Fast-ISel/retabi.ll | 108 + test/CodeGen/Mips/Fast-ISel/shftopm.ll | 122 + test/CodeGen/Mips/Fast-ISel/shift.ll | 2 +- test/CodeGen/Mips/Fast-ISel/simplestore.ll | 4 +- test/CodeGen/Mips/Fast-ISel/simplestorefp1.ll | 8 +- test/CodeGen/Mips/Fast-ISel/simplestorei.ll | 4 +- test/CodeGen/Mips/abiflags32.ll | 2 +- test/CodeGen/Mips/addi.ll | 8 +- test/CodeGen/Mips/addressing-mode.ll | 8 +- test/CodeGen/Mips/align16.ll | 8 +- test/CodeGen/Mips/alloca.ll | 34 +- test/CodeGen/Mips/alloca16.ll | 58 +- test/CodeGen/Mips/analyzebranch.ll | 2 +- test/CodeGen/Mips/and1.ll | 6 +- test/CodeGen/Mips/atomic.ll | 6 +- test/CodeGen/Mips/atomicops.ll | 12 +- test/CodeGen/Mips/beqzc.ll | 4 +- test/CodeGen/Mips/beqzc1.ll | 4 +- test/CodeGen/Mips/biggot.ll | 2 +- test/CodeGen/Mips/blockaddr.ll | 8 +- test/CodeGen/Mips/brconeq.ll | 4 +- test/CodeGen/Mips/brconeqk.ll | 2 +- test/CodeGen/Mips/brconeqz.ll | 2 +- test/CodeGen/Mips/brconge.ll | 6 +- test/CodeGen/Mips/brcongt.ll | 4 +- test/CodeGen/Mips/brconle.ll | 6 +- test/CodeGen/Mips/brconlt.ll | 4 +- test/CodeGen/Mips/brconne.ll | 4 +- test/CodeGen/Mips/brconnek.ll | 2 +- test/CodeGen/Mips/brconnez.ll | 2 +- test/CodeGen/Mips/brdelayslot.ll | 14 +- test/CodeGen/Mips/brind.ll | 14 +- test/CodeGen/Mips/brsize3.ll | 4 +- test/CodeGen/Mips/brsize3a.ll | 2 +- test/CodeGen/Mips/cache-intrinsic.ll | 8 +- test/CodeGen/Mips/cconv/arguments-float.ll | 62 +- test/CodeGen/Mips/cconv/arguments-fp128.ll | 18 +- .../cconv/arguments-hard-float-varargs.ll | 20 +- .../Mips/cconv/arguments-hard-float.ll | 56 +- .../Mips/cconv/arguments-hard-fp128.ll | 18 +- ...nts-small-structures-bigger-than-32bits.ll | 8 +- test/CodeGen/Mips/cconv/arguments-struct.ll | 14 +- .../arguments-varargs-small-structs-byte.ll | 76 +- ...ents-varargs-small-structs-combinations.ll | 40 +- ...nts-varargs-small-structs-multiple-args.ll | 56 +- test/CodeGen/Mips/cconv/arguments-varargs.ll | 48 +- test/CodeGen/Mips/cconv/arguments.ll | 50 +- test/CodeGen/Mips/cconv/callee-saved-float.ll | 24 +- test/CodeGen/Mips/cconv/callee-saved.ll | 24 +- test/CodeGen/Mips/cconv/memory-layout.ll | 12 +- test/CodeGen/Mips/cconv/reserved-space.ll | 12 +- test/CodeGen/Mips/cconv/return-float.ll | 20 +- test/CodeGen/Mips/cconv/return-hard-float.ll | 18 +- test/CodeGen/Mips/cconv/return-hard-fp128.ll | 10 +- .../Mips/cconv/return-hard-struct-f128.ll | 10 +- test/CodeGen/Mips/cconv/return-struct.ll | 22 +- test/CodeGen/Mips/cconv/return.ll | 18 +- test/CodeGen/Mips/cconv/stack-alignment.ll | 12 +- test/CodeGen/Mips/cfi_offset.ll | 6 +- .../Mips/check-adde-redundant-moves.ll | 6 + test/CodeGen/Mips/ci2.ll | 4 +- test/CodeGen/Mips/cmov.ll | 8 +- test/CodeGen/Mips/cmplarge.ll | 6 +- test/CodeGen/Mips/const1.ll | 2 +- test/CodeGen/Mips/const4a.ll | 4 +- test/CodeGen/Mips/const6.ll | 4 +- test/CodeGen/Mips/const6a.ll | 4 +- test/CodeGen/Mips/ctlz.ll | 2 +- test/CodeGen/Mips/dagcombine_crash.ll | 25 + test/CodeGen/Mips/delay-slot-fill-forward.ll | 183 + test/CodeGen/Mips/delay-slot-kill.ll | 14 + test/CodeGen/Mips/disable-tail-merge.ll | 6 +- test/CodeGen/Mips/div.ll | 4 +- test/CodeGen/Mips/div_rem.ll | 4 +- test/CodeGen/Mips/divrem.ll | 4 +- test/CodeGen/Mips/divu.ll | 4 +- test/CodeGen/Mips/divu_remu.ll | 4 +- test/CodeGen/Mips/dsp-patterns.ll | 12 +- test/CodeGen/Mips/dsp-vec-load-store.ll | 2 +- test/CodeGen/Mips/eh-return32.ll | 2 +- test/CodeGen/Mips/eh-return64.ll | 2 +- test/CodeGen/Mips/eh.ll | 3 +- test/CodeGen/Mips/ehframe-indirect.ll | 45 +- .../Mips/emergency-spill-slot-near-fp.ll | 32 + test/CodeGen/Mips/emit-big-cst.ll | 2 +- test/CodeGen/Mips/ex2.ll | 4 +- test/CodeGen/Mips/extins.ll | 2 +- test/CodeGen/Mips/f16abs.ll | 4 +- test/CodeGen/Mips/fastcc.ll | 164 +- test/CodeGen/Mips/fcopysign-f32-f64.ll | 6 +- test/CodeGen/Mips/fcopysign.ll | 6 +- test/CodeGen/Mips/fixdfsf.ll | 2 +- test/CodeGen/Mips/fmadd1.ll | 12 +- test/CodeGen/Mips/fp-indexed-ls.ll | 44 +- test/CodeGen/Mips/fp-spill-reload.ll | 30 +- test/CodeGen/Mips/fp16-promote.ll | 98 + test/CodeGen/Mips/fp16instrinsmc.ll | 60 +- test/CodeGen/Mips/fp16static.ll | 4 +- test/CodeGen/Mips/fpbr.ll | 24 +- test/CodeGen/Mips/fpneeded.ll | 6 +- test/CodeGen/Mips/fpnotneeded.ll | 2 +- test/CodeGen/Mips/fpxx.ll | 8 +- test/CodeGen/Mips/global-address.ll | 12 +- test/CodeGen/Mips/gpreg-lazy-binding.ll | 2 +- test/CodeGen/Mips/gprestore.ll | 8 +- test/CodeGen/Mips/helloworld.ll | 2 +- test/CodeGen/Mips/hf16_1.ll | 80 +- test/CodeGen/Mips/hf16call32.ll | 642 +- test/CodeGen/Mips/hf16call32_body.ll | 54 +- test/CodeGen/Mips/hf1_body.ll | 2 +- test/CodeGen/Mips/hfptrcall.ll | 56 +- test/CodeGen/Mips/i32k.ll | 4 +- .../Mips/inlineasm-assembler-directives.ll | 2 +- test/CodeGen/Mips/inlineasm-cnstrnt-reg64.ll | 2 +- test/CodeGen/Mips/inlineasm-operand-code.ll | 6 +- test/CodeGen/Mips/inlineasm64.ll | 6 +- test/CodeGen/Mips/inlineasm_constraint.ll | 9 - test/CodeGen/Mips/inlineasm_constraint_R.ll | 60 + test/CodeGen/Mips/inlineasm_constraint_ZC.ll | 167 + test/CodeGen/Mips/inlineasm_constraint_m.ll | 61 + test/CodeGen/Mips/inlineasmmemop.ll | 17 +- test/CodeGen/Mips/insn-zero-size-bb.ll | 27 + test/CodeGen/Mips/internalfunc.ll | 10 +- test/CodeGen/Mips/jtstat.ll | 2 +- test/CodeGen/Mips/l3mc.ll | 52 +- test/CodeGen/Mips/largeimm1.ll | 2 +- test/CodeGen/Mips/largeimmprinting.ll | 8 +- test/CodeGen/Mips/lb1.ll | 6 +- test/CodeGen/Mips/lbu1.ll | 6 +- test/CodeGen/Mips/lcb2.ll | 20 +- test/CodeGen/Mips/lcb3c.ll | 6 +- test/CodeGen/Mips/lcb4a.ll | 6 +- test/CodeGen/Mips/lcb5.ll | 34 +- test/CodeGen/Mips/lh1.ll | 6 +- test/CodeGen/Mips/lhu1.ll | 6 +- test/CodeGen/Mips/llcarry.ll | 10 +- test/CodeGen/Mips/llvm-ir/add.ll | 8 + test/CodeGen/Mips/llvm-ir/and.ll | 13 +- test/CodeGen/Mips/llvm-ir/ashr.ll | 93 +- test/CodeGen/Mips/llvm-ir/call.ll | 4 + test/CodeGen/Mips/llvm-ir/indirectbr.ll | 4 + test/CodeGen/Mips/llvm-ir/lshr.ll | 93 +- test/CodeGen/Mips/llvm-ir/mul.ll | 58 +- test/CodeGen/Mips/llvm-ir/or.ll | 14 +- test/CodeGen/Mips/llvm-ir/ret.ll | 4 + test/CodeGen/Mips/llvm-ir/sdiv.ll | 28 +- test/CodeGen/Mips/llvm-ir/select.ll | 24 +- test/CodeGen/Mips/llvm-ir/shl.ll | 77 +- test/CodeGen/Mips/llvm-ir/srem.ll | 30 +- test/CodeGen/Mips/llvm-ir/sub.ll | 8 + test/CodeGen/Mips/llvm-ir/udiv.ll | 8 + test/CodeGen/Mips/llvm-ir/urem.ll | 38 +- test/CodeGen/Mips/llvm-ir/xor.ll | 13 +- test/CodeGen/Mips/load-store-left-right.ll | 42 +- test/CodeGen/Mips/longbranch.ll | 9 +- test/CodeGen/Mips/machineverifier.ll | 2 +- test/CodeGen/Mips/mbrsize4a.ll | 6 +- test/CodeGen/Mips/memcpy.ll | 6 +- test/CodeGen/Mips/micromips-addiu.ll | 18 +- test/CodeGen/Mips/micromips-addu16.ll | 18 + test/CodeGen/Mips/micromips-and16.ll | 18 + test/CodeGen/Mips/micromips-andi.ll | 12 +- .../Mips/micromips-compact-branches.ll | 2 +- test/CodeGen/Mips/micromips-compact-jump.ll | 11 + test/CodeGen/Mips/micromips-delay-slot-jr.ll | 16 +- test/CodeGen/Mips/micromips-delay-slot.ll | 2 +- test/CodeGen/Mips/micromips-gp-rc.ll | 18 + test/CodeGen/Mips/micromips-jal.ll | 10 +- .../Mips/micromips-load-effective-address.ll | 8 +- test/CodeGen/Mips/micromips-not16.ll | 26 + test/CodeGen/Mips/micromips-or16.ll | 18 + .../Mips/micromips-rdhwr-directives.ll | 2 +- test/CodeGen/Mips/micromips-shift.ll | 8 +- test/CodeGen/Mips/micromips-subu16.ll | 18 + test/CodeGen/Mips/micromips-sw-lw-16.ll | 27 + test/CodeGen/Mips/micromips-xor16.ll | 18 + test/CodeGen/Mips/mips16_32_8.ll | 16 +- test/CodeGen/Mips/mips16_fpret.ll | 24 +- test/CodeGen/Mips/mips16ex.ll | 22 +- test/CodeGen/Mips/mips16fpe.ll | 112 +- test/CodeGen/Mips/mips64-f128-call.ll | 4 +- test/CodeGen/Mips/mips64-f128.ll | 80 +- test/CodeGen/Mips/mips64-libcall.ll | 2 +- test/CodeGen/Mips/mips64-sret.ll | 2 +- test/CodeGen/Mips/mips64directive.ll | 6 +- test/CodeGen/Mips/mips64ext.ll | 4 +- test/CodeGen/Mips/mips64extins.ll | 2 +- test/CodeGen/Mips/mips64fpimm0.ll | 4 +- test/CodeGen/Mips/mips64fpldst.ll | 16 +- test/CodeGen/Mips/mips64instrs.ll | 8 +- test/CodeGen/Mips/mips64intldst.ll | 30 +- test/CodeGen/Mips/mips64shift.ll | 6 +- test/CodeGen/Mips/mips64signextendsesf.ll | 40 +- test/CodeGen/Mips/mips64sinttofpsf.ll | 4 +- test/CodeGen/Mips/mipslopat.ll | 4 +- test/CodeGen/Mips/misha.ll | 12 +- test/CodeGen/Mips/mno-ldc1-sdc1.ll | 8 +- test/CodeGen/Mips/msa/2r.ll | 24 +- test/CodeGen/Mips/msa/2r_vector_scalar.ll | 8 +- test/CodeGen/Mips/msa/2rf.ll | 32 +- test/CodeGen/Mips/msa/2rf_exup.ll | 8 +- test/CodeGen/Mips/msa/2rf_float_int.ll | 8 +- test/CodeGen/Mips/msa/2rf_fq.ll | 8 +- test/CodeGen/Mips/msa/2rf_int_float.ll | 20 +- test/CodeGen/Mips/msa/2rf_tq.ll | 8 +- test/CodeGen/Mips/msa/3r-a.ll | 192 +- test/CodeGen/Mips/msa/3r-b.ll | 96 +- test/CodeGen/Mips/msa/3r-c.ll | 80 +- test/CodeGen/Mips/msa/3r-d.ll | 88 +- test/CodeGen/Mips/msa/3r-i.ll | 64 +- test/CodeGen/Mips/msa/3r-m.ll | 160 +- test/CodeGen/Mips/msa/3r-p.ll | 32 +- test/CodeGen/Mips/msa/3r-s.ll | 248 +- test/CodeGen/Mips/msa/3r-v.ll | 24 +- test/CodeGen/Mips/msa/3r_4r.ll | 48 +- test/CodeGen/Mips/msa/3r_4r_widen.ll | 72 +- test/CodeGen/Mips/msa/3r_splat.ll | 8 +- test/CodeGen/Mips/msa/3rf.ll | 96 +- test/CodeGen/Mips/msa/3rf_4rf.ll | 24 +- test/CodeGen/Mips/msa/3rf_4rf_q.ll | 48 +- test/CodeGen/Mips/msa/3rf_exdo.ll | 8 +- test/CodeGen/Mips/msa/3rf_float_int.ll | 8 +- test/CodeGen/Mips/msa/3rf_int_float.ll | 176 +- test/CodeGen/Mips/msa/3rf_q.ll | 16 +- test/CodeGen/Mips/msa/arithmetic.ll | 176 +- test/CodeGen/Mips/msa/arithmetic_float.ll | 88 +- test/CodeGen/Mips/msa/basic_operations.ll | 825 +- .../Mips/msa/basic_operations_float.ll | 305 +- test/CodeGen/Mips/msa/bit.ll | 56 +- test/CodeGen/Mips/msa/bitcast.ll | 98 +- test/CodeGen/Mips/msa/bitwise.ll | 310 +- test/CodeGen/Mips/msa/compare.ll | 408 +- test/CodeGen/Mips/msa/compare_float.ll | 156 +- test/CodeGen/Mips/msa/elm_copy.ll | 16 +- test/CodeGen/Mips/msa/elm_insv.ll | 32 +- test/CodeGen/Mips/msa/elm_move.ll | 2 +- test/CodeGen/Mips/msa/elm_shift_slide.ll | 24 +- test/CodeGen/Mips/msa/frameindex.ll | 58 +- test/CodeGen/Mips/msa/i10.ll | 8 +- test/CodeGen/Mips/msa/i5-a.ll | 8 +- test/CodeGen/Mips/msa/i5-b.ll | 56 +- test/CodeGen/Mips/msa/i5-c.ll | 40 +- test/CodeGen/Mips/msa/i5-m.ll | 32 +- test/CodeGen/Mips/msa/i5-s.ll | 8 +- test/CodeGen/Mips/msa/i5_ld_st.ll | 8 +- test/CodeGen/Mips/msa/i8.ll | 26 +- test/CodeGen/Mips/msa/inline-asm.ll | 4 +- .../Mips/msa/llvm-stress-s1704963983.ll | 22 +- .../Mips/msa/llvm-stress-s1935737938.ll | 22 +- .../Mips/msa/llvm-stress-s2704903805.ll | 22 +- .../Mips/msa/llvm-stress-s3861334421.ll | 22 +- .../Mips/msa/llvm-stress-s3926023935.ll | 22 +- .../Mips/msa/llvm-stress-s3997499501.ll | 22 +- .../Mips/msa/llvm-stress-s525530439.ll | 22 +- .../Mips/msa/llvm-stress-s997348632.ll | 22 +- test/CodeGen/Mips/msa/shuffle.ll | 1138 +- test/CodeGen/Mips/msa/spill.ll | 536 +- test/CodeGen/Mips/msa/vec.ll | 184 +- test/CodeGen/Mips/msa/vecs10.ll | 4 +- test/CodeGen/Mips/mul.ll | 4 +- test/CodeGen/Mips/mulll.ll | 4 +- test/CodeGen/Mips/mulull.ll | 4 +- test/CodeGen/Mips/nacl-align.ll | 4 +- test/CodeGen/Mips/nacl-branch-delay.ll | 2 +- test/CodeGen/Mips/nacl-reserved-regs.ll | 32 +- test/CodeGen/Mips/named-register-n32.ll | 2 +- test/CodeGen/Mips/neg1.ll | 4 +- test/CodeGen/Mips/no-odd-spreg-msa.ll | 8 +- test/CodeGen/Mips/nomips16.ll | 4 +- test/CodeGen/Mips/not1.ll | 4 +- test/CodeGen/Mips/o32_cc_byval.ll | 46 +- test/CodeGen/Mips/o32_cc_vararg.ll | 20 +- test/CodeGen/Mips/octeon.ll | 138 +- test/CodeGen/Mips/optimize-pic-o0.ll | 6 +- test/CodeGen/Mips/or1.ll | 6 +- test/CodeGen/Mips/prevent-hoisting.ll | 32 +- test/CodeGen/Mips/private.ll | 2 +- test/CodeGen/Mips/ra-allocatable.ll | 242 +- test/CodeGen/Mips/rdhwr-directives.ll | 2 +- test/CodeGen/Mips/rem.ll | 4 +- test/CodeGen/Mips/remat-immed-load.ll | 4 +- test/CodeGen/Mips/remu.ll | 4 +- test/CodeGen/Mips/return-vector.ll | 12 +- test/CodeGen/Mips/s2rem.ll | 4 +- test/CodeGen/Mips/sb1.ll | 8 +- test/CodeGen/Mips/sel1c.ll | 6 +- test/CodeGen/Mips/sel2c.ll | 6 +- test/CodeGen/Mips/selTBteqzCmpi.ll | 6 +- test/CodeGen/Mips/selTBtnezCmpi.ll | 6 +- test/CodeGen/Mips/selTBtnezSlti.ll | 6 +- test/CodeGen/Mips/select.ll | 12 +- test/CodeGen/Mips/seleq.ll | 32 +- test/CodeGen/Mips/seleqk.ll | 24 +- test/CodeGen/Mips/selgek.ll | 24 +- test/CodeGen/Mips/selgt.ll | 34 +- test/CodeGen/Mips/selle.ll | 32 +- test/CodeGen/Mips/selltk.ll | 24 +- test/CodeGen/Mips/selne.ll | 32 +- test/CodeGen/Mips/selnek.ll | 40 +- test/CodeGen/Mips/selpat.ll | 136 +- test/CodeGen/Mips/seteq.ll | 4 +- test/CodeGen/Mips/seteqz.ll | 4 +- test/CodeGen/Mips/setge.ll | 6 +- test/CodeGen/Mips/setgek.ll | 2 +- test/CodeGen/Mips/setle.ll | 6 +- test/CodeGen/Mips/setlt.ll | 4 +- test/CodeGen/Mips/setltk.ll | 2 +- test/CodeGen/Mips/setne.ll | 4 +- test/CodeGen/Mips/setuge.ll | 6 +- test/CodeGen/Mips/setugt.ll | 4 +- test/CodeGen/Mips/setule.ll | 6 +- test/CodeGen/Mips/setult.ll | 4 +- test/CodeGen/Mips/setultk.ll | 2 +- test/CodeGen/Mips/sh1.ll | 8 +- test/CodeGen/Mips/simplebr.ll | 4 +- test/CodeGen/Mips/sitofp-selectcc-opt.ll | 2 +- test/CodeGen/Mips/sll1.ll | 6 +- test/CodeGen/Mips/sll2.ll | 8 +- test/CodeGen/Mips/small-section-reserve-gp.ll | 2 +- test/CodeGen/Mips/spill-copy-acreg.ll | 6 +- test/CodeGen/Mips/sr1.ll | 8 +- test/CodeGen/Mips/sra1.ll | 4 +- test/CodeGen/Mips/sra2.ll | 6 +- test/CodeGen/Mips/srl1.ll | 6 +- test/CodeGen/Mips/srl2.ll | 8 +- test/CodeGen/Mips/stackcoloring.ll | 8 +- test/CodeGen/Mips/start-asm-file.ll | 16 +- test/CodeGen/Mips/stchar.ll | 40 +- test/CodeGen/Mips/stldst.ll | 20 +- test/CodeGen/Mips/sub1.ll | 4 +- test/CodeGen/Mips/sub2.ll | 6 +- test/CodeGen/Mips/swzero.ll | 2 +- test/CodeGen/Mips/tail16.ll | 2 +- test/CodeGen/Mips/tailcall.ll | 24 +- test/CodeGen/Mips/tls.ll | 6 +- test/CodeGen/Mips/tls16.ll | 2 +- test/CodeGen/Mips/tls16_2.ll | 2 +- test/CodeGen/Mips/uitofp.ll | 2 +- test/CodeGen/Mips/ul1.ll | 2 +- test/CodeGen/Mips/unalignedload.ll | 2 +- test/CodeGen/Mips/vector-load-store.ll | 4 +- test/CodeGen/Mips/vector-setcc.ll | 4 +- test/CodeGen/Mips/xor1.ll | 6 +- test/CodeGen/Mips/zeroreg.ll | 8 +- test/CodeGen/NVPTX/access-non-generic.ll | 20 +- test/CodeGen/NVPTX/addrspacecast-gvar.ll | 4 + test/CodeGen/NVPTX/addrspacecast.ll | 16 +- test/CodeGen/NVPTX/bug21465.ll | 4 +- test/CodeGen/NVPTX/bug22246.ll | 14 + test/CodeGen/NVPTX/bug22322.ll | 62 + test/CodeGen/NVPTX/call-with-alloca-buffer.ll | 22 +- test/CodeGen/NVPTX/fp16.ll | 8 +- test/CodeGen/NVPTX/function-align.ll | 7 + test/CodeGen/NVPTX/generic-to-nvvm.ll | 4 +- test/CodeGen/NVPTX/half.ll | 14 +- test/CodeGen/NVPTX/i1-global.ll | 2 +- test/CodeGen/NVPTX/i8-param.ll | 2 +- test/CodeGen/NVPTX/ld-addrspace.ll | 36 +- test/CodeGen/NVPTX/ld-generic.ll | 12 +- test/CodeGen/NVPTX/ldu-reg-plus-offset.ll | 4 +- test/CodeGen/NVPTX/load-sext-i1.ll | 4 +- test/CodeGen/NVPTX/machine-sink.ll | 4 +- test/CodeGen/NVPTX/misaligned-vector-ldst.ll | 8 +- test/CodeGen/NVPTX/noduplicate-syncthreads.ll | 28 +- test/CodeGen/NVPTX/nounroll.ll | 37 + test/CodeGen/NVPTX/nvvm-reflect.ll | 35 +- test/CodeGen/NVPTX/pr13291-i1-store.ll | 2 +- test/CodeGen/NVPTX/pr16278.ll | 2 +- test/CodeGen/NVPTX/pr17529.ll | 6 +- test/CodeGen/NVPTX/ptx-version-30.ll | 6 - test/CodeGen/NVPTX/ptx-version-31.ll | 6 - test/CodeGen/NVPTX/refl1.ll | 2 +- test/CodeGen/NVPTX/sched1.ll | 16 +- test/CodeGen/NVPTX/sched2.ll | 16 +- test/CodeGen/NVPTX/shift-parts.ll | 8 +- test/CodeGen/NVPTX/simple-call.ll | 2 +- test/CodeGen/NVPTX/sm-version-30.ll | 1 + test/CodeGen/NVPTX/sm-version-32.ll | 7 + test/CodeGen/NVPTX/sm-version-35.ll | 1 + test/CodeGen/NVPTX/sm-version-37.ll | 7 + test/CodeGen/NVPTX/sm-version-50.ll | 7 + test/CodeGen/NVPTX/sm-version-52.ll | 7 + test/CodeGen/NVPTX/sm-version-53.ll | 7 + test/CodeGen/NVPTX/symbol-naming.ll | 2 +- test/CodeGen/NVPTX/vector-compare.ll | 4 +- test/CodeGen/NVPTX/vector-loads.ll | 12 +- test/CodeGen/NVPTX/vector-select.ll | 6 +- test/CodeGen/NVPTX/weak-global.ll | 2 +- .../PowerPC/2005-11-30-vastart-crash.ll | 2 +- .../PowerPC/2006-01-20-ShiftPartsCrash.ll | 4 +- test/CodeGen/PowerPC/2006-04-05-splat-ish.ll | 2 +- .../PowerPC/2006-05-12-rlwimi-crash.ll | 28 +- .../PowerPC/2006-07-07-ComputeMaskedBits.ll | 12 +- .../PowerPC/2006-07-19-stwbrx-crash.ll | 2 +- .../PowerPC/2006-08-15-SelectionCrash.ll | 2 +- test/CodeGen/PowerPC/2006-10-13-Miscompile.ll | 2 +- .../PowerPC/2006-10-17-brcc-miscompile.ll | 2 +- .../CodeGen/PowerPC/2006-12-07-LargeAlloca.ll | 2 +- .../CodeGen/PowerPC/2006-12-07-SelectCrash.ll | 2 +- test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll | 12 +- .../PowerPC/2007-01-31-InlineAsmAddrMode.ll | 4 +- .../PowerPC/2007-02-23-lr-saved-twice.ll | 2 +- test/CodeGen/PowerPC/2007-03-24-cntlzd.ll | 2 +- .../PowerPC/2007-03-30-SpillerCrash.ll | 1594 +- .../2007-04-30-InlineAsmEarlyClobber.ll | 2 +- .../2007-05-03-InlineAsm-S-Constraint.ll | 2 +- .../2007-05-14-InlineAsmSelectCrash.ll | 2 +- .../CodeGen/PowerPC/2007-05-22-tailmerge-3.ll | 26 +- test/CodeGen/PowerPC/2007-06-28-BCCISelBug.ll | 2 +- .../PowerPC/2007-08-04-CoalescerAssert.ll | 2 +- .../PowerPC/2007-09-07-LoadStoreIdxForms.ll | 4 +- test/CodeGen/PowerPC/2007-09-08-unaligned.ll | 28 +- .../PowerPC/2007-10-18-PtrArithmetic.ll | 4 +- .../PowerPC/2007-10-21-LocalRegAllocAssert.ll | 12 +- .../2007-10-21-LocalRegAllocAssert2.ll | 14 +- .../PowerPC/2007-11-16-landingpad-split.ll | 4 +- .../PowerPC/2007-11-19-VectorSplitting.ll | 2 +- .../PowerPC/2008-02-05-LiveIntervalsAssert.ll | 2 +- .../PowerPC/2008-02-09-LocalRegAllocAssert.ll | 2 +- .../PowerPC/2008-03-05-RegScavengerAssert.ll | 2 +- .../PowerPC/2008-03-17-RegScavengerCrash.ll | 4 +- .../PowerPC/2008-03-24-AddressRegImm.ll | 4 +- .../PowerPC/2008-03-26-CoalescerBug.ll | 2 +- .../PowerPC/2008-04-23-CoalescerCrash.ll | 14 +- .../PowerPC/2008-06-21-F128LoadStore.ll | 2 +- .../PowerPC/2008-06-23-LiveVariablesCrash.ll | 2 +- test/CodeGen/PowerPC/2008-07-15-Bswap.ll | 98 +- .../PowerPC/2008-07-15-SignExtendInreg.ll | 2 +- .../CodeGen/PowerPC/2008-07-24-PPC64-CCBug.ll | 2 +- .../PowerPC/2008-09-12-CoalescerBug.ll | 110 +- .../PowerPC/2008-10-28-UnprocessedNode.ll | 2 +- .../PowerPC/2008-10-31-PPCF128Libcalls.ll | 10 +- .../PowerPC/2009-01-16-DeclareISelBug.ll | 2 +- test/CodeGen/PowerPC/2009-03-17-LSRBug.ll | 6 +- ...009-08-17-inline-asm-addr-mode-breakage.ll | 4 +- .../PowerPC/2009-11-15-ProcImpDefsBug.ll | 2 +- test/CodeGen/PowerPC/2010-02-12-saveCR.ll | 8 +- .../PowerPC/2010-03-09-indirect-call.ll | 4 +- .../PowerPC/2010-12-18-PPCStackRefs.ll | 4 +- .../PowerPC/2011-12-05-NoSpillDupCR.ll | 70 +- .../PowerPC/2011-12-06-SpillAndRestoreCR.ll | 72 +- .../2011-12-08-DemandedBitsMiscompile.ll | 2 +- .../PowerPC/2012-09-16-TOC-entry-check.ll | 8 +- .../CodeGen/PowerPC/2013-05-15-preinc-fold.ll | 8 +- test/CodeGen/PowerPC/2013-07-01-PHIElimBug.ll | 6 +- test/CodeGen/PowerPC/Atomics-64.ll | 160 +- .../CodeGen/PowerPC/MergeConsecutiveStores.ll | 68 + test/CodeGen/PowerPC/a2-fp-basic.ll | 28 +- test/CodeGen/PowerPC/add-fi.ll | 4 +- test/CodeGen/PowerPC/addi-licm.ll | 19 +- test/CodeGen/PowerPC/addi-reassoc.ll | 8 +- test/CodeGen/PowerPC/alias.ll | 12 +- test/CodeGen/PowerPC/and-branch.ll | 2 +- test/CodeGen/PowerPC/and-elim.ll | 2 +- test/CodeGen/PowerPC/anon_aggr.ll | 42 +- test/CodeGen/PowerPC/asm-constraints.ll | 4 +- test/CodeGen/PowerPC/atomic-2.ll | 60 +- test/CodeGen/PowerPC/atomics-fences.ll | 11 +- test/CodeGen/PowerPC/atomics-indexed.ll | 37 +- test/CodeGen/PowerPC/atomics.ll | 40 +- test/CodeGen/PowerPC/bdzlr.ll | 6 +- test/CodeGen/PowerPC/bperm.ll | 32 +- test/CodeGen/PowerPC/branch-opt.ll | 10 +- test/CodeGen/PowerPC/bswap-load-store.ll | 18 +- test/CodeGen/PowerPC/buildvec_canonicalize.ll | 4 +- test/CodeGen/PowerPC/byval-aliased.ll | 4 +- test/CodeGen/PowerPC/cmpb-ppc32.ll | 2 +- test/CodeGen/PowerPC/cmpb.ll | 6 +- test/CodeGen/PowerPC/code-align.ll | 28 +- test/CodeGen/PowerPC/compare-simm.ll | 6 +- test/CodeGen/PowerPC/complex-return.ll | 36 +- test/CodeGen/PowerPC/cr-spills.ll | 168 +- test/CodeGen/PowerPC/cr1eq-no-extra-moves.ll | 4 +- test/CodeGen/PowerPC/cr1eq.ll | 4 +- test/CodeGen/PowerPC/cr_spilling.ll | 2 +- test/CodeGen/PowerPC/crbit-asm.ll | 6 +- test/CodeGen/PowerPC/crbits.ll | 4 +- test/CodeGen/PowerPC/crsave.ll | 4 +- test/CodeGen/PowerPC/crypto_bifs.ll | 275 + test/CodeGen/PowerPC/ctrloop-cpsgn.ll | 4 +- test/CodeGen/PowerPC/ctrloop-fp64.ll | 10 +- test/CodeGen/PowerPC/ctrloop-i64.ll | 16 +- test/CodeGen/PowerPC/ctrloop-le.ll | 60 +- test/CodeGen/PowerPC/ctrloop-lt.ll | 60 +- test/CodeGen/PowerPC/ctrloop-ne.ll | 60 +- test/CodeGen/PowerPC/ctrloop-s000.ll | 98 +- test/CodeGen/PowerPC/ctrloop-sh.ll | 12 +- test/CodeGen/PowerPC/ctrloop-sums.ll | 14 +- test/CodeGen/PowerPC/ctrloops.ll | 6 +- test/CodeGen/PowerPC/cttz.ll | 2 +- test/CodeGen/PowerPC/dbg.ll | 36 +- test/CodeGen/PowerPC/dcbt-sched.ll | 4 +- test/CodeGen/PowerPC/delete-node.ll | 6 +- test/CodeGen/PowerPC/div-e-32.ll | 31 + test/CodeGen/PowerPC/div-e-all.ll | 54 + test/CodeGen/PowerPC/dyn-alloca-aligned.ll | 10 +- test/CodeGen/PowerPC/early-ret.ll | 35 +- test/CodeGen/PowerPC/ec-input.ll | 155 + test/CodeGen/PowerPC/empty-functions.ll | 10 +- test/CodeGen/PowerPC/emptystruct.ll | 2 +- test/CodeGen/PowerPC/eqv-andc-orc-nor.ll | 8 +- test/CodeGen/PowerPC/extra-toc-reg-deps.ll | 430 + test/CodeGen/PowerPC/f32-to-i64.ll | 23 + .../CodeGen/PowerPC/fast-isel-GEP-coalesce.ll | 18 +- test/CodeGen/PowerPC/fast-isel-binary.ll | 2 +- test/CodeGen/PowerPC/fast-isel-br-const.ll | 2 +- test/CodeGen/PowerPC/fast-isel-call.ll | 6 +- test/CodeGen/PowerPC/fast-isel-cmp-imm.ll | 6 +- test/CodeGen/PowerPC/fast-isel-const.ll | 2 +- .../PowerPC/fast-isel-conversion-p5.ll | 2 +- test/CodeGen/PowerPC/fast-isel-conversion.ll | 16 +- test/CodeGen/PowerPC/fast-isel-crash.ll | 2 +- test/CodeGen/PowerPC/fast-isel-ext.ll | 6 +- test/CodeGen/PowerPC/fast-isel-fold.ll | 28 +- test/CodeGen/PowerPC/fast-isel-icmp-split.ll | 72 + test/CodeGen/PowerPC/fast-isel-indirectbr.ll | 2 +- .../PowerPC/fast-isel-load-store-vsx.ll | 28 + test/CodeGen/PowerPC/fast-isel-load-store.ll | 26 +- .../CodeGen/PowerPC/fast-isel-redefinition.ll | 6 +- test/CodeGen/PowerPC/fast-isel-ret.ll | 4 +- test/CodeGen/PowerPC/fast-isel-shifter.ll | 2 +- .../fastisel-gep-promote-before-add.ll | 6 +- test/CodeGen/PowerPC/floatPSA.ll | 30 +- test/CodeGen/PowerPC/flt-preinc.ll | 40 + test/CodeGen/PowerPC/fma-assoc.ll | 196 +- test/CodeGen/PowerPC/fma-ext.ll | 22 +- .../fp-int-conversions-direct-moves.ll | 426 + test/CodeGen/PowerPC/fp-to-int-ext.ll | 8 +- test/CodeGen/PowerPC/frounds.ll | 4 +- test/CodeGen/PowerPC/glob-comp-aa-crash.ll | 16 +- test/CodeGen/PowerPC/hello.ll | 2 +- test/CodeGen/PowerPC/hidden-vis-2.ll | 4 +- test/CodeGen/PowerPC/hidden-vis.ll | 2 +- test/CodeGen/PowerPC/htm.ll | 125 + test/CodeGen/PowerPC/i64_fp_round.ll | 2 +- test/CodeGen/PowerPC/ia-mem-r0.ll | 44 +- test/CodeGen/PowerPC/indexed-load.ll | 4 +- test/CodeGen/PowerPC/indirectbr.ll | 6 +- test/CodeGen/PowerPC/inlineasm-i64-reg.ll | 20 +- test/CodeGen/PowerPC/isel-rc-nox0.ll | 4 +- test/CodeGen/PowerPC/lbz-from-ld-shift.ll | 2 +- test/CodeGen/PowerPC/lbzux.ll | 8 +- test/CodeGen/PowerPC/ld-st-upd.ll | 4 +- test/CodeGen/PowerPC/ldtoc-inv.ll | 39 + test/CodeGen/PowerPC/lha.ll | 2 +- test/CodeGen/PowerPC/load-constant-addr.ll | 2 +- test/CodeGen/PowerPC/load-shift-combine.ll | 16 +- test/CodeGen/PowerPC/long-compare.ll | 2 +- .../PowerPC/loop-data-prefetch-inner.ll | 66 + test/CodeGen/PowerPC/loop-data-prefetch.ll | 29 + test/CodeGen/PowerPC/loop-prep-all.ll | 48 + test/CodeGen/PowerPC/lsa.ll | 12 +- test/CodeGen/PowerPC/lsr-postinc-pos.ll | 8 +- test/CodeGen/PowerPC/mask64.ll | 4 +- test/CodeGen/PowerPC/mature-mc-support.ll | 4 + test/CodeGen/PowerPC/mcm-1.ll | 2 +- test/CodeGen/PowerPC/mcm-10.ll | 2 +- test/CodeGen/PowerPC/mcm-11.ll | 2 +- test/CodeGen/PowerPC/mcm-2.ll | 2 +- test/CodeGen/PowerPC/mcm-3.ll | 2 +- test/CodeGen/PowerPC/mcm-5.ll | 16 +- test/CodeGen/PowerPC/mcm-6.ll | 2 +- test/CodeGen/PowerPC/mcm-7.ll | 2 +- test/CodeGen/PowerPC/mcm-8.ll | 4 +- test/CodeGen/PowerPC/mcm-9.ll | 2 +- test/CodeGen/PowerPC/mcm-default.ll | 2 +- test/CodeGen/PowerPC/mcm-obj-2.ll | 6 +- test/CodeGen/PowerPC/mcm-obj.ll | 131 +- test/CodeGen/PowerPC/mem-rr-addr-mode.ll | 10 +- test/CodeGen/PowerPC/mem_update.ll | 28 +- test/CodeGen/PowerPC/memcpy-vec.ll | 110 + test/CodeGen/PowerPC/memset-nc-le.ll | 24 + test/CodeGen/PowerPC/memset-nc.ll | 48 + .../PowerPC/misched-inorder-latency.ll | 6 +- test/CodeGen/PowerPC/misched.ll | 2 +- .../PowerPC/mult-alt-generic-powerpc.ll | 46 +- .../PowerPC/mult-alt-generic-powerpc64.ll | 46 +- test/CodeGen/PowerPC/named-reg-alloc-r2-64.ll | 9 +- test/CodeGen/PowerPC/named-reg-alloc-r2.ll | 6 +- test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll | 4 +- test/CodeGen/PowerPC/no-pref-jumps.ll | 36 + test/CodeGen/PowerPC/novrsave.ll | 2 +- test/CodeGen/PowerPC/optnone-crbits-i1-ret.ll | 37 + test/CodeGen/PowerPC/or-addressing-mode.ll | 4 +- test/CodeGen/PowerPC/p8-isel-sched.ll | 33 + test/CodeGen/PowerPC/pip-inner.ll | 52 + test/CodeGen/PowerPC/post-ra-ec.ll | 6 +- test/CodeGen/PowerPC/ppc-crbits-onoff.ll | 43 + test/CodeGen/PowerPC/ppc-empty-fs.ll | 32 + test/CodeGen/PowerPC/ppc-prologue.ll | 4 +- test/CodeGen/PowerPC/ppc32-cyclecounter.ll | 4 +- test/CodeGen/PowerPC/ppc32-i1-vaarg.ll | 2 +- test/CodeGen/PowerPC/ppc32-lshrti3.ll | 2 +- test/CodeGen/PowerPC/ppc32-pic-large.ll | 4 +- test/CodeGen/PowerPC/ppc32-pic.ll | 4 +- test/CodeGen/PowerPC/ppc440-fp-basic.ll | 28 +- test/CodeGen/PowerPC/ppc64-abi-extend.ll | 8 +- .../PowerPC/ppc64-align-long-double.ll | 4 +- test/CodeGen/PowerPC/ppc64-anyregcc-crash.ll | 2 +- test/CodeGen/PowerPC/ppc64-anyregcc.ll | 61 +- test/CodeGen/PowerPC/ppc64-byval-align.ll | 12 +- test/CodeGen/PowerPC/ppc64-calls.ll | 2 +- test/CodeGen/PowerPC/ppc64-elf-abi.ll | 8 +- .../CodeGen/PowerPC/ppc64-fastcc-fast-isel.ll | 56 + test/CodeGen/PowerPC/ppc64-fastcc.ll | 540 + test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll | 47 + test/CodeGen/PowerPC/ppc64-gep-opt.ll | 40 +- test/CodeGen/PowerPC/ppc64-i128-abi.ll | 274 + test/CodeGen/PowerPC/ppc64-icbt-pwr7.ll | 19 + test/CodeGen/PowerPC/ppc64-icbt-pwr8.ll | 16 + test/CodeGen/PowerPC/ppc64-linux-func-size.ll | 6 +- test/CodeGen/PowerPC/ppc64-nonfunc-calls.ll | 2 +- test/CodeGen/PowerPC/ppc64-patchpoint.ll | 56 +- test/CodeGen/PowerPC/ppc64-r2-alloc.ll | 81 + test/CodeGen/PowerPC/ppc64-smallarg.ll | 4 +- test/CodeGen/PowerPC/ppc64-stackmap-nops.ll | 2 +- test/CodeGen/PowerPC/ppc64-stackmap.ll | 80 +- test/CodeGen/PowerPC/ppc64-toc.ll | 11 +- test/CodeGen/PowerPC/ppc64-zext.ll | 2 +- test/CodeGen/PowerPC/ppc64le-aggregates.ll | 57 +- test/CodeGen/PowerPC/ppc64le-calls.ll | 4 + test/CodeGen/PowerPC/ppc64le-localentry.ll | 10 +- test/CodeGen/PowerPC/ppc64le-smallarg.ll | 10 +- test/CodeGen/PowerPC/ppcf128-1.ll | 32 +- test/CodeGen/PowerPC/ppcf128-3.ll | 8 +- test/CodeGen/PowerPC/ppcf128-endian.ll | 6 +- test/CodeGen/PowerPC/pr13891.ll | 2 +- test/CodeGen/PowerPC/pr15031.ll | 28 +- test/CodeGen/PowerPC/pr15630.ll | 2 +- test/CodeGen/PowerPC/pr16556-2.ll | 12 +- test/CodeGen/PowerPC/pr17168.ll | 822 +- test/CodeGen/PowerPC/pr17354.ll | 4 +- test/CodeGen/PowerPC/pr18663.ll | 18 +- test/CodeGen/PowerPC/pr20442.ll | 16 +- test/CodeGen/PowerPC/pr22711.ll | 78 + test/CodeGen/PowerPC/preinc-ld-sel-crash.ll | 63 + test/CodeGen/PowerPC/preincprep-invoke.ll | 50 + test/CodeGen/PowerPC/private.ll | 2 +- test/CodeGen/PowerPC/pwr7-gt-nop.ll | 6 +- test/CodeGen/PowerPC/qpx-bv-sint.ll | 33 + test/CodeGen/PowerPC/qpx-bv.ll | 37 + test/CodeGen/PowerPC/qpx-func-clobber.ll | 22 + test/CodeGen/PowerPC/qpx-load.ll | 26 + test/CodeGen/PowerPC/qpx-recipest.ll | 194 + test/CodeGen/PowerPC/qpx-rounding-ops.ll | 109 + test/CodeGen/PowerPC/qpx-s-load.ll | 26 + test/CodeGen/PowerPC/qpx-s-sel.ll | 144 + test/CodeGen/PowerPC/qpx-s-store.ll | 25 + test/CodeGen/PowerPC/qpx-sel.ll | 152 + test/CodeGen/PowerPC/qpx-split-vsetcc.ll | 40 + test/CodeGen/PowerPC/qpx-store.ll | 25 + test/CodeGen/PowerPC/qpx-unalperm.ll | 64 + test/CodeGen/PowerPC/quadint-return.ll | 2 +- test/CodeGen/PowerPC/reg-coalesce-simple.ll | 4 +- test/CodeGen/PowerPC/reloc-align.ll | 2 +- test/CodeGen/PowerPC/remat-imm.ll | 2 +- test/CodeGen/PowerPC/resolvefi-basereg.ll | 350 +- test/CodeGen/PowerPC/resolvefi-disp.ll | 16 +- test/CodeGen/PowerPC/retaddr2.ll | 3 +- test/CodeGen/PowerPC/return-val-i128.ll | 10 +- test/CodeGen/PowerPC/rlwimi-and.ll | 6 +- test/CodeGen/PowerPC/rlwimi-commute.ll | 8 +- test/CodeGen/PowerPC/rlwimi-dyn-and.ll | 8 +- test/CodeGen/PowerPC/rm-zext.ll | 4 +- test/CodeGen/PowerPC/rotl-2.ll | 5 +- test/CodeGen/PowerPC/rotl-64.ll | 4 +- test/CodeGen/PowerPC/rotl.ll | 6 +- test/CodeGen/PowerPC/rs-undef-use.ll | 6 +- test/CodeGen/PowerPC/s000-alias-misched.ll | 30 +- test/CodeGen/PowerPC/sdag-ppcf128.ll | 2 +- test/CodeGen/PowerPC/seteq-0.ll | 2 +- test/CodeGen/PowerPC/sjlj.ll | 8 +- test/CodeGen/PowerPC/small-arguments.ll | 6 +- test/CodeGen/PowerPC/split-index-tc.ll | 8 +- test/CodeGen/PowerPC/stack-protector.ll | 4 +- test/CodeGen/PowerPC/stack-realign.ll | 56 +- test/CodeGen/PowerPC/std-unal-fi.ll | 14 +- test/CodeGen/PowerPC/stdux-constuse.ll | 10 +- test/CodeGen/PowerPC/stfiwx.ll | 4 +- test/CodeGen/PowerPC/store-load-fwd.ll | 2 +- test/CodeGen/PowerPC/store-update.ll | 28 +- test/CodeGen/PowerPC/structsinmem.ll | 60 +- test/CodeGen/PowerPC/structsinregs.ll | 60 +- test/CodeGen/PowerPC/stwu-gta.ll | 4 +- test/CodeGen/PowerPC/stwu8.ll | 2 +- test/CodeGen/PowerPC/stwux.ll | 2 +- test/CodeGen/PowerPC/subreg-postra-2.ll | 8 +- test/CodeGen/PowerPC/subreg-postra.ll | 12 +- test/CodeGen/PowerPC/subsumes-pred-regs.ll | 2 +- test/CodeGen/PowerPC/swaps-le-1.ll | 147 + test/CodeGen/PowerPC/swaps-le-2.ll | 91 + test/CodeGen/PowerPC/tls-cse.ll | 52 + test/CodeGen/PowerPC/tls-pic.ll | 20 +- test/CodeGen/PowerPC/tls-store2.ll | 11 +- test/CodeGen/PowerPC/tls.ll | 2 +- test/CodeGen/PowerPC/toc-load-sched-bug.ll | 152 +- test/CodeGen/PowerPC/trampoline.ll | 96 +- test/CodeGen/PowerPC/unal-altivec-wint.ll | 8 +- test/CodeGen/PowerPC/unal-altivec.ll | 12 +- test/CodeGen/PowerPC/unal-altivec2.ll | 98 +- test/CodeGen/PowerPC/unaligned.ll | 12 +- test/CodeGen/PowerPC/unwind-dw2-g.ll | 16 +- test/CodeGen/PowerPC/vaddsplat.ll | 24 +- test/CodeGen/PowerPC/varargs-struct-float.ll | 8 +- test/CodeGen/PowerPC/vcmp-fold.ll | 8 +- test/CodeGen/PowerPC/vec-abi-align.ll | 48 +- .../CodeGen/PowerPC/vec_add_sub_doubleword.ll | 62 + test/CodeGen/PowerPC/vec_add_sub_quadword.ll | 130 + test/CodeGen/PowerPC/vec_auto_constant.ll | 4 +- test/CodeGen/PowerPC/vec_br_cmp.ll | 4 +- .../PowerPC/vec_buildvector_loadstore.ll | 2 +- test/CodeGen/PowerPC/vec_clz.ll | 40 + test/CodeGen/PowerPC/vec_cmpd.ll | 258 + test/CodeGen/PowerPC/vec_constants.ll | 12 +- test/CodeGen/PowerPC/vec_conv.ll | 8 +- test/CodeGen/PowerPC/vec_fneg.ll | 2 +- test/CodeGen/PowerPC/vec_minmax.ll | 34 + test/CodeGen/PowerPC/vec_misaligned.ll | 18 +- test/CodeGen/PowerPC/vec_mul.ll | 22 +- test/CodeGen/PowerPC/vec_mul_even_odd.ll | 42 + test/CodeGen/PowerPC/vec_perf_shuffle.ll | 20 +- test/CodeGen/PowerPC/vec_popcnt.ll | 72 + test/CodeGen/PowerPC/vec_rotate_shift.ll | 36 + test/CodeGen/PowerPC/vec_shuffle.ll | 56 +- test/CodeGen/PowerPC/vec_shuffle_le.ll | 54 +- test/CodeGen/PowerPC/vec_shuffle_p8vector.ll | 54 + .../PowerPC/vec_shuffle_p8vector_le.ll | 43 + test/CodeGen/PowerPC/vec_splat.ll | 10 +- test/CodeGen/PowerPC/vec_splat_constant.ll | 4 +- test/CodeGen/PowerPC/vec_veqv_vnand_vorc.ll | 29 + test/CodeGen/PowerPC/vec_zero.ll | 2 +- .../PowerPC/vector-identity-shuffle.ll | 2 +- test/CodeGen/PowerPC/vector.ll | 46 +- test/CodeGen/PowerPC/vperm-lowering.ll | 57 +- test/CodeGen/PowerPC/vsx-div.ll | 4 +- test/CodeGen/PowerPC/vsx-elementary-arith.ll | 120 + test/CodeGen/PowerPC/vsx-fma-m.ll | 40 +- test/CodeGen/PowerPC/vsx-infl-copy1.ll | 133 + test/CodeGen/PowerPC/vsx-infl-copy2.ll | 114 + test/CodeGen/PowerPC/vsx-ldst-builtin-le.ll | 97 +- test/CodeGen/PowerPC/vsx-ldst.ll | 13 +- test/CodeGen/PowerPC/vsx-minmax.ll | 22 +- test/CodeGen/PowerPC/vsx-p8.ll | 4 +- test/CodeGen/PowerPC/vsx-recip-est.ll | 62 + test/CodeGen/PowerPC/vsx-spill-norwstore.ll | 63 + test/CodeGen/PowerPC/vsx.ll | 28 +- test/CodeGen/PowerPC/vsx_insert_extract_le.ll | 28 +- test/CodeGen/PowerPC/vsx_scalar_ld_st.ll | 139 + test/CodeGen/PowerPC/vsx_shuffle_le.ll | 132 +- .../CodeGen/PowerPC/weak_def_can_be_hidden.ll | 4 +- test/CodeGen/PowerPC/xxleqv_xxlnand_xxlorc.ll | 52 + test/CodeGen/PowerPC/zero-not-run.ll | 2 +- test/CodeGen/PowerPC/zext-free.ll | 10 +- test/CodeGen/R600/128bit-kernel-args.ll | 29 - .../R600/32-bit-local-address-space.ll | 30 +- test/CodeGen/R600/64bit-kernel-args.ll | 11 - test/CodeGen/R600/add-debug.ll | 2 +- test/CodeGen/R600/add.ll | 48 +- test/CodeGen/R600/add_i64.ll | 20 +- test/CodeGen/R600/address-space.ll | 11 +- test/CodeGen/R600/and.ll | 181 +- test/CodeGen/R600/array-ptr-calc-i32.ll | 16 +- test/CodeGen/R600/array-ptr-calc-i64.ll | 8 +- test/CodeGen/R600/atomic_cmp_swap_local.ll | 93 +- test/CodeGen/R600/atomic_load_add.ll | 4 +- test/CodeGen/R600/atomic_load_sub.ll | 4 +- test/CodeGen/R600/bfe_uint.ll | 2 - test/CodeGen/R600/big_alu.ll | 40 +- test/CodeGen/R600/bitcast.ll | 16 +- test/CodeGen/R600/bswap.ll | 14 +- test/CodeGen/R600/call.ll | 12 +- test/CodeGen/R600/call_fs.ll | 4 +- test/CodeGen/R600/coalescer_remat.ll | 57 + .../R600/codegen-prepare-addrmode-sext.ll | 2 +- test/CodeGen/R600/combine_vloads.ll | 4 +- test/CodeGen/R600/commute-compares.ll | 697 + test/CodeGen/R600/commute_modifiers.ll | 66 +- test/CodeGen/R600/concat_vectors.ll | 2 +- test/CodeGen/R600/copy-illegal-type.ll | 18 +- test/CodeGen/R600/copy-to-reg.ll | 6 +- test/CodeGen/R600/ctlz_zero_undef.ll | 6 +- test/CodeGen/R600/ctpop.ll | 211 +- test/CodeGen/R600/ctpop64.ll | 86 +- test/CodeGen/R600/cttz_zero_undef.ll | 6 +- test/CodeGen/R600/cvt_f32_ubyte.ll | 30 +- test/CodeGen/R600/cvt_flr_i32_f32.ll | 86 + test/CodeGen/R600/cvt_rpi_i32_f32.ll | 83 + .../dagcombiner-bug-illegal-vec4-int-to-fp.ll | 8 +- test/CodeGen/R600/debug.ll | 10 + .../R600/disconnected-predset-break-bug.ll | 2 +- test/CodeGen/R600/dot4-folding.ll | 4 +- ...ds-negative-offset-addressing-mode-loop.ll | 24 +- test/CodeGen/R600/ds_read2.ll | 274 +- test/CodeGen/R600/ds_read2_offset_order.ll | 28 +- test/CodeGen/R600/ds_read2st64.ll | 138 +- test/CodeGen/R600/ds_write2.ll | 238 +- test/CodeGen/R600/ds_write2st64.ll | 62 +- test/CodeGen/R600/elf.ll | 7 +- test/CodeGen/R600/empty-function.ll | 4 +- test/CodeGen/R600/endcf-loop-header.ll | 2 +- test/CodeGen/R600/extload-private.ll | 8 +- test/CodeGen/R600/extload.ll | 30 +- test/CodeGen/R600/extract_vector_elt_i16.ll | 4 +- test/CodeGen/R600/fabs.f64.ll | 4 +- test/CodeGen/R600/fabs.ll | 35 +- test/CodeGen/R600/fadd.ll | 6 +- test/CodeGen/R600/fadd64.ll | 4 +- test/CodeGen/R600/fceil64.ll | 15 +- test/CodeGen/R600/fcmp-cnd.ll | 2 +- test/CodeGen/R600/fcmp-cnde-int-args.ll | 2 +- test/CodeGen/R600/fcmp.ll | 8 +- test/CodeGen/R600/fcmp64.ll | 24 +- test/CodeGen/R600/fconst64.ll | 2 +- test/CodeGen/R600/fcopysign.f32.ll | 21 +- test/CodeGen/R600/fcopysign.f64.ll | 23 +- test/CodeGen/R600/fdiv.f64.ll | 24 +- test/CodeGen/R600/fdiv.ll | 6 +- test/CodeGen/R600/fetch-limits.r600.ll | 18 +- test/CodeGen/R600/fetch-limits.r700+.ll | 34 +- test/CodeGen/R600/ffloor.f64.ll | 127 + test/CodeGen/R600/ffloor.ll | 129 +- test/CodeGen/R600/flat-address-space.ll | 20 +- test/CodeGen/R600/floor.ll | 7 +- test/CodeGen/R600/fma-combine.ll | 368 + test/CodeGen/R600/fma.f64.ll | 18 +- test/CodeGen/R600/fma.ll | 38 +- test/CodeGen/R600/fmax3.f64.ll | 10 +- test/CodeGen/R600/fmax3.ll | 18 +- test/CodeGen/R600/fmax_legacy.f64.ll | 34 +- test/CodeGen/R600/fmax_legacy.ll | 40 +- test/CodeGen/R600/fmaxnum.ll | 91 + test/CodeGen/R600/fmin3.ll | 18 +- test/CodeGen/R600/fmin_legacy.f64.ll | 34 +- test/CodeGen/R600/fmin_legacy.ll | 40 +- test/CodeGen/R600/fminnum.ll | 91 + test/CodeGen/R600/fmul.ll | 6 +- test/CodeGen/R600/fmul64.ll | 12 +- test/CodeGen/R600/fmuladd.ll | 92 +- test/CodeGen/R600/fneg-fabs.f64.ll | 10 +- test/CodeGen/R600/fneg-fabs.ll | 2 +- test/CodeGen/R600/fneg.f64.ll | 27 +- test/CodeGen/R600/fneg.ll | 24 +- test/CodeGen/R600/fp-classify.ll | 4 +- test/CodeGen/R600/fp16_to_fp.ll | 4 +- test/CodeGen/R600/fp32_to_fp16.ll | 2 +- test/CodeGen/R600/fp_to_sint.f64.ll | 4 +- test/CodeGen/R600/fp_to_sint.ll | 2 +- test/CodeGen/R600/fp_to_uint.f64.ll | 4 +- test/CodeGen/R600/fp_to_uint.ll | 2 +- test/CodeGen/R600/fpext.ll | 45 +- test/CodeGen/R600/fptrunc.ll | 45 +- test/CodeGen/R600/frem.ll | 105 +- test/CodeGen/R600/fsqrt.ll | 4 +- test/CodeGen/R600/fsub.ll | 12 +- test/CodeGen/R600/fsub64.ll | 104 +- test/CodeGen/R600/ftrunc.f64.ll | 13 +- test/CodeGen/R600/gep-address-space.ll | 9 +- test/CodeGen/R600/global-directive.ll | 6 +- test/CodeGen/R600/global-extload-i1.ll | 68 +- test/CodeGen/R600/global-extload-i16.ll | 68 +- test/CodeGen/R600/global-extload-i32.ll | 32 +- test/CodeGen/R600/global-extload-i8.ll | 68 +- test/CodeGen/R600/global-zero-initializer.ll | 4 +- test/CodeGen/R600/global_atomics.ll | 160 +- test/CodeGen/R600/gv-const-addrspace-fail.ll | 16 +- test/CodeGen/R600/gv-const-addrspace.ll | 28 +- test/CodeGen/R600/half.ll | 12 +- test/CodeGen/R600/hsa.ll | 4 +- test/CodeGen/R600/i1-copy-phi.ll | 2 +- test/CodeGen/R600/i8-to-double-to-float.ll | 2 +- .../R600/icmp-select-sete-reverse-args.ll | 6 +- test/CodeGen/R600/imm.ll | 361 +- test/CodeGen/R600/indirect-private-64.ll | 24 +- test/CodeGen/R600/inline-asm.ll | 4 +- test/CodeGen/R600/insert_vector_elt.ll | 6 +- test/CodeGen/R600/jump-address.ll | 6 +- test/CodeGen/R600/kcache-fold.ll | 48 +- test/CodeGen/R600/kernel-args.ll | 256 +- test/CodeGen/R600/large-alloca.ll | 6 +- .../R600/large-constant-initializer.ll | 2 +- test/CodeGen/R600/lds-initializer.ll | 4 +- test/CodeGen/R600/lds-oqap-crash.ll | 2 +- test/CodeGen/R600/lds-output-queue.ll | 18 +- test/CodeGen/R600/lds-size.ll | 2 +- test/CodeGen/R600/lds-zero-initializer.ll | 4 +- .../R600/legalizedag-bug-expand-setcc.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.abs.ll | 4 +- .../R600/llvm.AMDGPU.barrier.global.ll | 6 +- .../CodeGen/R600/llvm.AMDGPU.barrier.local.ll | 6 +- test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll | 37 +- test/CodeGen/R600/llvm.AMDGPU.bfe.u32.ll | 96 +- test/CodeGen/R600/llvm.AMDGPU.bfm.ll | 27 +- test/CodeGen/R600/llvm.AMDGPU.brev.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.class.ll | 76 +- test/CodeGen/R600/llvm.AMDGPU.cube.ll | 8 +- .../CodeGen/R600/llvm.AMDGPU.cvt_f32_ubyte.ll | 8 +- test/CodeGen/R600/llvm.AMDGPU.div_fixup.ll | 22 +- test/CodeGen/R600/llvm.AMDGPU.div_fmas.ll | 111 +- test/CodeGen/R600/llvm.AMDGPU.div_scale.ll | 88 +- test/CodeGen/R600/llvm.AMDGPU.flbit.i32.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.fract.f64.ll | 60 + test/CodeGen/R600/llvm.AMDGPU.fract.ll | 8 +- test/CodeGen/R600/llvm.AMDGPU.imax.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.imin.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.kill.ll | 2 +- .../R600/llvm.AMDGPU.rsq.clamped.f64.ll | 12 + test/CodeGen/R600/llvm.AMDGPU.rsq.clamped.ll | 9 + test/CodeGen/R600/llvm.AMDGPU.tex.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.trig_preop.ll | 6 +- test/CodeGen/R600/llvm.AMDGPU.umad24.ll | 10 +- test/CodeGen/R600/llvm.AMDGPU.umax.ll | 4 +- test/CodeGen/R600/llvm.AMDGPU.umin.ll | 4 +- test/CodeGen/R600/llvm.SI.fs.interp.ll | 45 +- test/CodeGen/R600/llvm.SI.imageload.ll | 20 +- test/CodeGen/R600/llvm.SI.load.dword.ll | 52 +- test/CodeGen/R600/llvm.SI.sendmsg.ll | 2 + test/CodeGen/R600/llvm.SI.tid.ll | 8 +- test/CodeGen/R600/llvm.amdgpu.dp4.ll | 4 +- test/CodeGen/R600/llvm.floor.ll | 54 - test/CodeGen/R600/llvm.memcpy.ll | 48 +- test/CodeGen/R600/llvm.rint.f64.ll | 1 + test/CodeGen/R600/llvm.round.f64.ll | 74 + test/CodeGen/R600/llvm.round.ll | 76 +- test/CodeGen/R600/llvm.sqrt.ll | 54 +- test/CodeGen/R600/llvm.trunc.ll | 13 - test/CodeGen/R600/load-i1.ll | 14 +- test/CodeGen/R600/load-input-fold.ll | 38 +- test/CodeGen/R600/load.ll | 211 +- test/CodeGen/R600/load.vec.ll | 4 +- test/CodeGen/R600/load64.ll | 6 +- test/CodeGen/R600/local-64.ll | 83 +- test/CodeGen/R600/local-atomics.ll | 319 +- test/CodeGen/R600/local-atomics64.ll | 279 +- test/CodeGen/R600/local-memory-two-objects.ll | 25 +- test/CodeGen/R600/local-memory.ll | 11 +- test/CodeGen/R600/loop-address.ll | 2 +- test/CodeGen/R600/loop-idiom.ll | 8 +- test/CodeGen/R600/m0-spill.ll | 4 +- test/CodeGen/R600/mad-combine.ll | 567 + test/CodeGen/R600/mad-sub.ll | 118 +- test/CodeGen/R600/madak.ll | 193 + test/CodeGen/R600/madmk.ll | 205 + test/CodeGen/R600/max.ll | 58 +- test/CodeGen/R600/max3.ll | 28 +- test/CodeGen/R600/merge-stores.ll | 536 + test/CodeGen/R600/min.ll | 70 +- test/CodeGen/R600/min3.ll | 76 +- test/CodeGen/R600/misaligned-load.ll | 18 - test/CodeGen/R600/missing-store.ll | 6 +- test/CodeGen/R600/mubuf.ll | 72 +- test/CodeGen/R600/mul.ll | 34 +- .../R600/no-initializer-constant-addrspace.ll | 4 +- test/CodeGen/R600/no-shrink-extloads.ll | 50 +- test/CodeGen/R600/operand-folding.ll | 4 +- test/CodeGen/R600/operand-spacing.ll | 13 +- test/CodeGen/R600/or.ll | 88 +- test/CodeGen/R600/parallelandifcollapse.ll | 16 +- test/CodeGen/R600/parallelorifcollapse.ll | 16 +- test/CodeGen/R600/private-memory-atomics.ll | 12 +- test/CodeGen/R600/private-memory-broken.ll | 6 +- test/CodeGen/R600/private-memory.ll | 154 +- test/CodeGen/R600/pv-packing.ll | 4 +- test/CodeGen/R600/pv.ll | 68 +- test/CodeGen/R600/r600-export-fix.ll | 50 +- test/CodeGen/R600/r600cfg.ll | 2 +- test/CodeGen/R600/register-count-comments.ll | 10 +- test/CodeGen/R600/reorder-stores.ll | 16 +- test/CodeGen/R600/rotl.i64.ll | 4 +- test/CodeGen/R600/rotr.i64.ll | 8 +- test/CodeGen/R600/rsq.ll | 18 +- test/CodeGen/R600/s_movk_i32.ll | 26 +- test/CodeGen/R600/saddo.ll | 8 +- test/CodeGen/R600/salu-to-valu.ll | 30 +- test/CodeGen/R600/scalar_to_vector.ll | 6 +- test/CodeGen/R600/schedule-fs-loop-nested.ll | 8 +- test/CodeGen/R600/schedule-fs-loop.ll | 8 +- test/CodeGen/R600/schedule-global-loads.ll | 12 +- test/CodeGen/R600/schedule-if-2.ll | 8 +- test/CodeGen/R600/schedule-if.ll | 6 +- .../CodeGen/R600/schedule-kernel-arg-loads.ll | 7 + .../schedule-vs-if-nested-loop-failure.ll | 32 +- .../R600/schedule-vs-if-nested-loop.ll | 32 +- test/CodeGen/R600/scratch-buffer.ll | 31 +- test/CodeGen/R600/sdiv.ll | 26 +- test/CodeGen/R600/sdivrem24.ll | 72 +- test/CodeGen/R600/sdivrem64.ll | 225 + test/CodeGen/R600/select64.ll | 21 +- test/CodeGen/R600/selectcc-cnd.ll | 2 +- test/CodeGen/R600/selectcc-cnde-int.ll | 2 +- .../R600/selectcc-icmp-select-float.ll | 2 +- test/CodeGen/R600/selectcc-opt.ll | 4 +- test/CodeGen/R600/setcc-opt.ll | 161 +- test/CodeGen/R600/setcc.ll | 26 +- test/CodeGen/R600/sext-in-reg.ll | 89 +- test/CodeGen/R600/sgpr-control-flow.ll | 14 +- .../R600/sgpr-copy-duplicate-operand.ll | 2 +- test/CodeGen/R600/sgpr-copy.ll | 46 +- test/CodeGen/R600/shl.ll | 30 +- test/CodeGen/R600/shl_add_constant.ll | 12 +- test/CodeGen/R600/shl_add_ptr.ll | 60 +- test/CodeGen/R600/si-annotate-cf.ll | 4 +- test/CodeGen/R600/si-lod-bias.ll | 12 +- test/CodeGen/R600/si-sgpr-spill.ll | 184 +- test/CodeGen/R600/si-spill-cf.ll | 501 + .../R600/si-triv-disjoint-mem-access.ll | 104 +- test/CodeGen/R600/si-vector-hang.ll | 74 +- test/CodeGen/R600/sign_extend.ll | 7 +- .../R600/simplify-demanded-bits-build-pair.ll | 12 +- test/CodeGen/R600/sint_to_fp.f64.ll | 7 +- test/CodeGen/R600/sint_to_fp.ll | 2 +- test/CodeGen/R600/smrd.ll | 86 +- test/CodeGen/R600/split-scalar-i64-add.ll | 4 +- test/CodeGen/R600/sra.ll | 30 +- test/CodeGen/R600/srem.ll | 89 +- test/CodeGen/R600/srl.ll | 55 +- test/CodeGen/R600/ssubo.ll | 8 +- test/CodeGen/R600/store-barrier.ll | 28 +- test/CodeGen/R600/store-v3i64.ll | 4 +- test/CodeGen/R600/store-vector-ptrs.ll | 2 +- test/CodeGen/R600/store.ll | 99 +- test/CodeGen/R600/store.r600.ll | 4 +- test/CodeGen/R600/sub.ll | 62 +- test/CodeGen/R600/subreg-coalescer-crash.ll | 69 +- test/CodeGen/R600/swizzle-export.ll | 42 +- test/CodeGen/R600/trunc-cmp-constant.ll | 52 +- test/CodeGen/R600/trunc.ll | 18 +- test/CodeGen/R600/tti-unroll-prefs.ll | 2 +- test/CodeGen/R600/uaddo.ll | 25 +- test/CodeGen/R600/udiv.ll | 18 +- test/CodeGen/R600/udivrem.ll | 24 +- test/CodeGen/R600/udivrem24.ll | 72 +- test/CodeGen/R600/udivrem64.ll | 148 +- test/CodeGen/R600/uint_to_fp.f64.ll | 7 +- test/CodeGen/R600/uint_to_fp.ll | 4 +- test/CodeGen/R600/unaligned-load-store.ll | 36 +- .../unhandled-loop-condition-assertion.ll | 60 +- test/CodeGen/R600/unroll.ll | 6 +- test/CodeGen/R600/urem.ll | 51 +- test/CodeGen/R600/use-sgpr-multiple-times.ll | 73 +- test/CodeGen/R600/usubo.ll | 29 +- test/CodeGen/R600/v_cndmask.ll | 4 +- test/CodeGen/R600/valu-i1.ll | 47 +- test/CodeGen/R600/vector-alloca.ll | 40 +- test/CodeGen/R600/vertex-fetch-encoding.ll | 4 +- test/CodeGen/R600/vop-shrink.ll | 2 +- test/CodeGen/R600/vselect.ll | 16 +- test/CodeGen/R600/vtx-fetch-branch.ll | 2 +- test/CodeGen/R600/vtx-schedule.ll | 4 +- test/CodeGen/R600/wait.ll | 15 +- test/CodeGen/R600/work-item-intrinsics.ll | 72 +- test/CodeGen/R600/wrong-transalu-pos-fix.ll | 2 +- test/CodeGen/R600/xor.ll | 40 +- test/CodeGen/R600/zero_extend.ll | 2 +- .../2008-10-10-InlineAsmMemoryOperand.ll | 4 +- .../SPARC/2008-10-10-InlineAsmRegOperand.ll | 2 +- test/CodeGen/SPARC/2009-08-28-PIC.ll | 4 +- test/CodeGen/SPARC/2011-01-11-CC.ll | 6 +- test/CodeGen/SPARC/2011-01-11-Call.ll | 6 +- test/CodeGen/SPARC/2011-01-19-DelaySlot.ll | 2 +- test/CodeGen/SPARC/2011-01-22-SRet.ll | 18 +- test/CodeGen/SPARC/64abi.ll | 20 +- test/CodeGen/SPARC/64bit.ll | 30 +- test/CodeGen/SPARC/atomics.ll | 8 +- test/CodeGen/SPARC/basictest.ll | 50 +- test/CodeGen/SPARC/empty-functions.ll | 2 +- test/CodeGen/SPARC/exception.ll | 4 +- test/CodeGen/SPARC/float.ll | 4 +- test/CodeGen/SPARC/fp128.ll | 58 +- test/CodeGen/SPARC/globals.ll | 2 +- test/CodeGen/SPARC/inlineasm.ll | 2 +- test/CodeGen/SPARC/leafproc.ll | 8 +- test/CodeGen/SPARC/mult-alt-generic-sparc.ll | 48 +- test/CodeGen/SPARC/obj-relocs.ll | 2 +- test/CodeGen/SPARC/private.ll | 2 +- test/CodeGen/SPARC/setjmp.ll | 14 +- test/CodeGen/SPARC/spillsize.ll | 6 +- test/CodeGen/SPARC/tls.ll | 6 +- test/CodeGen/SPARC/varargs.ll | 6 +- test/CodeGen/SystemZ/Large/branch-range-01.py | 10 +- test/CodeGen/SystemZ/Large/branch-range-02.py | 4 +- test/CodeGen/SystemZ/Large/branch-range-03.py | 10 +- test/CodeGen/SystemZ/Large/branch-range-04.py | 10 +- test/CodeGen/SystemZ/Large/branch-range-05.py | 6 +- test/CodeGen/SystemZ/Large/branch-range-06.py | 6 +- test/CodeGen/SystemZ/Large/branch-range-07.py | 6 +- test/CodeGen/SystemZ/Large/branch-range-08.py | 6 +- test/CodeGen/SystemZ/Large/branch-range-09.py | 10 +- test/CodeGen/SystemZ/Large/branch-range-10.py | 10 +- test/CodeGen/SystemZ/Large/branch-range-11.py | 10 +- test/CodeGen/SystemZ/Large/branch-range-12.py | 10 +- test/CodeGen/SystemZ/Large/lit.local.cfg | 4 +- test/CodeGen/SystemZ/Large/spill-01.py | 4 +- test/CodeGen/SystemZ/Large/spill-02.py | 6 +- test/CodeGen/SystemZ/addr-01.ll | 16 +- test/CodeGen/SystemZ/addr-02.ll | 16 +- test/CodeGen/SystemZ/addr-03.ll | 10 +- test/CodeGen/SystemZ/alias-01.ll | 2 +- test/CodeGen/SystemZ/alloca-01.ll | 8 +- test/CodeGen/SystemZ/alloca-02.ll | 8 +- test/CodeGen/SystemZ/and-01.ll | 72 +- test/CodeGen/SystemZ/and-03.ll | 62 +- test/CodeGen/SystemZ/and-05.ll | 40 +- test/CodeGen/SystemZ/and-06.ll | 16 +- test/CodeGen/SystemZ/and-08.ll | 138 +- test/CodeGen/SystemZ/asm-18.ll | 76 +- test/CodeGen/SystemZ/atomic-load-01.ll | 2 +- test/CodeGen/SystemZ/atomic-load-02.ll | 2 +- test/CodeGen/SystemZ/atomic-load-03.ll | 2 +- test/CodeGen/SystemZ/atomic-load-04.ll | 2 +- test/CodeGen/SystemZ/atomicrmw-add-05.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-add-06.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-and-05.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-and-06.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-minmax-03.ll | 14 +- test/CodeGen/SystemZ/atomicrmw-minmax-04.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-or-05.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-or-06.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-sub-05.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-sub-06.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-xchg-03.ll | 14 +- test/CodeGen/SystemZ/atomicrmw-xchg-04.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-xor-05.ll | 8 +- test/CodeGen/SystemZ/atomicrmw-xor-06.ll | 8 +- test/CodeGen/SystemZ/branch-02.ll | 12 +- test/CodeGen/SystemZ/branch-03.ll | 8 +- test/CodeGen/SystemZ/branch-04.ll | 28 +- test/CodeGen/SystemZ/branch-06.ll | 18 +- test/CodeGen/SystemZ/branch-08.ll | 2 +- test/CodeGen/SystemZ/bswap-02.ll | 58 +- test/CodeGen/SystemZ/bswap-03.ll | 58 +- test/CodeGen/SystemZ/bswap-04.ll | 10 +- test/CodeGen/SystemZ/bswap-05.ll | 10 +- test/CodeGen/SystemZ/cmpxchg-03.ll | 14 +- test/CodeGen/SystemZ/cmpxchg-04.ll | 10 +- test/CodeGen/SystemZ/cond-load-01.ll | 26 +- test/CodeGen/SystemZ/cond-load-02.ll | 26 +- test/CodeGen/SystemZ/cond-store-01.ll | 56 +- test/CodeGen/SystemZ/cond-store-02.ll | 56 +- test/CodeGen/SystemZ/cond-store-03.ll | 48 +- test/CodeGen/SystemZ/cond-store-04.ll | 32 +- test/CodeGen/SystemZ/cond-store-05.ll | 36 +- test/CodeGen/SystemZ/cond-store-06.ll | 36 +- test/CodeGen/SystemZ/cond-store-07.ll | 30 +- test/CodeGen/SystemZ/cond-store-08.ll | 22 +- test/CodeGen/SystemZ/ctpop-01.ll | 96 + test/CodeGen/SystemZ/fp-abs-01.ll | 7 +- test/CodeGen/SystemZ/fp-abs-02.ll | 7 +- test/CodeGen/SystemZ/fp-add-01.ll | 62 +- test/CodeGen/SystemZ/fp-add-02.ll | 69 +- test/CodeGen/SystemZ/fp-add-03.ll | 2 +- test/CodeGen/SystemZ/fp-cmp-01.ll | 86 +- test/CodeGen/SystemZ/fp-cmp-02.ll | 115 +- test/CodeGen/SystemZ/fp-cmp-03.ll | 4 +- test/CodeGen/SystemZ/fp-cmp-04.ll | 6 +- test/CodeGen/SystemZ/fp-conv-01.ll | 22 +- test/CodeGen/SystemZ/fp-conv-02.ll | 60 +- test/CodeGen/SystemZ/fp-conv-03.ll | 54 +- test/CodeGen/SystemZ/fp-conv-04.ll | 54 +- test/CodeGen/SystemZ/fp-conv-09.ll | 2 +- test/CodeGen/SystemZ/fp-conv-10.ll | 2 +- test/CodeGen/SystemZ/fp-conv-11.ll | 2 +- test/CodeGen/SystemZ/fp-conv-12.ll | 2 +- test/CodeGen/SystemZ/fp-conv-14.ll | 4 +- test/CodeGen/SystemZ/fp-copysign-01.ll | 12 +- test/CodeGen/SystemZ/fp-div-01.ll | 62 +- test/CodeGen/SystemZ/fp-div-02.ll | 68 +- test/CodeGen/SystemZ/fp-div-03.ll | 2 +- test/CodeGen/SystemZ/fp-move-01.ll | 8 +- test/CodeGen/SystemZ/fp-move-02.ll | 48 +- test/CodeGen/SystemZ/fp-move-03.ll | 34 +- test/CodeGen/SystemZ/fp-move-04.ll | 37 +- test/CodeGen/SystemZ/fp-move-05.ll | 22 +- test/CodeGen/SystemZ/fp-move-06.ll | 14 +- test/CodeGen/SystemZ/fp-move-07.ll | 17 +- test/CodeGen/SystemZ/fp-move-09.ll | 8 +- test/CodeGen/SystemZ/fp-move-10.ll | 61 + test/CodeGen/SystemZ/fp-move-11.ll | 110 + test/CodeGen/SystemZ/fp-mul-01.ll | 62 +- test/CodeGen/SystemZ/fp-mul-02.ll | 62 +- test/CodeGen/SystemZ/fp-mul-03.ll | 68 +- test/CodeGen/SystemZ/fp-mul-04.ll | 62 +- test/CodeGen/SystemZ/fp-mul-05.ll | 2 +- test/CodeGen/SystemZ/fp-mul-06.ll | 26 +- test/CodeGen/SystemZ/fp-mul-07.ll | 36 +- test/CodeGen/SystemZ/fp-mul-08.ll | 26 +- test/CodeGen/SystemZ/fp-mul-09.ll | 36 +- test/CodeGen/SystemZ/fp-neg-01.ll | 7 +- test/CodeGen/SystemZ/fp-round-01.ll | 2 +- test/CodeGen/SystemZ/fp-round-02.ll | 20 +- test/CodeGen/SystemZ/fp-sqrt-01.ll | 54 +- test/CodeGen/SystemZ/fp-sqrt-02.ll | 60 +- test/CodeGen/SystemZ/fp-sqrt-03.ll | 2 +- test/CodeGen/SystemZ/fp-sub-01.ll | 62 +- test/CodeGen/SystemZ/fp-sub-02.ll | 68 +- test/CodeGen/SystemZ/fp-sub-03.ll | 2 +- test/CodeGen/SystemZ/frame-01.ll | 12 +- test/CodeGen/SystemZ/frame-02.ll | 96 +- test/CodeGen/SystemZ/frame-03.ll | 98 +- test/CodeGen/SystemZ/frame-04.ll | 48 +- test/CodeGen/SystemZ/frame-05.ll | 84 +- test/CodeGen/SystemZ/frame-06.ll | 84 +- test/CodeGen/SystemZ/frame-07.ll | 72 +- test/CodeGen/SystemZ/frame-08.ll | 104 +- test/CodeGen/SystemZ/frame-09.ll | 32 +- test/CodeGen/SystemZ/frame-13.ll | 82 +- test/CodeGen/SystemZ/frame-14.ll | 82 +- test/CodeGen/SystemZ/frame-15.ll | 146 +- test/CodeGen/SystemZ/frame-16.ll | 82 +- test/CodeGen/SystemZ/frame-17.ll | 88 +- test/CodeGen/SystemZ/frame-18.ll | 60 +- test/CodeGen/SystemZ/frame-19.ll | 314 + test/CodeGen/SystemZ/frame-20.ll | 445 + test/CodeGen/SystemZ/htm-intrinsics.ll | 352 + test/CodeGen/SystemZ/insert-01.ll | 56 +- test/CodeGen/SystemZ/insert-02.ll | 56 +- test/CodeGen/SystemZ/insert-06.ll | 6 +- test/CodeGen/SystemZ/int-add-01.ll | 34 +- test/CodeGen/SystemZ/int-add-02.ll | 72 +- test/CodeGen/SystemZ/int-add-03.ll | 62 +- test/CodeGen/SystemZ/int-add-04.ll | 62 +- test/CodeGen/SystemZ/int-add-05.ll | 62 +- test/CodeGen/SystemZ/int-add-08.ll | 46 +- test/CodeGen/SystemZ/int-add-09.ll | 8 +- test/CodeGen/SystemZ/int-add-10.ll | 44 +- test/CodeGen/SystemZ/int-add-11.ll | 92 +- test/CodeGen/SystemZ/int-add-12.ll | 92 +- test/CodeGen/SystemZ/int-cmp-01.ll | 36 +- test/CodeGen/SystemZ/int-cmp-02.ll | 36 +- test/CodeGen/SystemZ/int-cmp-03.ll | 36 +- test/CodeGen/SystemZ/int-cmp-04.ll | 26 +- test/CodeGen/SystemZ/int-cmp-05.ll | 70 +- test/CodeGen/SystemZ/int-cmp-06.ll | 70 +- test/CodeGen/SystemZ/int-cmp-07.ll | 26 +- test/CodeGen/SystemZ/int-cmp-08.ll | 26 +- test/CodeGen/SystemZ/int-cmp-12.ll | 15 +- test/CodeGen/SystemZ/int-cmp-15.ll | 52 +- test/CodeGen/SystemZ/int-cmp-16.ll | 20 +- test/CodeGen/SystemZ/int-cmp-17.ll | 20 +- test/CodeGen/SystemZ/int-cmp-18.ll | 20 +- test/CodeGen/SystemZ/int-cmp-19.ll | 20 +- test/CodeGen/SystemZ/int-cmp-20.ll | 32 +- test/CodeGen/SystemZ/int-cmp-21.ll | 32 +- test/CodeGen/SystemZ/int-cmp-22.ll | 24 +- test/CodeGen/SystemZ/int-cmp-23.ll | 18 +- test/CodeGen/SystemZ/int-cmp-24.ll | 8 +- test/CodeGen/SystemZ/int-cmp-25.ll | 8 +- test/CodeGen/SystemZ/int-cmp-26.ll | 20 +- test/CodeGen/SystemZ/int-cmp-27.ll | 20 +- test/CodeGen/SystemZ/int-cmp-28.ll | 20 +- test/CodeGen/SystemZ/int-cmp-29.ll | 20 +- test/CodeGen/SystemZ/int-cmp-30.ll | 32 +- test/CodeGen/SystemZ/int-cmp-31.ll | 32 +- test/CodeGen/SystemZ/int-cmp-32.ll | 42 +- test/CodeGen/SystemZ/int-cmp-33.ll | 26 +- test/CodeGen/SystemZ/int-cmp-34.ll | 42 +- test/CodeGen/SystemZ/int-cmp-35.ll | 26 +- test/CodeGen/SystemZ/int-cmp-36.ll | 12 +- test/CodeGen/SystemZ/int-cmp-37.ll | 12 +- test/CodeGen/SystemZ/int-cmp-38.ll | 14 +- test/CodeGen/SystemZ/int-cmp-39.ll | 12 +- test/CodeGen/SystemZ/int-cmp-40.ll | 12 +- test/CodeGen/SystemZ/int-cmp-41.ll | 12 +- test/CodeGen/SystemZ/int-cmp-42.ll | 12 +- test/CodeGen/SystemZ/int-cmp-43.ll | 12 +- test/CodeGen/SystemZ/int-cmp-44.ll | 20 +- test/CodeGen/SystemZ/int-cmp-45.ll | 12 +- test/CodeGen/SystemZ/int-cmp-47.ll | 3 +- test/CodeGen/SystemZ/int-cmp-48.ll | 46 +- test/CodeGen/SystemZ/int-cmp-50.ll | 30 + test/CodeGen/SystemZ/int-const-03.ll | 14 +- test/CodeGen/SystemZ/int-const-04.ll | 6 +- test/CodeGen/SystemZ/int-const-05.ll | 6 +- test/CodeGen/SystemZ/int-const-06.ll | 6 +- test/CodeGen/SystemZ/int-conv-01.ll | 56 +- test/CodeGen/SystemZ/int-conv-02.ll | 56 +- test/CodeGen/SystemZ/int-conv-03.ll | 56 +- test/CodeGen/SystemZ/int-conv-04.ll | 56 +- test/CodeGen/SystemZ/int-conv-05.ll | 66 +- test/CodeGen/SystemZ/int-conv-06.ll | 56 +- test/CodeGen/SystemZ/int-conv-07.ll | 56 +- test/CodeGen/SystemZ/int-conv-08.ll | 56 +- test/CodeGen/SystemZ/int-conv-09.ll | 24 +- test/CodeGen/SystemZ/int-conv-10.ll | 24 +- test/CodeGen/SystemZ/int-conv-11.ll | 128 +- test/CodeGen/SystemZ/int-div-01.ll | 70 +- test/CodeGen/SystemZ/int-div-02.ll | 66 +- test/CodeGen/SystemZ/int-div-03.ll | 30 +- test/CodeGen/SystemZ/int-div-04.ll | 70 +- test/CodeGen/SystemZ/int-div-05.ll | 70 +- test/CodeGen/SystemZ/int-move-02.ll | 34 +- test/CodeGen/SystemZ/int-move-03.ll | 24 +- test/CodeGen/SystemZ/int-move-04.ll | 14 +- test/CodeGen/SystemZ/int-move-05.ll | 14 +- test/CodeGen/SystemZ/int-move-06.ll | 14 +- test/CodeGen/SystemZ/int-move-07.ll | 10 +- test/CodeGen/SystemZ/int-move-08.ll | 24 +- test/CodeGen/SystemZ/int-move-09.ll | 20 +- test/CodeGen/SystemZ/int-mul-01.ll | 34 +- test/CodeGen/SystemZ/int-mul-02.ll | 72 +- test/CodeGen/SystemZ/int-mul-03.ll | 62 +- test/CodeGen/SystemZ/int-mul-04.ll | 62 +- test/CodeGen/SystemZ/int-mul-08.ll | 62 +- test/CodeGen/SystemZ/int-sub-01.ll | 72 +- test/CodeGen/SystemZ/int-sub-02.ll | 62 +- test/CodeGen/SystemZ/int-sub-03.ll | 62 +- test/CodeGen/SystemZ/int-sub-04.ll | 62 +- test/CodeGen/SystemZ/int-sub-05.ll | 58 +- test/CodeGen/SystemZ/int-sub-06.ll | 44 +- test/CodeGen/SystemZ/int-sub-07.ll | 34 +- test/CodeGen/SystemZ/loop-01.ll | 8 +- test/CodeGen/SystemZ/memchr-02.ll | 4 +- test/CodeGen/SystemZ/memcpy-01.ll | 16 +- test/CodeGen/SystemZ/memcpy-02.ll | 104 +- test/CodeGen/SystemZ/or-01.ll | 72 +- test/CodeGen/SystemZ/or-03.ll | 62 +- test/CodeGen/SystemZ/or-05.ll | 40 +- test/CodeGen/SystemZ/or-06.ll | 16 +- test/CodeGen/SystemZ/or-08.ll | 24 +- test/CodeGen/SystemZ/prefetch-01.ll | 8 +- test/CodeGen/SystemZ/risbg-03.ll | 30 + test/CodeGen/SystemZ/serialize-01.ll | 2 +- test/CodeGen/SystemZ/shift-01.ll | 2 +- test/CodeGen/SystemZ/shift-02.ll | 2 +- test/CodeGen/SystemZ/shift-03.ll | 2 +- test/CodeGen/SystemZ/shift-04.ll | 2 +- test/CodeGen/SystemZ/shift-05.ll | 2 +- test/CodeGen/SystemZ/shift-06.ll | 2 +- test/CodeGen/SystemZ/shift-07.ll | 2 +- test/CodeGen/SystemZ/shift-08.ll | 2 +- test/CodeGen/SystemZ/spill-01.ll | 322 +- test/CodeGen/SystemZ/strcpy-01.ll | 2 +- .../SystemZ/tail-call-mem-intrinsics.ll | 31 + test/CodeGen/SystemZ/tls-01.ll | 6 +- test/CodeGen/SystemZ/tls-02.ll | 18 + test/CodeGen/SystemZ/tls-03.ll | 23 + test/CodeGen/SystemZ/tls-04.ll | 28 + test/CodeGen/SystemZ/tls-05.ll | 15 + test/CodeGen/SystemZ/tls-06.ll | 17 + test/CodeGen/SystemZ/tls-07.ll | 16 + test/CodeGen/SystemZ/unaligned-01.ll | 16 +- test/CodeGen/SystemZ/vec-abi-align.ll | 49 + test/CodeGen/SystemZ/vec-abs-01.ll | 146 + test/CodeGen/SystemZ/vec-abs-02.ll | 142 + test/CodeGen/SystemZ/vec-abs-03.ll | 138 + test/CodeGen/SystemZ/vec-abs-04.ll | 138 + test/CodeGen/SystemZ/vec-abs-05.ll | 46 + test/CodeGen/SystemZ/vec-add-01.ll | 60 + test/CodeGen/SystemZ/vec-and-01.ll | 39 + test/CodeGen/SystemZ/vec-and-02.ll | 91 + test/CodeGen/SystemZ/vec-and-03.ll | 113 + test/CodeGen/SystemZ/vec-args-01.ll | 48 + test/CodeGen/SystemZ/vec-args-02.ll | 31 + test/CodeGen/SystemZ/vec-args-03.ll | 30 + test/CodeGen/SystemZ/vec-args-04.ll | 50 + test/CodeGen/SystemZ/vec-args-05.ll | 32 + test/CodeGen/SystemZ/vec-args-error-01.ll | 9 + test/CodeGen/SystemZ/vec-args-error-02.ll | 9 + test/CodeGen/SystemZ/vec-args-error-03.ll | 12 + test/CodeGen/SystemZ/vec-args-error-04.ll | 12 + test/CodeGen/SystemZ/vec-args-error-05.ll | 9 + test/CodeGen/SystemZ/vec-args-error-06.ll | 9 + test/CodeGen/SystemZ/vec-args-error-07.ll | 12 + test/CodeGen/SystemZ/vec-args-error-08.ll | 12 + test/CodeGen/SystemZ/vec-cmp-01.ll | 228 + test/CodeGen/SystemZ/vec-cmp-02.ll | 228 + test/CodeGen/SystemZ/vec-cmp-03.ll | 228 + test/CodeGen/SystemZ/vec-cmp-04.ll | 228 + test/CodeGen/SystemZ/vec-cmp-05.ll | 472 + test/CodeGen/SystemZ/vec-cmp-06.ll | 349 + test/CodeGen/SystemZ/vec-combine-01.ll | 155 + test/CodeGen/SystemZ/vec-combine-02.ll | 433 + test/CodeGen/SystemZ/vec-const-01.ll | 103 + test/CodeGen/SystemZ/vec-const-02.ll | 79 + test/CodeGen/SystemZ/vec-const-03.ll | 59 + test/CodeGen/SystemZ/vec-const-04.ll | 43 + test/CodeGen/SystemZ/vec-const-05.ll | 63 + test/CodeGen/SystemZ/vec-const-06.ll | 43 + test/CodeGen/SystemZ/vec-const-07.ll | 229 + test/CodeGen/SystemZ/vec-const-08.ll | 189 + test/CodeGen/SystemZ/vec-const-09.ll | 169 + test/CodeGen/SystemZ/vec-const-10.ll | 169 + test/CodeGen/SystemZ/vec-const-11.ll | 189 + test/CodeGen/SystemZ/vec-const-12.ll | 169 + test/CodeGen/SystemZ/vec-const-13.ll | 193 + test/CodeGen/SystemZ/vec-const-14.ll | 113 + test/CodeGen/SystemZ/vec-const-15.ll | 85 + test/CodeGen/SystemZ/vec-const-16.ll | 85 + test/CodeGen/SystemZ/vec-const-17.ll | 95 + test/CodeGen/SystemZ/vec-const-18.ll | 85 + test/CodeGen/SystemZ/vec-conv-01.ll | 95 + test/CodeGen/SystemZ/vec-conv-02.ll | 33 + test/CodeGen/SystemZ/vec-ctlz-01.ll | 81 + test/CodeGen/SystemZ/vec-ctpop-01.ll | 53 + test/CodeGen/SystemZ/vec-cttz-01.ll | 81 + test/CodeGen/SystemZ/vec-div-01.ll | 83 + test/CodeGen/SystemZ/vec-extract-01.ll | 13 + test/CodeGen/SystemZ/vec-extract-02.ll | 15 + test/CodeGen/SystemZ/vec-intrinsics.ll | 3335 + test/CodeGen/SystemZ/vec-log-01.ll | 15 + test/CodeGen/SystemZ/vec-max-01.ll | 83 + test/CodeGen/SystemZ/vec-max-02.ll | 83 + test/CodeGen/SystemZ/vec-max-03.ll | 83 + test/CodeGen/SystemZ/vec-max-04.ll | 83 + test/CodeGen/SystemZ/vec-min-01.ll | 83 + test/CodeGen/SystemZ/vec-min-02.ll | 83 + test/CodeGen/SystemZ/vec-min-03.ll | 83 + test/CodeGen/SystemZ/vec-min-04.ll | 83 + test/CodeGen/SystemZ/vec-move-01.ll | 107 + test/CodeGen/SystemZ/vec-move-02.ll | 174 + test/CodeGen/SystemZ/vec-move-03.ll | 174 + test/CodeGen/SystemZ/vec-move-04.ll | 179 + test/CodeGen/SystemZ/vec-move-05.ll | 249 + test/CodeGen/SystemZ/vec-move-06.ll | 13 + test/CodeGen/SystemZ/vec-move-07.ll | 57 + test/CodeGen/SystemZ/vec-move-08.ll | 444 + test/CodeGen/SystemZ/vec-move-09.ll | 291 + test/CodeGen/SystemZ/vec-move-10.ll | 499 + test/CodeGen/SystemZ/vec-move-11.ll | 111 + test/CodeGen/SystemZ/vec-move-12.ll | 123 + test/CodeGen/SystemZ/vec-move-13.ll | 69 + test/CodeGen/SystemZ/vec-move-14.ll | 96 + test/CodeGen/SystemZ/vec-move-15.ll | 105 + test/CodeGen/SystemZ/vec-move-16.ll | 105 + test/CodeGen/SystemZ/vec-move-17.ll | 104 + test/CodeGen/SystemZ/vec-mul-01.ll | 60 + test/CodeGen/SystemZ/vec-mul-02.ll | 63 + test/CodeGen/SystemZ/vec-neg-01.ll | 58 + test/CodeGen/SystemZ/vec-or-01.ll | 39 + test/CodeGen/SystemZ/vec-or-02.ll | 107 + test/CodeGen/SystemZ/vec-perm-01.ll | 175 + test/CodeGen/SystemZ/vec-perm-02.ll | 200 + test/CodeGen/SystemZ/vec-perm-03.ll | 251 + test/CodeGen/SystemZ/vec-perm-04.ll | 200 + test/CodeGen/SystemZ/vec-perm-05.ll | 200 + test/CodeGen/SystemZ/vec-perm-06.ll | 160 + test/CodeGen/SystemZ/vec-perm-07.ll | 145 + test/CodeGen/SystemZ/vec-perm-08.ll | 170 + test/CodeGen/SystemZ/vec-perm-09.ll | 38 + test/CodeGen/SystemZ/vec-perm-10.ll | 36 + test/CodeGen/SystemZ/vec-perm-11.ll | 35 + test/CodeGen/SystemZ/vec-round-01.ll | 118 + test/CodeGen/SystemZ/vec-shift-01.ll | 39 + test/CodeGen/SystemZ/vec-shift-02.ll | 39 + test/CodeGen/SystemZ/vec-shift-03.ll | 39 + test/CodeGen/SystemZ/vec-shift-04.ll | 134 + test/CodeGen/SystemZ/vec-shift-05.ll | 134 + test/CodeGen/SystemZ/vec-shift-06.ll | 134 + test/CodeGen/SystemZ/vec-shift-07.ll | 182 + test/CodeGen/SystemZ/vec-sqrt-01.ll | 23 + test/CodeGen/SystemZ/vec-sub-01.ll | 148 + test/CodeGen/SystemZ/vec-xor-01.ll | 39 + test/CodeGen/SystemZ/xor-01.ll | 72 +- test/CodeGen/SystemZ/xor-03.ll | 62 +- test/CodeGen/SystemZ/xor-05.ll | 40 +- test/CodeGen/SystemZ/xor-06.ll | 16 +- test/CodeGen/SystemZ/xor-08.ll | 24 +- .../CodeGen/Thumb/2007-01-31-RegInfoAssert.ll | 4 +- .../Thumb/2007-05-05-InvalidPushPop.ll | 14 +- test/CodeGen/Thumb/2009-07-20-TwoAddrBug.ll | 2 +- .../Thumb/2009-08-12-ConstIslandAssert.ll | 592 +- .../CodeGen/Thumb/2009-08-12-RegInfoAssert.ll | 14 +- test/CodeGen/Thumb/2009-08-20-ISelBug.ll | 12 +- .../Thumb/2009-12-17-pre-regalloc-taildup.ll | 24 +- .../CodeGen/Thumb/2010-07-15-debugOrdering.ll | 178 +- test/CodeGen/Thumb/2011-05-11-DAGLegalizer.ll | 28 +- test/CodeGen/Thumb/2011-06-16-NoGPRs.ll | 2 +- test/CodeGen/Thumb/2011-EpilogueBug.ll | 2 +- .../Thumb/2014-06-10-thumb1-ldst-opt-bug.ll | 6 +- test/CodeGen/Thumb/PR17309.ll | 2 +- test/CodeGen/Thumb/asmprinter-bug.ll | 68 +- .../Thumb/cortex-m0-unaligned-access.ll | 2 +- test/CodeGen/Thumb/dyn-stackalloc.ll | 10 +- test/CodeGen/Thumb/large-stack.ll | 2 +- test/CodeGen/Thumb/ldm-merge-call.ll | 6 +- test/CodeGen/Thumb/ldm-merge-struct.ll | 4 +- .../Thumb/ldm-stm-base-materialization.ll | 8 +- test/CodeGen/Thumb/ldr_ext.ll | 10 +- test/CodeGen/Thumb/ldr_frame.ll | 16 +- test/CodeGen/Thumb/long.ll | 2 +- test/CodeGen/Thumb/segmented-stacks.ll | 2 +- test/CodeGen/Thumb/stack-access.ll | 127 + test/CodeGen/Thumb/stack_guard_remat.ll | 2 +- test/CodeGen/Thumb/stm-merge.ll | 11 +- test/CodeGen/Thumb/thumb-ldm.ll | 16 +- test/CodeGen/Thumb/vargs.ll | 24 +- .../Thumb2/2009-07-17-CrossRegClassCopy.ll | 6 +- test/CodeGen/Thumb2/2009-07-21-ISelBug.ll | 18 +- test/CodeGen/Thumb2/2009-07-30-PEICrash.ll | 82 +- .../CodeGen/Thumb2/2009-08-01-WrongLDRBOpc.ll | 14 +- .../CodeGen/Thumb2/2009-08-02-CoalescerBug.ll | 10 +- .../Thumb2/2009-08-04-CoalescerAssert.ll | 2 +- .../CodeGen/Thumb2/2009-08-04-CoalescerBug.ll | 28 +- .../Thumb2/2009-08-04-ScavengerAssert.ll | 156 +- .../Thumb2/2009-08-04-SubregLoweringBug3.ll | 2 +- test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll | 4 +- test/CodeGen/Thumb2/2009-08-07-NeonFPBug.ll | 8 +- test/CodeGen/Thumb2/2009-08-10-ISelBug.ll | 8 +- test/CodeGen/Thumb2/2009-08-21-PostRAKill4.ll | 8 +- .../CodeGen/Thumb2/2009-09-01-PostRAProlog.ll | 26 +- test/CodeGen/Thumb2/2009-09-28-ITBlockBug.ll | 24 +- .../Thumb2/2009-11-11-ScavengerAssert.ll | 18 +- test/CodeGen/Thumb2/2009-12-01-LoopIVUsers.ll | 46 +- .../Thumb2/2010-01-06-TailDuplicateLabels.ll | 22 +- .../Thumb2/2010-01-19-RemovePredicates.ll | 2 +- .../CodeGen/Thumb2/2010-03-08-addi12-ccout.ll | 18 +- .../CodeGen/Thumb2/2010-03-15-AsmCCClobber.ll | 26 +- .../Thumb2/2010-06-14-NEONCoalescer.ll | 4 +- .../CodeGen/Thumb2/2010-06-19-ITBlockCrash.ll | 2 +- .../CodeGen/Thumb2/2010-06-21-TailMergeBug.ll | 6 +- .../Thumb2/2010-08-10-VarSizedAllocaBug.ll | 8 +- .../Thumb2/2011-06-07-TwoAddrEarlyClobber.ll | 14 +- .../Thumb2/2011-12-16-T2SizeReduceAssert.ll | 10 +- test/CodeGen/Thumb2/2012-01-13-CBNZBug.ll | 24 +- .../2013-02-19-tail-call-register-hint.ll | 12 +- ...03-02-vduplane-nonconstant-source-index.ll | 6 +- test/CodeGen/Thumb2/aligned-constants.ll | 4 +- test/CodeGen/Thumb2/aligned-spill.ll | 2 +- test/CodeGen/Thumb2/bfi.ll | 2 +- test/CodeGen/Thumb2/cbnz.ll | 54 + .../constant-islands-new-island-padding.ll | 8 +- test/CodeGen/Thumb2/constant-islands.ll | 602 +- test/CodeGen/Thumb2/crash.ll | 24 +- test/CodeGen/Thumb2/cross-rc-coalescing-2.ll | 14 +- test/CodeGen/Thumb2/div.ll | 4 + test/CodeGen/Thumb2/float-ops.ll | 6 +- test/CodeGen/Thumb2/frameless2.ll | 4 +- test/CodeGen/Thumb2/ifcvt-compare.ll | 47 + test/CodeGen/Thumb2/ifcvt-neon.ll | 10 +- test/CodeGen/Thumb2/inflate-regs.ll | 4 +- test/CodeGen/Thumb2/large-call.ll | 6 +- test/CodeGen/Thumb2/large-stack.ll | 4 +- test/CodeGen/Thumb2/lsr-deficiency.ll | 8 +- test/CodeGen/Thumb2/machine-licm.ll | 10 +- test/CodeGen/Thumb2/pic-load.ll | 4 +- test/CodeGen/Thumb2/stack_guard_remat.ll | 2 +- test/CodeGen/Thumb2/tail-call-r9.ll | 2 +- test/CodeGen/Thumb2/thumb2-call-tc.ll | 2 +- test/CodeGen/Thumb2/thumb2-call.ll | 2 +- test/CodeGen/Thumb2/thumb2-cbnz.ll | 2 +- test/CodeGen/Thumb2/thumb2-ifcvt1-tc.ll | 2 +- test/CodeGen/Thumb2/thumb2-ifcvt1.ll | 2 +- test/CodeGen/Thumb2/thumb2-ifcvt2.ll | 8 +- test/CodeGen/Thumb2/thumb2-ifcvt3.ll | 2 +- test/CodeGen/Thumb2/thumb2-ldm.ll | 16 +- test/CodeGen/Thumb2/thumb2-ldr.ll | 18 +- test/CodeGen/Thumb2/thumb2-ldr_ext.ll | 8 +- test/CodeGen/Thumb2/thumb2-ldr_post.ll | 2 +- test/CodeGen/Thumb2/thumb2-ldr_pre.ll | 10 +- test/CodeGen/Thumb2/thumb2-ldrb.ll | 16 +- test/CodeGen/Thumb2/thumb2-ldrd.ll | 4 +- test/CodeGen/Thumb2/thumb2-ldrh.ll | 18 +- test/CodeGen/Thumb2/thumb2-smul.ll | 2 +- test/CodeGen/Thumb2/thumb2-spill-q.ll | 2 +- test/CodeGen/Thumb2/thumb2-str.ll | 6 +- test/CodeGen/Thumb2/thumb2-str_post.ll | 4 +- test/CodeGen/Thumb2/thumb2-str_pre.ll | 8 +- test/CodeGen/Thumb2/thumb2-strb.ll | 6 +- test/CodeGen/Thumb2/thumb2-strh.ll | 6 +- test/CodeGen/Thumb2/thumb2-tbb.ll | 26 +- test/CodeGen/Thumb2/thumb2-tbh.ll | 4 +- test/CodeGen/Thumb2/tls1.ll | 2 +- test/CodeGen/Thumb2/tls2.ll | 2 +- test/CodeGen/Thumb2/tpsoft.ll | 14 +- test/CodeGen/Thumb2/v8_IT_2.ll | 6 +- test/CodeGen/Thumb2/v8_IT_3.ll | 14 +- test/CodeGen/Thumb2/v8_IT_5.ll | 3 +- test/CodeGen/WinEH/cppeh-alloca-sink.ll | 180 + test/CodeGen/WinEH/cppeh-catch-all.ll | 97 + test/CodeGen/WinEH/cppeh-catch-and-throw.ll | 143 + test/CodeGen/WinEH/cppeh-catch-scalar.ll | 126 + test/CodeGen/WinEH/cppeh-catch-unwind.ll | 240 + test/CodeGen/WinEH/cppeh-cleanup-invoke.ll | 91 + test/CodeGen/WinEH/cppeh-demote-liveout.ll | 72 + test/CodeGen/WinEH/cppeh-frame-vars.ll | 272 + test/CodeGen/WinEH/cppeh-inalloca.ll | 194 + test/CodeGen/WinEH/cppeh-min-unwind.ll | 99 + .../WinEH/cppeh-mixed-catch-and-cleanup.ll | 106 + test/CodeGen/WinEH/cppeh-multi-catch.ll | 226 + test/CodeGen/WinEH/cppeh-nested-1.ll | 194 + test/CodeGen/WinEH/cppeh-nested-2.ll | 324 + test/CodeGen/WinEH/cppeh-nested-3.ll | 260 + test/CodeGen/WinEH/cppeh-nested-rethrow.ll | 212 + .../WinEH/cppeh-nonalloca-frame-values.ll | 278 + .../CodeGen/WinEH/cppeh-prepared-catch-all.ll | 47 + .../WinEH/cppeh-prepared-catch-reordered.ll | 164 + test/CodeGen/WinEH/cppeh-prepared-catch.ll | 210 + test/CodeGen/WinEH/cppeh-prepared-cleanups.ll | 243 + .../CodeGen/WinEH/cppeh-shared-empty-catch.ll | 110 + .../WinEH/cppeh-similar-catch-blocks.ll | 394 + test/CodeGen/WinEH/cppeh-state-calc-1.ll | 289 + test/CodeGen/WinEH/lit.local.cfg | 12 + test/CodeGen/WinEH/seh-catch-all.ll | 59 + test/CodeGen/WinEH/seh-inlined-finally.ll | 83 + test/CodeGen/WinEH/seh-outlined-finally.ll | 155 + test/CodeGen/WinEH/seh-prepared-basic.ll | 83 + test/CodeGen/WinEH/seh-resume-phi.ll | 66 + test/CodeGen/WinEH/seh-simple.ll | 201 + test/CodeGen/X86/2005-01-17-CycleInDAG.ll | 4 +- .../X86/2005-02-14-IllegalAssembler.ll | 2 +- test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll | 2 +- test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll | 8 +- .../X86/2006-05-01-SchedCausingSpills.ll | 8 +- test/CodeGen/X86/2006-05-02-InstrSched1.ll | 12 +- test/CodeGen/X86/2006-05-02-InstrSched2.ll | 4 +- .../X86/2006-05-08-CoalesceSubRegClass.ll | 4 +- test/CodeGen/X86/2006-05-08-InstrSched.ll | 10 +- test/CodeGen/X86/2006-05-11-InstrSched.ll | 18 +- test/CodeGen/X86/2006-05-22-FPSetEQ.ll | 9 +- test/CodeGen/X86/2006-05-25-CycleInDAG.ll | 2 +- test/CodeGen/X86/2006-07-20-InlineAsm.ll | 4 +- test/CodeGen/X86/2006-08-07-CycleInDAG.ll | 4 +- test/CodeGen/X86/2006-08-16-CycleInDAG.ll | 4 +- test/CodeGen/X86/2006-09-01-CycleInDAG.ll | 20 +- .../X86/2006-10-07-ScalarSSEMiscompile.ll | 15 - test/CodeGen/X86/2006-10-09-CycleInDAG.ll | 4 +- .../X86/2006-10-10-FindModifiedNodeSlotBug.ll | 8 +- test/CodeGen/X86/2006-10-12-CycleInDAG.ll | 6 +- test/CodeGen/X86/2006-10-13-CycleInDAG.ll | 6 +- .../2006-10-19-SwitchUnnecessaryBranching.ll | 4 +- test/CodeGen/X86/2006-11-12-CSRetCC.ll | 52 +- test/CodeGen/X86/2006-11-17-IllegalMove.ll | 6 +- test/CodeGen/X86/2006-12-16-InlineAsmCrash.ll | 4 +- test/CodeGen/X86/2006-12-19-IntelSyntax.ll | 26 +- test/CodeGen/X86/2007-01-08-X86-64-Pointer.ll | 2 +- test/CodeGen/X86/2007-01-13-StackPtrIndex.ll | 112 +- test/CodeGen/X86/2007-02-04-OrAddrMode.ll | 4 +- test/CodeGen/X86/2007-02-16-BranchFold.ll | 16 +- .../X86/2007-02-19-LiveIntervalAssert.ll | 6 +- test/CodeGen/X86/2007-03-01-SpillerCrash.ll | 2 +- test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll | 56 +- test/CodeGen/X86/2007-03-16-InlineAsm.ll | 8 +- test/CodeGen/X86/2007-03-26-CoalescerBug.ll | 2 +- test/CodeGen/X86/2007-04-08-InlineAsmCrash.ll | 2 +- .../X86/2007-04-17-LiveIntervalAssert.ll | 4 +- test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll | 64 - test/CodeGen/X86/2007-05-05-VecCastExpand.ll | 6 +- .../X86/2007-05-14-LiveIntervalAssert.ll | 2 +- .../X86/2007-06-04-X86-64-CtorAsmBugs.ll | 2 +- test/CodeGen/X86/2007-06-15-IntToMMX.ll | 19 - .../X86/2007-06-29-VecFPConstantCSEBug.ll | 4 +- test/CodeGen/X86/2007-07-10-StackerAssert.ll | 6 +- test/CodeGen/X86/2007-07-18-Vector-Extract.ll | 8 +- .../X86/2007-08-09-IllegalX86-64Asm.ll | 118 +- .../X86/2007-08-13-AppendingLinkage.ll | 2 +- test/CodeGen/X86/2007-09-05-InvalidAsm.ll | 22 +- .../CodeGen/X86/2007-10-04-AvoidEFLAGSCopy.ll | 2 +- .../X86/2007-10-12-CoalesceExtSubReg.ll | 8 +- test/CodeGen/X86/2007-10-12-SpillerUnfold1.ll | 16 +- test/CodeGen/X86/2007-10-12-SpillerUnfold2.ll | 12 +- test/CodeGen/X86/2007-10-14-CoalescerCrash.ll | 4 +- test/CodeGen/X86/2007-10-15-CoalescerCrash.ll | 2 +- test/CodeGen/X86/2007-10-19-SpillerUnfold.ll | 8 +- test/CodeGen/X86/2007-10-29-ExtendSetCC.ll | 2 +- test/CodeGen/X86/2007-10-30-LSRCrash.ll | 2 +- .../X86/2007-10-31-extractelement-i64.ll | 24 +- .../X86/2007-11-04-LiveIntervalCrash.ll | 4 +- .../X86/2007-11-04-rip-immediate-constant.ll | 2 +- test/CodeGen/X86/2007-11-06-InstrSched.ll | 8 +- test/CodeGen/X86/2007-11-07-MulBy4.ll | 4 +- test/CodeGen/X86/2007-12-16-BURRSchedCrash.ll | 6 +- test/CodeGen/X86/2007-12-18-LoadCSEBug.ll | 6 +- test/CodeGen/X86/2008-01-08-SchedulerCrash.ll | 4 +- .../X86/2008-01-16-FPStackifierAssert.ll | 10 +- .../X86/2008-01-16-InvalidDAGCombineXform.ll | 36 +- test/CodeGen/X86/2008-02-05-ISelCrash.ll | 2 +- test/CodeGen/X86/2008-02-06-LoadFoldingBug.ll | 12 +- test/CodeGen/X86/2008-02-18-TailMergingBug.ll | 40 +- .../X86/2008-02-20-InlineAsmClobber.ll | 4 +- .../X86/2008-02-22-LocalRegAllocBug.ll | 44 +- test/CodeGen/X86/2008-02-25-InlineAsmBug.ll | 14 +- .../X86/2008-02-25-X86-64-CoalescerBug.ll | 10 +- .../CodeGen/X86/2008-02-27-DeadSlotElimBug.ll | 16 +- test/CodeGen/X86/2008-03-07-APIntBug.ll | 68 +- .../CodeGen/X86/2008-03-10-RegAllocInfLoop.ll | 2 +- .../X86/2008-03-12-ThreadLocalAlias.ll | 12 +- test/CodeGen/X86/2008-03-14-SpillerCrash.ll | 8 +- .../X86/2008-03-23-DarwinAsmComments.ll | 22 +- .../X86/2008-03-31-SpillerFoldingBug.ll | 14 +- test/CodeGen/X86/2008-04-09-BranchFolding.ll | 4 +- .../CodeGen/X86/2008-04-15-LiveVariableBug.ll | 6 +- test/CodeGen/X86/2008-04-16-CoalescerBug.ll | 2 +- test/CodeGen/X86/2008-04-16-ReMatBug.ll | 2 +- test/CodeGen/X86/2008-04-17-CoalescerBug.ll | 12 +- .../X86/2008-04-24-pblendw-fold-crash.ll | 2 +- test/CodeGen/X86/2008-04-28-CoalescerBug.ll | 2 +- test/CodeGen/X86/2008-05-09-PHIElimBug.ll | 2 +- .../X86/2008-05-09-ShuffleLoweringBug.ll | 2 +- test/CodeGen/X86/2008-05-12-tailmerge-5.ll | 52 +- test/CodeGen/X86/2008-05-21-CoalescerBug.ll | 6 +- .../X86/2008-05-22-FoldUnalignedLoad.ll | 2 +- .../X86/2008-05-28-LocalRegAllocBug.ll | 2 +- .../X86/2008-06-13-NotVolatileLoadStore.ll | 4 +- .../X86/2008-06-13-VolatileLoadStore.ll | 4 +- test/CodeGen/X86/2008-06-16-SubregsBug.ll | 2 +- .../X86/2008-07-07-DanglingDeadInsts.ll | 10 +- test/CodeGen/X86/2008-07-16-CoalescerCrash.ll | 2 +- test/CodeGen/X86/2008-07-19-movups-spills.ll | 128 +- test/CodeGen/X86/2008-07-22-CombinerCrash.ll | 2 +- test/CodeGen/X86/2008-08-06-CmpStride.ll | 2 +- test/CodeGen/X86/2008-08-06-RewriterBug.ll | 10 +- test/CodeGen/X86/2008-08-31-EH_RETURN64.ll | 4 +- test/CodeGen/X86/2008-09-09-LinearScanBug.ll | 4 +- test/CodeGen/X86/2008-09-11-CoalescerBug.ll | 10 +- test/CodeGen/X86/2008-09-11-CoalescerBug2.ll | 6 +- test/CodeGen/X86/2008-09-17-inline-asm-1.ll | 2 +- test/CodeGen/X86/2008-09-18-inline-asm-2.ll | 12 +- test/CodeGen/X86/2008-09-19-RegAllocBug.ll | 2 +- test/CodeGen/X86/2008-09-29-ReMatBug.ll | 14 +- test/CodeGen/X86/2008-09-29-VolatileBug.ll | 2 +- test/CodeGen/X86/2008-10-06-MMXISelBug.ll | 12 - test/CodeGen/X86/2008-10-06-x87ld-nan-2.ll | 2 +- test/CodeGen/X86/2008-10-07-SSEISelBug.ll | 6 +- test/CodeGen/X86/2008-10-11-CallCrash.ll | 8 +- test/CodeGen/X86/2008-10-13-CoalescerBug.ll | 4 +- test/CodeGen/X86/2008-10-16-VecUnaryOp.ll | 2 +- test/CodeGen/X86/2008-10-27-CoalescerBug.ll | 2 +- test/CodeGen/X86/2008-11-06-testb.ll | 6 +- test/CodeGen/X86/2008-11-29-ULT-Sign.ll | 2 +- test/CodeGen/X86/2008-12-01-SpillerAssert.ll | 2 +- .../2008-12-01-loop-iv-used-outside-loop.ll | 6 +- .../X86/2008-12-02-IllegalResultType.ll | 2 +- test/CodeGen/X86/2008-12-02-dagcombine-1.ll | 2 +- test/CodeGen/X86/2008-12-02-dagcombine-2.ll | 2 +- .../CodeGen/X86/2008-12-19-EarlyClobberBug.ll | 2 +- test/CodeGen/X86/2008-12-23-crazy-address.ll | 10 +- test/CodeGen/X86/2009-01-16-SchedulerBug.ll | 4 +- .../X86/2009-01-18-ConstantExprCrash.ll | 2 +- test/CodeGen/X86/2009-01-25-NoSSE.ll | 4 +- test/CodeGen/X86/2009-01-31-BigShift2.ll | 2 +- test/CodeGen/X86/2009-02-01-LargeMask.ll | 2 +- test/CodeGen/X86/2009-02-03-AnalyzedTwice.ll | 2 +- test/CodeGen/X86/2009-02-04-sext-i64-gep.ll | 2 +- .../X86/2009-02-09-ivs-different-sizes.ll | 2 +- .../X86/2009-02-11-codegenprepare-reuse.ll | 10 +- test/CodeGen/X86/2009-02-12-DebugInfoVLA.ll | 78 +- test/CodeGen/X86/2009-02-26-MachineLICMBug.ll | 16 +- test/CodeGen/X86/2009-03-03-BTHang.ll | 10 +- .../CodeGen/X86/2009-03-05-burr-list-crash.ll | 4 +- test/CodeGen/X86/2009-03-09-APIntCrash.ll | 2 +- test/CodeGen/X86/2009-03-10-CoalescerBug.ll | 2 +- test/CodeGen/X86/2009-03-23-LinearScanBug.ll | 8 +- test/CodeGen/X86/2009-03-23-MultiUseSched.ll | 48 +- test/CodeGen/X86/2009-03-25-TestBug.ll | 6 +- test/CodeGen/X86/2009-04-12-picrel.ll | 2 +- test/CodeGen/X86/2009-04-13-2AddrAssert.ll | 2 +- test/CodeGen/X86/2009-04-14-IllegalRegs.ll | 22 +- test/CodeGen/X86/2009-04-16-SpillerUnfold.ll | 26 +- test/CodeGen/X86/2009-04-24.ll | 2 +- test/CodeGen/X86/2009-04-25-CoalescerBug.ll | 2 +- .../CodeGen/X86/2009-04-27-CoalescerAssert.ll | 310 +- .../X86/2009-04-29-IndirectDestOperands.ll | 24 +- test/CodeGen/X86/2009-04-29-LinearScanBug.ll | 32 +- test/CodeGen/X86/2009-04-29-RegAllocAssert.ll | 12 +- test/CodeGen/X86/2009-04-scale.ll | 10 +- .../X86/2009-05-08-InlineAsmIOffset.ll | 2 +- .../CodeGen/X86/2009-05-11-tailmerge-crash.ll | 2 +- .../2009-05-19-SingleElementExtractElement.ll | 2 +- .../CodeGen/X86/2009-05-28-DAGCombineCrash.ll | 2 +- test/CodeGen/X86/2009-05-30-ISelBug.ll | 8 +- test/CodeGen/X86/2009-06-02-RewriterBug.ll | 52 +- .../X86/2009-06-03-Win64DisableRedZone.ll | 3 +- test/CodeGen/X86/2009-06-04-VirtualLiveIn.ll | 4 +- .../X86/2009-06-05-ScalarToVectorByteMMX.ll | 9 - test/CodeGen/X86/2009-06-05-VZextByteShort.ll | 8 +- .../X86/2009-06-07-ExpandMMXBitcast.ll | 10 - .../X86/2009-06-18-movlp-shuffle-register.ll | 2 +- test/CodeGen/X86/2009-07-15-CoalescerBug.ll | 2 +- test/CodeGen/X86/2009-07-20-CoalescerBug.ll | 10 +- test/CodeGen/X86/2009-07-20-DAGCombineBug.ll | 2 +- .../X86/2009-08-02-mmx-scalar-to-vector.ll | 12 - .../X86/2009-08-06-branchfolder-crash.ll | 8 +- test/CodeGen/X86/2009-08-06-inlineasm.ll | 12 +- .../X86/2009-08-14-Win64MemoryIndirectArg.ll | 14 +- .../X86/2009-08-19-LoadNarrowingMiscompile.ll | 2 +- .../CodeGen/X86/2009-08-23-SubRegReuseUndo.ll | 8 +- test/CodeGen/X86/2009-09-10-LoadFoldingBug.ll | 4 +- test/CodeGen/X86/2009-09-10-SpillComments.ll | 54 +- test/CodeGen/X86/2009-09-16-CoalescerBug.ll | 2 +- .../X86/2009-09-21-NoSpillLoopCount.ll | 8 +- test/CodeGen/X86/2009-09-22-CoalescerBug.ll | 2 +- test/CodeGen/X86/2009-10-16-Scope.ll | 20 +- test/CodeGen/X86/2009-10-19-EmergencySpill.ll | 20 +- .../X86/2009-10-19-atomic-cmp-eflags.ll | 13 +- test/CodeGen/X86/2009-10-25-RewriterBug.ll | 20 +- test/CodeGen/X86/2009-11-16-MachineLICM.ll | 16 +- test/CodeGen/X86/2009-11-16-UnfoldMemOpBug.ll | 4 +- .../X86/2009-11-17-UpdateTerminator.ll | 4 +- test/CodeGen/X86/2009-11-25-ImpDefBug.ll | 2 +- .../CodeGen/X86/2009-12-01-EarlyClobberBug.ll | 8 +- test/CodeGen/X86/2009-12-11-TLSNoRedZone.ll | 14 +- test/CodeGen/X86/20090313-signext.ll | 2 +- test/CodeGen/X86/2010-01-08-Atomic64Bug.ll | 3 +- test/CodeGen/X86/2010-01-13-OptExtBug.ll | 22 +- .../X86/2010-01-15-SelectionDAGCycle.ll | 6 +- test/CodeGen/X86/2010-01-18-DbgValue.ll | 48 +- test/CodeGen/X86/2010-01-19-OptExtBug.ll | 2 +- test/CodeGen/X86/2010-02-01-DbgValueCrash.ll | 28 +- test/CodeGen/X86/2010-02-04-SchedulerBug.ll | 12 +- test/CodeGen/X86/2010-02-11-NonTemporal.ll | 4 +- .../X86/2010-02-12-CoalescerBug-Impdef.ll | 2 +- .../X86/2010-02-19-TailCallRetAddrBug.ll | 40 +- .../X86/2010-02-23-RematImplicitSubreg.ll | 8 +- .../CodeGen/X86/2010-03-05-ConstantFoldCFG.ll | 2 +- test/CodeGen/X86/2010-03-17-ISelBug.ll | 16 +- .../X86/2010-04-06-SSEDomainFixCrash.ll | 2 +- test/CodeGen/X86/2010-04-08-CoalescerBug.ll | 6 +- .../X86/2010-04-13-AnalyzeBranchCrash.ll | 2 +- test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll | 100 - .../X86/2010-04-30-LocalAlloc-LandingPad.ll | 20 +- .../X86/2010-05-05-LocalAllocEarlyClobber.ll | 4 +- test/CodeGen/X86/2010-05-07-ldconvert.ll | 4 +- test/CodeGen/X86/2010-05-10-DAGCombinerBug.ll | 2 +- .../CodeGen/X86/2010-05-16-nosseconversion.ll | 2 +- test/CodeGen/X86/2010-05-25-DotDebugLoc.ll | 139 +- test/CodeGen/X86/2010-05-26-DotDebugLoc.ll | 74 +- .../CodeGen/X86/2010-05-26-FP_TO_INT-crash.ll | 2 +- test/CodeGen/X86/2010-05-28-Crash.ll | 42 +- .../CodeGen/X86/2010-06-01-DeadArg-DbgInfo.ll | 66 +- .../X86/2010-06-14-fast-isel-fs-load.ll | 2 +- .../X86/2010-06-15-FastAllocEarlyCLobber.ll | 8 +- .../X86/2010-06-24-g-constraint-crash.ll | 2 +- .../X86/2010-06-25-CoalescerSubRegDefDead.ll | 8 +- test/CodeGen/X86/2010-06-25-asm-RA-crash.ll | 4 +- .../X86/2010-06-28-matched-g-constraint.ll | 2 +- test/CodeGen/X86/2010-07-02-UnfoldBug.ll | 2 +- test/CodeGen/X86/2010-07-06-DbgCrash.ll | 30 +- test/CodeGen/X86/2010-07-11-FPStackLoneUse.ll | 2 +- test/CodeGen/X86/2010-07-15-Crash.ll | 4 +- .../X86/2010-08-04-MaskedSignedCompare.ll | 6 +- test/CodeGen/X86/2010-08-04-StackVariable.ll | 124 +- .../2010-09-01-RemoveCopyByCommutingDef.ll | 2 +- test/CodeGen/X86/2010-09-16-EmptyFilename.ll | 32 +- test/CodeGen/X86/2010-09-16-asmcrash.ll | 2 +- .../X86/2010-09-17-SideEffectsInChain.ll | 8 +- .../X86/2010-09-30-CMOV-JumpTable-PHI.ll | 4 +- test/CodeGen/X86/2010-10-08-cmpxchg8b.ll | 3 +- test/CodeGen/X86/2010-11-02-DbgParameter.ll | 34 +- test/CodeGen/X86/2010-11-09-MOVLPS.ll | 24 +- .../CodeGen/X86/2010-11-18-SelectOfExtload.ll | 4 +- .../X86/2011-01-24-DbgValue-Before-Use.ll | 72 +- test/CodeGen/X86/2011-02-12-shuffle.ll | 2 +- .../2011-02-21-VirtRegRewriter-KillSubReg.ll | 4 +- test/CodeGen/X86/2011-02-23-UnfoldBug.ll | 2 +- test/CodeGen/X86/2011-03-02-DAGCombiner.ll | 20 +- .../X86/2011-03-09-Physreg-Coalescing.ll | 4 +- test/CodeGen/X86/2011-04-13-SchedCmpJmp.ll | 8 +- test/CodeGen/X86/2011-05-09-loaduse.ll | 2 +- .../X86/2011-05-26-UnreachableBlockElim.ll | 4 +- .../X86/2011-05-27-CrossClassCoalescing.ll | 6 +- test/CodeGen/X86/2011-06-01-fildll.ll | 2 +- test/CodeGen/X86/2011-06-03-x87chain.ll | 8 +- test/CodeGen/X86/2011-06-12-FastAllocSpill.ll | 10 +- .../X86/2011-06-19-QuicksortCoalescerBug.ll | 2 +- .../2011-07-13-BadFrameIndexDisplacement.ll | 4 +- test/CodeGen/X86/2011-09-14-valcoalesce.ll | 4 +- test/CodeGen/X86/2011-09-21-setcc-bug.ll | 16 +- test/CodeGen/X86/2011-10-11-srl.ll | 2 +- test/CodeGen/X86/2011-10-12-MachineCSE.ll | 92 +- .../X86/2011-10-18-FastISel-VectorParams.ll | 10 +- test/CodeGen/X86/2011-10-19-LegelizeLoad.ll | 6 +- test/CodeGen/X86/2011-10-19-widen_vselect.ll | 6 +- test/CodeGen/X86/2011-10-27-tstore.ll | 2 +- test/CodeGen/X86/2011-11-22-AVX2-Domains.ll | 18 +- test/CodeGen/X86/2011-11-30-or.ll | 14 +- .../X86/2011-12-06-AVXVectorExtractCombine.ll | 3 +- test/CodeGen/X86/2011-12-08-AVXISelBugs.ll | 8 +- ...011-12-26-extractelement-duplicate-load.ll | 2 +- .../X86/2012-01-10-UndefExceptionEdge.ll | 10 +- test/CodeGen/X86/2012-01-11-split-cv.ll | 2 +- test/CodeGen/X86/2012-01-12-extract-sv.ll | 21 +- .../X86/2012-01-16-mfence-nosse-flags.ll | 5 +- test/CodeGen/X86/2012-02-12-dagco.ll | 4 +- test/CodeGen/X86/2012-02-29-CoalescerBug.ll | 4 +- test/CodeGen/X86/2012-03-26-PostRALICMBug.ll | 16 +- test/CodeGen/X86/2012-04-26-sdglue.ll | 10 +- test/CodeGen/X86/2012-07-10-extload64.ll | 8 +- test/CodeGen/X86/2012-07-15-broadcastfold.ll | 3 +- .../CodeGen/X86/2012-08-17-legalizer-crash.ll | 4 +- test/CodeGen/X86/2012-09-28-CGPBug.ll | 12 +- test/CodeGen/X86/2012-1-10-buildvector.ll | 26 +- test/CodeGen/X86/2012-10-02-DAGCycle.ll | 14 +- test/CodeGen/X86/2012-10-03-DAGCycle.ll | 12 +- test/CodeGen/X86/2012-10-18-crash-dagco.ll | 20 +- .../X86/2012-11-28-merge-store-alias.ll | 26 +- test/CodeGen/X86/2012-11-30-handlemove-dbg.ll | 28 +- test/CodeGen/X86/2012-11-30-misched-dbg.ll | 64 +- test/CodeGen/X86/2012-11-30-regpres-dbg.ll | 22 +- .../X86/2012-12-06-python27-miscompile.ll | 6 +- test/CodeGen/X86/2012-12-1-merge-multiple.ll | 16 +- .../CodeGen/X86/2012-12-19-NoImplicitFloat.ll | 6 +- test/CodeGen/X86/2013-02-12-ShuffleToZext.ll | 14 - test/CodeGen/X86/2013-03-13-VEX-DestReg.ll | 4 +- .../X86/2013-10-14-FastISel-incorrect-vreg.ll | 6 +- test/CodeGen/X86/2014-08-29-CompactUnwind.ll | 6 +- test/CodeGen/X86/Atomics-64.ll | 200 +- test/CodeGen/X86/GC/alloc_loop.ll | 4 +- test/CodeGen/X86/GC/argpromotion.ll | 2 +- test/CodeGen/X86/GC/badreadproto.ll | 2 +- test/CodeGen/X86/GC/badwriteproto.ll | 6 +- test/CodeGen/X86/GC/dynamic-frame-size.ll | 28 + test/CodeGen/X86/GC/inline.ll | 4 +- test/CodeGen/X86/GC/inline2.ll | 4 +- test/CodeGen/X86/MachineBranchProb.ll | 6 +- test/CodeGen/X86/MachineSink-DbgValue.ll | 48 +- test/CodeGen/X86/MachineSink-eflags.ll | 28 +- test/CodeGen/X86/MergeConsecutiveStores.ll | 284 +- test/CodeGen/X86/StackColoring-dbg.ll | 16 +- test/CodeGen/X86/StackColoring.ll | 4 +- test/CodeGen/X86/SwitchLowering.ll | 6 +- test/CodeGen/X86/SwizzleShuff.ll | 35 +- test/CodeGen/X86/abi-isel.ll | 436 +- test/CodeGen/X86/add-of-carry.ll | 29 +- test/CodeGen/X86/add32ri8.ll | 10 + test/CodeGen/X86/addr-mode-matcher.ll | 10 +- .../address-type-promotion-constantexpr.ll | 2 +- test/CodeGen/X86/aliases.ll | 10 +- test/CodeGen/X86/aligned-variadic.ll | 8 +- test/CodeGen/X86/alignment-2.ll | 2 +- test/CodeGen/X86/and-load-fold.ll | 2 +- test/CodeGen/X86/and-or-fold.ll | 2 +- test/CodeGen/X86/and-su.ll | 2 +- test/CodeGen/X86/andimm8.ll | 12 + test/CodeGen/X86/anyregcc-crash.ll | 2 +- test/CodeGen/X86/anyregcc.ll | 16 +- test/CodeGen/X86/asm-global-imm.ll | 2 +- .../atom-call-reg-indirect-foldedreload32.ll | 28 +- .../atom-call-reg-indirect-foldedreload64.ll | 42 +- test/CodeGen/X86/atom-call-reg-indirect.ll | 8 +- test/CodeGen/X86/atom-cmpb.ll | 8 +- test/CodeGen/X86/atom-fixup-lea1.ll | 4 +- test/CodeGen/X86/atom-fixup-lea2.ll | 24 +- test/CodeGen/X86/atom-fixup-lea3.ll | 10 +- test/CodeGen/X86/atom-fixup-lea4.ll | 4 +- test/CodeGen/X86/atom-lea-addw-bug.ll | 6 +- test/CodeGen/X86/atom-lea-sp.ll | 2 +- test/CodeGen/X86/atom-sched.ll | 8 +- test/CodeGen/X86/atomic-dagsched.ll | 30 +- test/CodeGen/X86/atomic-load-store-wide.ll | 8 +- test/CodeGen/X86/atomic-load-store.ll | 2 +- test/CodeGen/X86/atomic-minmax-i6432.ll | 12 +- test/CodeGen/X86/atomic-or.ll | 10 +- test/CodeGen/X86/atomic-pointer.ll | 2 +- test/CodeGen/X86/atomic128.ll | 4 +- test/CodeGen/X86/atomic32.ll | 275 +- test/CodeGen/X86/atomic64.ll | 2 +- test/CodeGen/X86/atomic6432.ll | 13 - test/CodeGen/X86/atomic_mi.ll | 60 +- test/CodeGen/X86/atomic_op.ll | 2 +- test/CodeGen/X86/avoid-loop-align-2.ll | 6 +- test/CodeGen/X86/avoid-loop-align.ll | 8 +- test/CodeGen/X86/avoid_complex_am.ll | 12 +- test/CodeGen/X86/avx-arith.ll | 6 +- test/CodeGen/X86/avx-basic.ll | 15 +- test/CodeGen/X86/avx-bitcast.ll | 11 +- test/CodeGen/X86/avx-cast.ll | 75 +- test/CodeGen/X86/avx-cvt-2.ll | 52 +- test/CodeGen/X86/avx-cvt.ll | 109 +- test/CodeGen/X86/avx-insertelt.ll | 83 + test/CodeGen/X86/avx-intel-ocl.ll | 12 +- .../CodeGen/X86/avx-intrinsics-x86-upgrade.ll | 125 +- test/CodeGen/X86/avx-intrinsics-x86.ll | 1975 +- test/CodeGen/X86/avx-load-store.ll | 22 +- test/CodeGen/X86/avx-logic.ll | 114 +- test/CodeGen/X86/avx-shift.ll | 221 +- test/CodeGen/X86/avx-splat.ll | 10 +- test/CodeGen/X86/avx-trunc.ll | 6 +- test/CodeGen/X86/avx-unpack.ll | 16 +- test/CodeGen/X86/avx-varargs-x86_64.ll | 4 +- test/CodeGen/X86/avx-vbroadcast.ll | 30 +- test/CodeGen/X86/avx-vextractf128.ll | 27 +- test/CodeGen/X86/avx-vinsertf128.ll | 50 +- test/CodeGen/X86/avx-vperm2x128.ll | 99 +- test/CodeGen/X86/avx-vzeroupper.ll | 6 +- test/CodeGen/X86/avx.ll | 20 +- test/CodeGen/X86/avx1-logical-load-folding.ll | 8 +- test/CodeGen/X86/avx1-stack-reload-folding.ll | 83 - test/CodeGen/X86/avx2-arith.ll | 43 + test/CodeGen/X86/avx2-conversions.ll | 12 +- test/CodeGen/X86/avx2-gather.ll | 27 + .../X86/avx2-intrinsics-x86-upgrade.ll | 54 +- test/CodeGen/X86/avx2-intrinsics-x86.ll | 57 +- .../CodeGen/X86/avx2-pmovx-256-old-shuffle.ll | 29 - test/CodeGen/X86/avx2-pmovxrm-intrinsics.ll | 24 +- test/CodeGen/X86/avx2-shift.ll | 20 +- test/CodeGen/X86/avx2-vbroadcast.ll | 52 +- test/CodeGen/X86/avx2-vector-shifts.ll | 91 + test/CodeGen/X86/avx512-arith.ll | 28 +- test/CodeGen/X86/avx512-bugfix-23634.ll | 35 + test/CodeGen/X86/avx512-build-vector.ll | 2 +- test/CodeGen/X86/avx512-calling-conv.ll | 154 + test/CodeGen/X86/avx512-cvt.ll | 29 +- test/CodeGen/X86/avx512-fma-intrinsics.ll | 326 +- .../X86/avx512-gather-scatter-intrin.ll | 8 +- test/CodeGen/X86/avx512-i1test.ll | 6 +- test/CodeGen/X86/avx512-insert-extract.ll | 52 +- test/CodeGen/X86/avx512-intel-ocl.ll | 105 + test/CodeGen/X86/avx512-intrinsics.ll | 1479 +- test/CodeGen/X86/avx512-logic.ll | 4 +- test/CodeGen/X86/avx512-mask-bugfix.ll | 57 + test/CodeGen/X86/avx512-mask-op.ll | 367 +- test/CodeGen/X86/avx512-mov.ll | 60 +- test/CodeGen/X86/avx512-round.ll | 106 + test/CodeGen/X86/avx512-scalar.ll | 92 + test/CodeGen/X86/avx512-select.ll | 21 +- test/CodeGen/X86/avx512-shift.ll | 37 +- test/CodeGen/X86/avx512-trunc-ext.ll | 925 +- test/CodeGen/X86/avx512-vbroadcast.ll | 40 +- test/CodeGen/X86/avx512-vec-cmp.ll | 593 +- test/CodeGen/X86/avx512bw-arith.ll | 8 +- test/CodeGen/X86/avx512bw-intrinsics.ll | 437 + test/CodeGen/X86/avx512bw-mask-op.ll | 4 +- test/CodeGen/X86/avx512bw-mov.ll | 12 +- test/CodeGen/X86/avx512bw-vec-cmp.ll | 12 +- test/CodeGen/X86/avx512bwvl-arith.ll | 16 +- test/CodeGen/X86/avx512bwvl-intrinsics.ll | 1700 +- test/CodeGen/X86/avx512bwvl-mov.ll | 24 +- test/CodeGen/X86/avx512bwvl-vec-cmp.ll | 24 +- test/CodeGen/X86/avx512dq-mask-op.ll | 2 +- test/CodeGen/X86/avx512dqvl-intrinsics.ll | 1155 + test/CodeGen/X86/avx512er-intrinsics.ll | 30 +- test/CodeGen/X86/avx512vl-arith.ll | 40 +- test/CodeGen/X86/avx512vl-intrinsics.ll | 1695 +- test/CodeGen/X86/avx512vl-mov.ll | 96 +- test/CodeGen/X86/avx512vl-vec-cmp.ll | 40 +- test/CodeGen/X86/barrier.ll | 3 +- test/CodeGen/X86/bitcast-mmx.ll | 77 + test/CodeGen/X86/block-placement.ll | 236 +- test/CodeGen/X86/bmi.ll | 54 +- test/CodeGen/X86/bool-zext.ll | 4 +- test/CodeGen/X86/branchfolding-landingpads.ll | 45 + test/CodeGen/X86/brcond.ll | 4 +- test/CodeGen/X86/break-anti-dependencies.ll | 4 +- test/CodeGen/X86/break-false-dep.ll | 34 +- test/CodeGen/X86/bswap-vector.ll | 366 +- test/CodeGen/X86/bswap.ll | 6 +- test/CodeGen/X86/byval-align.ll | 16 +- test/CodeGen/X86/byval.ll | 4 +- test/CodeGen/X86/byval2.ll | 6 +- test/CodeGen/X86/byval3.ll | 12 +- test/CodeGen/X86/byval4.ll | 12 +- test/CodeGen/X86/byval5.ll | 12 +- test/CodeGen/X86/byval6.ll | 4 +- test/CodeGen/X86/byval7.ll | 2 +- test/CodeGen/X86/cache-intrinsic.ll | 8 +- test/CodeGen/X86/call-push.ll | 4 +- test/CodeGen/X86/cas.ll | 24 +- test/CodeGen/X86/catch.ll | 2 +- test/CodeGen/X86/cfi_enforcing.ll | 34 - test/CodeGen/X86/cfi_invoke.ll | 35 - test/CodeGen/X86/cfi_non_default_function.ll | 27 - test/CodeGen/X86/cfi_simple_indirect_call.ll | 43 - test/CodeGen/X86/cfstring.ll | 4 +- test/CodeGen/X86/chain_order.ll | 14 +- test/CodeGen/X86/change-compare-stride-1.ll | 38 +- test/CodeGen/X86/clobber-fi0.ll | 6 +- test/CodeGen/X86/cmov-double.ll | 52 + test/CodeGen/X86/cmov-into-branch.ll | 8 +- test/CodeGen/X86/cmov.ll | 18 +- test/CodeGen/X86/cmovcmov.ll | 226 + test/CodeGen/X86/cmp-fast-isel.ll | 45 + test/CodeGen/X86/cmp.ll | 12 +- test/CodeGen/X86/cmpxchg-clobber-flags.ll | 2 +- test/CodeGen/X86/cmpxchg-i1.ll | 2 +- test/CodeGen/X86/cmpxchg-i128-i1.ll | 2 +- test/CodeGen/X86/cmpxchg16b.ll | 3 +- test/CodeGen/X86/coalesce-esp.ll | 6 +- test/CodeGen/X86/coalesce-implicitdef.ll | 12 +- test/CodeGen/X86/coalescer-commute1.ll | 6 +- test/CodeGen/X86/coalescer-commute4.ll | 8 +- test/CodeGen/X86/coalescer-cross.ll | 12 +- test/CodeGen/X86/coalescer-dce2.ll | 16 +- test/CodeGen/X86/coalescer-identity.ll | 6 +- test/CodeGen/X86/coalescer-remat.ll | 2 +- test/CodeGen/X86/coalescer-subreg.ll | 29 + test/CodeGen/X86/code_placement.ll | 80 +- ...ode_placement_outline_optional_branches.ll | 77 + .../X86/codegen-prepare-addrmode-sext.ll | 162 +- test/CodeGen/X86/codegen-prepare-cast.ll | 8 +- test/CodeGen/X86/codegen-prepare-crash.ll | 2 +- test/CodeGen/X86/codegen-prepare-extload.ll | 81 +- test/CodeGen/X86/codegen-prepare.ll | 14 +- test/CodeGen/X86/codemodel.ll | 12 +- test/CodeGen/X86/coff-comdat.ll | 2 +- test/CodeGen/X86/combine-and.ll | 148 +- test/CodeGen/X86/combine-or.ll | 97 +- test/CodeGen/X86/combiner-aa-0.ll | 8 +- test/CodeGen/X86/combiner-aa-1.ll | 6 +- test/CodeGen/X86/commute-blend-avx2.ll | 20 +- test/CodeGen/X86/commute-blend-sse41.ll | 10 +- test/CodeGen/X86/commute-clmul.ll | 60 + test/CodeGen/X86/commute-fcmp.ll | 340 + test/CodeGen/X86/commute-intrinsic.ll | 2 +- test/CodeGen/X86/commute-xop.ll | 184 + test/CodeGen/X86/compact-unwind.ll | 18 +- test/CodeGen/X86/complex-asm.ll | 8 +- test/CodeGen/X86/complex-fca.ll | 26 +- test/CodeGen/X86/computeKnownBits_urem.ll | 2 +- test/CodeGen/X86/const-base-addr.ll | 12 +- test/CodeGen/X86/constant-combines.ll | 6 +- test/CodeGen/X86/constant-hoisting-optnone.ll | 21 + .../X86/constant-hoisting-shift-immediate.ll | 4 +- test/CodeGen/X86/constructor.ll | 8 + .../X86/convert-2-addr-3-addr-inc64.ll | 4 +- test/CodeGen/X86/copy-propagation.ll | 44 + test/CodeGen/X86/crash-O0.ll | 4 +- test/CodeGen/X86/crash-nosse.ll | 2 +- test/CodeGen/X86/crash.ll | 58 +- test/CodeGen/X86/critical-anti-dep-breaker.ll | 4 +- test/CodeGen/X86/critical-edge-split-2.ll | 2 +- test/CodeGen/X86/cse-add-with-overflow.ll | 4 +- test/CodeGen/X86/cvt16.ll | 8 +- test/CodeGen/X86/dag-optnone.ll | 2 +- test/CodeGen/X86/dagcombine-and-setcc.ll | 2 +- test/CodeGen/X86/dagcombine-buildvector.ll | 2 +- test/CodeGen/X86/dagcombine-cse.ll | 8 +- test/CodeGen/X86/darwin-quote.ll | 2 +- test/CodeGen/X86/darwin-stub.ll | 2 +- .../X86/dbg-changes-codegen-branch-folding.ll | 200 +- test/CodeGen/X86/dbg-changes-codegen.ll | 20 +- test/CodeGen/X86/dbg-combine.ll | 113 + test/CodeGen/X86/discontiguous-loops.ll | 6 +- test/CodeGen/X86/div8.ll | 6 +- test/CodeGen/X86/dllexport-x86_64.ll | 5 - test/CodeGen/X86/dllexport.ll | 5 - test/CodeGen/X86/dllimport-x86_64.ll | 10 +- test/CodeGen/X86/dllimport.ll | 10 +- test/CodeGen/X86/dollar-name.ll | 4 +- .../X86/dont-trunc-store-double-to-float.ll | 2 +- test/CodeGen/X86/dwarf-comp-dir.ll | 10 +- test/CodeGen/X86/dwarf-eh-prepare.ll | 158 + test/CodeGen/X86/dynamic-alloca-lifetime.ll | 4 +- test/CodeGen/X86/dynamic-allocas-VLAs.ll | 22 +- test/CodeGen/X86/early-ifcvt.ll | 8 +- test/CodeGen/X86/eh-label.ll | 24 + test/CodeGen/X86/emit-big-cst.ll | 2 +- test/CodeGen/X86/empty-functions.ll | 2 +- test/CodeGen/X86/exception-label.ll | 23 + test/CodeGen/X86/exedeps-movq.ll | 68 + test/CodeGen/X86/expand-opaque-const.ll | 6 +- test/CodeGen/X86/extend.ll | 4 +- test/CodeGen/X86/extern_weak.ll | 2 +- test/CodeGen/X86/extract-extract.ll | 6 +- test/CodeGen/X86/extract-store.ll | 30 +- test/CodeGen/X86/extractelement-index.ll | 51 + ...ractelement-legalization-store-ordering.ll | 57 + test/CodeGen/X86/extractelement-load.ll | 8 +- test/CodeGen/X86/extractps.ll | 4 +- test/CodeGen/X86/f16c-intrinsics.ll | 71 +- test/CodeGen/X86/fast-isel-args-fail.ll | 2 +- test/CodeGen/X86/fast-isel-args-fail2.ll | 2 +- test/CodeGen/X86/fast-isel-args.ll | 2 +- .../fast-isel-avoid-unnecessary-pic-base.ll | 6 +- test/CodeGen/X86/fast-isel-branch_weights.ll | 2 +- test/CodeGen/X86/fast-isel-call-bool.ll | 2 +- test/CodeGen/X86/fast-isel-call.ll | 2 +- test/CodeGen/X86/fast-isel-cmp-branch2.ll | 2 +- test/CodeGen/X86/fast-isel-cmp-branch3.ll | 2 +- test/CodeGen/X86/fast-isel-cmp.ll | 2 +- .../X86/fast-isel-constrain-store-indexreg.ll | 25 + test/CodeGen/X86/fast-isel-divrem-x86-64.ll | 2 +- test/CodeGen/X86/fast-isel-divrem.ll | 4 +- .../X86/fast-isel-double-half-convertion.ll | 23 + test/CodeGen/X86/fast-isel-extract.ll | 2 +- .../X86/fast-isel-float-half-convertion.ll | 28 + test/CodeGen/X86/fast-isel-fneg.ll | 2 +- test/CodeGen/X86/fast-isel-fold-mem.ll | 4 +- test/CodeGen/X86/fast-isel-fptrunc-fpext.ll | 65 + test/CodeGen/X86/fast-isel-gep.ll | 34 +- test/CodeGen/X86/fast-isel-gv.ll | 6 +- test/CodeGen/X86/fast-isel-i1.ll | 13 +- .../X86/fast-isel-int-float-conversion.ll | 45 + test/CodeGen/X86/fast-isel-mem.ll | 6 +- test/CodeGen/X86/fast-isel-movsbl-indexreg.ll | 20 + test/CodeGen/X86/fast-isel-ret-ext.ll | 4 +- test/CodeGen/X86/fast-isel-select-cmov.ll | 2 +- test/CodeGen/X86/fast-isel-select-cmov2.ll | 26 +- .../X86/fast-isel-select-pseudo-cmov.ll | 4 +- test/CodeGen/X86/fast-isel-select-sse.ll | 100 +- test/CodeGen/X86/fast-isel-sext.ll | 9 + test/CodeGen/X86/fast-isel-sse12-fptoint.ll | 4 +- test/CodeGen/X86/fast-isel-store.ll | 4 +- test/CodeGen/X86/fast-isel-tailcall.ll | 2 +- test/CodeGen/X86/fast-isel-tls.ll | 4 +- .../X86/fast-isel-trunc-kill-subreg.ll | 40 + test/CodeGen/X86/fast-isel-vecload.ll | 185 + test/CodeGen/X86/fast-isel-x32.ll | 4 +- test/CodeGen/X86/fast-isel-x86-64.ll | 16 +- test/CodeGen/X86/fast-isel-x86.ll | 4 +- test/CodeGen/X86/fast-isel.ll | 24 +- test/CodeGen/X86/fastcall-correct-mangling.ll | 2 +- test/CodeGen/X86/fastcc-byval.ll | 4 +- test/CodeGen/X86/fastcc-sret.ll | 10 +- test/CodeGen/X86/fastcc.ll | 8 +- .../X86/fastisel-gep-promote-before-add.ll | 14 +- .../X86/fastmath-float-half-conversion.ll | 52 + test/CodeGen/X86/fcmove.ll | 15 + test/CodeGen/X86/fdiv-combine.ll | 31 + test/CodeGen/X86/float-conv-elim.ll | 32 + test/CodeGen/X86/floor-soft-float.ll | 4 +- test/CodeGen/X86/fltused.ll | 2 +- test/CodeGen/X86/fltused_function_pointer.ll | 2 +- test/CodeGen/X86/fma-do-not-commute.ll | 4 +- test/CodeGen/X86/fma3-intrinsics.ll | 32 +- .../X86/fma4-intrinsics-x86_64-folded-load.ll | 24 +- test/CodeGen/X86/fma_patterns.ll | 4 +- test/CodeGen/X86/fmul-combines.ll | 34 + test/CodeGen/X86/fmul-zero.ll | 2 +- test/CodeGen/X86/fnabs.ll | 2 +- test/CodeGen/X86/fold-add.ll | 6 +- test/CodeGen/X86/fold-and-shift.ll | 20 +- test/CodeGen/X86/fold-call-2.ll | 2 +- test/CodeGen/X86/fold-call-3.ll | 18 +- test/CodeGen/X86/fold-call-oper.ll | 8 +- test/CodeGen/X86/fold-call.ll | 4 +- test/CodeGen/X86/fold-load-unops.ll | 79 + test/CodeGen/X86/fold-load-vec.ll | 26 +- test/CodeGen/X86/fold-load.ll | 8 +- test/CodeGen/X86/fold-mul-lohi.ll | 8 +- test/CodeGen/X86/fold-pcmpeqd-2.ll | 4 +- test/CodeGen/X86/fold-sext-trunc.ll | 4 +- test/CodeGen/X86/fold-tied-op.ll | 20 +- test/CodeGen/X86/fold-vector-bv-crash.ll | 17 + test/CodeGen/X86/fold-vector-shuffle-crash.ll | 386 + test/CodeGen/X86/fold-vector-trunc-sitofp.ll | 13 + test/CodeGen/X86/fold-vex.ll | 2 +- test/CodeGen/X86/fold-zext-trunc.ll | 4 +- test/CodeGen/X86/force-align-stack-alloca.ll | 2 +- test/CodeGen/X86/fp-double-rounding.ll | 31 + test/CodeGen/X86/fp-fast.ll | 98 +- test/CodeGen/X86/fp-load-trunc.ll | 8 +- test/CodeGen/X86/fp-stack-O0-crash.ll | 8 +- test/CodeGen/X86/fp-stack-O0.ll | 2 +- test/CodeGen/X86/fp-stack-compare-cmov.ll | 2 +- test/CodeGen/X86/fp-stack-compare.ll | 2 +- test/CodeGen/X86/fp-stack-ret-store.ll | 4 +- test/CodeGen/X86/fp-stack-ret.ll | 2 +- test/CodeGen/X86/fp-stack.ll | 6 +- test/CodeGen/X86/fp-trunc.ll | 8 +- test/CodeGen/X86/fp2sint.ll | 4 +- test/CodeGen/X86/fp_load_cast_fold.ll | 6 +- test/CodeGen/X86/fp_load_fold.ll | 12 +- test/CodeGen/X86/fpstack-debuginstr-kill.ll | 42 +- test/CodeGen/X86/frameaddr.ll | 23 +- test/CodeGen/X86/frameallocate.ll | 39 - test/CodeGen/X86/frameescape.ll | 128 + test/CodeGen/X86/full-lsr.ll | 20 +- .../X86/function-subtarget-features-2.ll | 26 + .../X86/function-subtarget-features.ll | 81 + test/CodeGen/X86/ga-offset.ll | 2 +- test/CodeGen/X86/gather-addresses.ll | 24 +- test/CodeGen/X86/gcc_except_table.ll | 3 +- .../CodeGen/X86/gcc_except_table_functions.ll | 1 + test/CodeGen/X86/getelementptr.ll | 20 +- test/CodeGen/X86/ghc-cc.ll | 8 +- test/CodeGen/X86/ghc-cc64.ll | 32 +- test/CodeGen/X86/global-sections-comdat.ll | 46 + test/CodeGen/X86/global-sections.ll | 102 +- test/CodeGen/X86/gs-fold.ll | 6 +- test/CodeGen/X86/h-register-addressing-32.ll | 28 +- test/CodeGen/X86/h-register-addressing-64.ll | 28 +- test/CodeGen/X86/h-registers-2.ll | 2 +- test/CodeGen/X86/h-registers-3.ll | 2 +- test/CodeGen/X86/haddsub-2.ll | 4 +- test/CodeGen/X86/haddsub-undef.ll | 6 +- test/CodeGen/X86/haddsub.ll | 15 + test/CodeGen/X86/half.ll | 216 +- test/CodeGen/X86/hidden-vis-2.ll | 2 +- test/CodeGen/X86/hidden-vis-3.ll | 4 +- test/CodeGen/X86/hidden-vis-4.ll | 2 +- test/CodeGen/X86/hidden-vis-pic.ll | 4 +- test/CodeGen/X86/hipe-cc.ll | 12 +- test/CodeGen/X86/hipe-cc64.ll | 14 +- test/CodeGen/X86/hoist-common.ll | 2 +- test/CodeGen/X86/hoist-invariant-load.ll | 6 +- test/CodeGen/X86/huge-stack-offset.ll | 59 + test/CodeGen/X86/i128-mul.ll | 6 +- test/CodeGen/X86/i128-ret.ll | 2 +- test/CodeGen/X86/i1narrowfail.ll | 10 + test/CodeGen/X86/i256-add.ll | 8 +- test/CodeGen/X86/i2k.ll | 4 +- test/CodeGen/X86/i486-fence-loop.ll | 7 +- test/CodeGen/X86/i64-mem-copy.ll | 85 +- .../CodeGen/X86/illegal-vector-args-return.ll | 2 + test/CodeGen/X86/imul.ll | 110 + test/CodeGen/X86/imul64-lea.ll | 25 - test/CodeGen/X86/inalloca-ctor.ll | 6 +- test/CodeGen/X86/inalloca-invoke.ll | 13 +- test/CodeGen/X86/inalloca-stdcall.ll | 9 +- test/CodeGen/X86/inalloca.ll | 27 +- test/CodeGen/X86/init-priority.ll | 51 + .../X86/inline-asm-duplicated-constraint.ll | 12 + test/CodeGen/X86/inline-asm-fpstack.ll | 8 +- test/CodeGen/X86/inline-asm-out-regs.ll | 4 +- test/CodeGen/X86/inline-asm-ptr-cast.ll | 6 +- test/CodeGen/X86/inline-asm-stack-realign.ll | 2 +- test/CodeGen/X86/inline-asm-stack-realign2.ll | 2 +- test/CodeGen/X86/inline-asm-stack-realign3.ll | 2 +- test/CodeGen/X86/inline-asm-tied.ll | 6 +- test/CodeGen/X86/ins_split_regalloc.ll | 2 +- test/CodeGen/X86/ins_subreg_coalesce-1.ll | 2 +- test/CodeGen/X86/ins_subreg_coalesce-3.ll | 24 +- test/CodeGen/X86/insert-positions.ll | 2 +- test/CodeGen/X86/insertps-O0-bug.ll | 52 + test/CodeGen/X86/invalid-shift-immediate.ll | 4 +- test/CodeGen/X86/isel-optnone.ll | 20 +- test/CodeGen/X86/isel-sink.ll | 4 +- test/CodeGen/X86/isel-sink2.ll | 8 +- test/CodeGen/X86/isel-sink3.ll | 8 +- test/CodeGen/X86/isint.ll | 6 +- test/CodeGen/X86/jump_sign.ll | 28 +- test/CodeGen/X86/jump_table_alias.ll | 32 - test/CodeGen/X86/jump_table_align.ll | 29 - test/CodeGen/X86/jump_table_bitcast.ll | 43 - test/CodeGen/X86/jump_tables.ll | 255 - test/CodeGen/X86/large-code-model-isel.ll | 2 +- test/CodeGen/X86/large-constants.ll | 16 +- test/CodeGen/X86/large-gep-chain.ll | 50554 ++++++++-------- test/CodeGen/X86/large-gep-scale.ll | 2 +- test/CodeGen/X86/ldzero.ll | 12 +- test/CodeGen/X86/lea-5.ll | 8 +- test/CodeGen/X86/lea-recursion.ll | 30 +- test/CodeGen/X86/leaf-fp-elim.ll | 2 +- test/CodeGen/X86/legalize-shift-64.ll | 2 +- test/CodeGen/X86/legalize-sub-zero-2.ll | 2 +- test/CodeGen/X86/licm-nested.ll | 14 +- test/CodeGen/X86/licm-regpressure.ll | 39 + test/CodeGen/X86/licm-symbol.ll | 4 +- test/CodeGen/X86/liveness-local-regalloc.ll | 4 +- test/CodeGen/X86/llc-override-mcpu-mattr.ll | 21 + test/CodeGen/X86/load-slice.ll | 26 +- test/CodeGen/X86/logical-load-fold.ll | 53 + test/CodeGen/X86/longlong-deadload.ll | 2 +- test/CodeGen/X86/loop-hoist.ll | 2 +- test/CodeGen/X86/loop-strength-reduce-2.ll | 4 +- test/CodeGen/X86/loop-strength-reduce-3.ll | 4 +- test/CodeGen/X86/loop-strength-reduce.ll | 4 +- test/CodeGen/X86/loop-strength-reduce2.ll | 2 +- test/CodeGen/X86/loop-strength-reduce4.ll | 32 +- test/CodeGen/X86/loop-strength-reduce7.ll | 6 +- test/CodeGen/X86/loop-strength-reduce8.ll | 16 +- test/CodeGen/X86/lower-vec-shift-2.ll | 130 +- test/CodeGen/X86/lsr-delayed-fold.ll | 6 +- test/CodeGen/X86/lsr-i386.ll | 4 +- test/CodeGen/X86/lsr-interesting-step.ll | 2 +- test/CodeGen/X86/lsr-loop-exit-cond.ll | 84 +- test/CodeGen/X86/lsr-normalization.ll | 26 +- test/CodeGen/X86/lsr-quadratic-expand.ll | 2 +- test/CodeGen/X86/lsr-redundant-addressing.ll | 22 +- test/CodeGen/X86/lsr-reuse-trunc.ll | 10 +- test/CodeGen/X86/lsr-reuse.ll | 224 +- test/CodeGen/X86/lsr-static-addr.ll | 4 +- test/CodeGen/X86/lsr-wrap.ll | 2 +- test/CodeGen/X86/lzcnt-tzcnt.ll | 36 +- test/CodeGen/X86/machine-cse.ll | 10 +- test/CodeGen/X86/masked-iv-safe.ll | 96 +- test/CodeGen/X86/masked-iv-unsafe.ll | 156 +- test/CodeGen/X86/masked_gather_scatter.ll | 142 + test/CodeGen/X86/masked_memop.ll | 54 +- test/CodeGen/X86/mcinst-lowering.ll | 2 +- test/CodeGen/X86/mem-intrin-base-reg.ll | 18 +- test/CodeGen/X86/mem-promote-integers.ll | 70 +- test/CodeGen/X86/memcmp.ll | 12 +- test/CodeGen/X86/memcpy-2.ll | 4 +- test/CodeGen/X86/memcpy.ll | 4 +- test/CodeGen/X86/memset-3.ll | 2 +- test/CodeGen/X86/memset.ll | 2 +- .../X86/merge-consecutive-stores-i1.ll | 15 + test/CodeGen/X86/merge_store.ll | 8 +- test/CodeGen/X86/mingw-alloca.ll | 2 +- test/CodeGen/X86/misaligned-memset.ll | 4 +- test/CodeGen/X86/misched-aa-colored.ll | 8 +- test/CodeGen/X86/misched-aa-mmos.ll | 8 +- test/CodeGen/X86/misched-balance.ll | 172 +- .../X86/misched-code-difference-with-debug.ll | 56 +- test/CodeGen/X86/misched-crash.ll | 6 +- test/CodeGen/X86/misched-fusion.ll | 22 +- test/CodeGen/X86/misched-matmul.ll | 158 +- test/CodeGen/X86/misched-matrix.ll | 112 +- test/CodeGen/X86/misched-new.ll | 6 +- test/CodeGen/X86/mmx-arg-passing-x86-64.ll | 54 + test/CodeGen/X86/mmx-arg-passing.ll | 45 +- test/CodeGen/X86/mmx-arg-passing2.ll | 28 - test/CodeGen/X86/mmx-arith.ll | 545 +- test/CodeGen/X86/mmx-bitcast-to-i64.ll | 31 - test/CodeGen/X86/mmx-bitcast.ll | 108 + test/CodeGen/X86/mmx-copy-gprs.ll | 2 +- test/CodeGen/X86/mmx-emms.ll | 11 - test/CodeGen/X86/mmx-fold-load.ll | 282 + test/CodeGen/X86/mmx-insert-element.ll | 9 - .../{mmx-builtins.ll => mmx-intrinsics.ll} | 9 + test/CodeGen/X86/mmx-pinsrw.ll | 17 - test/CodeGen/X86/mmx-punpckhdq.ll | 31 - test/CodeGen/X86/mmx-s2v.ll | 15 - test/CodeGen/X86/mmx-shift.ll | 39 - test/CodeGen/X86/mmx-shuffle.ll | 31 - test/CodeGen/X86/movbe.ll | 6 +- test/CodeGen/X86/movfs.ll | 4 +- test/CodeGen/X86/movgs.ll | 16 +- test/CodeGen/X86/movmsk.ll | 16 +- test/CodeGen/X86/movtopush.ll | 268 +- test/CodeGen/X86/ms-inline-asm.ll | 12 +- test/CodeGen/X86/mul128_sext_loop.ll | 4 +- test/CodeGen/X86/muloti.ll | 18 +- test/CodeGen/X86/mult-alt-generic-i686.ll | 46 +- test/CodeGen/X86/mult-alt-generic-x86_64.ll | 46 +- test/CodeGen/X86/mult-alt-x86.ll | 48 +- test/CodeGen/X86/multiple-loop-post-inc.ll | 78 +- test/CodeGen/X86/mulx32.ll | 2 +- test/CodeGen/X86/mulx64.ll | 2 +- test/CodeGen/X86/musttail-fastcall.ll | 12 +- test/CodeGen/X86/musttail-indirect.ll | 44 +- test/CodeGen/X86/musttail-thiscall.ll | 8 +- test/CodeGen/X86/musttail-varargs.ll | 22 +- test/CodeGen/X86/nancvt.ll | 106 +- test/CodeGen/X86/narrow-shl-cst.ll | 23 + test/CodeGen/X86/narrow-shl-load.ll | 6 +- test/CodeGen/X86/narrow_op-1.ll | 8 +- test/CodeGen/X86/negate-add-zero.ll | 74 +- test/CodeGen/X86/negative-subscript.ll | 2 +- test/CodeGen/X86/no-cmov.ll | 2 +- test/CodeGen/X86/non-unique-sections.ll | 15 + test/CodeGen/X86/nontemporal-2.ll | 286 +- test/CodeGen/X86/norex-subreg.ll | 6 +- test/CodeGen/X86/nosse-error1.ll | 8 +- test/CodeGen/X86/nosse-error2.ll | 8 +- test/CodeGen/X86/nosse-varargs.ll | 25 +- test/CodeGen/X86/null-streamer.ll | 15 +- test/CodeGen/X86/object-size.ll | 20 +- test/CodeGen/X86/odr_comdat.ll | 16 - test/CodeGen/X86/opaque-constant-asm.ll | 2 +- test/CodeGen/X86/opt-ext-uses.ll | 2 +- test/CodeGen/X86/optimize-max-0.ll | 60 +- test/CodeGen/X86/optimize-max-1.ll | 8 +- test/CodeGen/X86/optimize-max-2.ll | 4 +- test/CodeGen/X86/optimize-max-3.ll | 4 +- test/CodeGen/X86/or-address.ll | 16 +- test/CodeGen/X86/or-branch.ll | 4 +- test/CodeGen/X86/packed_struct.ll | 10 +- test/CodeGen/X86/palignr-2.ll | 28 - test/CodeGen/X86/palignr.ll | 4 +- test/CodeGen/X86/patchpoint-invoke.ll | 4 +- test/CodeGen/X86/patchpoint-webkit_jscc.ll | 10 +- test/CodeGen/X86/patchpoint.ll | 42 +- test/CodeGen/X86/peep-test-0.ll | 4 +- test/CodeGen/X86/peep-test-1.ll | 4 +- test/CodeGen/X86/peephole-fold-movsd.ll | 8 +- test/CodeGen/X86/peephole-multiple-folds.ll | 4 +- test/CodeGen/X86/phi-bit-propagation.ll | 6 +- test/CodeGen/X86/phielim-split.ll | 43 +- test/CodeGen/X86/phys-reg-local-regalloc.ll | 8 +- test/CodeGen/X86/phys_subreg_coalesce-2.ll | 1 + test/CodeGen/X86/phys_subreg_coalesce-3.ll | 6 +- test/CodeGen/X86/pic.ll | 40 +- test/CodeGen/X86/pic_jumptable.ll | 8 +- test/CodeGen/X86/pmovext.ll | 2 +- test/CodeGen/X86/pmovsx-inreg.ll | 24 +- test/CodeGen/X86/pmul.ll | 220 +- test/CodeGen/X86/pmulld.ll | 2 +- test/CodeGen/X86/pointer-vector.ll | 27 +- test/CodeGen/X86/postra-licm.ll | 26 +- test/CodeGen/X86/pr10475.ll | 2 +- test/CodeGen/X86/pr10525.ll | 2 +- test/CodeGen/X86/pr11334.ll | 2 +- test/CodeGen/X86/pr12360.ll | 4 +- test/CodeGen/X86/pr12889.ll | 2 +- test/CodeGen/X86/pr13209.ll | 30 +- test/CodeGen/X86/pr13458.ll | 2 +- test/CodeGen/X86/pr13859.ll | 2 +- test/CodeGen/X86/pr13899.ll | 38 +- test/CodeGen/X86/pr14161.ll | 9 +- test/CodeGen/X86/pr14333.ll | 4 +- test/CodeGen/X86/pr14562.ll | 2 +- test/CodeGen/X86/pr1489.ll | 2 +- test/CodeGen/X86/pr1505b.ll | 8 +- test/CodeGen/X86/pr15267.ll | 22 +- test/CodeGen/X86/pr15309.ll | 6 +- test/CodeGen/X86/pr18023.ll | 22 +- test/CodeGen/X86/pr18162.ll | 10 +- test/CodeGen/X86/pr18846.ll | 32 +- test/CodeGen/X86/pr20020.ll | 22 +- test/CodeGen/X86/pr21099.ll | 3 +- test/CodeGen/X86/pr2177.ll | 6 +- test/CodeGen/X86/pr21792.ll | 41 + test/CodeGen/X86/pr2182.ll | 8 +- test/CodeGen/X86/pr22774.ll | 11 +- test/CodeGen/X86/pr23103.ll | 21 + test/CodeGen/X86/pr23246.ll | 19 + test/CodeGen/X86/pr2326.ll | 10 +- test/CodeGen/X86/pr23273.ll | 17 + test/CodeGen/X86/pr2656.ll | 10 +- test/CodeGen/X86/pr2849.ll | 14 +- test/CodeGen/X86/pr2924.ll | 8 +- test/CodeGen/X86/pr2982.ll | 8 +- test/CodeGen/X86/pr3154.ll | 26 +- test/CodeGen/X86/pr3216.ll | 2 +- test/CodeGen/X86/pr3241.ll | 2 +- test/CodeGen/X86/pr3244.ll | 6 +- test/CodeGen/X86/pr3250.ll | 2 +- test/CodeGen/X86/pr3317.ll | 16 +- test/CodeGen/X86/pr3366.ll | 2 +- test/CodeGen/X86/pr3457.ll | 4 +- test/CodeGen/X86/pr3522.ll | 2 +- test/CodeGen/X86/pr5145.ll | 12 +- test/CodeGen/X86/pr9127.ll | 2 +- test/CodeGen/X86/pre-ra-sched.ll | 28 +- test/CodeGen/X86/private-2.ll | 4 +- test/CodeGen/X86/private.ll | 2 +- test/CodeGen/X86/promote-assert-zext.ll | 2 +- test/CodeGen/X86/promote-trunc.ll | 4 +- test/CodeGen/X86/promote.ll | 4 +- test/CodeGen/X86/pshufb-mask-comments.ll | 4 +- test/CodeGen/X86/psubus.ll | 340 +- test/CodeGen/X86/ptrtoint-constexpr.ll | 2 +- test/CodeGen/X86/ragreedy-bug.ll | 106 +- test/CodeGen/X86/ragreedy-hoist-spill.ll | 26 +- .../X86/ragreedy-last-chance-recoloring.ll | 52 +- test/CodeGen/X86/rd-mod-wr-eflags.ll | 54 +- test/CodeGen/X86/rdrand.ll | 2 +- test/CodeGen/X86/recip-fastmath.ll | 48 +- .../X86/regalloc-reconcile-broken-hints.ll | 32 +- test/CodeGen/X86/regpressure.ll | 114 +- test/CodeGen/X86/remat-constant.ll | 2 +- test/CodeGen/X86/remat-fold-load.ll | 34 +- test/CodeGen/X86/remat-invalid-liveness.ll | 12 +- test/CodeGen/X86/remat-scalar-zero.ll | 98 +- test/CodeGen/X86/reverse_branches.ll | 20 +- test/CodeGen/X86/rip-rel-address.ll | 2 +- test/CodeGen/X86/rip-rel-lea.ll | 2 +- test/CodeGen/X86/rot32.ll | 4 +- test/CodeGen/X86/rot64.ll | 4 +- test/CodeGen/X86/rotate4.ll | 8 +- test/CodeGen/X86/sandybridge-loads.ll | 10 +- test/CodeGen/X86/scalar-extract.ll | 2 +- test/CodeGen/X86/scalar_sse_minmax.ll | 61 +- test/CodeGen/X86/scalar_widen_div.ll | 30 +- test/CodeGen/X86/scalarize-bitcast.ll | 4 +- test/CodeGen/X86/scev-interchange.ll | 2 +- test/CodeGen/X86/segmented-stacks.ll | 22 +- test/CodeGen/X86/seh-catch-all.ll | 44 + test/CodeGen/X86/seh-except-finally.ll | 167 + test/CodeGen/X86/seh-filter.ll | 21 + test/CodeGen/X86/seh-finally.ll | 51 + test/CodeGen/X86/seh-safe-div.ll | 180 + test/CodeGen/X86/select-with-and-or.ll | 2 +- test/CodeGen/X86/select.ll | 12 +- test/CodeGen/X86/selectiondag-crash.ll | 15 + test/CodeGen/X86/selectiondag-cse.ll | 8 +- test/CodeGen/X86/setcc-narrowing.ll | 2 +- test/CodeGen/X86/setcc.ll | 2 +- test/CodeGen/X86/sext-load.ll | 4 +- test/CodeGen/X86/sha.ll | 14 +- test/CodeGen/X86/shift-and.ll | 4 +- test/CodeGen/X86/shift-avx2-crash.ll | 38 + test/CodeGen/X86/shift-bmi2.ll | 16 +- test/CodeGen/X86/shift-coalesce.ll | 2 +- test/CodeGen/X86/shift-codegen.ll | 4 +- test/CodeGen/X86/shift-combine.ll | 4 +- test/CodeGen/X86/shift-folding.ll | 12 +- test/CodeGen/X86/shift-i256.ll | 18 +- test/CodeGen/X86/shift-one.ll | 2 +- test/CodeGen/X86/shift-pair.ll | 2 +- test/CodeGen/X86/shift-parts.ll | 2 +- test/CodeGen/X86/shl-i64.ll | 8 +- test/CodeGen/X86/shl_undef.ll | 4 +- test/CodeGen/X86/shrink-compare.ll | 4 +- test/CodeGen/X86/shuffle-combine-crash.ll | 2 +- test/CodeGen/X86/sibcall-4.ll | 4 +- test/CodeGen/X86/sibcall-5.ll | 2 +- test/CodeGen/X86/sibcall-win64.ll | 42 + test/CodeGen/X86/sibcall.ll | 99 +- test/CodeGen/X86/simple-zext.ll | 2 +- test/CodeGen/X86/sincos-opt.ll | 5 +- test/CodeGen/X86/sink-cheap-instructions.ll | 62 + test/CodeGen/X86/sink-hoist.ll | 20 +- test/CodeGen/X86/sink-out-of-loop.ll | 2 +- test/CodeGen/X86/sjlj.ll | 4 +- test/CodeGen/X86/slow-incdec.ll | 8 +- test/CodeGen/X86/smul-with-overflow.ll | 8 +- test/CodeGen/X86/soft-fp.ll | 10 +- test/CodeGen/X86/splat-const.ll | 40 + test/CodeGen/X86/splat-for-size.ll | 14 + test/CodeGen/X86/split-eh-lpad-edges.ll | 2 +- test/CodeGen/X86/split-vector-bitcast.ll | 2 +- test/CodeGen/X86/sqrt-fastmath.ll | 197 +- test/CodeGen/X86/sqrt.ll | 4 +- test/CodeGen/X86/sret-implicit.ll | 34 + test/CodeGen/X86/sse-align-0.ll | 4 +- test/CodeGen/X86/sse-align-1.ll | 4 +- test/CodeGen/X86/sse-align-10.ll | 2 +- test/CodeGen/X86/sse-align-12.ll | 8 +- test/CodeGen/X86/sse-align-2.ll | 4 +- test/CodeGen/X86/sse-align-5.ll | 2 +- test/CodeGen/X86/sse-align-6.ll | 2 +- test/CodeGen/X86/sse-align-9.ll | 4 +- test/CodeGen/X86/sse-domains.ll | 4 +- test/CodeGen/X86/sse-fcopysign.ll | 132 +- test/CodeGen/X86/sse-intel-ocl.ll | 4 +- test/CodeGen/X86/sse-intrinsics-x86.ll | 1 + test/CodeGen/X86/sse-load-ret.ll | 2 +- test/CodeGen/X86/sse-minmax.ll | 24 +- test/CodeGen/X86/sse-scalar-fp-arith-unary.ll | 73 + test/CodeGen/X86/sse-scalar-fp-arith.ll | 217 +- test/CodeGen/X86/sse-unaligned-mem-feature.ll | 4 +- test/CodeGen/X86/sse-varargs.ll | 2 +- .../X86/sse2-intrinsics-x86-upgrade.ll | 31 + test/CodeGen/X86/sse2-intrinsics-x86.ll | 39 +- test/CodeGen/X86/sse2.ll | 56 +- test/CodeGen/X86/sse3-avx-addsub-2.ll | 15 +- test/CodeGen/X86/sse3-avx-addsub.ll | 8 +- test/CodeGen/X86/sse3.ll | 69 +- test/CodeGen/X86/sse41-intrinsics-x86.ll | 1 + test/CodeGen/X86/sse41-pmovxrm-intrinsics.ll | 24 +- test/CodeGen/X86/sse41.ll | 310 +- test/CodeGen/X86/sse42-intrinsics-x86.ll | 12 +- test/CodeGen/X86/sse4a.ll | 1 + test/CodeGen/X86/sse_partial_update.ll | 29 +- test/CodeGen/X86/ssp-data-layout.ll | 156 +- test/CodeGen/X86/stack-align.ll | 28 +- test/CodeGen/X86/stack-folding-3dnow.ll | 217 + test/CodeGen/X86/stack-folding-fp-avx1.ll | 1827 + test/CodeGen/X86/stack-folding-fp-sse42.ll | 1097 + test/CodeGen/X86/stack-folding-int-avx1.ll | 1156 + test/CodeGen/X86/stack-folding-int-avx2.ll | 1211 + test/CodeGen/X86/stack-folding-int-sse42.ll | 1174 + test/CodeGen/X86/stack-folding-mmx.ll | 566 + test/CodeGen/X86/stack-folding-xop.ll | 718 + test/CodeGen/X86/stack-protector-dbginfo.ll | 107 +- .../X86/stack-protector-vreg-to-vreg-copy.ll | 4 +- test/CodeGen/X86/stack-protector-weight.ll | 6 +- test/CodeGen/X86/stack-protector.ll | 506 +- test/CodeGen/X86/stack-update-frame-opcode.ll | 2 +- test/CodeGen/X86/stack_guard_remat.ll | 2 +- test/CodeGen/X86/stackmap-fast-isel.ll | 16 +- test/CodeGen/X86/stackmap-large-constants.ll | 4 +- test/CodeGen/X86/stackmap-liveness.ll | 10 +- test/CodeGen/X86/stackmap-nops.ll | 64 +- .../X86/stackmap-shadow-optimization.ll | 2 +- test/CodeGen/X86/stackmap.ll | 44 +- test/CodeGen/X86/statepoint-allocas.ll | 130 + test/CodeGen/X86/statepoint-call-lowering.ll | 79 +- test/CodeGen/X86/statepoint-forward.ll | 27 +- .../statepoint-gctransition-call-lowering.ll | 133 + test/CodeGen/X86/statepoint-invoke.ll | 198 + test/CodeGen/X86/statepoint-stack-usage.ll | 50 +- .../CodeGen/X86/statepoint-stackmap-format.ll | 217 +- test/CodeGen/X86/stdarg.ll | 2 +- test/CodeGen/X86/store-narrow.ll | 22 +- test/CodeGen/X86/store_op_load_fold.ll | 6 +- test/CodeGen/X86/store_op_load_fold2.ll | 6 +- test/CodeGen/X86/stores-merging.ll | 6 +- test/CodeGen/X86/stride-nine-with-base-reg.ll | 10 +- test/CodeGen/X86/stride-reuse.ll | 8 +- test/CodeGen/X86/sub-with-overflow.ll | 8 +- test/CodeGen/X86/subreg-to-reg-0.ll | 2 +- test/CodeGen/X86/subreg-to-reg-2.ll | 8 +- test/CodeGen/X86/subreg-to-reg-4.ll | 16 +- test/CodeGen/X86/subreg-to-reg-6.ll | 2 +- test/CodeGen/X86/sunkaddr-ext.ll | 4 +- test/CodeGen/X86/switch-bt.ll | 60 +- test/CodeGen/X86/switch-crit-edge-constant.ll | 28 +- test/CodeGen/X86/switch-or.ll | 2 +- test/CodeGen/X86/switch-zextload.ll | 2 +- test/CodeGen/X86/switch.ll | 536 + test/CodeGen/X86/tail-call-win64.ll | 36 + test/CodeGen/X86/tail-dup-addr.ll | 2 +- test/CodeGen/X86/tail-opts.ll | 44 +- test/CodeGen/X86/tailcall-64.ll | 16 +- test/CodeGen/X86/tailcall-fastisel.ll | 4 +- test/CodeGen/X86/tailcall-mem-intrinsics.ll | 31 + test/CodeGen/X86/tailcall-returndup-void.ll | 8 +- test/CodeGen/X86/tailcall-ri64.ll | 6 +- test/CodeGen/X86/tailcallbyval.ll | 4 +- test/CodeGen/X86/tailcallbyval64.ll | 4 +- test/CodeGen/X86/tailcallstack64.ll | 4 +- test/CodeGen/X86/tbm-intrinsics-x86_64.ll | 4 +- test/CodeGen/X86/tbm_patterns.ll | 4 +- test/CodeGen/X86/test-shrink-bug.ll | 2 +- test/CodeGen/X86/testl-commute.ll | 12 +- test/CodeGen/X86/this-return-64.ll | 12 +- .../CodeGen/X86/tls-addr-non-leaf-function.ll | 2 +- test/CodeGen/X86/tls-local-dynamic.ll | 4 +- test/CodeGen/X86/tls-pic.ll | 8 +- test/CodeGen/X86/tls-pie.ll | 4 +- test/CodeGen/X86/tls.ll | 47 +- test/CodeGen/X86/tlv-1.ll | 6 +- test/CodeGen/X86/trap.ll | 20 +- test/CodeGen/X86/trunc-ext-ld-st.ll | 14 +- test/CodeGen/X86/trunc-to-bool.ll | 2 +- test/CodeGen/X86/twoaddr-coalesce-3.ll | 84 + test/CodeGen/X86/twoaddr-coalesce.ll | 2 +- test/CodeGen/X86/twoaddr-pass-sink.ll | 14 +- test/CodeGen/X86/uint64-to-float.ll | 4 +- test/CodeGen/X86/uint_to_fp-2.ll | 2 +- test/CodeGen/X86/umul-with-carry.ll | 4 +- test/CodeGen/X86/unaligned-32-byte-memops.ll | 123 +- test/CodeGen/X86/unaligned-load.ll | 4 +- test/CodeGen/X86/unaligned-spill-folding.ll | 4 +- test/CodeGen/X86/unknown-location.ll | 24 +- test/CodeGen/X86/unwindraise.ll | 70 +- test/CodeGen/X86/use-add-flags.ll | 2 +- test/CodeGen/X86/utf16-cfstrings.ll | 4 +- test/CodeGen/X86/v2f32.ll | 6 +- test/CodeGen/X86/v4i32load-crash.ll | 8 +- test/CodeGen/X86/v8i1-masks.ll | 10 +- test/CodeGen/X86/vaargs.ll | 10 +- test/CodeGen/X86/vararg-callee-cleanup.ll | 12 +- test/CodeGen/X86/vararg_tailcall.ll | 40 +- test/CodeGen/X86/variadic-node-pic.ll | 2 +- test/CodeGen/X86/vec-loadsingles-alignment.ll | 16 +- test/CodeGen/X86/vec-trunc-store.ll | 4 +- test/CodeGen/X86/vec_align.ll | 16 +- test/CodeGen/X86/vec_anyext.ll | 24 +- test/CodeGen/X86/vec_cast2.ll | 111 +- test/CodeGen/X86/vec_clear.ll | 13 - test/CodeGen/X86/vec_compare.ll | 52 +- test/CodeGen/X86/vec_extract-mmx.ll | 71 + test/CodeGen/X86/vec_extract-sse4.ll | 8 +- test/CodeGen/X86/vec_extract.ll | 6 +- test/CodeGen/X86/vec_fabs.ll | 2 +- test/CodeGen/X86/vec_floor.ll | 46 + test/CodeGen/X86/vec_fneg.ll | 2 +- test/CodeGen/X86/vec_fp_to_int.ll | 955 + test/CodeGen/X86/vec_fpext.ll | 18 +- test/CodeGen/X86/vec_i64.ll | 4 +- test/CodeGen/X86/vec_ins_extract.ll | 16 +- test/CodeGen/X86/vec_insert-3.ll | 10 +- test/CodeGen/X86/vec_insert-5.ll | 46 +- test/CodeGen/X86/vec_insert-mmx.ll | 58 + test/CodeGen/X86/vec_int_to_fp.ll | 714 + test/CodeGen/X86/vec_loadsingles.ll | 92 +- test/CodeGen/X86/vec_logical.ll | 2 +- test/CodeGen/X86/vec_partial.ll | 32 + test/CodeGen/X86/vec_reassociate.ll | 119 + test/CodeGen/X86/vec_set-7.ll | 2 +- test/CodeGen/X86/vec_set-F.ll | 2 +- test/CodeGen/X86/vec_setcc-2.ll | 12 +- test/CodeGen/X86/vec_shift5.ll | 2 +- test/CodeGen/X86/vec_shift6.ll | 6 +- test/CodeGen/X86/vec_shift7.ll | 12 + test/CodeGen/X86/vec_split.ll | 6 +- test/CodeGen/X86/vec_ss_load_fold.ll | 4 +- test/CodeGen/X86/vec_trunc_sext.ll | 2 +- test/CodeGen/X86/vec_zero.ll | 4 +- test/CodeGen/X86/vec_zero_cse.ll | 19 +- test/CodeGen/X86/vector-blend.ll | 258 +- test/CodeGen/X86/vector-ctpop.ll | 6 +- test/CodeGen/X86/vector-gep.ll | 20 +- test/CodeGen/X86/vector-idiv.ll | 714 +- test/CodeGen/X86/vector-intrinsics.ll | 8 +- test/CodeGen/X86/vector-sext.ll | 625 +- test/CodeGen/X86/vector-shuffle-128-v16.ll | 622 +- test/CodeGen/X86/vector-shuffle-128-v2.ll | 210 +- test/CodeGen/X86/vector-shuffle-128-v4.ll | 791 +- test/CodeGen/X86/vector-shuffle-128-v8.ll | 660 +- test/CodeGen/X86/vector-shuffle-256-v16.ll | 2091 +- test/CodeGen/X86/vector-shuffle-256-v32.ll | 622 +- test/CodeGen/X86/vector-shuffle-256-v4.ll | 166 +- test/CodeGen/X86/vector-shuffle-256-v8.ll | 368 +- test/CodeGen/X86/vector-shuffle-512-v16.ll | 4 +- test/CodeGen/X86/vector-shuffle-512-v8.ll | 281 +- test/CodeGen/X86/vector-shuffle-combining.ll | 1068 +- test/CodeGen/X86/vector-shuffle-mmx.ll | 105 + test/CodeGen/X86/vector-shuffle-sse1.ll | 36 +- test/CodeGen/X86/vector-trunc.ll | 250 +- test/CodeGen/X86/vector-variable-idx2.ll | 8 +- test/CodeGen/X86/vector-zext.ll | 441 +- test/CodeGen/X86/vector-zmov.ll | 4 +- test/CodeGen/X86/vector.ll | 42 +- test/CodeGen/X86/viabs.ll | 10 +- test/CodeGen/X86/visibility2.ll | 2 +- test/CodeGen/X86/volatile.ll | 6 +- test/CodeGen/X86/vortex-bug.ll | 2 +- test/CodeGen/X86/vselect-2.ll | 44 +- test/CodeGen/X86/vselect-avx.ll | 54 +- test/CodeGen/X86/vselect-minmax.ll | 1536 +- test/CodeGen/X86/vselect.ll | 49 +- test/CodeGen/X86/vshift-4.ll | 9 +- test/CodeGen/X86/vshift-5.ll | 4 +- test/CodeGen/X86/vshift-6.ll | 4 +- test/CodeGen/X86/warn-stack.ll | 4 +- test/CodeGen/X86/weak_def_can_be_hidden.ll | 4 +- test/CodeGen/X86/widen_arith-1.ll | 20 +- test/CodeGen/X86/widen_arith-2.ll | 32 +- test/CodeGen/X86/widen_arith-3.ll | 20 +- test/CodeGen/X86/widen_arith-4.ll | 20 +- test/CodeGen/X86/widen_arith-5.ll | 20 +- test/CodeGen/X86/widen_arith-6.ll | 22 +- test/CodeGen/X86/widen_cast-1.ll | 24 +- test/CodeGen/X86/widen_cast-2.ll | 18 +- test/CodeGen/X86/widen_cast-4.ll | 34 +- test/CodeGen/X86/widen_cast-5.ll | 2 +- test/CodeGen/X86/widen_conversions.ll | 4 +- test/CodeGen/X86/widen_load-0.ll | 6 +- test/CodeGen/X86/widen_load-1.ll | 6 +- test/CodeGen/X86/widen_load-2.ll | 64 +- test/CodeGen/X86/widen_shuffle-1.ll | 6 +- test/CodeGen/X86/win32-eh.ll | 91 + test/CodeGen/X86/win32_sret.ll | 36 +- test/CodeGen/X86/win64_alloca_dynalloca.ll | 20 +- test/CodeGen/X86/win64_eh.ll | 57 +- test/CodeGen/X86/win64_frame.ll | 122 + test/CodeGen/X86/win64_nonvol.ll | 28 + test/CodeGen/X86/win_cst_pool.ll | 2 +- test/CodeGen/X86/win_eh_prepare.ll | 82 + test/CodeGen/X86/x32-function_pointer-1.ll | 4 +- test/CodeGen/X86/x32-lea-1.ll | 10 + .../CodeGen/X86/x86-32-vector-calling-conv.ll | 44 + test/CodeGen/X86/x86-64-and-mask.ll | 2 +- test/CodeGen/X86/x86-64-asm.ll | 2 +- test/CodeGen/X86/x86-64-baseptr.ll | 26 + test/CodeGen/X86/x86-64-disp.ll | 2 +- test/CodeGen/X86/x86-64-gv-offset.ll | 4 +- test/CodeGen/X86/x86-64-jumps.ll | 8 +- test/CodeGen/X86/x86-64-mem.ll | 8 +- test/CodeGen/X86/x86-64-pic-4.ll | 2 +- test/CodeGen/X86/x86-64-pic-5.ll | 2 +- test/CodeGen/X86/x86-64-pic-6.ll | 2 +- test/CodeGen/X86/x86-64-psub.ll | 2 +- test/CodeGen/X86/x86-64-ptr-arg-simple.ll | 2 +- test/CodeGen/X86/x86-64-sret-return.ll | 58 +- test/CodeGen/X86/x86-64-static-relo-movl.ll | 4 +- test/CodeGen/X86/x86-64-tls-1.ll | 2 +- test/CodeGen/X86/x86-64-varargs.ll | 2 +- test/CodeGen/X86/x86-fold-pshufb.ll | 17 + test/CodeGen/X86/x86-framelowering-trap.ll | 15 + .../X86/x86-mixed-alignment-dagcombine.ll | 8 +- .../X86/x86-setcc-int-to-fp-combine.ll | 15 + test/CodeGen/X86/x86-shifts.ll | 16 +- test/CodeGen/X86/x86-shrink-wrapping.ll | 600 + .../X86/x86-upgrade-avx2-vbroadcast.ll | 18 + test/CodeGen/X86/xaluo.ll | 2 +- test/CodeGen/X86/xmulo.ll | 6 +- test/CodeGen/X86/xop-intrinsics-x86_64.ll | 170 +- test/CodeGen/X86/xor-icmp.ll | 6 +- test/CodeGen/X86/xor.ll | 18 +- test/CodeGen/X86/zext-extract_subreg.ll | 2 +- test/CodeGen/X86/zext-sext.ll | 21 +- test/CodeGen/X86/zlib-longest-match.ll | 159 +- test/CodeGen/XCore/2009-01-08-Crash.ll | 4 +- test/CodeGen/XCore/2010-02-25-LSR-Crash.ll | 4 +- .../CodeGen/XCore/2011-01-31-DAGCombineBug.ll | 2 +- test/CodeGen/XCore/atomic.ll | 18 +- test/CodeGen/XCore/codemodel.ll | 22 +- test/CodeGen/XCore/dwarf_debug.ll | 23 +- test/CodeGen/XCore/epilogue_prologue.ll | 8 +- test/CodeGen/XCore/exception.ll | 14 +- test/CodeGen/XCore/indirectbr.ll | 6 +- test/CodeGen/XCore/llvm-intrinsics.ll | 8 +- test/CodeGen/XCore/load.ll | 18 +- test/CodeGen/XCore/offset_folding.ll | 8 +- test/CodeGen/XCore/private.ll | 2 +- test/CodeGen/XCore/scavenging.ll | 40 +- test/CodeGen/XCore/store.ll | 8 +- test/CodeGen/XCore/threads.ll | 16 +- test/CodeGen/XCore/trampoline.ll | 10 +- test/CodeGen/XCore/unaligned_load.ll | 6 +- test/CodeGen/XCore/unaligned_store_combine.ll | 2 +- test/CodeGen/XCore/zextfree.ll | 2 +- .../2009-11-03-InsertExtractValue.ll | 14 +- .../2009-11-05-DeadGlobalVariable.ll | 22 +- .../2009-11-06-NamelessGlobalVariable.ll | 12 +- test/DebugInfo/2009-11-10-CurrentFn.ll | 26 +- test/DebugInfo/2010-01-05-DbgScope.ll | 22 +- test/DebugInfo/2010-03-12-llc-crash.ll | 20 +- test/DebugInfo/2010-03-19-DbgDeclare.ll | 15 +- test/DebugInfo/2010-03-24-MemberFn.ll | 60 +- .../2010-03-30-InvalidDbgInfoCrash.ll | 36 - test/DebugInfo/2010-04-06-NestedFnDbgInfo.ll | 94 +- test/DebugInfo/2010-04-19-FramePtr.ll | 26 +- test/DebugInfo/2010-05-03-DisableFramePtr.ll | 36 +- test/DebugInfo/2010-05-03-OriginDIE.ll | 100 +- test/DebugInfo/2010-05-10-MultipleCU.ll | 36 +- .../DebugInfo/2010-06-29-InlinedFnLocalVar.ll | 59 +- test/DebugInfo/2010-07-19-Crash.ll | 28 +- test/DebugInfo/2010-10-01-crash.ll | 22 +- test/DebugInfo/AArch64/big-endian.ll | 12 +- test/DebugInfo/AArch64/cfi-eof-prologue.ll | 80 +- test/DebugInfo/AArch64/coalescing.ll | 26 +- test/DebugInfo/AArch64/constant-dbgloc.ll | 37 + test/DebugInfo/AArch64/dwarfdump.ll | 16 +- test/DebugInfo/AArch64/eh_frame.s | 2 +- .../DebugInfo/AArch64/eh_frame_personality.ll | 2 +- test/DebugInfo/AArch64/frameindices.ll | 257 + test/DebugInfo/AArch64/struct_by_value.ll | 39 +- test/DebugInfo/ARM/PR16736.ll | 46 +- test/DebugInfo/ARM/cfi-eof-prologue.ll | 80 +- test/DebugInfo/ARM/constant-dbgloc.ll | 37 + test/DebugInfo/ARM/header.ll | 30 + test/DebugInfo/ARM/line.test | 7 + test/DebugInfo/ARM/lowerbdgdeclare_vla.ll | 64 +- .../multiple-constant-uses-drops-dbgloc.ll | 54 + test/DebugInfo/ARM/s-super-register.ll | 38 +- test/DebugInfo/ARM/sectionorder.ll | 18 - test/DebugInfo/ARM/selectiondag-deadcode.ll | 16 +- .../single-constant-use-preserves-dbgloc.ll | 72 + test/DebugInfo/ARM/tls.ll | 12 +- test/DebugInfo/COFF/asan-module-ctor.ll | 15 +- .../COFF/asan-module-without-functions.ll | 6 +- test/DebugInfo/COFF/asm.ll | 25 +- test/DebugInfo/COFF/cpp-mangling.ll | 20 +- test/DebugInfo/COFF/multifile.ll | 35 +- test/DebugInfo/COFF/multifunction.ll | 41 +- test/DebugInfo/COFF/simple.ll | 23 +- .../COFF/tail-call-without-lexical-scopes.ll | 23 +- test/DebugInfo/Inputs/dwarfdump-test.cc | 6 + test/DebugInfo/Inputs/gmlt.ll | 32 +- test/DebugInfo/Inputs/line.ll | 55 + test/DebugInfo/Mips/InlinedFnLocalVar.ll | 61 + test/DebugInfo/Mips/delay-slot.ll | 30 +- test/DebugInfo/Mips/fn-call-line.ll | 22 +- test/DebugInfo/PDB/Inputs/empty.cpp | 7 + test/DebugInfo/PDB/Inputs/empty.pdb | Bin 0 -> 102400 bytes .../DebugInfo/PDB/Inputs/symbolformat-fpo.cpp | 6 + test/DebugInfo/PDB/Inputs/symbolformat.cpp | 73 + test/DebugInfo/PDB/Inputs/symbolformat.pdb | Bin 0 -> 35840 bytes test/DebugInfo/PDB/lit.local.cfg | 1 + test/DebugInfo/PDB/pdbdump-flags.test | 40 + test/DebugInfo/PDB/pdbdump-symbol-format.test | 53 + test/DebugInfo/PR20038.ll | 99 +- test/DebugInfo/PowerPC/line.test | 7 + test/DebugInfo/PowerPC/tls-fission.ll | 13 +- test/DebugInfo/PowerPC/tls.ll | 12 +- test/DebugInfo/Sparc/gnu-window-save.ll | 20 +- test/DebugInfo/SystemZ/eh_frame.s | 2 +- test/DebugInfo/SystemZ/eh_frame_personality.s | 2 +- test/DebugInfo/SystemZ/variable-loc.ll | 58 +- test/DebugInfo/X86/2010-04-13-PubType.ll | 44 +- test/DebugInfo/X86/2010-08-10-DbgConstant.ll | 31 - .../X86/2011-09-26-GlobalVarContext.ll | 32 +- test/DebugInfo/X86/2011-12-16-BadStructRef.ll | 172 +- test/DebugInfo/X86/DW_AT_byte_size.ll | 36 +- test/DebugInfo/X86/DW_AT_linkage_name.ll | 64 +- .../DebugInfo/X86/DW_AT_location-reference.ll | 42 +- test/DebugInfo/X86/DW_AT_object_pointer.ll | 80 +- test/DebugInfo/X86/DW_AT_specification.ll | 32 +- .../X86/DW_AT_stmt_list_sec_offset.ll | 16 +- test/DebugInfo/X86/DW_TAG_friend.ll | 40 +- test/DebugInfo/X86/InlinedFnLocalVar.ll | 61 + test/DebugInfo/X86/aligned_stack_var.ll | 24 +- test/DebugInfo/X86/arange-and-stub.ll | 53 + test/DebugInfo/X86/arange.ll | 18 +- test/DebugInfo/X86/arguments.ll | 49 +- test/DebugInfo/X86/array.ll | 68 +- test/DebugInfo/X86/array2.ll | 78 +- test/DebugInfo/X86/block-capture.ll | 112 +- test/DebugInfo/X86/byvalstruct.ll | 80 +- test/DebugInfo/X86/c-type-units.ll | 12 +- test/DebugInfo/X86/coff_debug_info_type.ll | 16 +- test/DebugInfo/X86/coff_relative_names.ll | 16 +- test/DebugInfo/X86/concrete_out_of_line.ll | 82 +- test/DebugInfo/X86/constant-aggregate.ll | 58 +- test/DebugInfo/X86/cu-ranges-odr.ll | 57 +- test/DebugInfo/X86/cu-ranges.ll | 32 +- test/DebugInfo/X86/data_member_location.ll | 20 +- test/DebugInfo/X86/dbg-at-specficiation.ll | 16 +- test/DebugInfo/X86/dbg-byval-parameter.ll | 48 +- test/DebugInfo/X86/dbg-const-int.ll | 26 +- test/DebugInfo/X86/dbg-const.ll | 32 +- test/DebugInfo/X86/dbg-declare-arg.ll | 120 +- test/DebugInfo/X86/dbg-declare.ll | 50 +- test/DebugInfo/X86/dbg-file-name.ll | 16 +- test/DebugInfo/X86/dbg-i128-const.ll | 31 +- test/DebugInfo/X86/dbg-merge-loc-entry.ll | 62 +- test/DebugInfo/X86/dbg-prolog-end.ll | 52 +- test/DebugInfo/X86/dbg-subrange.ll | 28 +- test/DebugInfo/X86/dbg-value-const-byref.ll | 38 +- test/DebugInfo/X86/dbg-value-dag-combine.ll | 50 +- .../X86/dbg-value-inlined-parameter.ll | 80 +- test/DebugInfo/X86/dbg-value-isel.ll | 50 +- test/DebugInfo/X86/dbg-value-location.ll | 52 +- test/DebugInfo/X86/dbg-value-range.ll | 51 +- test/DebugInfo/X86/dbg-value-terminator.ll | 36 +- test/DebugInfo/X86/dbg_value_direct.ll | 52 +- test/DebugInfo/X86/debug-dead-local-var.ll | 28 +- test/DebugInfo/X86/debug-info-access.ll | 58 +- .../X86/debug-info-block-captured-self.ll | 52 +- test/DebugInfo/X86/debug-info-blocks.ll | 296 +- .../DebugInfo/X86/debug-info-static-member.ll | 62 +- test/DebugInfo/X86/debug-loc-asan.ll | 32 +- test/DebugInfo/X86/debug-loc-offset.ll | 74 +- test/DebugInfo/X86/debug-ranges-offset.ll | 92 +- test/DebugInfo/X86/debug_frame.ll | 12 +- test/DebugInfo/X86/decl-derived-member.ll | 90 +- test/DebugInfo/X86/deleted-bit-piece.ll | 46 + test/DebugInfo/X86/discriminator.ll | 30 +- .../X86/dwarf-aranges-no-dwarf-labels.ll | 38 +- test/DebugInfo/X86/dwarf-aranges.ll | 50 +- test/DebugInfo/X86/dwarf-public-names.ll | 80 +- test/DebugInfo/X86/dwarf-pubnames-split.ll | 18 +- test/DebugInfo/X86/earlydup-crash.ll | 94 +- test/DebugInfo/X86/elf-names.ll | 118 +- .../DebugInfo/X86/empty-and-one-elem-array.ll | 66 +- test/DebugInfo/X86/empty-array.ll | 28 +- test/DebugInfo/X86/empty.ll | 26 + test/DebugInfo/X86/ending-run.ll | 38 +- test/DebugInfo/X86/enum-class.ll | 30 +- test/DebugInfo/X86/enum-fwd-decl.ll | 12 +- test/DebugInfo/X86/fission-cu.ll | 12 +- test/DebugInfo/X86/fission-hash.ll | 6 +- test/DebugInfo/X86/fission-inline.ll | 49 +- test/DebugInfo/X86/fission-ranges.ll | 92 +- test/DebugInfo/X86/float_const.ll | 55 + test/DebugInfo/X86/formal_parameter.ll | 34 +- test/DebugInfo/X86/frame-register.ll | 60 + test/DebugInfo/X86/generate-odr-hash.ll | 93 +- test/DebugInfo/X86/ghost-sdnode-dbgvalues.ll | 58 +- test/DebugInfo/X86/gnu-public-names-empty.ll | 6 +- test/DebugInfo/X86/gnu-public-names.ll | 264 +- test/DebugInfo/X86/header.ll | 29 + test/DebugInfo/X86/inline-member-function.ll | 49 +- test/DebugInfo/X86/inline-seldag-test.ll | 42 +- .../DebugInfo/X86/inlined-formal-parameter.ll | 75 + test/DebugInfo/X86/instcombine-instrinsics.ll | 42 +- test/DebugInfo/X86/lexical_block.ll | 28 +- test/DebugInfo/X86/line-info.ll | 36 +- test/DebugInfo/X86/line.test | 1 + test/DebugInfo/X86/linkage-name.ll | 46 +- test/DebugInfo/X86/low-pc-cu.ll | 14 +- test/DebugInfo/X86/memberfnptr.ll | 20 +- test/DebugInfo/X86/mi-print.ll | 56 + test/DebugInfo/X86/misched-dbg-value.ll | 168 +- test/DebugInfo/X86/missing-file-line.ll | 57 + test/DebugInfo/X86/multiple-aranges.ll | 30 +- test/DebugInfo/X86/multiple-at-const-val.ll | 46 +- test/DebugInfo/X86/nodebug_with_debug_loc.ll | 56 +- .../X86/nondefault-subrange-array.ll | 28 +- test/DebugInfo/X86/nophysreg.ll | 203 + test/DebugInfo/X86/objc-fwd-decl.ll | 14 +- test/DebugInfo/X86/objc-property-void.ll | 52 +- test/DebugInfo/X86/op_deref.ll | 74 +- test/DebugInfo/X86/parameters.ll | 61 +- test/DebugInfo/X86/pieces-1.ll | 38 +- test/DebugInfo/X86/pieces-2.ll | 54 +- test/DebugInfo/X86/pieces-3.ll | 58 +- test/DebugInfo/X86/pointer-type-size.ll | 20 +- test/DebugInfo/X86/pr11300.ll | 56 +- test/DebugInfo/X86/pr12831.ll | 252 +- test/DebugInfo/X86/pr13303.ll | 18 +- test/DebugInfo/X86/pr19307.ll | 116 +- test/DebugInfo/X86/processes-relocations.ll | 6 +- test/DebugInfo/X86/prologue-stack.ll | 20 +- test/DebugInfo/X86/recursive_inlining.ll | 148 +- test/DebugInfo/X86/ref_addr_relocation.ll | 29 +- test/DebugInfo/X86/reference-argument.ll | 117 +- test/DebugInfo/X86/rvalue-ref.ll | 34 +- test/DebugInfo/X86/sret.ll | 318 +- test/DebugInfo/X86/sroasplit-1.ll | 97 + test/DebugInfo/X86/sroasplit-2.ll | 102 + test/DebugInfo/X86/sroasplit-3.ll | 63 + test/DebugInfo/X86/sroasplit-4.ll | 146 + test/DebugInfo/X86/sroasplit-5.ll | 91 + .../X86/stmt-list-multiple-compile-units.ll | 60 +- test/DebugInfo/X86/stmt-list.ll | 18 +- test/DebugInfo/X86/stringpool.ll | 19 +- test/DebugInfo/X86/struct-loc.ll | 16 +- test/DebugInfo/X86/subrange-type.ll | 28 +- test/DebugInfo/X86/subreg.ll | 22 +- test/DebugInfo/X86/subregisters.ll | 58 +- test/DebugInfo/X86/template.ll | 56 +- test/DebugInfo/X86/tls.ll | 52 +- .../X86/type_units_with_addresses.ll | 54 +- test/DebugInfo/X86/union-const.ll | 66 + test/DebugInfo/X86/union-template.ll | 47 +- test/DebugInfo/X86/vector.ll | 18 +- test/DebugInfo/X86/vla.ll | 72 +- test/DebugInfo/accel-table-hash-collisions.ll | 92 + test/DebugInfo/array.ll | 31 +- test/DebugInfo/block-asan.ll | 58 +- test/DebugInfo/bug_null_debuginfo.ll | 6 +- test/DebugInfo/constant-pointers.ll | 26 +- .../constant-sdnodes-have-dbg-location.ll | 26 + .../constantfp-sdnodes-have-dbg-location.ll | 24 + test/DebugInfo/cross-cu-inlining.ll | 49 +- test/DebugInfo/cross-cu-linkonce-distinct.ll | 38 +- test/DebugInfo/cross-cu-linkonce.ll | 36 +- test/DebugInfo/cu-range-hole.ll | 34 +- test/DebugInfo/cu-ranges.ll | 36 +- test/DebugInfo/dead-argument-order.ll | 28 +- test/DebugInfo/debug-info-always-inline.ll | 20 +- test/DebugInfo/debug-info-qualifiers.ll | 60 +- .../debuginfofinder-forward-declaration.ll | 42 + test/DebugInfo/debuginfofinder-multiple-cu.ll | 34 +- test/DebugInfo/debuglineinfo.test | 4 + test/DebugInfo/duplicate_inline.ll | 117 - test/DebugInfo/dwarf-public-names.ll | 70 +- .../dwarfdump-debug-frame-simple.test | 24 +- test/DebugInfo/empty.ll | 8 +- test/DebugInfo/enum-types.ll | 42 +- test/DebugInfo/enum.ll | 36 +- test/DebugInfo/global.ll | 18 +- test/DebugInfo/incorrect-variable-debugloc.ll | 88 +- .../DebugInfo/incorrect-variable-debugloc1.ll | 30 +- test/DebugInfo/inheritance.ll | 120 +- test/DebugInfo/inline-debug-info-multiret.ll | 90 +- test/DebugInfo/inline-debug-info.ll | 90 +- test/DebugInfo/inline-no-debug-info.ll | 23 +- test/DebugInfo/inline-scopes.ll | 68 +- test/DebugInfo/inlined-arguments.ll | 48 +- test/DebugInfo/inlined-vars.ll | 40 +- test/DebugInfo/location-verifier.ll | 18 +- test/DebugInfo/lto-comp-dir.ll | 30 +- test/DebugInfo/member-order.ll | 30 +- test/DebugInfo/member-pointers.ll | 24 +- test/DebugInfo/missing-abstract-variable.ll | 74 +- test/DebugInfo/multiline.ll | 38 +- test/DebugInfo/namespace.ll | 144 +- .../namespace_function_definition.ll | 16 +- .../namespace_inline_function_definition.ll | 43 +- test/DebugInfo/nodebug.ll | 14 +- test/DebugInfo/piece-verifier.ll | 56 + test/DebugInfo/restrict.ll | 24 +- test/DebugInfo/sugared-constants.ll | 48 +- test/DebugInfo/template-recursive-void.ll | 50 +- test/DebugInfo/tu-composite.ll | 113 +- test/DebugInfo/tu-member-pointer.ll | 16 +- test/DebugInfo/two-cus-from-same-file.ll | 56 +- test/DebugInfo/typedef.ll | 14 +- test/DebugInfo/unconditional-branch.ll | 30 +- test/DebugInfo/varargs.ll | 45 +- test/DebugInfo/version.ll | 16 +- .../2003-05-07-ArgumentTest.ll | 11 - .../MCJIT/2002-12-16-ArgTest.ll | 8 +- .../MCJIT/2003-05-06-LivenessClobber.ll | 2 +- .../MCJIT/2003-05-07-ArgumentTest.ll | 4 +- .../MCJIT/2003-08-21-EnvironmentTest.ll | 2 +- .../MCJIT/2007-12-10-APIntLoadStore.ll | 4 +- .../MCJIT/2008-06-05-APInt-OverAShr.ll | 14 +- .../MCJIT/2010-01-15-UndefValue.ll | 8 - .../MCJIT/2013-04-04-RelocAddend.ll | 6 +- test/ExecutionEngine/MCJIT/fpbitcast.ll | 4 +- test/ExecutionEngine/MCJIT/hello-sm-pic.ll | 12 - test/ExecutionEngine/MCJIT/hello.ll | 2 +- test/ExecutionEngine/MCJIT/hello2.ll | 2 +- test/ExecutionEngine/MCJIT/pr13727.ll | 32 +- .../MCJIT/remote/stubs-remote.ll | 4 +- .../MCJIT/remote/stubs-sm-pic.ll | 4 +- .../remote/test-common-symbols-remote.ll | 32 +- .../test-fp-no-external-funcs-remote.ll | 2 +- .../remote/test-global-init-nonzero-remote.ll | 8 +- .../remote/test-global-init-nonzero-sm-pic.ll | 8 +- .../MCJIT/remote/test-ptr-reloc-remote.ll | 8 +- .../MCJIT/remote/test-ptr-reloc-sm-pic.ll | 8 +- test/ExecutionEngine/MCJIT/stubs-sm-pic.ll | 4 +- test/ExecutionEngine/MCJIT/stubs.ll | 4 +- .../MCJIT/test-common-symbols-alignment.ll | 4 +- .../MCJIT/test-common-symbols.ll | 32 +- .../MCJIT/test-fp-no-external-funcs.ll | 2 +- test/ExecutionEngine/MCJIT/test-fp.ll | 2 +- .../MCJIT/test-global-ctors.ll | 2 +- .../MCJIT/test-global-init-nonzero-sm-pic.ll | 8 +- .../MCJIT/test-global-init-nonzero.ll | 8 +- test/ExecutionEngine/MCJIT/test-global.ll | 8 +- test/ExecutionEngine/MCJIT/test-loadstore.ll | 10 +- test/ExecutionEngine/MCJIT/test-local.ll | 8 +- .../MCJIT/test-ptr-reloc-sm-pic.ll | 8 +- test/ExecutionEngine/MCJIT/test-ptr-reloc.ll | 8 +- .../OrcLazy/anonymous_globals.ll | 18 + test/ExecutionEngine/OrcLazy/hello.ll | 35 + test/ExecutionEngine/OrcLazy/lit.local.cfg | 2 + .../OrcLazy/private_linkage.ll | 12 + .../{ => OrcMCJIT}/2002-12-16-ArgTest.ll | 10 +- .../{ => OrcMCJIT}/2003-01-04-ArgumentBug.ll | 2 +- .../{ => OrcMCJIT}/2003-01-04-LoopTest.ll | 2 +- .../{ => OrcMCJIT}/2003-01-04-PhiTest.ll | 2 +- .../{ => OrcMCJIT}/2003-01-09-SARTest.ll | 2 +- .../{ => OrcMCJIT}/2003-01-10-FUCOM.ll | 2 +- .../2003-01-15-AlignmentTest.ll | 2 +- .../2003-05-06-LivenessClobber.ll | 4 +- .../OrcMCJIT/2003-05-07-ArgumentTest.ll | 11 + .../OrcMCJIT/2003-05-11-PHIRegAllocBug.ll | 13 + .../OrcMCJIT/2003-06-04-bzip2-bug.ll | 17 + .../OrcMCJIT/2003-06-05-PHIBug.ll | 15 + .../2003-08-15-AllocaAssertion.ll | 2 +- .../2003-08-21-EnvironmentTest.ll | 4 +- .../2003-08-23-RegisterAllocatePhysReg.ll | 2 +- ...8-PHINode-ConstantExpr-CondCode-Failure.ll | 2 +- .../{ => OrcMCJIT}/2005-12-02-TailCallBug.ll | 3 +- .../2007-12-10-APIntLoadStore.ll | 6 +- .../2008-06-05-APInt-OverAShr.ll | 16 +- .../OrcMCJIT/2013-04-04-RelocAddend.ll | 25 + .../OrcMCJIT/Inputs/cross-module-b.ll | 7 + .../OrcMCJIT/Inputs/multi-module-b.ll | 7 + .../OrcMCJIT/Inputs/multi-module-c.ll | 4 + .../OrcMCJIT/Inputs/multi-module-eh-b.ll | 30 + .../OrcMCJIT/cross-module-a.ll | 13 + .../OrcMCJIT/cross-module-sm-pic-a.ll | 14 + test/ExecutionEngine/OrcMCJIT/eh-lg-pic.ll | 32 + test/ExecutionEngine/OrcMCJIT/eh-sm-pic.ll | 32 + test/ExecutionEngine/OrcMCJIT/eh.ll | 32 + .../{ => OrcMCJIT}/fpbitcast.ll | 6 +- test/ExecutionEngine/OrcMCJIT/hello.ll | 11 + test/ExecutionEngine/{ => OrcMCJIT}/hello2.ll | 4 +- test/ExecutionEngine/OrcMCJIT/lit.local.cfg | 26 + .../ExecutionEngine/OrcMCJIT/load-object-a.ll | 24 + .../OrcMCJIT/multi-module-a.ll | 9 + .../OrcMCJIT/multi-module-eh-a.ll | 35 + .../OrcMCJIT/multi-module-sm-pic-a.ll | 10 + .../OrcMCJIT/non-extern-addend.ll | 21 + test/ExecutionEngine/OrcMCJIT/pr13727.ll | 88 + .../OrcMCJIT/remote/Inputs/cross-module-b.ll | 7 + .../OrcMCJIT/remote/Inputs/multi-module-b.ll | 7 + .../OrcMCJIT/remote/Inputs/multi-module-c.ll | 4 + .../OrcMCJIT/remote/cross-module-a.ll | 12 + .../OrcMCJIT/remote/cross-module-sm-pic-a.ll | 14 + .../OrcMCJIT/remote/lit.local.cfg | 8 + .../OrcMCJIT/remote/multi-module-a.ll | 9 + .../OrcMCJIT/remote/multi-module-sm-pic-a.ll | 10 + .../OrcMCJIT/remote/simpletest-remote.ll | 10 + .../OrcMCJIT/remote/stubs-remote.ll | 37 + .../OrcMCJIT/remote/stubs-sm-pic.ll | 37 + .../remote/test-common-symbols-remote.ll | 88 + .../OrcMCJIT/remote/test-data-align-remote.ll | 15 + .../test-fp-no-external-funcs-remote.ll | 20 + .../remote/test-global-init-nonzero-remote.ll | 34 + .../remote/test-global-init-nonzero-sm-pic.ll | 35 + .../OrcMCJIT/remote/test-ptr-reloc-remote.ll | 15 + .../OrcMCJIT/remote/test-ptr-reloc-sm-pic.ll | 17 + test/ExecutionEngine/OrcMCJIT/simplesttest.ll | 6 + .../{ => OrcMCJIT}/simpletest.ll | 2 +- test/ExecutionEngine/OrcMCJIT/stubs-sm-pic.ll | 36 + test/ExecutionEngine/{ => OrcMCJIT}/stubs.ll | 6 +- .../{ => OrcMCJIT}/test-arith.ll | 2 +- .../{ => OrcMCJIT}/test-branch.ll | 2 +- .../test-call-no-external-funcs.ll | 2 +- .../{ => OrcMCJIT}/test-call.ll | 2 +- .../{ => OrcMCJIT}/test-cast.ll | 2 +- .../OrcMCJIT/test-common-symbols-alignment.ll | 32 + .../{ => OrcMCJIT}/test-common-symbols.ll | 34 +- .../{ => OrcMCJIT}/test-constantexpr.ll | 2 +- .../OrcMCJIT/test-data-align.ll | 15 + .../test-fp-no-external-funcs.ll | 4 +- .../ExecutionEngine/{ => OrcMCJIT}/test-fp.ll | 4 +- .../OrcMCJIT/test-global-ctors.ll | 22 + .../test-global-init-nonzero-sm-pic.ll | 35 + .../test-global-init-nonzero.ll | 10 +- .../{ => OrcMCJIT}/test-global.ll | 10 +- .../{ => OrcMCJIT}/test-loadstore.ll | 12 +- .../{ => OrcMCJIT}/test-local.ll | 10 +- .../{ => OrcMCJIT}/test-logical.ll | 2 +- .../{ => OrcMCJIT}/test-loop.ll | 2 +- .../{ => OrcMCJIT}/test-phi.ll | 2 +- .../OrcMCJIT/test-ptr-reloc-sm-pic.ll | 17 + .../OrcMCJIT/test-ptr-reloc.ll | 16 + .../{ => OrcMCJIT}/test-ret.ll | 2 +- .../{ => OrcMCJIT}/test-return.ll | 2 +- .../{ => OrcMCJIT}/test-setcond-fp.ll | 2 +- .../{ => OrcMCJIT}/test-setcond-int.ll | 2 +- .../{ => OrcMCJIT}/test-shift.ll | 2 +- .../RuntimeDyld/X86/COFF_x86_64 | 31 + .../X86/ELF_x64-64_PIC_relocations.s | 31 + .../RuntimeDyld/X86/Inputs/ExternalGlobal.ll | 2 + test/ExecutionEngine/fma3-jit.ll | 4 +- test/ExecutionEngine/frem.ll | 6 +- test/ExecutionEngine/hello.ll | 11 - test/ExecutionEngine/simplesttest.ll | 6 - .../test-interp-vec-loadstore.ll | 42 +- test/Feature/alias2.ll | 6 +- test/Feature/aliases.ll | 8 +- test/Feature/attributes.ll | 2 +- test/Feature/const_pv.ll | 2 +- test/Feature/constexpr.ll | 18 +- test/Feature/globalvars.ll | 2 +- test/Feature/md_on_instruction.ll | 45 +- test/Feature/memorymarkers.ll | 6 +- test/Feature/optnone-llc.ll | 2 +- test/Feature/optnone-opt.ll | 2 +- test/Feature/packed.ll | 4 +- test/Feature/packed_struct.ll | 10 +- test/Feature/paramattrs.ll | 2 +- test/Feature/ppcld.ll | 6 +- test/Feature/recursivetype.ll | 14 +- test/Feature/seh-nounwind.ll | 32 + test/Feature/sparcld.ll | 6 +- test/Feature/testalloca.ll | 10 +- test/Feature/testconstants.ll | 2 +- test/Feature/testvarargs.ll | 2 +- test/Feature/varargs_new.ll | 2 +- test/Feature/weak_constant.ll | 12 +- test/Feature/x86ld.ll | 6 +- test/FileCheck/same.txt | 23 + .../AddressSanitizer/X86/asm_attr.ll | 4 +- .../AddressSanitizer/X86/asm_cpuid.ll | 53 + .../AddressSanitizer/X86/bug_11395.ll | 10 +- .../AddressSanitizer/asan-vs-gvn.ll | 8 +- .../Instrumentation/AddressSanitizer/basic.ll | 18 +- .../AddressSanitizer/debug_info.ll | 50 +- .../do-not-instrument-promotable-allocas.ll | 21 + .../AddressSanitizer/experiment-call.ll | 113 + .../AddressSanitizer/experiment.ll | 113 + .../AddressSanitizer/freebsd.ll | 2 +- .../AddressSanitizer/global_metadata.ll | 10 +- .../instrument-dynamic-allocas.ll | 5 +- .../AddressSanitizer/instrument-stack.ll | 48 + .../AddressSanitizer/instrument_global.ll | 10 +- .../instrument_load_then_store.ll | 2 +- .../instrumentation-with-call-threshold.ll | 8 +- .../AddressSanitizer/lifetime-uar.ll | 4 +- .../AddressSanitizer/lifetime.ll | 5 + .../AddressSanitizer/stack-poisoning.ll | 4 +- .../AddressSanitizer/stack_dynamic_alloca.ll | 6 +- .../AddressSanitizer/stack_layout.ll | 18 + .../AddressSanitizer/test64.ll | 2 +- .../Instrumentation/AddressSanitizer/ubsan.ll | 8 +- .../BoundsChecking/many-trap.ll | 4 +- test/Instrumentation/BoundsChecking/phi.ll | 24 +- .../BoundsChecking/simple-32.ll | 8 +- test/Instrumentation/BoundsChecking/simple.ll | 48 +- .../DataFlowSanitizer/abilist.ll | 20 +- .../DataFlowSanitizer/debug-nonzero-labels.ll | 4 +- .../DataFlowSanitizer/debug.ll | 18 +- .../Instrumentation/DataFlowSanitizer/load.ll | 58 +- .../DataFlowSanitizer/store.ll | 52 +- .../Instrumentation/InstrProfiling/linkage.ll | 46 + .../InstrProfiling/noruntime.ll | 4 +- .../InstrProfiling/platform.ll | 2 +- .../InstrProfiling/profiling.ll | 10 +- .../MemorySanitizer/array_types.ll | 16 +- .../MemorySanitizer/atomics.ll | 24 +- .../MemorySanitizer/check-constant-shadow.ll | 40 +- .../MemorySanitizer/check_access_address.ll | 4 +- .../instrumentation-with-call-threshold.ll | 4 +- .../MemorySanitizer/missing_origin.ll | 2 +- .../MemorySanitizer/msan_basic.ll | 74 +- .../MemorySanitizer/store-long-origin.ll | 89 + .../MemorySanitizer/store-origin.ll | 30 +- .../MemorySanitizer/unreachable.ll | 2 +- .../MemorySanitizer/vector_cvt.ll | 2 +- .../SanitizerCoverage/cmp-tracing.ll | 13 + .../SanitizerCoverage/coverage-dbg.ll | 36 +- .../SanitizerCoverage/coverage.ll | 48 +- .../SanitizerCoverage/coverage2-dbg.ll | 36 +- .../Instrumentation/ThreadSanitizer/atomic.ll | 40 +- .../ThreadSanitizer/capture.ll | 91 + .../ThreadSanitizer/no_sanitize_thread.ll | 8 +- .../ThreadSanitizer/read_before_write.ll | 4 +- .../ThreadSanitizer/read_from_global.ll | 12 +- .../ThreadSanitizer/tsan-vs-gvn.ll | 4 +- .../ThreadSanitizer/tsan_basic.ll | 9 +- .../ThreadSanitizer/unaligned.ll | 143 + .../ThreadSanitizer/vptr_read.ll | 2 +- test/Integer/2007-01-19-TruncSext.ll | 10 +- test/Integer/BitPacked.ll | 4 +- test/Integer/constexpr_bt.ll | 18 +- test/Integer/packed_bt.ll | 4 +- test/Integer/packed_struct_bt.ll | 10 +- test/JitListener/multiple.ll | 80 +- test/JitListener/simple.ll | 26 +- test/LTO/ARM/inline-asm.ll | 9 + test/LTO/ARM/lit.local.cfg | 2 + test/LTO/ARM/runtime-library-subtarget.ll | 18 + test/LTO/{ => X86}/Inputs/bcsection.macho.s | 0 test/LTO/{ => X86}/Inputs/bcsection.s | 0 test/LTO/{ => X86}/Inputs/invalid.ll.bc | Bin test/LTO/{ => X86}/Inputs/list-symbols.ll | 0 test/LTO/{ => X86}/attrs.ll | 0 test/LTO/{ => X86}/bcsection.ll | 0 test/LTO/{ => X86}/cfi_endproc.ll | 4 +- test/LTO/{ => X86}/current-section.ll | 0 .../{ => X86}/diagnostic-handler-remarks.ll | 0 test/LTO/{ => X86}/invalid.ll | 0 .../keep-used-puts-during-instcombine.ll | 4 +- test/LTO/{ => X86}/linkonce_odr_func.ll | 6 +- test/LTO/{ => X86}/list-symbols.ll | 0 test/LTO/{ => X86}/lit.local.cfg | 0 .../no-undefined-puts-when-implemented.ll | 4 +- test/LTO/{ => X86}/private-symbol.ll | 0 test/LTO/{ => X86}/runtime-library.ll | 0 test/LTO/X86/set-merged.ll | 36 + test/LTO/{ => X86}/symver-asm.ll | 0 test/LTO/{ => X86}/triple-init.ll | 0 test/LTO/jump-table-type.ll | 23 - test/Linker/2002-08-20-ConstantExpr.ll | 2 +- test/Linker/2004-05-07-TypeResolution1.ll | 2 +- test/Linker/2004-05-07-TypeResolution2.ll | 4 +- test/Linker/2008-03-05-AliasReference.ll | 2 +- test/Linker/2009-09-03-mdnode.ll | 8 +- test/Linker/2009-09-03-mdnode2.ll | 8 +- test/Linker/2011-08-04-DebugLoc.ll | 20 +- test/Linker/2011-08-04-DebugLoc2.ll | 20 +- test/Linker/2011-08-04-Metadata.ll | 28 +- test/Linker/2011-08-04-Metadata2.ll | 20 +- test/Linker/2011-08-18-unique-class-type.ll | 32 +- test/Linker/2011-08-18-unique-class-type2.ll | 32 +- test/Linker/2011-08-18-unique-debug-type.ll | 22 +- test/Linker/2011-08-18-unique-debug-type2.ll | 20 +- test/Linker/2011-08-22-ResolveAlias.ll | 89 - test/Linker/2011-08-22-ResolveAlias2.ll | 146 - test/Linker/AppendingLinkage.ll | 4 +- test/Linker/DbgDeclare.ll | 45 +- test/Linker/DbgDeclare2.ll | 69 +- test/Linker/Inputs/PR11464.b.ll | 2 +- test/Linker/Inputs/apple-version/1.ll | 1 + test/Linker/Inputs/apple-version/2.ll | 1 + test/Linker/Inputs/apple-version/3.ll | 1 + test/Linker/Inputs/apple-version/4.ll | 1 + test/Linker/Inputs/basiclink.b.ll | 2 +- test/Linker/Inputs/comdat5.ll | 2 +- test/Linker/Inputs/drop-debug.bc | Bin 0 -> 1152 bytes test/Linker/Inputs/linkage.b.ll | 2 +- test/Linker/Inputs/mdlocation.ll | 20 +- test/Linker/Inputs/metadata-function.ll | 13 + test/Linker/Inputs/opaque.ll | 2 +- .../Inputs/override-different-linkage.ll | 4 + .../override-with-internal-linkage-2.ll | 4 + .../Inputs/override-with-internal-linkage.ll | 4 + test/Linker/Inputs/override.ll | 4 + test/Linker/Inputs/pr22807-1.ll | 6 + test/Linker/Inputs/pr22807-2.ll | 6 + ...laced-function-matches-first-subprogram.ll | 18 +- .../Inputs/subprogram-linkonce-weak-odr.ll | 15 + .../Linker/Inputs/subprogram-linkonce-weak.ll | 16 + test/Linker/Inputs/targettriple-a.ll | 2 +- test/Linker/Inputs/targettriple-b.ll | 2 +- test/Linker/Inputs/targettriple-c.ll | 1 + test/Linker/Inputs/testlink.ll | 4 +- .../Inputs/type-unique-inheritance-a.ll | 52 +- .../Inputs/type-unique-inheritance-b.ll | 68 +- test/Linker/Inputs/type-unique-simple2-a.ll | 38 +- test/Linker/Inputs/type-unique-simple2-b.ll | 48 +- test/Linker/apple-version.ll | 24 + test/Linker/broken.ll | 8 + test/Linker/comdat3.ll | 5 - test/Linker/comdat6.ll | 2 +- test/Linker/datalayout.ll | 5 +- test/Linker/debug-info-version-a.ll | 12 +- test/Linker/debug-info-version-b.ll | 2 +- test/Linker/drop-debug.ll | 6 + test/Linker/link-global-to-func.ll | 2 +- test/Linker/mdlocation.ll | 54 +- test/Linker/metadata-function.ll | 26 + test/Linker/module-flags-3-b.ll | 3 +- test/Linker/module-flags-4-b.ll | 3 +- test/Linker/opaque.ll | 2 +- test/Linker/override-different-linkage.ll | 19 + .../override-with-internal-linkage-2.ll | 23 + test/Linker/override-with-internal-linkage.ll | 25 + test/Linker/override.ll | 19 + test/Linker/partial-type-refinement-link.ll | 2 +- test/Linker/partial-type-refinement.ll | 4 +- test/Linker/pr22807.ll | 13 + ...laced-function-matches-first-subprogram.ll | 46 +- test/Linker/subprogram-linkonce-weak-odr.ll | 177 + test/Linker/subprogram-linkonce-weak.ll | 171 + test/Linker/targettriple.ll | 15 +- test/Linker/testlink.ll | 12 +- test/Linker/type-unique-odr-a.ll | 45 +- test/Linker/type-unique-odr-b.ll | 47 +- test/Linker/type-unique-simple-a.ll | 34 +- test/Linker/type-unique-simple-b.ll | 44 +- test/Linker/type-unique-simple2-a.ll | 81 +- test/Linker/type-unique-simple2-b.ll | 68 +- test/Linker/type-unique-src-type.ll | 4 +- test/Linker/type-unique-type-array-a.ll | 72 +- test/Linker/type-unique-type-array-b.ll | 72 +- test/MC/AArch64/arm64-elf-reloc-condbr.s | 2 +- test/MC/AArch64/arm64-fp-encoding-error.s | 8 + test/MC/AArch64/armv8.1a-lor.s | 79 + test/MC/AArch64/armv8.1a-pan.s | 30 + test/MC/AArch64/armv8.1a-rdma.s | 154 + test/MC/AArch64/armv8.1a-vhe.s | 61 + test/MC/AArch64/basic-a64-diagnostics.s | 17 + test/MC/AArch64/basic-a64-instructions.s | 14 +- test/MC/AArch64/dot-req.s | 4 +- test/MC/AArch64/elf-extern.s | 2 +- test/MC/AArch64/elf-globaladdress.ll | 10 +- test/MC/AArch64/elf-reloc-addsubimm.s | 2 +- test/MC/AArch64/elf-reloc-ldrlit.s | 2 +- test/MC/AArch64/elf-reloc-ldstunsimm.s | 2 +- test/MC/AArch64/elf-reloc-movw.s | 2 +- test/MC/AArch64/elf-reloc-pcreladdressing.s | 2 +- test/MC/AArch64/elf-reloc-tstb.s | 2 +- test/MC/AArch64/elf-reloc-uncondbrimm.s | 2 +- test/MC/AArch64/expr-shr.s | 8 + test/MC/AArch64/inst-directive.s | 2 +- test/MC/AArch64/tls-relocs.s | 2 +- test/MC/ARM/2010-11-30-reloc-movt.s | 1 + test/MC/ARM/Windows/invalid-relocation.s | 14 + test/MC/ARM/arm-elf-symver.s | 22 +- test/MC/ARM/arm-thumb-cpus.s | 3 + test/MC/ARM/arm11-hint-instr.s | 69 + test/MC/ARM/basic-arm-instructions-v8.1a.s | 206 + test/MC/ARM/basic-arm-instructions.s | 2 + test/MC/ARM/bracket-exprs.s | 2 +- test/MC/ARM/coff-debugging-secrel.ll | 14 +- test/MC/ARM/cpu-test.s | 4 + test/MC/ARM/data-in-code.ll | 101 +- test/MC/ARM/directive-arch-armv6k.s | 34 + test/MC/ARM/directive-fpu-diagnostics.s | 10 + test/MC/ARM/dot-req.s | 3 + test/MC/ARM/dwarf-cfi-initial-state.s | 3 + test/MC/ARM/eh-compact-pr0.s | 27 +- test/MC/ARM/eh-directive-handlerdata.s | 30 +- test/MC/ARM/eh-directive-personality.s | 50 +- test/MC/ARM/eh-directive-personalityindex.s | 97 +- test/MC/ARM/eh-directive-section-comdat.s | 39 +- .../ARM/eh-directive-section-multiple-func.s | 42 +- test/MC/ARM/eh-directive-section.s | 65 +- .../eh-directive-text-section-multiple-func.s | 4 +- test/MC/ARM/eh-directive-text-section.s | 6 +- test/MC/ARM/eh-link.s | 90 + test/MC/ARM/elf-movt.s | 12 +- test/MC/ARM/elf-reloc-01.ll | 2 +- test/MC/ARM/elf-reloc-02.ll | 10 +- test/MC/ARM/elf-reloc-03.ll | 10 +- test/MC/ARM/elf-reloc-condcall.s | 2 +- test/MC/ARM/elf-thumbfunc-reloc.ll | 8 +- test/MC/ARM/elf-thumbfunc-reloc.s | 4 +- test/MC/ARM/inst-directive-emit.s | 4 +- test/MC/ARM/thumb-diagnostics.s | 6 +- test/MC/ARM/thumb1-relax-adr.s | 9 + test/MC/ARM/thumb1-relax-bcc.s | 12 + test/MC/ARM/thumb1-relax-br.s | 19 + test/MC/ARM/thumb1-relax-ldrlit.s | 9 + test/MC/ARM/thumb2-bxj-v8.s | 11 + test/MC/ARM/thumb2-bxj.s | 2 +- test/MC/ARM/thumb2-diagnostics.s | 5 +- test/MC/ARM/thumb2-dsp-diag.s | 34 + test/MC/AsmParser/at-pseudo-variable-bad.s | 23 + test/MC/AsmParser/at-pseudo-variable.s | 64 + test/MC/AsmParser/expr-shr.s | 13 + test/MC/AsmParser/ifeqs-diagnostics.s | 17 + test/MC/AsmParser/ifnes.s | 22 + test/MC/AsmParser/rename.s | 4 +- test/MC/AsmParser/section.s | 10 +- test/MC/COFF/bss_section.ll | 3 +- test/MC/COFF/const-gv-with-rel-init.ll | 2 +- test/MC/COFF/cross-section-relative.ll | 97 + .../COFF/directive-section-characteristics.ll | 6 + test/MC/COFF/global_ctors_dtors.ll | 6 +- test/MC/COFF/ir-to-imgrel.ll | 5 + test/MC/COFF/linker-options.ll | 5 +- test/MC/COFF/pr23025.s | 23 + test/MC/COFF/tricky-names.ll | 6 +- test/MC/COFF/weak-symbol.ll | 48 - .../MC/Disassembler/AArch64/arm64-advsimd.txt | 37 + test/MC/Disassembler/AArch64/armv8.1a-lor.txt | 38 + test/MC/Disassembler/AArch64/armv8.1a-pan.txt | 10 + .../MC/Disassembler/AArch64/armv8.1a-rdma.txt | 129 + test/MC/Disassembler/AArch64/armv8.1a-vhe.txt | 56 + .../AArch64/basic-a64-instructions.txt | 4 +- test/MC/Disassembler/ARM/armv8.1a.txt | 52 + test/MC/Disassembler/ARM/invalid-armv8.1a.txt | 83 + .../Disassembler/ARM/invalid-thumbv8.1a.txt | 72 + test/MC/Disassembler/ARM/neont2.txt | 6 +- test/MC/Disassembler/ARM/thumb-v8.1a.txt | 110 + test/MC/Disassembler/Hexagon/alu32_alu.txt | 42 +- test/MC/Disassembler/Hexagon/alu32_perm.txt | 10 +- test/MC/Disassembler/Hexagon/alu32_pred.txt | 138 +- test/MC/Disassembler/Hexagon/cr.txt | 26 +- test/MC/Disassembler/Hexagon/j.txt | 46 + test/MC/Disassembler/Hexagon/jr.txt | 8 + test/MC/Disassembler/Hexagon/ld.txt | 74 +- test/MC/Disassembler/Hexagon/memop.txt | 8 +- test/MC/Disassembler/Hexagon/nv_j.txt | 4 +- test/MC/Disassembler/Hexagon/nv_st.txt | 39 +- test/MC/Disassembler/Hexagon/st.txt | 16 +- test/MC/Disassembler/Hexagon/system_user.txt | 16 +- test/MC/Disassembler/Hexagon/xtype_alu.txt | 253 +- test/MC/Disassembler/Hexagon/xtype_bit.txt | 28 +- .../MC/Disassembler/Hexagon/xtype_complex.txt | 128 + test/MC/Disassembler/Hexagon/xtype_fp.txt | 38 +- test/MC/Disassembler/Hexagon/xtype_mpy.txt | 204 +- test/MC/Disassembler/Hexagon/xtype_perm.txt | 92 +- test/MC/Disassembler/Hexagon/xtype_pred.txt | 74 +- test/MC/Disassembler/Hexagon/xtype_shift.txt | 90 +- test/MC/Disassembler/Mips/micromips.txt | 30 + test/MC/Disassembler/Mips/micromips32r6.txt | 99 + test/MC/Disassembler/Mips/micromips_le.txt | 30 + .../Disassembler/Mips/mips3/valid-mips3.txt | 2 + .../Mips/mips32r2/valid-mips32r2-le.txt | 3 + .../Mips/mips32r2/valid-mips32r2.txt | 3 + .../Mips/mips32r3/valid-mips32r3-le.txt | 169 + .../Mips/mips32r3/valid-mips32r3.txt | 169 + .../Mips/mips32r3/valid-xfail-mips32r3.txt | 83 + .../Mips/mips32r5/valid-mips32r5-le.txt | 169 + .../Mips/mips32r5/valid-mips32r5.txt | 169 + .../Mips/mips32r5/valid-xfail-mips32r5.txt | 83 + .../Mips/mips32r6/valid-xfail-mips32r6.txt | 2 +- .../Disassembler/Mips/mips4/valid-mips4.txt | 2 + .../Disassembler/Mips/mips64/valid-mips64.txt | 2 + .../Mips/mips64r2/valid-mips64r2-el.txt | 3 + .../Mips/mips64r2/valid-mips64r2.txt | 5 + .../Mips/mips64r2/valid-xfail-mips64r2.txt | 2 +- .../Mips/mips64r3/valid-mips64r3-el.txt | 234 + .../Mips/mips64r3/valid-mips64r3.txt | 236 + .../Mips/mips64r3/valid-xfail-mips64r3.txt | 76 + .../Mips/mips64r5/valid-mips64r5-el.txt | 234 + .../Mips/mips64r5/valid-mips64r5.txt | 236 + .../Mips/mips64r5/valid-xfail-mips64r5.txt | 76 + .../Mips/mips64r6/valid-mips64r6-el.txt | 192 +- .../Mips/mips64r6/valid-mips64r6.txt | 194 +- .../Mips/mips64r6/valid-xfail-mips64r6.txt | 2 +- test/MC/Disassembler/PowerPC/dcbt.txt | 20 + .../PowerPC/ppc64-encoding-4xx.txt | 8 +- .../PowerPC/ppc64-encoding-bookII.txt | 48 +- .../PowerPC/ppc64-encoding-bookIII.txt | 10 +- .../PowerPC/ppc64-encoding-ext.txt | 854 +- .../PowerPC/ppc64-encoding-fp.txt | 18 + .../PowerPC/ppc64-encoding-p8vector.txt | 19 + .../PowerPC/ppc64-encoding-vmx.txt | 153 + .../Disassembler/PowerPC/ppc64-encoding.txt | 58 +- .../Disassembler/PowerPC/ppc64-operands.txt | 4 +- test/MC/Disassembler/PowerPC/qpx.txt | 371 + test/MC/Disassembler/PowerPC/vsx.txt | 77 +- test/MC/Disassembler/Sparc/sparc-mem.txt | 60 + .../Sparc/sparc-special-registers.txt | 34 + test/MC/Disassembler/Sparc/sparc.txt | 6 +- .../MC/Disassembler/SystemZ/insns-z13-bad.txt | 39 + test/MC/Disassembler/SystemZ/insns-z13.txt | 3315 + test/MC/Disassembler/SystemZ/insns.txt | 174 + test/MC/Disassembler/X86/avx-512.txt | 30 + test/MC/Disassembler/X86/simple-tests.txt | 6 + test/MC/Disassembler/X86/x86-16.txt | 2 +- test/MC/Disassembler/X86/x86-32.txt | 26 +- test/MC/Disassembler/X86/x86-64.txt | 65 +- test/MC/ELF/alias-to-local.s | 18 + test/MC/ELF/alias.s | 12 + test/MC/ELF/align.s | 2 +- test/MC/ELF/basic-elf-32.s | 2 +- test/MC/ELF/basic-elf-64.s | 2 +- test/MC/ELF/bracket-exprs.s | 2 +- test/MC/ELF/cfi-adjust-cfa-offset.s | 36 +- test/MC/ELF/cfi-advance-loc2.s | 8 +- test/MC/ELF/cfi-def-cfa-offset.s | 16 +- test/MC/ELF/cfi-def-cfa-register.s | 8 +- test/MC/ELF/cfi-def-cfa.s | 8 +- test/MC/ELF/cfi-escape.s | 14 +- test/MC/ELF/cfi-large-model.s | 2 +- test/MC/ELF/cfi-offset.s | 8 +- test/MC/ELF/cfi-register.s | 14 +- test/MC/ELF/cfi-rel-offset.s | 14 +- test/MC/ELF/cfi-rel-offset2.s | 14 +- test/MC/ELF/cfi-remember.s | 14 +- test/MC/ELF/cfi-restore.s | 14 +- test/MC/ELF/cfi-same-value.s | 14 +- test/MC/ELF/cfi-sections.s | 27 +- test/MC/ELF/cfi-signal-frame.s | 4 +- test/MC/ELF/cfi-undefined.s | 14 +- test/MC/ELF/cfi-version.ll | 36 +- test/MC/ELF/cfi-window-save.s | 8 +- test/MC/ELF/cfi-zero-addr-delta.s | 8 +- test/MC/ELF/cfi.s | 84 +- test/MC/ELF/comdat-dup-group-name.s | 14 +- test/MC/ELF/comdat-reloc.s | 6 +- test/MC/ELF/comdat.s | 40 +- test/MC/ELF/common-error1.s | 6 + test/MC/ELF/common-error2.s | 6 + test/MC/ELF/common.s | 2 +- test/MC/ELF/common2.s | 2 +- test/MC/ELF/compression.s | 1 - test/MC/ELF/debug-line.s | 2 +- test/MC/ELF/debug-loc.s | 4 +- test/MC/ELF/empty-dwarf-lines.s | 4 +- test/MC/ELF/empty.s | 53 +- test/MC/ELF/entsize.ll | 8 +- test/MC/ELF/entsize.s | 12 +- test/MC/ELF/file-double.s | 4 +- test/MC/ELF/file.s | 6 +- test/MC/ELF/gen-dwarf.s | 1 + test/MC/ELF/ifunc-reloc.s | 2 +- test/MC/ELF/lcomm.s | 4 +- test/MC/ELF/local-reloc.s | 2 +- test/MC/ELF/many-sections-2.s | 9 +- test/MC/ELF/many-sections.s | 8 +- test/MC/ELF/merge.s | 2 +- test/MC/ELF/n_bytes.s | 4 +- test/MC/ELF/noexec.s | 6 +- test/MC/ELF/norelocation.s | 25 +- test/MC/ELF/pr19430.s | 2 +- test/MC/ELF/pr19582.s | 8 + test/MC/ELF/relax.s | 2 +- test/MC/ELF/relocation-386.s | 15 +- test/MC/ELF/relocation-pc.s | 17 +- test/MC/ELF/relocation.s | 30 +- test/MC/ELF/rename.s | 41 +- test/MC/ELF/section-sym.s | 12 +- test/MC/ELF/section-sym2.s | 2 +- test/MC/ELF/section-unique-err1.s | 5 + test/MC/ELF/section-unique-err2.s | 5 + test/MC/ELF/section-unique-err3.s | 5 + test/MC/ELF/section-unique-err4.s | 5 + test/MC/ELF/section-unique.s | 39 + test/MC/ELF/section.s | 32 +- test/MC/ELF/size.s | 15 + test/MC/ELF/strtab-suffix-opt.s | 6 +- test/MC/ELF/symver-msvc.s | 59 + test/MC/ELF/symver.s | 2 +- test/MC/ELF/tls.s | 2 +- test/MC/ELF/type-propagate.s | 20 +- test/MC/ELF/type.s | 52 +- test/MC/ELF/weak-diff.s | 26 + test/MC/ELF/weakref-reloc.s | 6 +- test/MC/ELF/weakref.s | 26 +- test/MC/Hexagon/inst_select.ll | 2 +- test/MC/MachO/AArch64/classrefs.s | 25 + test/MC/MachO/AArch64/cstexpr-gotpcrel.ll | 92 + test/MC/MachO/AArch64/ld64-workaround.s | 68 + test/MC/MachO/AArch64/mergeable.s | 61 + test/MC/MachO/ARM/aliased-symbols.s | 10 +- test/MC/MachO/ARM/cstexpr-gotpcrel.ll | 74 + test/MC/MachO/cstexpr-gotpcrel-32.ll | 74 + test/MC/MachO/cstexpr-gotpcrel-64.ll | 86 + test/MC/MachO/tlv-bss.ll | 2 +- test/MC/MachO/x86-data-in-code.ll | 2 +- test/MC/MachO/x86_64-mergeable.s | 59 + test/MC/MachO/x86_64-symbols.s | 6 + test/MC/Mips/asciiz-directive-bad.s | 8 + test/MC/Mips/asciiz-directive.s | 28 + test/MC/Mips/cpload.s | 2 +- test/MC/Mips/cpsetup-bad.s | 8 + test/MC/Mips/cpsetup.s | 45 +- test/MC/Mips/do_switch3.s | 2 +- test/MC/Mips/eh-frame.s | 8 +- test/MC/Mips/elf-bigendian.ll | 6 +- test/MC/Mips/elf-tls.s | 2 +- test/MC/Mips/elf_eflags.s | 34 +- test/MC/Mips/elf_reginfo.s | 4 +- test/MC/Mips/expr1.s | 46 +- test/MC/Mips/insn-directive.s | 98 + test/MC/Mips/micromips-16-bit-instructions.s | 16 + test/MC/Mips/micromips-alias.s | 12 + test/MC/Mips/micromips-alu-instructions.s | 9 + ...ps-branch16.s => micromips-branch-fixup.s} | 26 +- test/MC/Mips/micromips-branch-instructions.s | 12 +- test/MC/Mips/micromips-branch7.s | 27 - test/MC/Mips/micromips-diagnostic-fixup.s | 2 +- test/MC/Mips/micromips-expansions.s | 4 +- test/MC/Mips/micromips-expressions.s | 35 - test/MC/Mips/micromips-invalid.s | 7 + test/MC/Mips/micromips-jump-instructions.s | 15 + .../Mips/micromips-loadstore-instructions.s | 27 + test/MC/Mips/micromips32r6/valid.s | 50 + test/MC/Mips/mips-abi-bad.s | 6 - test/MC/Mips/mips-data-directives.s | 4 +- test/MC/Mips/mips-expansions-bad.s | 26 +- test/MC/Mips/mips-expansions.s | 53 +- test/MC/Mips/mips-jump-delay-slots.s | 6 + test/MC/Mips/mips-noat.s | 4 + test/MC/Mips/mips-reginfo-fp64.s | 4 +- test/MC/Mips/mips1/invalid-mips3.s | 3 + test/MC/Mips/mips1/valid.s | 10 +- test/MC/Mips/mips2/invalid-mips3.s | 3 + test/MC/Mips/mips2/valid.s | 10 +- test/MC/Mips/mips3/valid.s | 13 +- test/MC/Mips/mips32/invalid-mips64.s | 3 + test/MC/Mips/mips32/valid.s | 10 +- test/MC/Mips/mips32r2/valid.s | 10 +- test/MC/Mips/mips32r3/abiflags.s | 37 + test/MC/Mips/mips32r3/invalid-mips64r2.s | 10 + test/MC/Mips/mips32r3/invalid.s | 10 + test/MC/Mips/mips32r3/valid-xfail.s | 308 + test/MC/Mips/mips32r3/valid.s | 244 + test/MC/Mips/mips32r5/abiflags.s | 37 + test/MC/Mips/mips32r5/invalid-mips64r2.s | 10 + test/MC/Mips/mips32r5/invalid.s | 10 + test/MC/Mips/mips32r5/valid-xfail.s | 308 + test/MC/Mips/mips32r5/valid.s | 244 + test/MC/Mips/mips32r6/valid.s | 10 +- test/MC/Mips/mips4/valid.s | 13 +- test/MC/Mips/mips5/valid.s | 13 +- test/MC/Mips/mips64-expansions.s | 398 +- test/MC/Mips/mips64-register-names-n32-n64.s | 2 +- test/MC/Mips/mips64-register-names-o32.s | 2 +- test/MC/Mips/mips64/valid.s | 13 +- test/MC/Mips/mips64extins.ll | 2 +- test/MC/Mips/mips64r2/valid.s | 13 +- test/MC/Mips/mips64r3/abi-bad.s | 5 + test/MC/Mips/mips64r3/abiflags.s | 36 + test/MC/Mips/mips64r3/invalid.s | 10 + test/MC/Mips/mips64r3/valid-xfail.s | 306 + test/MC/Mips/mips64r3/valid.s | 316 + test/MC/Mips/mips64r5/abi-bad.s | 5 + test/MC/Mips/mips64r5/abiflags.s | 36 + test/MC/Mips/mips64r5/invalid.s | 10 + test/MC/Mips/mips64r5/valid-xfail.s | 306 + test/MC/Mips/mips64r5/valid.s | 316 + test/MC/Mips/mips64r6/valid.s | 201 +- test/MC/Mips/mips_directives.s | 2 + test/MC/Mips/module-directive-bad.s | 262 + test/MC/Mips/nabi-regs.s | 4 +- test/MC/Mips/nooddspreg-cmdarg.s | 2 +- test/MC/Mips/nooddspreg.s | 2 +- test/MC/Mips/octeon-instructions.s | 21 + test/MC/Mips/oddspreg.s | 6 +- test/MC/Mips/set-arch.s | 12 + test/MC/Mips/set-at-directive-explicit-at.s | 29 +- test/MC/Mips/set-at-directive.s | 31 + test/MC/Mips/set-at-noat-bad-syntax.s | 29 + test/MC/Mips/set-defined-symbol.s | 18 + test/MC/Mips/set-mips-directives-bad.s | 12 + test/MC/Mips/set-mips-directives.s | 24 + test/MC/Mips/set-nomacro-micromips.s | 33 + test/MC/Mips/set-nomacro.s | 46 + test/MC/Mips/sort-relocation-table.s | 125 + test/MC/Mips/sym-offset.ll | 2 +- test/MC/Mips/target-soft-float.s | 331 + test/MC/Mips/xgot.s | 2 +- test/MC/PowerPC/dcbt.s | 13 + test/MC/PowerPC/htm.s | 53 + test/MC/PowerPC/ppc-reloc.s | 2 +- test/MC/PowerPC/ppc64-encoding-4xx.s | 168 +- test/MC/PowerPC/ppc64-encoding-6xx.s | 128 +- test/MC/PowerPC/ppc64-encoding-bookII.s | 120 +- test/MC/PowerPC/ppc64-encoding-bookIII.s | 20 +- test/MC/PowerPC/ppc64-encoding-ext.s | 780 +- test/MC/PowerPC/ppc64-encoding-fp.s | 39 +- test/MC/PowerPC/ppc64-encoding-p8vector.s | 26 + test/MC/PowerPC/ppc64-encoding-vmx.s | 188 +- test/MC/PowerPC/ppc64-encoding.s | 141 +- test/MC/PowerPC/ppc64-initial-cfa.s | 8 +- test/MC/PowerPC/qpx.s | 252 + test/MC/PowerPC/tls-gd-obj.s | 2 +- test/MC/PowerPC/tls-ie-obj.s | 2 +- test/MC/PowerPC/tls-ld-obj.s | 2 +- test/MC/PowerPC/vsx.s | 118 +- test/MC/R600/ds-err.s | 23 + test/MC/R600/ds.s | 337 + test/MC/R600/mubuf.s | 352 + test/MC/R600/smrd.s | 32 + test/MC/R600/sop1-err.s | 37 + test/MC/R600/sop1.s | 177 + test/MC/R600/sop2.s | 131 + test/MC/R600/sopc.s | 9 + test/MC/R600/sopk.s | 66 + test/MC/R600/sopp.s | 14 +- test/MC/R600/vop1.s | 357 + test/MC/R600/vop2-err.s | 35 + test/MC/R600/vop2.s | 421 + test/MC/R600/vop3-errs.s | 5 + test/MC/R600/vop3.s | 149 + test/MC/R600/vopc.s | 40 + test/MC/Sparc/sparc-assembly-exprs.s | 6 + test/MC/Sparc/sparc-atomic-instructions.s | 11 +- test/MC/Sparc/sparc-ctrl-instructions.s | 30 +- test/MC/Sparc/sparc-little-endian.s | 18 + test/MC/Sparc/sparc-mem-instructions.s | 32 +- test/MC/Sparc/sparc-special-registers.s | 35 + test/MC/Sparc/sparc-synthetic-instructions.s | 17 + test/MC/Sparc/sparcv9-atomic-instructions.s | 10 + test/MC/SystemZ/fixups.s | 119 + test/MC/SystemZ/insn-bad-z13.s | 1201 + test/MC/SystemZ/insn-bad-z196.s | 41 + test/MC/SystemZ/insn-bad-zEC12.s | 1578 + test/MC/SystemZ/insn-bad.s | 5 + test/MC/SystemZ/insn-good-z13.s | 5039 ++ test/MC/SystemZ/insn-good-z196.s | 10 + test/MC/SystemZ/insn-good-zEC12.s | 126 + test/MC/SystemZ/tokens.s | 20 +- .../bundle-group-too-large-error.s | 1 + .../X86/AlignedBundling/different-sections.s | 2 + test/MC/X86/AlignedBundling/labeloffset.s | 2 + test/MC/X86/AlignedBundling/long-nop-pad.s | 2 + test/MC/X86/AlignedBundling/nesting.s | 2 + .../AlignedBundling/pad-align-to-bundle-end.s | 2 + .../X86/AlignedBundling/pad-bundle-groups.s | 2 + .../X86/AlignedBundling/relax-at-bundle-end.s | 2 + .../AlignedBundling/relax-in-bundle-group.s | 2 + .../X86/AlignedBundling/section-alignment.s | 23 + .../AlignedBundling/single-inst-bundling.s | 13 +- test/MC/X86/avx512-encodings.s | 2915 +- test/MC/X86/avx512-err.s | 6 + test/MC/X86/avx512bw-encoding.s | 209 + test/MC/X86/avx512vl-encoding.s | 444 + test/MC/X86/expand-var.s | 18 + test/MC/X86/i386-darwin-frame-register.ll | 38 + test/MC/X86/intel-syntax-avx512.s | 174 +- test/MC/X86/intel-syntax-x86-64-avx512f_vl.s | 225 + test/MC/X86/intel-syntax.s | 4 +- test/MC/X86/invalid-sleb.s | 5 + test/MC/X86/reloc-undef-global.s | 2 +- test/MC/X86/stackmap-nops.ll | 34 +- test/MC/X86/x86-16.s | 2 +- test/MC/X86/x86-32-avx.s | 300 +- test/MC/X86/x86-32-coverage.s | 9550 +-- test/MC/X86/x86-32.s | 18 +- test/MC/X86/x86-64-avx512bw.s | 2289 + test/MC/X86/x86-64-avx512bw_vl.s | 3992 ++ test/MC/X86/x86-64-avx512dq.s | 1031 + test/MC/X86/x86-64-avx512dq_vl.s | 1857 + test/MC/X86/x86-64-avx512f_vl.s | 3546 ++ test/MC/X86/x86-64.s | 2 +- test/MC/X86/x86_64-avx-encoding.s | 676 +- test/MC/X86/x86_64-encoding.s | 12 +- test/MC/X86/x86_64-xop-encoding.s | 64 + test/MC/X86/x86_errors.s | 8 + test/Makefile | 7 +- .../AArch64/yaml2obj-elf-aarch64-rel.yaml | 2 - .../Inputs/archive-test.a-irix6-mips64el | Bin 0 -> 6608 bytes .../Inputs/macho-empty-kext-bundle-x86-64 | Bin 0 -> 4288 bytes .../Inputs/macho-invalid-bad-symbol-index | Bin 0 -> 4536 bytes .../Inputs/macho-invalid-no-size-for-sections | Bin 0 -> 104 bytes ...ho-invalid-section-index-getSectionRawName | Bin 0 -> 4536 bytes .../Inputs/macho-invalid-symbol-name-past-eof | Bin 0 -> 4536 bytes .../macho-invalid-too-small-load-command | Bin 0 -> 36 bytes ...cho-invalid-too-small-segment-load-command | Bin 0 -> 104 bytes ...ho-zero-ncmds => macho-invalid-zero-ncmds} | Bin .../macho64-invalid-incomplete-load-command | Bin 0 -> 36 bytes .../macho64-invalid-no-size-for-sections | Bin 0 -> 104 bytes .../macho64-invalid-too-small-load-command | Bin 0 -> 40 bytes ...o64-invalid-too-small-segment-load-command | Bin 0 -> 104 bytes test/Object/Inputs/program-headers.mips | Bin 648 -> 992 bytes test/Object/Inputs/sectionGroup.elf.x86-64 | Bin 0 -> 1512 bytes test/Object/Inputs/trivial.ll | 2 +- test/Object/Mips/abi-flags.yaml | 63 + test/Object/Mips/elf-abi.yaml | 136 + test/Object/Mips/elf-flags.yaml | 52 + test/Object/Mips/elf-mips64-rel.yaml | 113 + test/Object/archive-delete.test | 2 - test/Object/archive-extract-dir.test | 4 +- test/Object/archive-format.test | 11 +- test/Object/archive-move.test | 2 - test/Object/archive-update.test | 2 - test/Object/elf-unknown-type.test | 10 + test/Object/extract.ll | 2 - test/Object/kext.test | 7 + test/Object/macho-invalid.test | 38 + test/Object/nm-irix6.test | 27 + test/Object/nm-trivial-object.test | 46 +- test/Object/obj2yaml-sectiongroup.test | 26 + test/Object/obj2yaml.test | 15 +- test/Object/objdump-macho-quirks.test | 9 - test/Object/objdump-symbol-table.test | 4 +- test/Object/yaml2obj-elf-rel-noref.yaml | 77 + test/Other/2004-08-16-PackedGlobalConstant.ll | 2 +- test/Other/2004-08-16-PackedSelect.ll | 2 +- test/Other/2004-08-16-PackedSimple.ll | 2 +- test/Other/2004-08-20-PackedControlFlow.ll | 2 +- test/Other/2007-09-10-PassManager.ll | 6 +- test/Other/2008-06-04-FieldSizeInPacked.ll | 4 +- test/Other/2009-03-31-CallGraph.ll | 2 + test/Other/Inputs/utf8-bom-response | 1 + test/Other/Inputs/utf8-response | 1 + test/Other/ResponseFile.ll | 5 + .../Other/constant-fold-gep-address-spaces.ll | 152 +- test/Other/constant-fold-gep.ll | 304 +- test/Other/lint.ll | 26 +- test/Other/new-pass-manager.ll | 34 + test/Other/opt-override-mcpu-mattr.ll | 13 + test/Other/optimization-remarks-inline.ll | 8 +- test/TableGen/AsmPredicateCondsEmission.td | 31 + test/TableGen/MultiClassDefName.td | 42 + test/TableGen/intrinsic-varargs.td | 2 +- .../ADCE/2002-05-23-ZeroArgPHITest.ll | 6 +- test/Transforms/ADCE/2002-05-28-Crash.ll | 10 +- .../ADCE/2002-07-17-AssertionFailure.ll | 2 +- .../ADCE/2002-07-17-PHIAssertion.ll | 6 +- test/Transforms/ADCE/2003-06-11-InvalidCFG.ll | 2 +- .../ADCE/2003-06-24-BadSuccessor.ll | 6 +- .../ADCE/2003-06-24-BasicFunctionality.ll | 8 +- test/Transforms/ADCE/basictest1.ll | 36 +- test/Transforms/ADCE/basictest2.ll | 36 +- test/Transforms/AddDiscriminators/basic.ll | 37 +- .../AddDiscriminators/first-only.ll | 57 +- test/Transforms/AddDiscriminators/multiple.ll | 47 +- .../AddDiscriminators/no-discriminators.ll | 45 +- .../AlignmentFromAssumptions/simple.ll | 44 +- .../AlignmentFromAssumptions/simple32.ll | 44 +- .../AlignmentFromAssumptions/start-unk.ll | 8 +- .../2008-02-01-ReturnAttrs.ll | 2 +- .../2008-07-02-array-indexing.ll | 6 +- .../ArgumentPromotion/aggregate-promote.ll | 8 +- test/Transforms/ArgumentPromotion/attrs.ll | 8 +- .../Transforms/ArgumentPromotion/basictest.ll | 4 +- test/Transforms/ArgumentPromotion/byval-2.ll | 8 +- test/Transforms/ArgumentPromotion/byval.ll | 8 +- test/Transforms/ArgumentPromotion/chained.ll | 4 +- .../ArgumentPromotion/control-flow.ll | 2 +- .../ArgumentPromotion/control-flow2.ll | 7 +- test/Transforms/ArgumentPromotion/crash.ll | 8 +- test/Transforms/ArgumentPromotion/dbg.ll | 15 +- test/Transforms/ArgumentPromotion/fp80.ll | 12 +- test/Transforms/ArgumentPromotion/inalloca.ll | 12 +- .../ArgumentPromotion/reserve-tbaa.ll | 12 +- test/Transforms/ArgumentPromotion/variadic.ll | 2 +- test/Transforms/BBVectorize/X86/loop1.ll | 10 +- test/Transforms/BBVectorize/X86/pr15289.ll | 20 +- test/Transforms/BBVectorize/X86/sh-rec.ll | 18 +- test/Transforms/BBVectorize/X86/sh-rec2.ll | 64 +- test/Transforms/BBVectorize/X86/sh-rec3.ll | 112 +- .../BBVectorize/X86/simple-ldstr.ll | 18 +- test/Transforms/BBVectorize/X86/wr-aliases.ll | 88 +- test/Transforms/BBVectorize/func-alias.ll | 150 +- test/Transforms/BBVectorize/ld1.ll | 24 +- test/Transforms/BBVectorize/loop1.ll | 30 +- test/Transforms/BBVectorize/mem-op-depth.ll | 18 +- test/Transforms/BBVectorize/metadata.ll | 28 +- test/Transforms/BBVectorize/no-ldstr-conn.ll | 10 +- .../BBVectorize/simple-ldstr-ptrs.ll | 104 +- test/Transforms/BBVectorize/simple-ldstr.ll | 98 +- test/Transforms/BBVectorize/simple3.ll | 16 +- test/Transforms/BDCE/basic.ll | 348 + test/Transforms/BDCE/dce-pure.ll | 33 + test/Transforms/BDCE/order.ll | 37 + .../2004-03-14-DominanceProblem.ll | 2 +- .../CodeGenPrepare/R600/lit.local.cfg | 3 + .../R600/no-sink-addrspacecast.ll | 49 + .../CodeGenPrepare/X86/extend-sink-hoist.ll | 8 +- .../X86/memset_chk-simplify-nobuiltin.ll | 18 + .../CodeGenPrepare/X86/sink-addrspacecast.ll | 6 +- .../CodeGenPrepare/overflow-intrinsics.ll | 74 + .../CodeGenPrepare/statepoint-relocate.ll | 88 + .../ConstProp/2005-01-28-SetCCGEP.ll | 2 +- .../ConstProp/2009-09-01-GEP-Crash.ll | 2 +- test/Transforms/ConstProp/InsertElement.ll | 32 + .../Transforms/ConstProp/convert-from-fp16.ll | 97 + test/Transforms/ConstProp/div-zero.ll | 2 +- test/Transforms/ConstProp/insertvalue.ll | 9 + test/Transforms/ConstProp/loads.ll | 38 +- .../ConstantHoisting/AArch64/const-addr.ll | 18 +- .../PowerPC/const-base-addr.ll | 14 +- .../ConstantHoisting/PowerPC/masks.ll | 4 +- .../ConstantHoisting/X86/cast-inst.ll | 12 +- .../ConstantHoisting/X86/const-base-addr.ll | 14 +- .../X86/delete-dead-cast-inst.ll | 12 +- .../ConstantHoisting/X86/stackmap.ll | 4 +- .../ConstantMerge/2002-09-23-CPR-Update.ll | 4 +- test/Transforms/ConstantMerge/merge-both.ll | 7 +- .../CorrelatedValuePropagation/basic.ll | 4 +- .../CorrelatedValuePropagation/non-null.ll | 2 +- .../CorrelatedValuePropagation/select.ll | 53 + .../DeadArgElim/2007-10-18-VarargsReturn.ll | 2 +- .../DeadArgElim/2007-12-20-ParamAttrs.ll | 2 +- .../2008-01-16-VarargsParamAttrs.ll | 4 +- .../DeadArgElim/2010-04-30-DbgInfo.ll | 78 +- .../2013-05-17-VarargsAndBlockAddress.ll | 2 +- test/Transforms/DeadArgElim/aggregates.ll | 162 + test/Transforms/DeadArgElim/dbginfo.ll | 34 +- test/Transforms/DeadArgElim/dead_vaargs.ll | 14 +- test/Transforms/DeadArgElim/deadexternal.ll | 4 +- test/Transforms/DeadArgElim/deadretval2.ll | 2 +- test/Transforms/DeadArgElim/keepalive.ll | 2 +- .../Transforms/DeadArgElim/variadic_safety.ll | 8 +- .../2011-03-25-DSEMiscompile.ll | 6 +- .../2011-09-06-EndOfFunction.ll | 6 +- .../DeadStoreElimination/2011-09-06-MemCpy.ll | 12 +- .../DeadStoreElimination/OverwriteStoreEnd.ll | 18 +- .../DeadStoreElimination/PartialStore.ll | 10 +- .../Transforms/DeadStoreElimination/atomic.ll | 56 +- .../DeadStoreElimination/const-pointers.ll | 6 +- test/Transforms/DeadStoreElimination/crash.ll | 20 +- .../DeadStoreElimination/cs-cs-aliasing.ll | 16 +- .../DeadStoreElimination/dominate.ll | 2 +- test/Transforms/DeadStoreElimination/free.ll | 6 +- .../DeadStoreElimination/inst-limits.ll | 20 +- .../DeadStoreElimination/libcalls.ll | 14 +- .../DeadStoreElimination/lifetime.ll | 2 +- .../DeadStoreElimination/no-targetdata.ll | 2 +- .../DeadStoreElimination/pr11390.ll | 6 +- .../Transforms/DeadStoreElimination/simple.ll | 56 +- .../Transforms/EarlyCSE/AArch64/intrinsics.ll | 232 + .../Transforms/EarlyCSE/AArch64/lit.local.cfg | 5 + test/Transforms/EarlyCSE/basic.ll | 35 +- test/Transforms/EarlyCSE/conditional.ll | 107 + test/Transforms/EarlyCSE/edge.ll | 173 + test/Transforms/EarlyCSE/read-reg.ll | 34 + test/Transforms/Float2Int/basic.ll | 256 + .../Transforms/Float2Int/float2int-optnone.ll | 17 + test/Transforms/Float2Int/toolarge.ll | 16 + .../FunctionAttrs/2008-09-03-ReadNone.ll | 2 +- .../FunctionAttrs/2008-09-13-VolatileRead.ll | 2 +- .../FunctionAttrs/2008-12-29-Constant.ll | 2 +- .../FunctionAttrs/2009-01-02-LocalStores.ll | 2 +- .../FunctionAttrs/2010-10-30-volatile.ll | 2 +- test/Transforms/FunctionAttrs/atomic.ll | 4 +- test/Transforms/FunctionAttrs/nocapture.ll | 14 +- .../FunctionAttrs/optnone-simple.ll | 24 +- test/Transforms/FunctionAttrs/readattrs.ll | 2 +- test/Transforms/FunctionAttrs/readnone.ll | 13 + .../GCOVProfiling/function-numbering.ll | 26 +- test/Transforms/GCOVProfiling/global-ctor.ll | 24 +- test/Transforms/GCOVProfiling/linezero.ll | 103 +- test/Transforms/GCOVProfiling/linkagename.ll | 16 +- test/Transforms/GCOVProfiling/return-block.ll | 32 +- test/Transforms/GCOVProfiling/version.ll | 20 +- .../GVN/2007-07-25-DominatedLoop.ll | 4 +- .../Transforms/GVN/2007-07-25-InfiniteLoop.ll | 2 +- test/Transforms/GVN/2007-07-25-Loop.ll | 2 +- test/Transforms/GVN/2007-07-25-NestedLoop.ll | 12 +- .../GVN/2007-07-25-SinglePredecessor.ll | 6 +- .../GVN/2007-07-26-InterlockingLoops.ll | 6 +- .../Transforms/GVN/2007-07-26-NonRedundant.ll | 2 +- test/Transforms/GVN/2007-07-26-PhiErasure.ll | 4 +- test/Transforms/GVN/2007-07-30-PredIDom.ll | 2 +- .../Transforms/GVN/2007-07-31-NoDomInherit.ll | 134 +- .../Transforms/GVN/2007-07-31-RedundantPhi.ll | 2 +- test/Transforms/GVN/2008-02-12-UndefLoad.ll | 8 +- test/Transforms/GVN/2008-02-13-NewPHI.ll | 4 +- test/Transforms/GVN/2008-07-02-Unreachable.ll | 4 +- test/Transforms/GVN/2008-12-09-SelfRemove.ll | 6 +- test/Transforms/GVN/2008-12-12-RLE-Crash.ll | 8 +- .../GVN/2008-12-14-rle-reanalyze.ll | 6 +- .../Transforms/GVN/2008-12-15-CacheVisited.ll | 8 +- .../GVN/2009-01-21-SortInvalidation.ll | 2 +- .../GVN/2009-01-22-SortInvalidation.ll | 10 +- .../Transforms/GVN/2009-02-17-LoadPRECrash.ll | 38 +- test/Transforms/GVN/2009-06-17-InvalidPRE.ll | 26 +- .../GVN/2009-07-13-MemDepSortFail.ll | 4 +- .../GVN/2009-11-12-MemDepMallocBitCast.ll | 6 +- .../GVN/2010-03-31-RedundantPHIs.ll | 4 +- test/Transforms/GVN/2010-05-08-OneBit.ll | 6 +- test/Transforms/GVN/2011-04-27-phioperands.ll | 4 +- .../2011-06-01-NonLocalMemdepMiscompile.ll | 18 +- test/Transforms/GVN/MemdepMiscompile.ll | 8 +- test/Transforms/GVN/atomic.ll | 92 +- test/Transforms/GVN/basic-undef-test.ll | 15 + test/Transforms/GVN/calloc-load-removal.ll | 4 +- test/Transforms/GVN/calls-readonly.ll | 2 +- test/Transforms/GVN/cond_br.ll | 8 +- test/Transforms/GVN/cond_br2.ll | 34 +- test/Transforms/GVN/condprop.ll | 14 +- test/Transforms/GVN/crash-no-aa.ll | 6 +- test/Transforms/GVN/crash.ll | 52 +- test/Transforms/GVN/invariant-load.ll | 98 +- test/Transforms/GVN/lifetime-simple.ll | 4 +- test/Transforms/GVN/load-constant-mem.ll | 6 +- .../GVN/load-from-unreachable-predecessor.ll | 6 +- test/Transforms/GVN/load-pre-align.ll | 4 +- test/Transforms/GVN/load-pre-licm.ll | 8 +- test/Transforms/GVN/load-pre-nonlocal.ll | 28 +- test/Transforms/GVN/lpre-call-wrap-2.ll | 10 +- test/Transforms/GVN/lpre-call-wrap.ll | 10 +- test/Transforms/GVN/malloc-load-removal.ll | 4 +- test/Transforms/GVN/noalias.ll | 18 +- test/Transforms/GVN/non-local-offset.ll | 12 +- test/Transforms/GVN/nonescaping-malloc.ll | 36 +- test/Transforms/GVN/null-aliases-nothing.ll | 6 +- .../GVN/phi-translate-partial-alias.ll | 10 +- test/Transforms/GVN/phi-translate.ll | 8 +- test/Transforms/GVN/pr10820.ll | 2 +- test/Transforms/GVN/pr14166.ll | 6 +- test/Transforms/GVN/pr17732.ll | 8 +- test/Transforms/GVN/pr17852.ll | 44 +- test/Transforms/GVN/pre-basic-add.ll | 4 +- test/Transforms/GVN/pre-compare.ll | 6 +- test/Transforms/GVN/pre-gep-load.ll | 16 +- test/Transforms/GVN/pre-load.ll | 116 +- test/Transforms/GVN/pre-no-cost-phi.ll | 31 + test/Transforms/GVN/pre-single-pred.ll | 6 +- test/Transforms/GVN/preserve-tbaa.ll | 4 +- test/Transforms/GVN/range.ll | 48 +- test/Transforms/GVN/readattrs.ll | 2 +- test/Transforms/GVN/rle-must-alias.ll | 18 +- test/Transforms/GVN/rle-no-phi-translate.ll | 2 +- test/Transforms/GVN/rle-nonlocal.ll | 10 +- test/Transforms/GVN/rle-phi-translate.ll | 32 +- test/Transforms/GVN/rle-semidominated.ll | 4 +- test/Transforms/GVN/rle.ll | 160 +- test/Transforms/GVN/tbaa.ll | 39 +- test/Transforms/GVN/volatile.ll | 157 + .../GlobalDCE/2002-08-17-FunctionDGE.ll | 2 +- .../GlobalDCE/2002-08-17-WorkListTest.ll | 4 +- .../GlobalDCE/2002-09-12-Redeletion.ll | 2 +- .../GlobalDCE/2003-07-01-SelfReference.ll | 2 +- .../GlobalDCE/complex-constantexpr.ll | 12 +- .../GlobalDCE/global_ctors_integration.ll | 8 +- test/Transforms/GlobalDCE/indirectbr.ll | 4 +- .../GlobalOpt/2004-10-10-CastStoreOnce.ll | 4 +- .../2005-06-15-LocalizeConstExprCrash.ll | 2 +- test/Transforms/GlobalOpt/2005-09-27-Crash.ll | 2 +- .../GlobalOpt/2006-07-07-InlineAsmCrash.ll | 4 +- .../2006-11-01-ShrinkGlobalPhiCrash.ll | 2 +- test/Transforms/GlobalOpt/2007-04-05-Crash.ll | 2 +- test/Transforms/GlobalOpt/2007-05-13-Crash.ll | 22 +- .../GlobalOpt/2007-06-04-PackedStruct.ll | 2 +- .../GlobalOpt/2007-11-09-GEP-GEP-Crash.ll | 6 +- test/Transforms/GlobalOpt/2008-01-03-Crash.ll | 2 +- .../GlobalOpt/2008-01-13-OutOfRangeSROA.ll | 6 +- .../GlobalOpt/2008-01-29-VolatileGlobal.ll | 2 +- .../GlobalOpt/2008-04-26-SROA-Global-Align.ll | 12 +- .../GlobalOpt/2008-07-17-addrspace.ll | 8 +- .../GlobalOpt/2008-12-16-HeapSRACrash-2.ll | 8 +- .../GlobalOpt/2008-12-16-HeapSRACrash.ll | 6 +- .../GlobalOpt/2009-01-13-phi-user.ll | 8 +- .../GlobalOpt/2009-02-15-BitcastAlias.ll | 2 +- .../GlobalOpt/2009-02-15-ResolveAlias.ll | 4 +- test/Transforms/GlobalOpt/2009-03-05-dbg.ll | 40 +- .../GlobalOpt/2009-03-07-PromotePtrToBool.ll | 2 +- .../GlobalOpt/2009-06-01-RecursivePHI.ll | 6 +- .../2009-11-16-BrokenPerformHeapAllocSRoA.ll | 4 +- ...2009-11-16-MallocSingleStoreToGlobalVar.ll | 6 +- .../GlobalOpt/2010-02-25-MallocPromote.ll | 4 +- .../GlobalOpt/2010-02-26-MallocSROA.ll | 4 +- test/Transforms/GlobalOpt/alias-resolve.ll | 4 +- test/Transforms/GlobalOpt/array-elem-refs.ll | 10 +- test/Transforms/GlobalOpt/atomic.ll | 4 +- test/Transforms/GlobalOpt/basictest.ll | 2 +- test/Transforms/GlobalOpt/blockaddress.ll | 3 + .../GlobalOpt/constantexpr-dangle.ll | 2 +- .../GlobalOpt/constantfold-initializers.ll | 18 +- test/Transforms/GlobalOpt/crash-2.ll | 4 +- test/Transforms/GlobalOpt/crash.ll | 12 +- .../GlobalOpt/ctor-list-opt-constexpr.ll | 4 +- .../GlobalOpt/ctor-list-opt-inbounds.ll | 8 +- test/Transforms/GlobalOpt/ctor-list-opt.ll | 18 +- test/Transforms/GlobalOpt/cxx-dtor.ll | 2 +- test/Transforms/GlobalOpt/deadfunction.ll | 4 +- test/Transforms/GlobalOpt/deadglobal-2.ll | 2 +- .../externally-initialized-global-ctr.ll | 12 +- test/Transforms/GlobalOpt/fastcc.ll | 8 +- .../Transforms/GlobalOpt/globalsra-partial.ll | 8 +- .../GlobalOpt/globalsra-unknown-index.ll | 26 +- test/Transforms/GlobalOpt/globalsra.ll | 8 +- test/Transforms/GlobalOpt/heap-sra-1.ll | 6 +- test/Transforms/GlobalOpt/heap-sra-2.ll | 8 +- test/Transforms/GlobalOpt/heap-sra-3.ll | 6 +- test/Transforms/GlobalOpt/heap-sra-4.ll | 6 +- test/Transforms/GlobalOpt/heap-sra-phi.ll | 14 +- test/Transforms/GlobalOpt/integer-bool.ll | 2 +- test/Transforms/GlobalOpt/iterate.ll | 4 +- .../Transforms/GlobalOpt/load-store-global.ll | 8 +- test/Transforms/GlobalOpt/malloc-promote-1.ll | 6 +- test/Transforms/GlobalOpt/malloc-promote-2.ll | 4 +- test/Transforms/GlobalOpt/malloc-promote-3.ll | 4 +- test/Transforms/GlobalOpt/memcpy.ll | 4 +- test/Transforms/GlobalOpt/memset-null.ll | 2 +- test/Transforms/GlobalOpt/memset.ll | 4 +- test/Transforms/GlobalOpt/phi-select.ll | 4 +- .../GlobalOpt/storepointer-compare.ll | 2 +- test/Transforms/GlobalOpt/storepointer.ll | 2 +- test/Transforms/GlobalOpt/tls.ll | 14 +- test/Transforms/GlobalOpt/trivialstore.ll | 2 +- test/Transforms/GlobalOpt/undef-init.ll | 2 +- test/Transforms/GlobalOpt/unnamed-addr.ll | 10 +- .../GlobalOpt/zeroinitializer-gep-load.ll | 4 +- .../IPConstantProp/2009-09-24-byval-ptr.ll | 16 +- .../IPConstantProp/dangling-block-address.ll | 8 +- test/Transforms/IPConstantProp/global.ll | 4 +- .../IPConstantProp/return-argument.ll | 2 +- .../IPConstantProp/return-constant.ll | 3 +- .../IRCE/bug-loop-varying-upper-limit.ll | 31 + test/Transforms/IRCE/bug-mismatched-types.ll | 66 + test/Transforms/IRCE/decrementing-loop.ll | 43 + test/Transforms/IRCE/low-becount.ll | 32 + .../IRCE/multiple-access-no-preloop.ll | 66 + test/Transforms/IRCE/not-likely-taken.ll | 40 + test/Transforms/IRCE/only-lower-check.ll | 37 + test/Transforms/IRCE/only-upper-check.ll | 37 + .../IRCE/single-access-no-preloop.ll | 116 + .../IRCE/single-access-with-preloop.ll | 71 + test/Transforms/IRCE/unhandled.ll | 37 + test/Transforms/IRCE/with-parent-loops.ll | 345 + .../2005-02-17-TruncateExprCrash.ll | 2 +- .../IndVarSimplify/2005-11-18-Crash.ll | 4 +- .../2006-06-16-Indvar-LCSSA-Crash.ll | 4 +- .../IndVarSimplify/2007-01-06-TripCount.ll | 4 +- .../IndVarSimplify/2008-09-02-IVType.ll | 18 +- .../2008-10-03-CouldNotCompute.ll | 2 +- .../2009-04-14-shorten_iv_vars.ll | 96 +- .../2009-04-15-shorten-iv-vars-2.ll | 108 +- .../IndVarSimplify/2009-04-27-Floating.ll | 4 + .../IndVarSimplify/2011-09-27-hoistsext.ll | 4 +- .../IndVarSimplify/2011-10-27-lftrnull.ll | 4 +- .../IndVarSimplify/2011-11-01-lftrptr.ll | 32 +- .../IndVarSimplify/2011-11-15-multiexit.ll | 6 +- .../IndVarSimplify/2012-07-17-lftr-undef.ll | 2 +- .../2014-06-21-congruent-constant.ll | 12 +- .../NVPTX/no-widen-expensive.ll | 2 +- test/Transforms/IndVarSimplify/ada-loops.ll | 12 +- .../IndVarSimplify/ashr-tripcount.ll | 48 +- test/Transforms/IndVarSimplify/avoid-i0.ll | 28 +- .../IndVarSimplify/backedge-on-min-max.ll | 32 +- .../IndVarSimplify/casted-argument.ll | 6 +- .../Transforms/IndVarSimplify/dangling-use.ll | 6 +- test/Transforms/IndVarSimplify/elim-extend.ll | 22 +- .../IndVarSimplify/eliminate-comparison.ll | 28 +- .../IndVarSimplify/eliminate-max.ll | 2 +- .../IndVarSimplify/eliminate-rem.ll | 14 +- test/Transforms/IndVarSimplify/indirectbr.ll | 4 +- test/Transforms/IndVarSimplify/iv-fold.ll | 16 +- test/Transforms/IndVarSimplify/iv-sext.ll | 28 +- test/Transforms/IndVarSimplify/iv-widen.ll | 8 +- test/Transforms/IndVarSimplify/iv-zext.ll | 12 +- .../lftr-address-space-pointers.ll | 12 +- .../IndVarSimplify/lftr-extend-const.ll | 4 + .../Transforms/IndVarSimplify/lftr-promote.ll | 6 +- test/Transforms/IndVarSimplify/lftr-reuse.ll | 56 +- .../IndVarSimplify/lftr-udiv-tripcount.ll | 29 + test/Transforms/IndVarSimplify/lftr-zext.ll | 8 +- test/Transforms/IndVarSimplify/lftr_simple.ll | 6 +- .../IndVarSimplify/loop_evaluate7.ll | 4 +- .../IndVarSimplify/loop_evaluate8.ll | 4 +- .../IndVarSimplify/loop_evaluate9.ll | 4 +- test/Transforms/IndVarSimplify/masked-iv.ll | 2 +- .../IndVarSimplify/no-iv-rewrite.ll | 32 +- .../IndVarSimplify/overflowcheck.ll | 6 +- .../phi-uses-value-multiple-times.ll | 2 +- .../IndVarSimplify/polynomial-expand.ll | 4 +- test/Transforms/IndVarSimplify/pr18223.ll | 2 +- test/Transforms/IndVarSimplify/pr20680.ll | 20 +- test/Transforms/IndVarSimplify/pr22222.ll | 2 +- .../IndVarSimplify/preserve-signed-wrap.ll | 6 +- .../promote-iv-to-eliminate-casts.ll | 17 +- .../IndVarSimplify/sharpen-range.ll | 6 +- .../IndVarSimplify/signed-trip-count.ll | 6 +- .../IndVarSimplify/single-element-range.ll | 2 +- test/Transforms/IndVarSimplify/sink-alloca.ll | 8 +- test/Transforms/IndVarSimplify/udiv.ll | 16 +- test/Transforms/IndVarSimplify/uglygep.ll | 6 +- .../IndVarSimplify/ult-sub-to-eq.ll | 12 +- .../IndVarSimplify/use-range-metadata.ll | 2 +- .../IndVarSimplify/variable-stride-ivs-0.ll | 14 +- test/Transforms/IndVarSimplify/verify-scev.ll | 4 +- .../IndVarSimplify/widen-loop-comp.ll | 32 +- test/Transforms/IndVarSimplify/widen-nsw.ll | 4 +- .../Inline/2003-09-22-PHINodeInlineFail.ll | 2 +- .../2003-09-22-PHINodesInExceptionDest.ll | 2 +- .../Inline/2006-07-12-InlinePruneCGUpdate.ll | 2 +- .../2009-01-08-NoInlineDynamicAlloca.ll | 8 +- .../Inline/2009-01-13-RecursiveInlineCrash.ll | 84 +- test/Transforms/Inline/align.ll | 48 +- test/Transforms/Inline/alloca-bonus.ll | 24 +- test/Transforms/Inline/alloca-dbgdeclare.ll | 141 + test/Transforms/Inline/alloca-in-scc.ll | 2 +- .../Inline/alloca-merge-align-nodl.ll | 88 - test/Transforms/Inline/alloca-merge-align.ll | 66 +- test/Transforms/Inline/attributes.ll | 50 + test/Transforms/Inline/basictest.ll | 6 +- test/Transforms/Inline/byval-tail-call.ll | 2 +- test/Transforms/Inline/byval.ll | 28 +- test/Transforms/Inline/byval_lifetime.ll | 6 +- .../Inline/crash-lifetime-marker.ll | 24 + test/Transforms/Inline/crash2.ll | 2 +- .../Inline/debug-info-duplicate-calls.ll | 121 + test/Transforms/Inline/debug-invoke.ll | 14 +- test/Transforms/Inline/devirtualize-2.ll | 2 +- test/Transforms/Inline/devirtualize-3.ll | 40 +- test/Transforms/Inline/devirtualize.ll | 48 +- test/Transforms/Inline/ephemeral.ll | 2 +- test/Transforms/Inline/frameescape.ll | 44 + .../Transforms/Inline/gvn-inline-iteration.ll | 2 +- test/Transforms/Inline/ignore-debug-info.ll | 21 +- test/Transforms/Inline/inline-byval-bonus.ll | 72 +- test/Transforms/Inline/inline-cold.ll | 120 +- .../Inline/inline-fast-math-flags.ll | 34 + test/Transforms/Inline/inline-fp.ll | 136 + test/Transforms/Inline/inline-invoke-tail.ll | 2 +- .../Inline/inline-musttail-varargs.ll | 8 +- test/Transforms/Inline/inline-optsize.ll | 10 +- test/Transforms/Inline/inline-vla.ll | 6 +- test/Transforms/Inline/inline_constprop.ll | 4 +- test/Transforms/Inline/inline_dbg_declare.ll | 195 +- test/Transforms/Inline/inline_minisize.ll | 116 +- test/Transforms/Inline/inline_ssp.ll | 8 +- .../Inline/invoke-combine-clauses.ll | 2 +- .../Inline/lifetime-no-datalayout.ll | 6 +- test/Transforms/Inline/noalias-cs.ll | 36 +- test/Transforms/Inline/noalias.ll | 36 +- test/Transforms/Inline/noalias2.ll | 46 +- .../Transforms/Inline/optimization-remarks.ll | 16 +- test/Transforms/Inline/pr22285.ll | 15 + test/Transforms/Inline/ptr-diff.ll | 24 +- test/Transforms/Inline/store-sroa.ll | 22 + test/Transforms/Inline/vector-bonus.ll | 37 + .../2003-07-21-ExternalConstant.ll | 6 +- .../InstCombine/2003-08-12-AllocaNonNull.ll | 2 +- .../2003-09-09-VolatileLoadElim.ll | 2 +- .../InstCombine/2003-11-03-VarargsCallBug.ll | 2 +- .../2004-01-13-InstCombineInvokePHI.ll | 2 +- .../InstCombine/2004-05-07-UnsizedCastLoad.ll | 2 +- .../InstCombine/2004-09-20-BadLoadCombine.ll | 2 +- .../InstCombine/2004-09-20-BadLoadCombine2.ll | 2 +- .../2005-06-16-SetCCOrSetCCMiscompile.ll | 2 +- .../InstCombine/2006-09-15-CastToBool.ll | 2 +- .../2006-12-08-Phi-ICmp-Op-Fold.ll | 18 +- .../InstCombine/2006-12-08-Select-ICmp.ll | 18 +- .../InstCombine/2006-12-15-Range-Test.ll | 4 +- .../InstCombine/2006-12-23-Select-Cmp-Cmp.ll | 4 +- .../InstCombine/2007-02-01-LoadSinkAlloca.ll | 34 +- .../InstCombine/2007-02-07-PointerCast.ll | 6 +- .../InstCombine/2007-03-25-BadShiftMask.ll | 8 +- .../InstCombine/2007-05-14-Crash.ll | 2 +- .../InstCombine/2007-06-06-AshrSignBit.ll | 4 +- .../InstCombine/2007-09-10-AliasConstFold.ll | 2 +- .../InstCombine/2007-10-10-EliminateMemCpy.ll | 4 +- .../InstCombine/2007-10-12-Crash.ll | 2 +- .../InstCombine/2007-10-28-stacksave.ll | 2 +- .../InstCombine/2007-10-31-RangeCrash.ll | 2 +- .../InstCombine/2007-10-31-StringCrash.ll | 2 +- .../2007-11-07-OpaqueAlignCrash.ll | 4 +- .../2007-11-25-CompatibleAttributes.ll | 2 +- .../InstCombine/2007-12-12-GEPScale.ll | 2 +- .../InstCombine/2007-12-28-IcmpSub2.ll | 16 +- .../2008-01-14-VarArgTrampoline.ll | 8 +- .../InstCombine/2008-03-13-IntToPtr.ll | 2 +- .../InstCombine/2008-04-22-ByValBitcast.ll | 2 +- .../2008-04-29-VolatileLoadDontMerge.ll | 4 +- .../2008-04-29-VolatileLoadMerge.ll | 4 +- .../InstCombine/2008-05-08-LiveStoreDelete.ll | 8 +- .../InstCombine/2008-05-08-StrLenSink.ll | 8 +- .../InstCombine/2008-05-09-SinkOfInvoke.ll | 4 +- .../InstCombine/2008-05-17-InfLoop.ll | 6 +- .../InstCombine/2008-05-23-CompareFold.ll | 2 +- .../InstCombine/2008-06-08-ICmpPHI.ll | 16 +- .../InstCombine/2008-06-19-UncondLoad.ll | 6 +- .../InstCombine/2008-06-24-StackRestore.ll | 2 +- .../2008-07-08-VolatileLoadMerge.ll | 4 +- test/Transforms/InstCombine/2008-08-05-And.ll | 4 +- .../InstCombine/2009-01-08-AlignAlloca.ll | 12 +- ...2009-01-19-fmod-constant-float-specials.ll | 96 +- .../2009-01-19-fmod-constant-float.ll | 16 +- .../InstCombine/2009-01-24-EmptyStruct.ll | 2 +- .../2009-02-20-InstCombine-SROA.ll | 204 +- .../InstCombine/2009-02-21-LoadCST.ll | 2 +- .../2009-02-25-CrashZeroSizeArray.ll | 8 +- .../2009-03-18-vector-ashr-crash.ll | 4 +- .../InstCombine/2009-05-23-FCmpToICmp.ll | 2 +- .../InstCombine/2009-12-17-CmpSelectNull.ll | 4 +- .../InstCombine/2010-03-03-ExtElim.ll | 8 +- .../InstCombine/2010-05-30-memcpy-Struct.ll | 2 +- .../InstCombine/2010-11-21-SizeZeroTypeGEP.ll | 4 +- .../InstCombine/2011-05-02-VectorBoolean.ll | 4 +- .../InstCombine/2011-05-13-InBoundsGEP.ll | 4 +- .../InstCombine/2011-05-28-swapmulsub.ll | 14 +- .../InstCombine/2011-06-13-nsw-alloca.ll | 12 +- .../InstCombine/2011-09-03-Trampoline.ll | 4 +- .../InstCombine/2011-10-07-AlignPromotion.ll | 2 +- .../Transforms/InstCombine/2012-02-13-FCmp.ll | 4 +- .../2012-05-27-Negative-Shift-Crash.ll | 6 +- .../InstCombine/2012-05-28-select-hang.ll | 4 +- .../InstCombine/2012-06-06-LoadOfPHIs.ll | 50 +- .../InstCombine/2012-07-25-LoadPart.ll | 2 +- .../InstCombine/2012-07-30-addrsp-bitcast.ll | 2 +- .../InstCombine/2012-09-17-ZeroSizedAlloca.ll | 4 +- .../2012-09-24-MemcpyFromGlobalCrash.ll | 19 - .../2012-10-25-vector-of-pointers.ll | 4 +- .../InstCombine/2012-12-14-simp-vgep.ll | 2 +- ...013-03-05-Combine-BitcastTy-Into-Alloca.ll | 10 +- test/Transforms/InstCombine/CPP_min_max.ll | 12 +- .../InstCombine/LandingPadClauses.ll | 52 + test/Transforms/InstCombine/PR7357.ll | 2 +- test/Transforms/InstCombine/add2.ll | 42 + test/Transforms/InstCombine/add3.ll | 4 +- test/Transforms/InstCombine/addrspacecast.ll | 12 +- .../Transforms/InstCombine/alias-recursion.ll | 4 +- test/Transforms/InstCombine/align-2d-gep.ll | 4 +- test/Transforms/InstCombine/align-addr.ll | 12 +- test/Transforms/InstCombine/align-attr.ll | 4 +- test/Transforms/InstCombine/align-external.ll | 2 +- .../Transforms/InstCombine/aligned-altivec.ll | 131 + test/Transforms/InstCombine/aligned-qpx.ll | 165 + test/Transforms/InstCombine/alloca.ll | 51 +- .../InstCombine/assume-loop-align.ll | 8 +- .../InstCombine/assume-redundant.ll | 12 +- test/Transforms/InstCombine/assume.ll | 16 +- test/Transforms/InstCombine/atomic.ll | 6 +- .../InstCombine/bitcast-alias-function.ll | 34 +- test/Transforms/InstCombine/bitcast.ll | 2 +- test/Transforms/InstCombine/bittest.ll | 2 +- test/Transforms/InstCombine/branch.ll | 16 + .../InstCombine/call-cast-target.ll | 15 + .../Transforms/InstCombine/call-intrinsics.ll | 12 +- test/Transforms/InstCombine/call.ll | 2 +- test/Transforms/InstCombine/call2.ll | 6 +- test/Transforms/InstCombine/cast.ll | 205 +- test/Transforms/InstCombine/cast_ptr.ll | 29 +- .../InstCombine/constant-expr-datalayout.ll | 2 +- .../constant-fold-address-space-pointer.ll | 50 +- .../InstCombine/constant-fold-alias.ll | 4 +- .../InstCombine/constant-fold-gep.ll | 96 +- .../InstCombine/constant-fold-hang.ll | 14 + test/Transforms/InstCombine/crash.ll | 38 +- test/Transforms/InstCombine/debug-line.ll | 20 +- test/Transforms/InstCombine/debuginfo.ll | 60 +- .../InstCombine/default-alignment.ll | 10 + .../InstCombine/demand_shrink_nsw.ll | 26 + test/Transforms/InstCombine/descale-zero.ll | 20 - .../InstCombine/disable-simplify-libcalls.ll | 50 +- .../Transforms/InstCombine/div-shift-crash.ll | 4 +- test/Transforms/InstCombine/dom-conditions.ll | 152 + .../InstCombine/enforce-known-alignment.ll | 20 +- test/Transforms/InstCombine/err-rep-cold.ll | 18 +- test/Transforms/InstCombine/extractvalue.ll | 18 +- test/Transforms/InstCombine/fast-math.ll | 8 + test/Transforms/InstCombine/fcmp.ll | 35 + test/Transforms/InstCombine/fmul.ll | 2 +- .../InstCombine/fold-vector-zero.ll | 2 +- test/Transforms/InstCombine/fp-ret-bitcast.ll | 8 +- test/Transforms/InstCombine/fpextend.ll | 12 +- test/Transforms/InstCombine/fprintf-1.ll | 42 +- test/Transforms/InstCombine/fputs-1.ll | 8 +- test/Transforms/InstCombine/fwrite-1.ll | 10 +- test/Transforms/InstCombine/gc.relocate.ll | 21 + test/Transforms/InstCombine/gep-addrspace.ll | 12 +- test/Transforms/InstCombine/gep-sext.ll | 61 + test/Transforms/InstCombine/gepgep.ll | 2 +- test/Transforms/InstCombine/gepphigep.ll | 124 +- test/Transforms/InstCombine/getelementptr.ll | 336 +- test/Transforms/InstCombine/icmp-range.ll | 12 +- test/Transforms/InstCombine/icmp.ll | 92 +- .../InstCombine/inline-intrinsic-assert.ll | 30 + test/Transforms/InstCombine/intrinsics.ll | 68 +- test/Transforms/InstCombine/invariant.ll | 2 +- test/Transforms/InstCombine/known_align.ll | 12 +- test/Transforms/InstCombine/load-cmp.ll | 349 +- test/Transforms/InstCombine/load-select.ll | 4 +- test/Transforms/InstCombine/load.ll | 99 +- test/Transforms/InstCombine/load3.ll | 16 +- .../InstCombine/loadstore-alignment.ll | 34 +- .../InstCombine/loadstore-metadata.ll | 53 +- test/Transforms/InstCombine/lshr-phi.ll | 10 +- .../InstCombine/malloc-free-delete.ll | 31 +- test/Transforms/InstCombine/max-of-nots.ll | 85 + test/Transforms/InstCombine/mem-gep-zidx.ll | 48 + test/Transforms/InstCombine/memchr.ll | 200 + test/Transforms/InstCombine/memcmp-1.ll | 16 +- .../InstCombine/memcpy-from-global.ll | 42 +- test/Transforms/InstCombine/memmove.ll | 10 +- test/Transforms/InstCombine/memset.ll | 2 +- test/Transforms/InstCombine/memset2.ll | 2 +- test/Transforms/InstCombine/merge-icmp.ll | 4 +- test/Transforms/InstCombine/minmax-fold.ll | 112 + test/Transforms/InstCombine/mul.ll | 18 +- .../multi-size-address-space-pointer.ll | 52 +- test/Transforms/InstCombine/no-negzero.ll | 6 +- test/Transforms/InstCombine/not.ll | 6 + .../InstCombine/obfuscated_splat.ll | 2 +- .../InstCombine/objsize-address-space.ll | 6 +- .../InstCombine/objsize-noverify.ll | 43 + test/Transforms/InstCombine/objsize.ll | 75 +- test/Transforms/InstCombine/odr-linkage.ll | 8 +- test/Transforms/InstCombine/or.ll | 4 +- test/Transforms/InstCombine/osx-names.ll | 4 +- test/Transforms/InstCombine/overflow-mul.ll | 11 + test/Transforms/InstCombine/overflow.ll | 33 - test/Transforms/InstCombine/phi-merge-gep.ll | 60 +- test/Transforms/InstCombine/phi.ll | 36 +- test/Transforms/InstCombine/pr12251.ll | 4 +- test/Transforms/InstCombine/pr21651.ll | 4 + test/Transforms/InstCombine/pr2645-0.ll | 8 +- test/Transforms/InstCombine/pr2645-1.ll | 6 +- test/Transforms/InstCombine/pr2996.ll | 2 +- test/Transforms/InstCombine/pr8547.ll | 2 +- test/Transforms/InstCombine/printf-1.ll | 52 +- test/Transforms/InstCombine/printf-2.ll | 18 +- test/Transforms/InstCombine/puts-1.ll | 6 +- test/Transforms/InstCombine/select-cmp-br.ll | 58 +- .../InstCombine/select-cmp-cttz-ctlz.ll | 327 + .../InstCombine/select-crash-noverify.ll | 19 + test/Transforms/InstCombine/select-crash.ll | 17 - .../InstCombine/select-load-call.ll | 2 +- test/Transforms/InstCombine/select-select.ll | 10 + test/Transforms/InstCombine/select.ll | 132 +- test/Transforms/InstCombine/shift.ll | 4 +- .../InstCombine/shufflemask-undef.ll | 4 +- .../InstCombine/signed-comparison.ll | 4 +- .../simplify-demanded-bits-pointer.ll | 2 +- .../InstCombine/simplify-libcalls.ll | 27 +- test/Transforms/InstCombine/sincospi.ll | 12 +- test/Transforms/InstCombine/sitofp.ll | 169 +- test/Transforms/InstCombine/sprintf-1.ll | 40 +- test/Transforms/InstCombine/sqrt.ll | 6 +- test/Transforms/InstCombine/srem1.ll | 2 +- .../Transforms/InstCombine/stack-overalign.ll | 4 +- .../InstCombine/stacksaverestore.ll | 2 +- test/Transforms/InstCombine/statepoint.ll | 26 +- test/Transforms/InstCombine/store.ll | 14 +- test/Transforms/InstCombine/stpcpy-1.ll | 14 +- test/Transforms/InstCombine/stpcpy-2.ll | 4 +- test/Transforms/InstCombine/stpcpy_chk-1.ll | 52 +- test/Transforms/InstCombine/stpcpy_chk-2.ll | 4 +- test/Transforms/InstCombine/strcat-1.ll | 8 +- test/Transforms/InstCombine/strcat-2.ll | 8 +- test/Transforms/InstCombine/strcat-3.ll | 4 +- test/Transforms/InstCombine/strchr-1.ll | 37 +- test/Transforms/InstCombine/strchr-2.ll | 2 +- test/Transforms/InstCombine/strcmp-1.ll | 24 +- test/Transforms/InstCombine/strcmp-2.ll | 4 +- test/Transforms/InstCombine/strcpy-1.ll | 12 +- test/Transforms/InstCombine/strcpy-2.ll | 4 +- test/Transforms/InstCombine/strcpy_chk-1.ll | 50 +- test/Transforms/InstCombine/strcpy_chk-2.ll | 4 +- test/Transforms/InstCombine/strcpy_chk-64.ll | 2 +- test/Transforms/InstCombine/strcspn-1.ll | 8 +- test/Transforms/InstCombine/strcspn-2.ll | 2 +- test/Transforms/InstCombine/strlen-1.ll | 20 +- test/Transforms/InstCombine/strlen-2.ll | 2 +- test/Transforms/InstCombine/strncat-1.ll | 8 +- test/Transforms/InstCombine/strncat-2.ll | 16 +- test/Transforms/InstCombine/strncat-3.ll | 4 +- test/Transforms/InstCombine/strncmp-1.ll | 24 +- test/Transforms/InstCombine/strncmp-2.ll | 4 +- test/Transforms/InstCombine/strncpy-1.ll | 30 +- test/Transforms/InstCombine/strncpy-2.ll | 4 +- test/Transforms/InstCombine/strncpy_chk-1.ll | 34 +- test/Transforms/InstCombine/strncpy_chk-2.ll | 4 +- test/Transforms/InstCombine/strpbrk-1.ll | 12 +- test/Transforms/InstCombine/strpbrk-2.ll | 4 +- test/Transforms/InstCombine/strrchr-1.ll | 16 +- test/Transforms/InstCombine/strrchr-2.ll | 2 +- test/Transforms/InstCombine/strspn-1.ll | 8 +- test/Transforms/InstCombine/strstr-1.ll | 10 +- test/Transforms/InstCombine/strstr-2.ll | 2 +- .../InstCombine/struct-assign-tbaa.ll | 8 +- test/Transforms/InstCombine/sub.ll | 34 +- .../InstCombine/switch-truncate-crash.ll | 7 + test/Transforms/InstCombine/type_pun.ll | 141 + test/Transforms/InstCombine/unpack-fca.ll | 114 + .../InstCombine/urem-simplify-bug.ll | 4 +- .../InstCombine/vec_demanded_elts.ll | 18 +- .../InstCombine/vec_extract_var_elt.ll | 2 +- .../Transforms/InstCombine/vec_phi_extract.ll | 2 +- test/Transforms/InstCombine/vec_shuffle.ll | 12 +- test/Transforms/InstCombine/vector-casts.ll | 2 +- test/Transforms/InstCombine/vector_gep1.ll | 12 +- test/Transforms/InstCombine/vector_gep2.ll | 4 +- test/Transforms/InstCombine/volatile_store.ll | 2 +- test/Transforms/InstCombine/vsx-unaligned.ll | 12 +- test/Transforms/InstCombine/weak-symbols.ll | 8 +- test/Transforms/InstCombine/x86-insertps.ll | 150 + test/Transforms/InstCombine/x86-vperm2.ll | 283 + test/Transforms/InstCombine/xor.ll | 8 +- test/Transforms/InstCombine/zext-or-icmp.ll | 16 +- test/Transforms/InstMerge/ld_hoist1.ll | 22 +- test/Transforms/InstMerge/ld_hoist_st_sink.ll | 62 +- .../InstMerge/st_sink_barrier_call.ll | 14 +- .../InstMerge/st_sink_bugfix_22613.ll | 42 +- .../InstMerge/st_sink_no_barrier_call.ll | 14 +- .../InstMerge/st_sink_no_barrier_load.ll | 20 +- .../InstMerge/st_sink_no_barrier_store.ll | 16 +- .../InstMerge/st_sink_two_stores.ll | 18 +- .../InstMerge/st_sink_with_barrier.ll | 20 +- .../InstSimplify/2011-10-27-BinOpCrash.ll | 2 +- test/Transforms/InstSimplify/call-callconv.ll | 4 +- test/Transforms/InstSimplify/call.ll | 30 +- test/Transforms/InstSimplify/compare.ll | 100 +- test/Transforms/InstSimplify/fast-math.ll | 9 + .../InstSimplify/floating-point-arithmetic.ll | 26 + .../InstSimplify/floating-point-compare.ll | 60 + test/Transforms/InstSimplify/gep.ll | 14 +- test/Transforms/InstSimplify/load.ll | 4 +- test/Transforms/InstSimplify/noalias-ptr.ll | 18 +- test/Transforms/InstSimplify/past-the-end.ll | 14 +- test/Transforms/InstSimplify/ptr_diff.ll | 32 +- test/Transforms/InstSimplify/undef.ll | 2 +- test/Transforms/InstSimplify/vector_gep.ll | 14 +- .../InstSimplify/vector_ptr_bitcast.ll | 4 +- .../2009-01-05-InternalizeAliases.ll | 2 +- .../JumpThreading/2010-08-26-and.ll | 20 +- .../JumpThreading/2011-04-14-InfLoop.ll | 2 +- test/Transforms/JumpThreading/assume.ll | 8 +- test/Transforms/JumpThreading/crash.ll | 2 +- test/Transforms/JumpThreading/indirectbr.ll | 6 +- test/Transforms/JumpThreading/landing-pad.ll | 60 +- test/Transforms/JumpThreading/lvi-load.ll | 6 +- test/Transforms/JumpThreading/or-undef.ll | 8 +- test/Transforms/JumpThreading/phi-eq.ll | 54 +- test/Transforms/JumpThreading/select.ll | 4 +- test/Transforms/JumpThreading/thread-cmp.ll | 69 + test/Transforms/JumpThreading/thread-loads.ll | 18 +- .../LCSSA/2006-06-03-IncorrectIDFPhis.ll | 4 +- .../LCSSA/2006-07-09-NoDominator.ll | 4 +- test/Transforms/LCSSA/2007-07-12-LICM-2.ll | 2 +- test/Transforms/LCSSA/2007-07-12-LICM-3.ll | 2 +- test/Transforms/LCSSA/2007-07-12-LICM.ll | 2 +- test/Transforms/LCSSA/invoke-dest.ll | 12 +- test/Transforms/LCSSA/unreachable-use.ll | 6 +- .../LICM/2003-02-26-LoopExitNotDominated.ll | 2 +- test/Transforms/LICM/2003-05-02-LoadHoist.ll | 4 +- .../2004-09-14-AliasAnalysisInvalidate.ll | 4 +- .../LICM/2004-11-17-UndefIndexCrash.ll | 4 +- .../LICM/2007-05-22-VolatileSink.ll | 8 +- test/Transforms/LICM/2007-07-30-AliasSet.ll | 6 +- .../LICM/2007-09-17-PromoteValue.ll | 6 +- .../LICM/2008-07-22-LoadGlobalConstant.ll | 8 +- .../LICM/2009-12-10-LICM-Indbr-Crash.ll | 2 +- .../LICM/2011-04-06-HoistMissedASTUpdate.ll | 4 +- .../2011-04-06-PromoteResultOfPromotion.ll | 6 +- test/Transforms/LICM/2011-04-09-RAUW-AST.ll | 6 +- test/Transforms/LICM/2011-07-06-Alignment.ll | 2 +- test/Transforms/LICM/PR21582.ll | 4 +- test/Transforms/LICM/atomics.ll | 14 +- test/Transforms/LICM/constexpr.ll | 46 + test/Transforms/LICM/crash.ll | 10 +- test/Transforms/LICM/debug-value.ll | 50 +- test/Transforms/LICM/hoist-bitcast-load.ll | 72 +- test/Transforms/LICM/hoist-deref-load.ll | 278 +- test/Transforms/LICM/hoist-invariant-load.ll | 12 +- test/Transforms/LICM/hoisting.ll | 8 +- test/Transforms/LICM/lcssa-ssa-promoter.ll | 2 +- test/Transforms/LICM/pr23608.ll | 50 + .../LICM/scalar-promote-memmodel.ll | 4 +- test/Transforms/LICM/scalar_promote.ll | 38 +- test/Transforms/LICM/sinking.ll | 28 +- test/Transforms/LICM/speculate.ll | 30 +- test/Transforms/LICM/volatile-alias.ll | 22 +- .../Transforms/LoadCombine/load-combine-aa.ll | 18 +- .../LoadCombine/load-combine-assume.ll | 16 +- test/Transforms/LoadCombine/load-combine.ll | 118 +- .../Transforms/LoopDeletion/2008-05-06-Phi.ll | 20 +- .../LoopDistribute/basic-with-memchecks.ll | 112 + test/Transforms/LoopDistribute/basic.ll | 83 + .../crash-in-memcheck-generation.ll | 59 + .../LoopDistribute/no-if-convert.ll | 95 + test/Transforms/LoopDistribute/outside-use.ll | 69 + .../LoopDistribute/program-order.ll | 65 + .../LoopIdiom/basic-address-space.ll | 12 +- test/Transforms/LoopIdiom/basic.ll | 63 +- test/Transforms/LoopIdiom/crash.ll | 4 +- test/Transforms/LoopIdiom/debug-line.ll | 46 +- test/Transforms/LoopIdiom/memset_noidiom.ll | 2 +- .../LoopIdiom/non-canonical-loop.ll | 2 +- .../Transforms/LoopIdiom/scev-invalidation.ll | 10 +- .../LoopInterchange/currentLimitation.ll | 58 + .../Transforms/LoopInterchange/interchange.ll | 557 + .../LoopInterchange/profitability.ll | 205 + test/Transforms/LoopInterchange/reductions.ll | 235 + test/Transforms/LoopReroll/basic.ll | 390 +- test/Transforms/LoopReroll/nonconst_lb.ll | 70 +- test/Transforms/LoopReroll/reduction.ll | 76 +- test/Transforms/LoopRotate/PhiRename-1.ll | 40 +- .../LoopRotate/PhiSelfReference-1.ll | 2 +- test/Transforms/LoopRotate/alloca.ll | 2 +- test/Transforms/LoopRotate/basic.ll | 2 +- test/Transforms/LoopRotate/crash.ll | 2 +- test/Transforms/LoopRotate/dbgvalue.ll | 54 +- test/Transforms/LoopRotate/indirectbr.ll | 2 +- test/Transforms/LoopRotate/multiple-exits.ll | 4 +- test/Transforms/LoopRotate/nosimplifylatch.ll | 6 +- test/Transforms/LoopRotate/phi-duplicate.ll | 10 +- test/Transforms/LoopRotate/pr22337.ll | 24 + test/Transforms/LoopRotate/simplifylatch.ll | 16 +- .../LoopSimplify/2003-08-15-PreheadersFail.ll | 20 +- .../2003-12-10-ExitBlocksProblem.ll | 8 +- .../2011-12-14-LandingpadHeader.ll | 2 +- test/Transforms/LoopSimplify/ashr-crash.ll | 6 +- test/Transforms/LoopSimplify/dup-preds.ll | 2 +- test/Transforms/LoopSimplify/merge-exits.ll | 10 +- test/Transforms/LoopSimplify/notify-scev.ll | 2 +- .../LoopSimplify/phi-node-simplify.ll | 22 +- test/Transforms/LoopSimplify/preserve-scev.ll | 7 +- .../LoopStrengthReduce/2005-08-15-AddRecIV.ll | 4 +- .../2005-08-17-OutOfLoopVariant.ll | 2 +- .../2007-04-23-UseIterator.ll | 2 +- .../2008-08-13-CmpStride.ll | 8 +- .../LoopStrengthReduce/2008-09-09-Overflow.ll | 10 +- ...9-01-13-nonconstant-stride-outside-loop.ll | 6 +- .../2009-04-28-no-reduce-mul.ll | 4 +- .../2011-07-19-CritEdgeBreakCrash.ll | 4 +- .../2011-10-03-CritEdgeMerge.ll | 8 +- .../LoopStrengthReduce/2011-10-06-ReusePhi.ll | 20 +- .../2011-10-13-SCEVChain.ll | 6 +- .../LoopStrengthReduce/2011-10-14-IntPtr.ll | 2 +- .../2011-12-19-PostincQuadratic.ll | 6 +- .../2012-01-02-nopreheader.ll | 4 +- .../2012-01-16-nopreheader.ll | 4 +- .../2012-03-15-nopreheader.ll | 4 +- .../2012-03-26-constexpr.ll | 26 +- .../2012-07-13-ExpandUDiv.ll | 8 +- .../2012-07-18-LimitReassociate.ll | 51 +- .../2013-01-14-ReuseCast.ll | 4 +- .../LoopStrengthReduce/AArch64/lsr-memcpy.ll | 6 +- .../LoopStrengthReduce/AArch64/lsr-memset.ll | 6 +- .../LoopStrengthReduce/AArch64/req-regs.ll | 2 +- .../ARM/2012-06-15-lsr-noaddrmode.ll | 16 +- .../LoopStrengthReduce/ARM/ivchain-ARM.ll | 140 +- .../X86/2008-08-14-ShadowIV.ll | 8 +- .../X86/2011-07-20-DoubleIV.ll | 4 + .../X86/2011-12-04-loserreg.ll | 40 +- .../X86/2012-01-13-phielim.ll | 22 +- .../LoopStrengthReduce/X86/ivchain-X86.ll | 118 +- .../X86/ivchain-stress-X86.ll | 40 +- .../X86/no_superflous_induction_vars.ll | 4 +- .../LoopStrengthReduce/X86/pr17473.ll | 6 +- .../addrec-gep-address-space.ll | 12 +- .../LoopStrengthReduce/addrec-gep.ll | 10 +- .../LoopStrengthReduce/address-space-loop.ll | 14 +- .../LoopStrengthReduce/count-to-zero.ll | 5 +- .../LoopStrengthReduce/different-type-ivs.ll | 2 +- .../LoopStrengthReduce/dominate-assert.ll | 12 +- .../dont-hoist-simple-loop-constants.ll | 2 +- .../dont_insert_redundant_ops.ll | 8 +- .../LoopStrengthReduce/dont_reduce_bytes.ll | 2 +- .../LoopStrengthReduce/dont_reverse.ll | 6 +- .../hoist-parent-preheader.ll | 2 +- .../invariant_value_first.ll | 2 +- .../invariant_value_first_arg.ll | 2 +- test/Transforms/LoopStrengthReduce/ivchain.ll | 8 +- .../LoopStrengthReduce/negative-scale.ll | 28 + .../LoopStrengthReduce/nested-reduce.ll | 3 + .../LoopStrengthReduce/ops_after_indvar.ll | 2 +- .../phi_node_update_multiple_preds.ll | 4 +- .../LoopStrengthReduce/post-inc-icmpzero.ll | 28 +- test/Transforms/LoopStrengthReduce/pr12018.ll | 10 +- test/Transforms/LoopStrengthReduce/pr12048.ll | 6 +- test/Transforms/LoopStrengthReduce/pr12691.ll | 11 +- test/Transforms/LoopStrengthReduce/pr18165.ll | 16 +- test/Transforms/LoopStrengthReduce/pr2570.ll | 40 +- test/Transforms/LoopStrengthReduce/pr3086.ll | 6 +- test/Transforms/LoopStrengthReduce/pr3399.ll | 2 +- test/Transforms/LoopStrengthReduce/pr3571.ll | 2 +- .../preserve-gep-loop-variant.ll | 2 +- .../quadradic-exit-value.ll | 3 + .../LoopStrengthReduce/related_indvars.ll | 4 +- .../LoopStrengthReduce/remove_indvar.ll | 5 +- .../scaling_factor_cost_crash.ll | 2 +- .../share_code_in_preheader.ll | 8 +- .../uglygep-address-space.ll | 14 +- test/Transforms/LoopStrengthReduce/uglygep.ll | 16 +- .../use_postinc_value_outside_loop.ll | 2 +- .../var_stride_used_by_compare.ll | 2 +- .../LoopStrengthReduce/variable_stride.ll | 3 + .../LoopUnroll/2007-05-05-UnrollMiscomp.ll | 8 +- .../LoopUnroll/2011-08-08-PhiUpdate.ll | 6 +- .../LoopUnroll/2011-08-09-IVSimplify.ll | 10 +- .../LoopUnroll/2011-10-01-NoopTrunc.ll | 4 +- .../LoopUnroll/AArch64/lit.local.cfg | 3 + test/Transforms/LoopUnroll/AArch64/partial.ll | 76 + .../LoopUnroll/AArch64/runtime-loop.ll | 33 + .../a2-high-cost-trip-count-computation.ll | 27 + .../LoopUnroll/PowerPC/a2-unrolling.ll | 4 +- test/Transforms/LoopUnroll/X86/partial.ll | 30 +- test/Transforms/LoopUnroll/ephemeral.ll | 4 +- .../LoopUnroll/full-unroll-bad-geps.ll | 34 + .../LoopUnroll/full-unroll-heuristics.ll | 62 + .../high-cost-trip-count-computation.ll | 27 + .../ignore-annotation-intrinsic-cost.ll | 2 +- test/Transforms/LoopUnroll/runtime-loop.ll | 47 +- test/Transforms/LoopUnroll/runtime-loop1.ll | 4 +- test/Transforms/LoopUnroll/runtime-loop2.ll | 4 +- test/Transforms/LoopUnroll/runtime-loop3.ll | 4 +- test/Transforms/LoopUnroll/runtime-loop4.ll | 44 + test/Transforms/LoopUnroll/runtime-loop5.ll | 45 + test/Transforms/LoopUnroll/scevunroll.ll | 20 +- .../LoopUnroll/shifted-tripcount.ll | 8 +- test/Transforms/LoopUnroll/unroll-cleanup.ll | 85 + .../LoopUnroll/unroll-pragmas-disabled.ll | 20 +- test/Transforms/LoopUnroll/unroll-pragmas.ll | 40 +- .../LoopUnswitch/2007-07-12-ExitDomInfo.ll | 2 +- .../LoopUnswitch/2007-07-18-DomInfo.ll | 2 +- .../LoopUnswitch/2007-08-01-LCSSA.ll | 2 +- .../LoopUnswitch/2008-06-02-DomInfo.ll | 2 +- .../LoopUnswitch/2008-06-17-DomFrontier.ll | 2 +- .../LoopUnswitch/2008-11-03-Invariant.ll | 2 +- .../LoopUnswitch/2010-11-18-LCSSA.ll | 2 +- .../LoopUnswitch/2011-09-26-EHCrash.ll | 6 +- .../LoopUnswitch/2011-11-18-SimpleSwitch.ll | 10 +- .../2011-11-18-TwoSwitches-Threshold.ll | 6 +- .../LoopUnswitch/2011-11-18-TwoSwitches.ll | 14 +- .../2012-04-30-LoopUnswitch-LPad-Crash.ll | 6 +- .../Transforms/LoopUnswitch/2012-05-20-Phi.ll | 4 +- test/Transforms/LoopUnswitch/basictest.ll | 10 +- .../LoopUnswitch/preserve-analyses.ll | 8 +- .../LoopVectorize/12-12-11-if-conv.ll | 4 +- .../LoopVectorize/2012-10-22-isconsec.ll | 4 +- .../LoopVectorize/AArch64/aarch64-unroll.ll | 10 +- .../AArch64/arbitrary-induction-step.ll | 150 + .../LoopVectorize/AArch64/arm64-unroll.ll | 10 +- .../LoopVectorize/AArch64/gather-cost.ll | 28 +- .../LoopVectorize/AArch64/sdiv-pow2.ll | 8 +- .../LoopVectorize/ARM/arm-unroll.ll | 8 +- .../LoopVectorize/ARM/gather-cost.ll | 28 +- .../LoopVectorize/ARM/gcc-examples.ll | 16 +- .../LoopVectorize/ARM/mul-cast-vect.ll | 24 +- .../LoopVectorize/ARM/width-detect.ll | 8 +- .../LoopVectorize/PowerPC/large-loop-rdx.ll | 73 + .../LoopVectorize/PowerPC/small-loop-rdx.ll | 47 + .../LoopVectorize/PowerPC/vsx-tsvc-s173.ll | 16 +- .../LoopVectorize/X86/already-vectorized.ll | 7 +- test/Transforms/LoopVectorize/X86/assume.ll | 20 +- test/Transforms/LoopVectorize/X86/avx1.ll | 8 +- test/Transforms/LoopVectorize/X86/avx512.ll | 2 +- .../X86/constant-vector-operand.ll | 6 +- .../LoopVectorize/X86/conversion-cost.ll | 4 +- .../LoopVectorize/X86/cost-model.ll | 14 +- .../X86/fp32_to_uint32-cost-model.ll | 6 +- .../X86/fp64_to_uint32-cost-model.ll | 8 +- .../X86/fp_to_sint8-cost-model.ll | 6 +- .../LoopVectorize/X86/gather-cost.ll | 28 +- .../LoopVectorize/X86/gcc-examples.ll | 16 +- .../illegal-parallel-loop-uniform-write.ll | 10 +- .../LoopVectorize/X86/masked_load_store.ll | 198 +- .../LoopVectorize/X86/metadata-enable.ll | 24 +- .../X86/min-trip-count-switch.ll | 4 +- .../Transforms/LoopVectorize/X86/no-vector.ll | 4 +- .../X86/parallel-loops-after-reg2mem.ll | 22 +- .../LoopVectorize/X86/parallel-loops.ll | 42 +- .../Transforms/LoopVectorize/X86/powof2div.ll | 8 +- .../LoopVectorize/X86/reduction-crash.ll | 8 +- .../LoopVectorize/X86/small-size.ll | 46 +- .../LoopVectorize/X86/struct-store.ll | 2 +- .../Transforms/LoopVectorize/X86/tripcount.ll | 4 +- .../X86/uint64_to_fp64-cost-model.ll | 6 +- .../Transforms/LoopVectorize/X86/unroll-pm.ll | 4 +- .../LoopVectorize/X86/unroll-small-loops.ll | 22 +- .../LoopVectorize/X86/unroll_selection.ll | 8 +- .../LoopVectorize/X86/veclib-calls.ll | 632 + .../LoopVectorize/X86/vect.omp.force.ll | 40 +- .../X86/vect.omp.force.small-tc.ll | 16 +- .../X86/vector-scalar-select-cost.ll | 24 +- .../X86/vector_ptr_load_store.ll | 20 +- .../X86/vectorization-remarks-missed.ll | 60 +- .../X86/vectorization-remarks.ll | 38 +- .../X86/x86_fp80-vector-store.ll | 2 +- .../XCore/no-vector-registers.ll | 2 +- test/Transforms/LoopVectorize/align.ll | 14 +- test/Transforms/LoopVectorize/bsd_regex.ll | 2 +- .../LoopVectorize/bzip_reverse_loops.ll | 8 +- test/Transforms/LoopVectorize/calloc.ll | 6 +- .../LoopVectorize/cast-induction.ll | 2 +- .../LoopVectorize/conditional-assignment.ll | 28 +- test/Transforms/LoopVectorize/control-flow.ll | 30 +- .../Transforms/LoopVectorize/cpp-new-array.ll | 12 +- test/Transforms/LoopVectorize/dbg.value.ll | 50 +- test/Transforms/LoopVectorize/debugloc.ll | 62 +- .../LoopVectorize/duplicated-metadata.ll | 4 +- test/Transforms/LoopVectorize/ee-crash.ll | 6 +- test/Transforms/LoopVectorize/exact.ll | 4 +- test/Transforms/LoopVectorize/flags.ll | 12 +- .../LoopVectorize/float-reduction.ll | 8 +- test/Transforms/LoopVectorize/funcall.ll | 4 +- test/Transforms/LoopVectorize/gcc-examples.ll | 237 +- test/Transforms/LoopVectorize/global_alias.ll | 518 +- test/Transforms/LoopVectorize/hoist-loads.ll | 16 +- test/Transforms/LoopVectorize/i8-induction.ll | 2 +- .../LoopVectorize/if-conversion-edgemasks.ll | 17 +- .../LoopVectorize/if-conversion-nest.ll | 8 +- .../LoopVectorize/if-conversion-reduction.ll | 4 +- .../Transforms/LoopVectorize/if-conversion.ll | 24 +- .../LoopVectorize/if-pred-stores.ll | 16 +- .../LoopVectorize/incorrect-dom-info.ll | 8 +- test/Transforms/LoopVectorize/increment.ll | 12 +- test/Transforms/LoopVectorize/induction.ll | 16 +- .../LoopVectorize/induction_plus.ll | 2 +- test/Transforms/LoopVectorize/intrinsic.ll | 332 +- test/Transforms/LoopVectorize/lifetime.ll | 14 +- test/Transforms/LoopVectorize/loop-form.ll | 2 +- .../LoopVectorize/loop-vect-memdep.ll | 10 +- test/Transforms/LoopVectorize/memdep.ll | 56 +- .../LoopVectorize/metadata-unroll.ll | 4 +- .../LoopVectorize/metadata-width.ll | 2 +- test/Transforms/LoopVectorize/metadata.ll | 8 +- .../LoopVectorize/minmax_reduction.ll | 136 +- .../LoopVectorize/multi-use-reduction-bug.ll | 6 +- .../LoopVectorize/multiple-address-spaces.ll | 6 +- .../LoopVectorize/no_array_bounds.ll | 46 +- .../LoopVectorize/no_idiv_reduction.ll | 4 +- .../LoopVectorize/no_int_induction.ll | 12 +- .../LoopVectorize/no_outside_user.ll | 4 +- test/Transforms/LoopVectorize/no_switch.ll | 34 +- test/Transforms/LoopVectorize/nofloat.ll | 2 +- test/Transforms/LoopVectorize/non-const-n.ll | 10 +- test/Transforms/LoopVectorize/nsw-crash.ll | 2 +- test/Transforms/LoopVectorize/opt.ll | 4 +- test/Transforms/LoopVectorize/ptr_loops.ll | 36 +- test/Transforms/LoopVectorize/read-only.ll | 8 +- test/Transforms/LoopVectorize/reduction.ll | 92 +- .../LoopVectorize/reverse_induction.ll | 20 +- test/Transforms/LoopVectorize/reverse_iter.ll | 4 +- .../runtime-check-address-space.ll | 42 +- .../runtime-check-readonly-address-space.ll | 50 +- .../LoopVectorize/runtime-check-readonly.ll | 10 +- .../Transforms/LoopVectorize/runtime-check.ll | 14 +- .../Transforms/LoopVectorize/runtime-limit.ll | 56 +- test/Transforms/LoopVectorize/safegep.ll | 16 +- .../LoopVectorize/same-base-access.ll | 32 +- .../Transforms/LoopVectorize/scalar-select.ll | 10 +- .../LoopVectorize/scev-exitlim-crash.ll | 16 +- .../Transforms/LoopVectorize/simple-unroll.ll | 4 +- test/Transforms/LoopVectorize/small-loop.ll | 10 +- .../LoopVectorize/start-non-zero.ll | 4 +- .../LoopVectorize/store-shuffle-bug.ll | 12 +- .../Transforms/LoopVectorize/struct_access.ll | 8 +- test/Transforms/LoopVectorize/tbaa-nodep.ll | 24 +- .../LoopVectorize/undef-inst-bug.ll | 2 +- test/Transforms/LoopVectorize/unroll.ll | 37 + test/Transforms/LoopVectorize/unroll_novec.ll | 14 +- .../LoopVectorize/unsized-pointee-crash.ll | 4 +- .../Transforms/LoopVectorize/value-ptr-bug.ll | 10 +- .../LoopVectorize/vect.omp.persistence.ll | 10 +- test/Transforms/LoopVectorize/vect.stats.ll | 14 +- .../LoopVectorize/vectorize-once.ll | 15 +- .../LoopVectorize/version-mem-access.ll | 28 +- test/Transforms/LoopVectorize/write-only.ll | 4 +- test/Transforms/LowerAtomic/atomic-swap.ll | 2 +- test/Transforms/LowerBitSets/constant.ll | 34 + test/Transforms/LowerBitSets/layout.ll | 35 + test/Transforms/LowerBitSets/simple.ll | 137 + test/Transforms/LowerBitSets/single-offset.ll | 40 + test/Transforms/LowerExpectIntrinsic/basic.ll | 53 +- .../LowerInvoke/2003-12-10-Crash.ll | 3 + .../2014-06-10-SwitchContiguousOpt.ll | 2 +- .../2014-06-11-SwitchDefaultUnreachableOpt.ll | 11 +- test/Transforms/LowerSwitch/feature.ll | 60 +- ...old-popular-case-to-unreachable-default.ll | 110 + .../Mem2Reg/2002-03-28-UninitializedVal.ll | 2 +- .../2003-04-24-MultipleIdenticalSuccessors.ll | 2 +- .../Mem2Reg/2003-06-26-IterativePromote.ll | 6 +- .../Mem2Reg/2003-10-05-DeadPHIInsertion.ll | 4 +- .../Mem2Reg/2005-06-30-ReadBeforeWrite.ll | 18 +- test/Transforms/Mem2Reg/2005-11-28-Crash.ll | 2 +- .../Mem2Reg/2007-08-27-VolatileLoadsStores.ll | 8 +- test/Transforms/Mem2Reg/ConvertDebugInfo.ll | 44 +- test/Transforms/Mem2Reg/ConvertDebugInfo2.ll | 58 +- .../Mem2Reg/PromoteMemToRegister.ll | 6 +- test/Transforms/Mem2Reg/UndefValuesMerge.ll | 2 +- test/Transforms/Mem2Reg/atomic.ll | 2 +- test/Transforms/Mem2Reg/crash.ll | 6 +- test/Transforms/Mem2Reg/ignore-lifetime.ll | 2 +- .../MemCpyOpt/2008-02-24-MultipleUseofSRet.ll | 4 +- .../MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll | 4 +- .../2011-06-02-CallSlotOverwritten.ll | 12 +- test/Transforms/MemCpyOpt/align.ll | 8 +- test/Transforms/MemCpyOpt/atomic.ll | 6 +- test/Transforms/MemCpyOpt/callslot_deref.ll | 7 +- test/Transforms/MemCpyOpt/crash.ll | 32 +- test/Transforms/MemCpyOpt/form-memset.ll | 189 +- test/Transforms/MemCpyOpt/loadstore-sret.ll | 6 +- .../memcpy-to-memset-with-lifetimes.ll | 2 +- test/Transforms/MemCpyOpt/memcpy-to-memset.ll | 2 +- test/Transforms/MemCpyOpt/memcpy-undef.ll | 8 +- test/Transforms/MemCpyOpt/memcpy.ll | 10 +- test/Transforms/MemCpyOpt/memmove.ll | 8 +- .../memset-memcpy-redundant-memset.ll | 168 + .../MemCpyOpt/memset-memcpy-to-2x-memset.ll | 101 + test/Transforms/MemCpyOpt/smaller.ll | 10 +- test/Transforms/MemCpyOpt/sret.ll | 12 +- .../MergeFunc/2011-02-08-RemoveEqual.ll | 116 +- test/Transforms/MergeFunc/address-spaces.ll | 12 +- test/Transforms/MergeFunc/alloca.ll | 33 + test/Transforms/MergeFunc/crash.ll | 12 +- .../MergeFunc/inttoptr-address-space.ll | 8 +- test/Transforms/MergeFunc/inttoptr.ll | 12 +- .../MergeFunc/mergefunc-struct-return.ll | 12 +- test/Transforms/MergeFunc/ranges.ll | 24 +- test/Transforms/MergeFunc/vector-GEP-crash.ll | 4 +- test/Transforms/MergeFunc/vector.ll | 4 +- test/Transforms/MetaRenamer/metarenamer.ll | 28 +- .../NaryReassociate/NVPTX/lit.local.cfg | 2 + .../NaryReassociate/NVPTX/nary-gep.ll | 77 + .../NaryReassociate/NVPTX/nary-slsr.ll | 47 + test/Transforms/NaryReassociate/nary-add.ll | 209 + test/Transforms/ObjCARC/allocas.ll | 94 +- test/Transforms/ObjCARC/arc-annotations.ll | 83 - test/Transforms/ObjCARC/basic.ll | 334 +- test/Transforms/ObjCARC/cfg-hazards.ll | 2 +- .../ObjCARC/contract-storestrong-ivar.ll | 6 +- .../ObjCARC/contract-storestrong.ll | 122 +- test/Transforms/ObjCARC/contract.ll | 2 +- ...e-that-exception-unwind-path-is-visited.ll | 124 +- test/Transforms/ObjCARC/escape.ll | 68 +- test/Transforms/ObjCARC/gvn.ll | 10 +- .../ObjCARC/intrinsic-use-isolated.ll | 2 +- test/Transforms/ObjCARC/intrinsic-use.ll | 32 +- .../move-and-form-retain-autorelease.ll | 70 +- .../ObjCARC/move-and-merge-autorelease.ll | 16 +- test/Transforms/ObjCARC/nested.ll | 252 +- test/Transforms/ObjCARC/path-overflow.ll | 60 +- test/Transforms/ObjCARC/provenance.ll | 18 +- .../ObjCARC/retain-block-side-effects.ll | 16 +- test/Transforms/ObjCARC/weak-copies.ll | 16 +- .../2010-03-22-empty-baseclass.ll | 42 +- test/Transforms/PhaseOrdering/PR6627.ll | 36 +- test/Transforms/PhaseOrdering/basic.ll | 16 +- test/Transforms/PhaseOrdering/gdce.ll | 20 +- test/Transforms/PhaseOrdering/scev.ll | 12 +- test/Transforms/PlaceSafepoints/basic.ll | 94 + .../PlaceSafepoints/call-in-loop.ll | 31 + .../PlaceSafepoints/call_gc_result.ll | 38 + .../PlaceSafepoints/finite-loops.ll | 80 + test/Transforms/PlaceSafepoints/invokes.ll | 111 + test/Transforms/PlaceSafepoints/memset.ll | 20 + .../PlaceSafepoints/patchable-statepoints.ll | 44 + .../PlaceSafepoints/split-backedge.ll | 46 + .../statepoint-calling-conventions.ll | 42 + .../PlaceSafepoints/statepoint-coreclr.ll | 31 + .../PlaceSafepoints/statepoint-format.ll | 42 + .../PlaceSafepoints/statepoint-frameescape.ll | 29 + .../PruneEH/2003-11-21-PHIUpdate.ll | 15 - test/Transforms/PruneEH/recursivetest.ll | 5 + test/Transforms/PruneEH/seh-nounwind.ll | 31 + test/Transforms/PruneEH/simpletest.ll | 4 + .../Reassociate/2011-01-26-UseAfterFree.ll | 4 +- test/Transforms/Reassociate/basictest.ll | 24 +- test/Transforms/Reassociate/crash.ll | 6 +- test/Transforms/Reassociate/crash2.ll | 25 + .../Reassociate/fast-ReassociateVector.ll | 224 +- test/Transforms/Reassociate/fast-basictest.ll | 18 +- test/Transforms/Reassociate/looptest.ll | 4 +- test/Transforms/Reassociate/min_int.ll | 13 + test/Transforms/Reassociate/pr12245.ll | 20 +- test/Transforms/Reassociate/pr21205.ll | 2 +- .../base-pointers-1.ll | 28 + .../base-pointers-10.ll | 37 + .../base-pointers-11.ll | 26 + .../base-pointers-2.ll | 21 + .../base-pointers-3.ll | 20 + .../base-pointers-4.ll | 53 + .../base-pointers-5.ll | 30 + .../base-pointers-6.ll | 41 + .../base-pointers-7.ll | 52 + .../base-pointers-8.ll | 38 + .../base-pointers-9.ll | 21 + .../RewriteStatepointsForGC/base-pointers.ll | 100 + .../RewriteStatepointsForGC/basics.ll | 88 + .../RewriteStatepointsForGC/constants.ll | 60 + .../gc_relocate_creation.ll | 20 + .../RewriteStatepointsForGC/live-vector.ll | 121 + .../liveness-basics.ll | 166 + .../RewriteStatepointsForGC/preprocess.ll | 65 + .../relocate_invoke_result.ll | 33 + .../RewriteStatepointsForGC/relocation.ll | 295 + .../rematerialize-derived-pointers.ll | 222 + .../SCCP/2002-08-30-GetElementPtrTest.ll | 2 +- .../SCCP/2003-06-24-OverdefinedPHIValue.ll | 6 +- .../SCCP/2006-10-23-IPSCCP-Crash.ll | 8 +- test/Transforms/SCCP/2006-12-04-PackedType.ll | 8 +- .../SCCP/2009-05-27-VectorOperandZero.ll | 2 +- test/Transforms/SCCP/apint-array.ll | 8 +- test/Transforms/SCCP/apint-bigarray.ll | 6 +- test/Transforms/SCCP/apint-bigint2.ll | 8 +- test/Transforms/SCCP/apint-ipsccp3.ll | 4 +- test/Transforms/SCCP/apint-ipsccp4.ll | 8 +- test/Transforms/SCCP/apint-load.ll | 10 +- test/Transforms/SCCP/apint-select.ll | 2 +- test/Transforms/SCCP/atomic-load-store.ll | 4 +- test/Transforms/SCCP/ipsccp-basic.ll | 6 +- test/Transforms/SCCP/loadtest.ll | 12 +- test/Transforms/SCCP/retvalue-undef.ll | 2 +- .../SLPVectorizer/AArch64/commute.ll | 28 +- .../SLPVectorizer/AArch64/load-store-q.ll | 16 +- .../SLPVectorizer/AArch64/sdiv-pow2.ll | 34 +- test/Transforms/SLPVectorizer/ARM/memory.ll | 8 +- test/Transforms/SLPVectorizer/ARM/sroa.ll | 4 +- .../Transforms/SLPVectorizer/R600/simplebb.ll | 54 +- test/Transforms/SLPVectorizer/X86/addsub.ll | 285 +- test/Transforms/SLPVectorizer/X86/align.ll | 38 +- test/Transforms/SLPVectorizer/X86/atomics.ll | 31 + .../Transforms/SLPVectorizer/X86/bad_types.ll | 2 +- .../SLPVectorizer/X86/barriercall.ll | 8 +- test/Transforms/SLPVectorizer/X86/call.ll | 80 +- test/Transforms/SLPVectorizer/X86/cast.ll | 20 +- test/Transforms/SLPVectorizer/X86/cmp_sel.ll | 10 +- .../SLPVectorizer/X86/compare-reduce.ll | 10 +- .../SLPVectorizer/X86/consecutive-access.ll | 80 +- .../SLPVectorizer/X86/continue_vectorizing.ll | 18 +- .../SLPVectorizer/X86/crash_7zip.ll | 4 +- .../SLPVectorizer/X86/crash_binaryop.ll | 2 +- .../SLPVectorizer/X86/crash_bullet.ll | 10 +- .../SLPVectorizer/X86/crash_bullet3.ll | 4 +- .../SLPVectorizer/X86/crash_cmpop.ll | 56 + .../SLPVectorizer/X86/crash_dequeue.ll | 14 +- .../Transforms/SLPVectorizer/X86/crash_gep.ll | 6 +- .../SLPVectorizer/X86/crash_lencod.ll | 14 +- .../SLPVectorizer/X86/crash_mandeltext.ll | 12 +- .../X86/crash_netbsd_decompress.ll | 12 +- .../SLPVectorizer/X86/crash_scheduling.ll | 4 +- .../SLPVectorizer/X86/crash_sim4b1.ll | 4 +- .../SLPVectorizer/X86/crash_smallpt.ll | 12 +- .../SLPVectorizer/X86/crash_vectorizeTree.ll | 16 +- .../SLPVectorizer/X86/cross_block_slp.ll | 14 +- test/Transforms/SLPVectorizer/X86/cse.ll | 86 +- .../Transforms/SLPVectorizer/X86/cycle_dup.ll | 18 +- .../SLPVectorizer/X86/debug_info.ll | 76 +- test/Transforms/SLPVectorizer/X86/diamond.ll | 60 +- .../SLPVectorizer/X86/external_user.ll | 12 +- test/Transforms/SLPVectorizer/X86/extract.ll | 18 +- .../SLPVectorizer/X86/extract_in_tree_user.ll | 42 +- .../SLPVectorizer/X86/extractcost.ll | 6 +- test/Transforms/SLPVectorizer/X86/flag.ll | 24 +- test/Transforms/SLPVectorizer/X86/gep.ll | 32 +- test/Transforms/SLPVectorizer/X86/hoist.ll | 16 +- .../SLPVectorizer/X86/horizontal.ll | 194 +- .../SLPVectorizer/X86/implicitfloat.ll | 14 +- .../SLPVectorizer/X86/in-tree-user.ll | 10 +- .../Transforms/SLPVectorizer/X86/intrinsic.ll | 286 +- .../SLPVectorizer/X86/long_chains.ll | 8 +- .../SLPVectorizer/X86/loopinvariant.ll | 32 +- test/Transforms/SLPVectorizer/X86/metadata.ll | 28 +- .../SLPVectorizer/X86/multi_block.ll | 12 +- .../SLPVectorizer/X86/multi_user.ll | 18 +- .../Transforms/SLPVectorizer/X86/odd_store.ll | 16 +- .../SLPVectorizer/X86/operandorder.ll | 192 +- test/Transforms/SLPVectorizer/X86/opt.ll | 14 +- test/Transforms/SLPVectorizer/X86/ordering.ll | 2 +- test/Transforms/SLPVectorizer/X86/phi.ll | 72 +- test/Transforms/SLPVectorizer/X86/phi3.ll | 2 +- .../SLPVectorizer/X86/phi_overalignedtype.ll | 24 +- .../Transforms/SLPVectorizer/X86/powof2div.ll | 36 +- test/Transforms/SLPVectorizer/X86/pr16628.ll | 6 +- test/Transforms/SLPVectorizer/X86/pr16899.ll | 8 +- test/Transforms/SLPVectorizer/X86/pr19657.ll | 90 +- .../SLPVectorizer/X86/propagate_ir_flags.ll | 208 +- .../Transforms/SLPVectorizer/X86/reduction.ll | 8 +- .../SLPVectorizer/X86/reduction2.ll | 8 +- test/Transforms/SLPVectorizer/X86/return.ll | 30 +- test/Transforms/SLPVectorizer/X86/rgb_phi.ll | 22 +- test/Transforms/SLPVectorizer/X86/saxpy.ll | 44 +- .../SLPVectorizer/X86/scheduling.ll | 42 +- .../SLPVectorizer/X86/simple-loop.ll | 48 +- test/Transforms/SLPVectorizer/X86/simplebb.ll | 56 +- .../Transforms/SLPVectorizer/X86/tiny-tree.ll | 80 +- .../SLPVectorizer/X86/unreachable.ll | 22 +- .../XCore/no-vector-registers.ll | 14 +- test/Transforms/SROA/address-spaces.ll | 8 +- test/Transforms/SROA/alignment.ll | 68 +- test/Transforms/SROA/basictest.ll | 640 +- test/Transforms/SROA/big-endian.ll | 30 +- test/Transforms/SROA/fca.ll | 14 +- test/Transforms/SROA/phi-and-select.ll | 104 +- test/Transforms/SROA/ppcf128-no-fold.ll | 36 + .../SROA/slice-order-independence.ll | 12 +- test/Transforms/SROA/slice-width.ll | 20 +- test/Transforms/SROA/vector-conversion.ll | 6 +- .../SROA/vector-lifetime-intrinsic.ll | 2 +- test/Transforms/SROA/vector-promotion.ll | 216 +- test/Transforms/SROA/vectors-of-pointers.ll | 2 +- .../SampleProfile/Inputs/entry_counts.prof | 3 + test/Transforms/SampleProfile/branch.ll | 98 +- test/Transforms/SampleProfile/calls.ll | 68 +- .../Transforms/SampleProfile/discriminator.ll | 46 +- test/Transforms/SampleProfile/entry_counts.ll | 24 + test/Transforms/SampleProfile/fnptr.ll | 44 +- test/Transforms/SampleProfile/propagate.ll | 148 +- .../ScalarRepl/2003-05-29-ArrayFail.ll | 6 +- .../ScalarRepl/2003-09-12-IncorrectPromote.ll | 4 +- .../ScalarRepl/2003-10-29-ArrayProblem.ll | 4 +- .../2006-11-07-InvalidArrayPromote.ll | 8 +- .../ScalarRepl/2007-05-29-MemcpyPreserve.ll | 10 +- .../ScalarRepl/2007-11-03-bigendian_apint.ll | 20 +- .../ScalarRepl/2008-01-29-PromoteBug.ll | 6 +- .../2008-02-28-SubElementExtractCrash.ll | 8 +- .../ScalarRepl/2008-06-05-loadstore-agg.ll | 8 +- .../2008-08-22-out-of-range-array-promote.ll | 4 +- .../ScalarRepl/2008-09-22-vector-gep.ll | 4 +- .../2009-02-02-ScalarPromoteOutOfRange.ll | 6 +- .../ScalarRepl/2009-02-05-LoadFCA.ll | 2 +- .../ScalarRepl/2009-03-04-MemCpyAlign.ll | 2 +- .../ScalarRepl/2009-12-11-NeonTypes.ll | 32 +- .../ScalarRepl/2011-05-06-CapturedAlloca.ll | 2 +- .../2011-06-08-VectorExtractValue.ll | 26 +- .../2011-06-17-VectorPartialMemset.ll | 4 +- .../2011-09-22-PHISpeculateInvoke.ll | 2 +- .../ScalarRepl/2011-10-22-VectorCrash.ll | 2 +- .../ScalarRepl/2011-11-11-EmptyStruct.ll | 4 +- .../Transforms/ScalarRepl/AggregatePromote.ll | 26 +- test/Transforms/ScalarRepl/DifferingTypes.ll | 2 +- test/Transforms/ScalarRepl/address-space.ll | 12 +- test/Transforms/ScalarRepl/arraytest.ll | 4 +- test/Transforms/ScalarRepl/badarray.ll | 10 +- test/Transforms/ScalarRepl/basictest.ll | 6 +- test/Transforms/ScalarRepl/bitfield-sroa.ll | 6 +- test/Transforms/ScalarRepl/copy-aggregate.ll | 28 +- test/Transforms/ScalarRepl/crash.ll | 38 +- .../ScalarRepl/debuginfo-preserved.ll | 58 +- test/Transforms/ScalarRepl/inline-vector.ll | 10 +- test/Transforms/ScalarRepl/lifetime.ll | 62 +- .../ScalarRepl/load-store-aggregate.ll | 12 +- test/Transforms/ScalarRepl/memcpy-align.ll | 2 +- .../memset-aggregate-byte-leader.ll | 6 +- .../Transforms/ScalarRepl/memset-aggregate.ll | 24 +- test/Transforms/ScalarRepl/negative-memset.ll | 2 +- .../ScalarRepl/nonzero-first-index.ll | 20 +- test/Transforms/ScalarRepl/not-a-vector.ll | 6 +- .../Transforms/ScalarRepl/only-memcpy-uses.ll | 2 +- test/Transforms/ScalarRepl/phi-cycle.ll | 10 +- test/Transforms/ScalarRepl/phi-select.ll | 34 +- test/Transforms/ScalarRepl/phinodepromote.ll | 6 +- test/Transforms/ScalarRepl/select_promote.ll | 6 +- test/Transforms/ScalarRepl/sroa-fca.ll | 4 +- test/Transforms/ScalarRepl/sroa_two.ll | 8 +- test/Transforms/ScalarRepl/union-fp-int.ll | 2 +- test/Transforms/ScalarRepl/union-packed.ll | 2 +- test/Transforms/ScalarRepl/union-pointer.ll | 24 +- test/Transforms/ScalarRepl/vector_memcpy.ll | 4 +- test/Transforms/ScalarRepl/vector_promote.ll | 46 +- .../vectors-with-mismatched-elements.ll | 4 +- test/Transforms/ScalarRepl/volatile.ll | 6 +- test/Transforms/Scalarizer/basic.ll | 164 +- test/Transforms/Scalarizer/dbginfo.ll | 80 +- test/Transforms/Scalarizer/no-data-layout.ll | 25 - .../NVPTX/split-gep-and-gvn.ll | 98 +- .../NVPTX/split-gep.ll | 88 +- .../NVPTX/value-tracking-domtree.ll | 33 + .../SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll | 2 +- .../SimplifyCFG/2005-06-16-PHICrash.ll | 4 +- .../SimplifyCFG/2005-08-01-PHIUpdateFail.ll | 2 +- .../2005-12-03-IncorrectPHIFold.ll | 44 +- .../SimplifyCFG/2006-08-03-Crash.ll | 46 +- .../SimplifyCFG/2006-12-08-Ptr-ICmp-Branch.ll | 42 +- .../SimplifyCFG/2007-11-22-InvokeNoUnwind.ll | 4 + .../SimplifyCFG/2007-12-21-Crash.ll | 4 +- .../SimplifyCFG/2008-01-02-hoist-fp-add.ll | 16 +- .../2008-07-13-InfLoopMiscompile.ll | 4 +- .../SimplifyCFG/2008-09-08-MultiplePred.ll | 2 +- .../SimplifyCFG/2008-12-16-DCECond.ll | 8 +- .../SimplifyCFG/2009-05-12-externweak.ll | 2 +- .../SimplifyCFG/AArch64/lit.local.cfg | 5 + .../SimplifyCFG/AArch64/prefer-fma.ll | 72 + .../Transforms/SimplifyCFG/EmptyBlockMerge.ll | 2 +- test/Transforms/SimplifyCFG/MagicPointer.ll | 16 +- test/Transforms/SimplifyCFG/PR17073.ll | 6 +- test/Transforms/SimplifyCFG/PhiBlockMerge.ll | 4 +- .../SimplifyCFG}/PowerPC/cttz-ctlz-spec.ll | 14 +- .../SimplifyCFG/PowerPC/lit.local.cfg | 2 + .../SimplifyCFG}/R600/cttz-ctlz.ll | 76 +- .../Transforms/SimplifyCFG/R600/lit.local.cfg | 2 + .../Transforms/SimplifyCFG/SpeculativeExec.ll | 20 +- .../SimplifyCFG/UnreachableEliminate.ll | 30 +- .../SimplifyCFG/X86/speculate-cttz-ctlz.ll} | 282 +- .../SimplifyCFG/X86/switch-covered-bug.ll | 4 +- .../SimplifyCFG/X86/switch-table-bug.ll | 4 +- .../SimplifyCFG/X86/switch_to_lookup_table.ll | 118 +- .../SimplifyCFG/attr-noduplicate.ll | 4 +- test/Transforms/SimplifyCFG/basictest.ll | 5 +- .../Transforms/SimplifyCFG/branch-fold-dbg.ll | 32 +- .../SimplifyCFG/branch-fold-threshold.ll | 2 +- .../SimplifyCFG/branch-phi-thread.ll | 2 +- test/Transforms/SimplifyCFG/clamp.ll | 22 + .../SimplifyCFG/common-dest-folding.ll | 4 +- test/Transforms/SimplifyCFG/dbginfo.ll | 2 +- .../SimplifyCFG/duplicate-landingpad.ll | 110 + .../SimplifyCFG/hoist-common-code.ll | 4 +- test/Transforms/SimplifyCFG/hoist-dbgvalue.ll | 54 +- .../SimplifyCFG/hoist-with-range.ll | 6 +- test/Transforms/SimplifyCFG/indirectbr.ll | 8 +- .../SimplifyCFG/iterative-simplify.ll | 18 +- test/Transforms/SimplifyCFG/multiple-phis.ll | 4 +- .../no_speculative_loads_with_tsan.ll | 6 +- .../SimplifyCFG/phi-undef-loadstore.ll | 10 +- .../SimplifyCFG/preserve-branchweights.ll | 2 +- test/Transforms/SimplifyCFG/seh-nounwind.ll | 31 + test/Transforms/SimplifyCFG/select-gep.ll | 25 +- .../Transforms/SimplifyCFG/speculate-store.ll | 40 +- .../SimplifyCFG/speculate-with-offset.ll | 16 +- .../SimplifyCFG/switch-range-to-icmp.ll | 27 + ...h-to-select-multiple-edge-per-block-phi.ll | 4 +- .../SimplifyCFG/switch-to-select-two-case.ll | 35 - test/Transforms/SimplifyCFG/switch_create.ll | 4 +- test/Transforms/SimplifyCFG/trap-debugloc.ll | 18 +- .../SimplifyCFG/trapping-load-unreachable.ll | 2 +- test/Transforms/SimplifyCFG/trivial-throw.ll | 77 - .../SimplifyCFG/unreachable-blocks.ll | 4 +- .../SimplifyCFG/volatile-phioper.ll | 6 +- test/Transforms/Sink/basic.ll | 24 +- test/Transforms/SpeculativeExecution/spec.ll | 195 + .../NVPTX/lit.local.cfg | 2 + .../NVPTX/reassociate-geps-and-slsr.ll | 74 + .../X86/lit.local.cfg | 2 + .../StraightLineStrengthReduce/X86/no-slsr.ll | 44 + .../StraightLineStrengthReduce/slsr-add.ll | 101 + .../StraightLineStrengthReduce/slsr-gep.ll | 168 + .../StraightLineStrengthReduce/slsr-mul.ll | 147 + .../StripSymbols/2010-06-30-StripDebug.ll | 24 +- .../StripSymbols/2010-08-25-crash.ll | 24 +- .../StripSymbols/strip-dead-debug-info.ll | 46 +- .../StructurizeCFG/branch-on-argument.ll | 2 +- .../StructurizeCFG/loop-multiple-exits.ll | 4 +- .../StructurizeCFG/nested-loop-order.ll | 79 + .../one-loop-multiple-backedges.ll | 19 +- .../post-order-traversal-bug.ll | 100 + test/Transforms/TailCallElim/basic.ll | 2 +- .../TailCallElim/dont_reorder_load.ll | 6 +- test/Transforms/TailCallElim/inf-recursion.ll | 21 + test/Transforms/TailCallElim/reorder_load.ll | 20 +- .../TailDup/2008-06-11-AvoidDupLoopHeader.ll | 2 +- test/Transforms/Util/lowerswitch.ll | 140 +- .../2002-11-05-GetelementptrPointers.ll | 2 +- test/Verifier/2006-10-15-AddrLabel.ll | 2 +- test/Verifier/2008-01-11-VarargAttrs.ll | 2 +- test/Verifier/2008-03-01-AllocaSized.ll | 2 +- test/Verifier/2010-08-07-PointerIntrinsic.ll | 4 +- ...onstant-inttoptr-inside-gep-instruction.ll | 2 +- .../bitcast-address-space-through-gep-2.ll | 4 +- .../bitcast-address-space-through-gep.ll | 2 +- test/Verifier/comdat3.ll | 5 + test/Verifier/dbg-typerefs.ll | 32 + test/Verifier/dbg.ll | 18 + test/Verifier/frameallocate.ll | 48 - test/Verifier/frameescape.ll | 69 + test/Verifier/function-metadata-bad.ll | 35 + test/Verifier/function-metadata-good.ll | 8 + test/Verifier/gc_relocate_addrspace.ll | 23 + test/Verifier/gc_relocate_operand.ll | 21 + test/Verifier/gc_relocate_return.ll | 22 + test/Verifier/ident-meta4.ll | 9 + test/Verifier/inalloca-vararg.ll | 2 +- test/Verifier/invalid-patchable-statepoint.ll | 14 + test/Verifier/invalid-statepoint.ll | 20 + test/Verifier/invalid-statepoint2.ll | 18 + test/Verifier/llvm.dbg.declare-address.ll | 17 + test/Verifier/llvm.dbg.declare-expression.ll | 17 + test/Verifier/llvm.dbg.declare-variable.ll | 17 + .../llvm.dbg.intrinsic-dbg-attachment.ll | 61 + test/Verifier/llvm.dbg.value-expression.ll | 17 + test/Verifier/llvm.dbg.value-value.ll | 17 + test/Verifier/llvm.dbg.value-variable.ll | 17 + .../mdcompositetype-templateparams-tuple.ll | 11 + .../mdcompositetype-templateparams.ll | 12 + test/Verifier/memcpy.ll | 9 + test/Verifier/module-flags-2.ll | 6 + test/Verifier/module-flags-3.ll | 6 + test/Verifier/musttail-invalid.ll | 2 +- test/Verifier/musttail-valid.ll | 6 +- test/Verifier/range-1.ll | 32 +- test/Verifier/range-2.ll | 10 +- test/Verifier/recursive-struct-param.ll | 15 + test/Verifier/statepoint.ll | 58 +- test/Verifier/varargs-intrinsic.ll | 2 +- test/YAMLParser/{bool.data => bool.test} | 0 ...onstruct-bool.data => construct-bool.test} | 0 ...ruct-custom.data => construct-custom.test} | 0 ...struct-float.data => construct-float.test} | 0 ...{construct-int.data => construct-int.test} | 0 ...{construct-map.data => construct-map.test} | 0 ...struct-merge.data => construct-merge.test} | 0 ...onstruct-null.data => construct-null.test} | 0 ...onstruct-omap.data => construct-omap.test} | 0 ...struct-pairs.data => construct-pairs.test} | 0 ...{construct-seq.data => construct-seq.test} | 0 ...{construct-set.data => construct-set.test} | 0 ...tr-ascii.data => construct-str-ascii.test} | 0 ...{construct-str.data => construct-str.test} | 0 ...imestamp.data => construct-timestamp.test} | 0 ...struct-value.data => construct-value.test} | 0 ...=> duplicate-key.former-loader-error.test} | 0 ...cate-mapping-key.former-loader-error.test} | 0 ...licate-merge-key.former-loader-error.test} | 0 ...licate-value-key.former-loader-error.test} | 0 ...ock-scalar-in-simple-key-context-bug.test} | 0 ...ument-bug.data => empty-document-bug.test} | 0 test/YAMLParser/{float.data => float.test} | 0 test/YAMLParser/{int.data => int.test} | 0 ...bug.data => invalid-single-quote-bug.test} | 0 test/YAMLParser/{merge.data => merge.test} | 0 .../{more-floats.data => more-floats.test} | 0 ...float-bug.data => negative-float-bug.test} | 0 test/YAMLParser/{null.data => null.test} | 0 .../{resolver.data => resolver.test} | 0 ...ash-bug.data => run-parser-crash-bug.test} | 0 ...nd-bug.data => scan-document-end-bug.test} | 0 ...reak-bug.data => scan-line-break-bug.test} | 0 ....data => single-dot-is-not-float-bug.test} | 0 ...dentation.data => sloppy-indentation.test} | 0 .../{spec-02-01.data => spec-02-01.test} | 0 .../{spec-02-02.data => spec-02-02.test} | 0 .../{spec-02-03.data => spec-02-03.test} | 0 .../{spec-02-04.data => spec-02-04.test} | 0 .../{spec-02-05.data => spec-02-05.test} | 0 .../{spec-02-06.data => spec-02-06.test} | 0 .../{spec-02-07.data => spec-02-07.test} | 0 .../{spec-02-08.data => spec-02-08.test} | 0 .../{spec-02-09.data => spec-02-09.test} | 0 .../{spec-02-10.data => spec-02-10.test} | 0 .../{spec-02-11.data => spec-02-11.test} | 0 .../{spec-02-12.data => spec-02-12.test} | 0 .../{spec-02-13.data => spec-02-13.test} | 0 .../{spec-02-14.data => spec-02-14.test} | 0 .../{spec-02-15.data => spec-02-15.test} | 0 .../{spec-02-16.data => spec-02-16.test} | 0 .../{spec-02-17.data => spec-02-17.test} | 0 .../{spec-02-18.data => spec-02-18.test} | 0 .../{spec-02-19.data => spec-02-19.test} | 0 .../{spec-02-20.data => spec-02-20.test} | 0 .../{spec-02-21.data => spec-02-21.test} | 0 .../{spec-02-22.data => spec-02-22.test} | 0 .../{spec-02-23.data => spec-02-23.test} | 0 .../{spec-02-24.data => spec-02-24.test} | 0 .../{spec-02-25.data => spec-02-25.test} | 0 .../{spec-02-26.data => spec-02-26.test} | 0 .../{spec-02-27.data => spec-02-27.test} | 0 .../{spec-02-28.data => spec-02-28.test} | 0 ...c-05-01-utf8.data => spec-05-01-utf8.test} | 0 ...c-05-02-utf8.data => spec-05-02-utf8.test} | 2 +- .../{spec-05-03.data => spec-05-03.test} | 0 .../{spec-05-04.data => spec-05-04.test} | 0 .../{spec-05-05.data => spec-05-05.test} | 0 .../{spec-05-06.data => spec-05-06.test} | 0 .../{spec-05-07.data => spec-05-07.test} | 0 .../{spec-05-08.data => spec-05-08.test} | 0 .../{spec-05-09.data => spec-05-09.test} | 0 .../{spec-05-10.data => spec-05-10.test} | 2 +- .../{spec-05-11.data => spec-05-11.test} | 0 .../{spec-05-12.data => spec-05-12.test} | 6 +- .../{spec-05-13.data => spec-05-13.test} | 0 .../{spec-05-14.data => spec-05-14.test} | 0 test/YAMLParser/spec-05-15.data | 7 - test/YAMLParser/spec-05-15.test | 7 + .../{spec-06-01.data => spec-06-01.test} | 0 .../{spec-06-02.data => spec-06-02.test} | 0 .../{spec-06-03.data => spec-06-03.test} | 0 .../{spec-06-04.data => spec-06-04.test} | 0 .../{spec-06-05.data => spec-06-05.test} | 0 .../{spec-06-06.data => spec-06-06.test} | 0 .../{spec-06-07.data => spec-06-07.test} | 0 .../{spec-06-08.data => spec-06-08.test} | 0 .../{spec-07-01.data => spec-07-01.test} | 0 .../{spec-07-02.data => spec-07-02.test} | 0 test/YAMLParser/spec-07-03.data | 7 - test/YAMLParser/spec-07-03.test | 7 + .../{spec-07-04.data => spec-07-04.test} | 0 test/YAMLParser/spec-07-05.data | 10 - test/YAMLParser/spec-07-05.test | 8 + .../{spec-07-06.data => spec-07-06.test} | 0 .../{spec-07-07a.data => spec-07-07a.test} | 0 .../{spec-07-07b.data => spec-07-07b.test} | 0 .../{spec-07-08.data => spec-07-08.test} | 0 .../{spec-07-09.data => spec-07-09.test} | 0 .../{spec-07-10.data => spec-07-10.test} | 0 .../{spec-07-11.data => spec-07-11.test} | 0 .../{spec-07-12a.data => spec-07-12a.test} | 0 .../{spec-07-12b.data => spec-07-12b.test} | 0 .../{spec-07-13.data => spec-07-13.test} | 0 .../{spec-08-01.data => spec-08-01.test} | 0 .../{spec-08-02.data => spec-08-02.test} | 0 .../{spec-08-03.data => spec-08-03.test} | 0 test/YAMLParser/spec-08-04.data | 9 - test/YAMLParser/spec-08-04.test | 7 + .../{spec-08-05.data => spec-08-05.test} | 0 .../{spec-08-06.data => spec-08-06.test} | 5 +- .../{spec-08-07.data => spec-08-07.test} | 0 .../{spec-08-08.data => spec-08-08.test} | 0 .../{spec-08-09.data => spec-08-09.test} | 0 .../{spec-08-10.data => spec-08-10.test} | 0 .../{spec-08-11.data => spec-08-11.test} | 0 .../{spec-08-12.data => spec-08-12.test} | 0 .../{spec-08-13.data => spec-08-13.test} | 0 .../{spec-08-14.data => spec-08-14.test} | 0 .../{spec-08-15.data => spec-08-15.test} | 0 .../{spec-09-01.data => spec-09-01.test} | 0 test/YAMLParser/spec-09-02.data | 14 - test/YAMLParser/spec-09-02.test | 14 + .../{spec-09-03.data => spec-09-03.test} | 0 .../{spec-09-04.data => spec-09-04.test} | 0 .../{spec-09-05.data => spec-09-05.test} | 0 .../{spec-09-06.data => spec-09-06.test} | 0 .../{spec-09-07.data => spec-09-07.test} | 0 .../{spec-09-08.data => spec-09-08.test} | 0 .../{spec-09-09.data => spec-09-09.test} | 0 .../{spec-09-10.data => spec-09-10.test} | 0 .../{spec-09-11.data => spec-09-11.test} | 0 .../{spec-09-12.data => spec-09-12.test} | 0 .../{spec-09-13.data => spec-09-13.test} | 0 test/YAMLParser/spec-09-14.data | 21 - test/YAMLParser/spec-09-14.test | 18 + .../{spec-09-15.data => spec-09-15.test} | 0 .../{spec-09-16.data => spec-09-16.test} | 0 .../{spec-09-17.data => spec-09-17.test} | 0 test/YAMLParser/spec-09-18.data | 11 - test/YAMLParser/spec-09-18.test | 15 + test/YAMLParser/spec-09-19.data | 6 - test/YAMLParser/spec-09-19.test | 8 + test/YAMLParser/spec-09-20.data | 13 - test/YAMLParser/spec-09-20.test | 17 + test/YAMLParser/spec-09-21.data | 12 - test/YAMLParser/spec-09-21.test | 12 + test/YAMLParser/spec-09-22.data | 6 - test/YAMLParser/spec-09-22.test | 12 + .../{spec-09-23.data => spec-09-23.test} | 0 test/YAMLParser/spec-09-24.data | 8 - test/YAMLParser/spec-09-24.test | 13 + test/YAMLParser/spec-09-25.data | 5 - test/YAMLParser/spec-09-25.test | 6 + test/YAMLParser/spec-09-26.data | 10 - test/YAMLParser/spec-09-26.test | 11 + test/YAMLParser/spec-09-27.data | 10 - test/YAMLParser/spec-09-28.data | 10 - .../{spec-09-29.data => spec-09-29.test} | 0 .../{spec-09-30.data => spec-09-30.test} | 0 .../{spec-09-31.data => spec-09-31.test} | 0 .../{spec-09-32.data => spec-09-32.test} | 0 .../{spec-09-33.data => spec-09-33.test} | 0 .../{spec-10-01.data => spec-10-01.test} | 0 .../{spec-10-02.data => spec-10-02.test} | 0 .../{spec-10-03.data => spec-10-03.test} | 0 .../{spec-10-04.data => spec-10-04.test} | 0 .../{spec-10-05.data => spec-10-05.test} | 0 .../{spec-10-06.data => spec-10-06.test} | 0 .../{spec-10-07.data => spec-10-07.test} | 0 .../{spec-10-08.data => spec-10-08.test} | 8 +- .../{spec-10-09.data => spec-10-09.test} | 0 .../{spec-10-10.data => spec-10-10.test} | 0 .../{spec-10-11.data => spec-10-11.test} | 0 .../{spec-10-12.data => spec-10-12.test} | 0 .../{spec-10-13.data => spec-10-13.test} | 0 .../{spec-10-14.data => spec-10-14.test} | 0 .../{spec-10-15.data => spec-10-15.test} | 0 test/YAMLParser/{str.data => str.test} | 0 ...imestamp-bugs.data => timestamp-bugs.test} | 0 .../{timestamp.data => timestamp.test} | 0 ...{utf8-implicit.data => utf8-implicit.test} | 0 test/YAMLParser/{utf8.data => utf8.test} | 0 test/YAMLParser/{value.data => value.test} | 0 test/YAMLParser/{yaml.data => yaml.test} | 0 test/lit.cfg | 51 +- test/lit.site.cfg.in | 3 + .../Inputs/basic-lto-dw4.macho.x86_64 | Bin 0 -> 8920 bytes .../Inputs/basic-lto-dw4.macho.x86_64.o | Bin 0 -> 3800 bytes .../tools/dsymutil/X86/basic-linking-x86.test | 218 + .../X86/basic-lto-dw4-linking-x86.test | 204 + .../dsymutil/X86/basic-lto-linking-x86.test | 207 + test/tools/dsymutil/X86/lit.local.cfg | 2 + test/tools/dsymutil/basic-linking.test | 149 + test/tools/dsymutil/debug-map-parsing.test | 52 +- test/tools/gold/Inputs/drop-debug.bc | Bin 0 -> 1152 bytes test/tools/gold/alias.ll | 2 +- test/tools/gold/bad-alias.ll | 2 +- test/tools/gold/bcsection.ll | 2 +- test/tools/gold/coff.ll | 2 +- test/tools/gold/comdat.ll | 2 +- test/tools/gold/common.ll | 6 +- test/tools/gold/drop-debug.ll | 8 + test/tools/gold/emit-llvm.ll | 6 +- test/tools/gold/invalid.ll | 2 +- test/tools/gold/linker-script.ll | 2 +- test/tools/gold/linkonce-weak.ll | 4 +- test/tools/gold/mtriple.ll | 4 +- test/tools/gold/no-map-whole-file.ll | 2 +- test/tools/gold/opt-level.ll | 50 + test/tools/gold/option.ll | 39 - test/tools/gold/pr19901.ll | 5 +- test/tools/gold/remarks.ll | 22 + test/tools/gold/slp-vectorize.ll | 16 +- test/tools/gold/stats.ll | 2 +- test/tools/gold/vectorize.ll | 6 +- test/tools/gold/weak.ll | 2 +- .../llvm-cov/Inputs/binary-formats.macho32b | Bin 0 -> 9352 bytes .../llvm-cov/Inputs/binary-formats.macho32l | Bin 0 -> 812 bytes .../llvm-cov/Inputs/binary-formats.macho64l | Bin 0 -> 920 bytes .../llvm-cov/Inputs/binary-formats.proftext | 4 + .../Inputs/highlightedRanges.covmapping | Bin 355 -> 355 bytes .../Inputs/lineExecutionCounts.profdata | Bin 656 -> 0 bytes .../Inputs/lineExecutionCounts.proftext | 8 + .../llvm-cov/Inputs/regionMarkers.covmapping | Bin 194 -> 202 bytes .../llvm-cov/Inputs/regionMarkers.profdata | Bin 656 -> 0 bytes .../llvm-cov/Inputs/regionMarkers.proftext | 8 + test/tools/llvm-cov/Inputs/report.covmapping | Bin 256 -> 219 bytes .../llvm-cov/Inputs/showExpansions.covmapping | Bin 194 -> 250 bytes test/tools/llvm-cov/Inputs/universal-binary | Bin 0 -> 960 bytes .../llvm-cov/Inputs/universal-binary.proftext | 4 + test/tools/llvm-cov/binary-formats.c | 9 + test/tools/llvm-cov/copy_block_helper.m | 2 +- test/tools/llvm-cov/lit.local.cfg | 6 +- test/tools/llvm-cov/llvm-cov.test | 45 +- test/tools/llvm-cov/range_based_for.cpp | 2 +- test/tools/llvm-cov/report.cpp | 23 +- test/tools/llvm-cov/showExpansions.cpp | 3 - test/tools/llvm-cov/showHighlightedRanges.cpp | 15 +- .../llvm-cov/showLineExecutionCounts.cpp | 56 +- test/tools/llvm-cov/showRegionMarkers.cpp | 19 +- .../llvm-cov/showTemplateInstantiations.cpp | 7 +- test/tools/llvm-cov/universal-binary.c | 10 + .../llvm-cxxdump/Inputs/eh.obj.coff-i386 | Bin 0 -> 7388 bytes .../Inputs/trivial.obj.coff-i386 | Bin .../Inputs/trivial.obj.elf-i386 | Bin test/tools/llvm-cxxdump/eh.test | 258 + .../trivial.test | 4 +- .../Inputs/link-opt-hints.macho-aarch64 | Bin 0 -> 984 bytes .../Inputs/print-mrs.obj.macho-aarch64 | Bin 0 -> 348 bytes .../AArch64/macho-link-opt-hints.test | 11 + .../llvm-objdump/AArch64/macho-print-mrs.test | 3 + .../ARM/Inputs/data-in-code.macho-arm | Bin 0 -> 336 bytes .../llvm-objdump/ARM/macho-data-in-code.test | 16 + .../llvm-objdump/Inputs/common-symbol-elf | Bin 0 -> 598 bytes .../Inputs/proc-specific-section-elf | Bin 0 -> 836 bytes .../X86/Inputs/Objc1.32bit.exe.macho-i386 | Bin 0 -> 26256 bytes .../X86/Inputs/Objc1.32bit.obj.macho-i386 | Bin 0 -> 55784 bytes .../X86/Inputs/Objc2.32bit.exe.macho-i386 | Bin 0 -> 27908 bytes .../X86/Inputs/Objc2.32bit.obj.macho-i386 | Bin 0 -> 24312 bytes .../X86/Inputs/Objc2.64bit.exe.macho-x86_64 | Bin 0 -> 22688 bytes .../X86/Inputs/Objc2.64bit.obj.macho-x86_64 | Bin 0 -> 13580 bytes .../X86/Inputs/dylibModInit.macho-x86_64 | Bin 0 -> 8256 bytes .../X86/macho-archive-headers.test | 28 + .../llvm-objdump/X86/macho-cstring-dump.test | 13 + .../X86/macho-dis-no-leading-addr.test | 24 + .../llvm-objdump/X86/macho-dis-symname.test | 19 + test/tools/llvm-objdump/X86/macho-dylib.test | 6 + .../X86/macho-indirect-symbols.test | 24 + .../llvm-objdump/X86/macho-info-plist.test | 7 + .../X86/macho-literal-pointers-i386.test | 39 + .../X86/macho-literal-pointers-x86_64.test | 40 + .../llvm-objdump/X86/macho-literals.test | 63 + .../X86/macho-nontext-disasm.test | 9 + .../X86/macho-objc-meta-data.test | 1039 + .../X86/macho-private-headers.test | 94 + .../llvm-objdump/X86/macho-relocations.test | 7 + .../X86/macho-section-contents.test | 17 + .../X86/macho-section-headers.test | 8 + .../tools/llvm-objdump/X86/macho-section.test | 8 + .../llvm-objdump/X86/macho-symbol-table.test | 8 + .../X86/macho-symbolized-disassembly.test | 9 + .../X86/macho-universal-x86_64.i386.test | 20 + .../llvm-objdump/X86/macho-unwind-info.test | 7 + .../tools/llvm-objdump/common-symbol-elf.test | 3 + test/tools/llvm-objdump/macho-sections.test | 5 + .../proc-specific-section-elf.test | 3 + .../llvm-pdbdump/Inputs/ClassLayoutTest.cpp | 64 + .../llvm-pdbdump/Inputs/ClassLayoutTest.pdb | Bin 0 -> 35840 bytes test/tools/llvm-pdbdump/Inputs/FilterTest.cpp | 29 + test/tools/llvm-pdbdump/Inputs/FilterTest.pdb | Bin 0 -> 44032 bytes .../llvm-pdbdump/Inputs/LoadAddressTest.cpp | 6 + .../llvm-pdbdump/Inputs/LoadAddressTest.pdb | Bin 0 -> 118784 bytes test/tools/llvm-pdbdump/class-layout.test | 57 + test/tools/llvm-pdbdump/enum-layout.test | 20 + test/tools/llvm-pdbdump/lit.local.cfg | 1 + test/tools/llvm-pdbdump/load-address.test | 10 + test/tools/llvm-pdbdump/regex-filter.test | 75 + test/tools/llvm-profdata/general.proftext | 12 +- .../raw-magic-but-no-header.test | 2 +- .../llvm-readobj/Inputs/abiflags.obj.elf-mips | Bin 0 -> 920 bytes .../Inputs/abiflags.obj.elf-mipsel | Bin 0 -> 1320 bytes .../llvm-readobj/Inputs/dtflags.elf-x86-64 | Bin 0 -> 11800 bytes .../macho-universal-archive.x86_64.i386 | Bin 0 -> 1656 bytes .../Inputs/macho-universal.x86_64.i386 | Bin 0 -> 16624 bytes .../Inputs/mips-options.elf-mips64el | Bin 0 -> 9288 bytes .../llvm-readobj/Inputs/trivial.exe.coff-arm | Bin 0 -> 7680 bytes test/tools/llvm-readobj/Inputs/trivial.ll | 2 +- .../llvm-readobj/codeview-linetables.test | 28 +- .../llvm-readobj/coff-arm-baserelocs.test | 7 + test/tools/llvm-readobj/elf-dtflags.test | 6 + .../macho-universal-x86_64.i386.test | 297 + test/tools/llvm-readobj/mips-abiflags.test | 42 + test/tools/llvm-readobj/mips-options.test | 22 + test/tools/llvm-readobj/program-headers.test | 22 +- .../tools/llvm-symbolizer/pdb/Inputs/test.cpp | 18 + .../tools/llvm-symbolizer/pdb/Inputs/test.exe | Bin 0 -> 165888 bytes .../llvm-symbolizer/pdb/Inputs/test.exe.input | 4 + .../tools/llvm-symbolizer/pdb/Inputs/test.pdb | Bin 0 -> 1552384 bytes test/tools/llvm-symbolizer/pdb/lit.local.cfg | 1 + test/tools/llvm-symbolizer/pdb/pdb.test | 18 + test/tools/lto/lit.local.cfg | 2 + test/tools/lto/opt-level.ll | 20 + tools/CMakeLists.txt | 4 +- tools/LLVMBuild.txt | 5 +- tools/Makefile | 2 +- tools/bugpoint-passes/TestPasses.cpp | 26 +- tools/bugpoint/BugDriver.cpp | 26 +- tools/bugpoint/CMakeLists.txt | 2 +- tools/bugpoint/CrashDebugger.cpp | 91 +- tools/bugpoint/ExtractFunction.cpp | 6 +- tools/bugpoint/Miscompilation.cpp | 17 +- tools/bugpoint/OptimizerDriver.cpp | 11 +- tools/bugpoint/ToolRunner.h | 2 +- tools/bugpoint/bugpoint.cpp | 8 +- tools/dsymutil/CMakeLists.txt | 4 + tools/dsymutil/DebugMap.cpp | 26 +- tools/dsymutil/DebugMap.h | 28 +- tools/dsymutil/DwarfLinker.cpp | 2526 +- tools/dsymutil/LLVMBuild.txt | 2 +- tools/dsymutil/MachODebugMapParser.cpp | 37 +- tools/dsymutil/Makefile | 2 +- tools/dsymutil/dsymutil.cpp | 32 +- tools/dsymutil/dsymutil.h | 10 +- tools/gold/CMakeLists.txt | 3 - tools/gold/gold-plugin.cpp | 97 +- tools/llc/CMakeLists.txt | 4 +- tools/llc/llc.cpp | 68 +- tools/lli/CMakeLists.txt | 7 +- tools/lli/LLVMBuild.txt | 2 +- tools/lli/Makefile | 4 +- tools/lli/OrcLazyJIT.cpp | 148 + tools/lli/OrcLazyJIT.h | 164 + tools/lli/RemoteMemoryManager.cpp | 1 + tools/lli/RemoteMemoryManager.h | 2 +- tools/lli/RemoteTargetExternal.h | 2 +- tools/lli/lli.cpp | 56 +- tools/llvm-ar/llvm-ar.cpp | 2 +- tools/llvm-as/llvm-as.cpp | 17 +- tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 37 +- tools/llvm-config/CMakeLists.txt | 2 +- tools/llvm-config/llvm-config.cpp | 8 +- tools/llvm-cov/CMakeLists.txt | 1 - tools/llvm-cov/CodeCoverage.cpp | 73 +- tools/llvm-cov/CoverageReport.cpp | 40 +- tools/llvm-cov/CoverageReport.h | 11 +- tools/llvm-cov/CoverageSummary.cpp | 64 - tools/llvm-cov/CoverageSummary.h | 45 - tools/llvm-cov/CoverageSummaryInfo.cpp | 25 - tools/llvm-cov/CoverageSummaryInfo.h | 49 +- tools/llvm-cov/RenderingSupport.h | 2 +- tools/llvm-cov/SourceCoverageView.cpp | 46 +- tools/llvm-cov/SourceCoverageView.h | 7 +- tools/llvm-cov/gcov.cpp | 9 +- tools/llvm-cov/llvm-cov.cpp | 34 +- .../CMakeLists.txt | 4 +- .../Error.cpp | 22 +- .../{llvm-vtabledump => llvm-cxxdump}/Error.h | 18 +- .../LLVMBuild.txt | 4 +- .../Makefile | 4 +- .../llvm-cxxdump.cpp} | 161 +- .../llvm-cxxdump.h} | 8 +- tools/llvm-dis/llvm-dis.cpp | 54 +- tools/llvm-dwarfdump/CMakeLists.txt | 2 +- tools/llvm-dwarfdump/LLVMBuild.txt | 2 +- tools/llvm-dwarfdump/Makefile | 2 +- tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 3 +- tools/llvm-extract/llvm-extract.cpp | 20 +- tools/llvm-go/llvm-go.go | 39 +- tools/llvm-jitlistener/Makefile | 54 +- tools/llvm-jitlistener/llvm-jitlistener.cpp | 3 +- tools/llvm-link/llvm-link.cpp | 70 +- tools/llvm-lto/llvm-lto.cpp | 51 +- tools/llvm-mc/CMakeLists.txt | 6 +- tools/llvm-mc/llvm-mc.cpp | 32 +- tools/llvm-nm/llvm-nm.cpp | 132 +- tools/llvm-objdump/CMakeLists.txt | 2 +- tools/llvm-objdump/LLVMBuild.txt | 2 +- tools/llvm-objdump/MachODump.cpp | 4544 +- tools/llvm-objdump/Makefile | 2 +- tools/llvm-objdump/llvm-objdump.cpp | 93 +- tools/llvm-objdump/llvm-objdump.h | 24 +- tools/llvm-pdbdump/BuiltinDumper.cpp | 87 + tools/llvm-pdbdump/BuiltinDumper.h | 30 + tools/llvm-pdbdump/CMakeLists.txt | 18 + tools/llvm-pdbdump/ClassDefinitionDumper.cpp | 190 + tools/llvm-pdbdump/ClassDefinitionDumper.h | 62 + tools/llvm-pdbdump/CompilandDumper.cpp | 140 + tools/llvm-pdbdump/CompilandDumper.h | 39 + tools/llvm-pdbdump/EnumDumper.cpp | 52 + tools/llvm-pdbdump/EnumDumper.h | 30 + tools/llvm-pdbdump/ExternalSymbolDumper.cpp | 40 + tools/llvm-pdbdump/ExternalSymbolDumper.h | 32 + tools/llvm-pdbdump/FunctionDumper.cpp | 254 + tools/llvm-pdbdump/FunctionDumper.h | 42 + tools/llvm-pdbdump/LLVMBuild.txt | 23 + tools/llvm-pdbdump/LinePrinter.cpp | 124 + tools/llvm-pdbdump/LinePrinter.h | 89 + tools/llvm-pdbdump/Makefile | 17 + tools/llvm-pdbdump/TypeDumper.cpp | 97 + tools/llvm-pdbdump/TypeDumper.h | 34 + tools/llvm-pdbdump/TypedefDumper.cpp | 79 + tools/llvm-pdbdump/TypedefDumper.h | 37 + tools/llvm-pdbdump/VariableDumper.cpp | 170 + tools/llvm-pdbdump/VariableDumper.h | 41 + tools/llvm-pdbdump/llvm-pdbdump.cpp | 284 + tools/llvm-pdbdump/llvm-pdbdump.h | 32 + tools/llvm-profdata/llvm-profdata.cpp | 25 +- tools/llvm-readobj/COFFDumper.cpp | 34 +- tools/llvm-readobj/ELFDumper.cpp | 190 +- tools/llvm-readobj/MachODumper.cpp | 25 - tools/llvm-readobj/ObjDumper.h | 1 + tools/llvm-readobj/StreamWriter.h | 14 +- tools/llvm-readobj/llvm-readobj.cpp | 36 +- tools/llvm-readobj/llvm-readobj.h | 3 +- tools/llvm-rtdyld/CMakeLists.txt | 2 +- tools/llvm-rtdyld/Makefile | 2 +- tools/llvm-rtdyld/llvm-rtdyld.cpp | 90 +- tools/llvm-shlib/CMakeLists.txt | 65 +- tools/llvm-size/llvm-size.cpp | 2 +- tools/llvm-stress/CMakeLists.txt | 2 +- tools/llvm-stress/llvm-stress.cpp | 5 +- tools/llvm-symbolizer/CMakeLists.txt | 3 +- tools/llvm-symbolizer/LLVMSymbolize.cpp | 36 +- tools/llvm-symbolizer/LLVMSymbolize.h | 15 +- tools/llvm-symbolizer/Makefile | 2 +- tools/llvm-symbolizer/llvm-symbolizer.cpp | 19 +- tools/lto/lto.cpp | 72 +- tools/lto/lto.exports | 5 + tools/obj2yaml/elf2yaml.cpp | 83 +- tools/opt/BreakpointPrinter.cpp | 28 +- tools/opt/CMakeLists.txt | 4 +- tools/opt/LLVMBuild.txt | 2 +- tools/opt/Makefile | 2 +- tools/opt/NewPMDriver.cpp | 27 +- tools/opt/NewPMDriver.h | 8 +- tools/opt/Passes.h | 78 - tools/opt/opt.cpp | 139 +- .../verify-uselistorder.cpp | 55 +- tools/yaml2obj/yaml2coff.cpp | 7 +- tools/yaml2obj/yaml2elf.cpp | 106 +- tools/yaml2obj/yaml2obj.cpp | 3 +- unittests/ADT/APFloatTest.cpp | 7 +- unittests/ADT/APIntTest.cpp | 137 + unittests/ADT/APSIntTest.cpp | 102 + unittests/ADT/ArrayRefTest.cpp | 49 +- unittests/ADT/DAGDeltaAlgorithmTest.cpp | 2 +- unittests/ADT/DeltaAlgorithmTest.cpp | 4 +- unittests/ADT/DenseMapTest.cpp | 1 + unittests/ADT/HashingTest.cpp | 26 +- unittests/ADT/MapVectorTest.cpp | 25 + unittests/ADT/OptionalTest.cpp | 10 +- unittests/ADT/PointerIntPairTest.cpp | 2 - unittests/ADT/SCCIteratorTest.cpp | 4 +- unittests/ADT/SmallVectorTest.cpp | 125 +- unittests/ADT/StringMapTest.cpp | 8 +- unittests/ADT/TinyPtrVectorTest.cpp | 21 + unittests/ADT/TripleTest.cpp | 298 +- unittests/ADT/TwineTest.cpp | 10 + unittests/ADT/ilistTest.cpp | 3 +- unittests/Analysis/AliasAnalysisTest.cpp | 104 + unittests/Analysis/CFGTest.cpp | 14 +- unittests/Analysis/CMakeLists.txt | 1 + unittests/Analysis/MixedTBAATest.cpp | 4 +- unittests/Analysis/ScalarEvolutionTest.cpp | 6 +- unittests/AsmParser/AsmParserTest.cpp | 47 + unittests/AsmParser/CMakeLists.txt | 9 + unittests/AsmParser/Makefile | 15 + unittests/Bitcode/BitReaderTest.cpp | 72 +- unittests/CMakeLists.txt | 2 + unittests/CodeGen/DIEHashTest.cpp | 126 +- unittests/DebugInfo/CMakeLists.txt | 12 +- unittests/DebugInfo/DWARF/CMakeLists.txt | 11 + .../DebugInfo/DWARF/DWARFFormValueTest.cpp | 124 + unittests/DebugInfo/DWARF/Makefile | 16 + unittests/DebugInfo/DWARFFormValueTest.cpp | 49 - unittests/DebugInfo/Makefile | 5 +- unittests/DebugInfo/PDB/CMakeLists.txt | 11 + unittests/DebugInfo/PDB/Makefile | 16 + unittests/DebugInfo/PDB/PDBApiTest.cpp | 397 + unittests/ExecutionEngine/CMakeLists.txt | 3 + .../ExecutionEngine/ExecutionEngineTest.cpp | 4 +- .../ExecutionEngine/MCJIT/MCJITCAPITest.cpp | 28 +- .../MCJIT/MCJITMultipleModuleTest.cpp | 19 + .../MCJIT/MCJITObjectCacheTest.cpp | 4 +- unittests/ExecutionEngine/MCJIT/MCJITTest.cpp | 4 +- .../ExecutionEngine/MCJIT/MCJITTestBase.h | 5 - unittests/ExecutionEngine/Makefile | 4 +- unittests/ExecutionEngine/Orc/CMakeLists.txt | 11 + .../Orc/IndirectionUtilsTest.cpp | 48 + .../Orc/LazyEmittingLayerTest.cpp | 32 + unittests/ExecutionEngine/Orc/Makefile | 16 + .../ExecutionEngine/Orc/OrcTestCommon.cpp | 23 + unittests/ExecutionEngine/Orc/OrcTestCommon.h | 66 + unittests/IR/ConstantRangeTest.cpp | 65 +- unittests/IR/ConstantsTest.cpp | 49 +- unittests/IR/DebugInfoTest.cpp | 103 +- unittests/IR/DominatorTreeTest.cpp | 36 +- unittests/IR/IRBuilderTest.cpp | 44 +- unittests/IR/InstructionsTest.cpp | 30 +- unittests/IR/LegacyPassManagerTest.cpp | 29 +- unittests/IR/MetadataTest.cpp | 1810 +- unittests/IR/UseTest.cpp | 8 +- unittests/IR/ValueHandleTest.cpp | 28 +- unittests/IR/ValueMapTest.cpp | 3 +- unittests/LineEditor/LineEditor.cpp | 2 +- unittests/Linker/LinkModulesTest.cpp | 9 +- unittests/Makefile | 5 +- unittests/Option/OptionParsingTest.cpp | 14 + unittests/Option/Opts.td | 2 + unittests/ProfileData/CMakeLists.txt | 10 + unittests/ProfileData/CoverageMappingTest.cpp | 291 + unittests/ProfileData/InstrProfTest.cpp | 98 + unittests/ProfileData/Makefile | 15 + unittests/Support/AlignOfTest.cpp | 56 +- unittests/Support/AllocatorTest.cpp | 7 + unittests/Support/BlockFrequencyTest.cpp | 9 + unittests/Support/CMakeLists.txt | 5 + unittests/Support/Casting.cpp | 2 +- unittests/Support/CommandLineTest.cpp | 51 +- unittests/Support/ConvertUTFTest.cpp | 14 + unittests/Support/DwarfTest.cpp | 141 + unittests/Support/EndianStreamTest.cpp | 157 + unittests/Support/ErrorOrTest.cpp | 5 + unittests/Support/Makefile | 2 +- unittests/Support/MathExtrasTest.cpp | 11 +- unittests/Support/MemoryBufferTest.cpp | 2 +- unittests/Support/Path.cpp | 51 +- unittests/Support/ScaledNumberTest.cpp | 31 +- unittests/Support/SpecialCaseListTest.cpp | 38 +- unittests/Support/StreamingMemoryObject.cpp | 9 + unittests/Support/SwapByteOrderTest.cpp | 25 + unittests/Support/TargetRegistry.cpp | 42 + unittests/Support/YAMLIOTest.cpp | 376 + unittests/Support/YAMLParserTest.cpp | 43 + unittests/Support/raw_ostream_test.cpp | 2 + unittests/Support/raw_pwrite_stream_test.cpp | 64 + unittests/Transforms/CMakeLists.txt | 1 + unittests/Transforms/IPO/CMakeLists.txt | 9 + unittests/Transforms/IPO/LowerBitSets.cpp | 155 + unittests/Transforms/IPO/Makefile | 15 + unittests/Transforms/Makefile | 2 +- unittests/Transforms/Utils/CMakeLists.txt | 1 + unittests/Transforms/Utils/Cloning.cpp | 109 +- .../Transforms/Utils/ValueMapperTest.cpp | 27 + utils/FileCheck/FileCheck.cpp | 66 +- utils/KillTheDoctor/KillTheDoctor.cpp | 1 + utils/Makefile | 2 +- utils/TableGen/AsmMatcherEmitter.cpp | 53 +- utils/TableGen/AsmWriterEmitter.cpp | 33 +- utils/TableGen/AsmWriterInst.cpp | 11 +- utils/TableGen/AsmWriterInst.h | 10 +- utils/TableGen/CallingConvEmitter.cpp | 11 +- utils/TableGen/CodeEmitterGen.cpp | 2 +- utils/TableGen/CodeGenDAGPatterns.cpp | 558 +- utils/TableGen/CodeGenDAGPatterns.h | 16 +- utils/TableGen/CodeGenIntrinsics.h | 3 + utils/TableGen/CodeGenMapTable.cpp | 6 +- utils/TableGen/CodeGenRegisters.cpp | 202 +- utils/TableGen/CodeGenRegisters.h | 73 +- utils/TableGen/CodeGenSchedule.cpp | 4 +- utils/TableGen/CodeGenTarget.cpp | 11 +- utils/TableGen/DAGISelMatcher.h | 6 +- utils/TableGen/DAGISelMatcherEmitter.cpp | 4 +- utils/TableGen/DAGISelMatcherGen.cpp | 8 +- utils/TableGen/DFAPacketizerEmitter.cpp | 2 +- utils/TableGen/FixedLenDecoderEmitter.cpp | 28 +- utils/TableGen/InstrInfoEmitter.cpp | 34 +- utils/TableGen/IntrinsicEmitter.cpp | 36 +- utils/TableGen/PseudoLoweringEmitter.cpp | 4 +- utils/TableGen/RegisterInfoEmitter.cpp | 63 +- utils/TableGen/SubtargetEmitter.cpp | 93 +- utils/TableGen/X86DisassemblerShared.h | 2 +- utils/TableGen/X86DisassemblerTables.cpp | 59 +- utils/TableGen/X86RecognizableInstr.cpp | 131 +- utils/create_ladder_graph.py | 43 + utils/emacs/emacs.el | 24 +- utils/emacs/llvm-mode.el | 35 +- utils/git-svn/git-svnrevert | 7 +- utils/lit/lit/LitConfig.py | 2 - utils/lit/lit/Test.py | 3 +- utils/lit/lit/TestRunner.py | 52 +- utils/lit/lit/formats/googletest.py | 20 +- utils/lit/lit/main.py | 2 +- utils/lit/utils/check-coverage | 2 +- utils/lldbDataFormatters.py | 10 + utils/release/export.sh | 5 +- utils/release/test-release.sh | 127 +- utils/shuffle_fuzz.py | 5 +- utils/sort_includes.py | 20 +- utils/unittest/CMakeLists.txt | 17 +- utils/unittest/UnitTestMain/TestMain.cpp | 2 +- .../googletest/include/gtest/gtest-spi.h | 5 +- .../include/gtest/gtest-test-part.h | 4 +- .../unittest/googletest/include/gtest/gtest.h | 33 +- .../internal/gtest-death-test-internal.h | 4 +- .../include/gtest/internal/gtest-internal.h | 2 +- .../internal/gtest-param-util-generated.h | 3 - .../include/gtest/internal/gtest-param-util.h | 28 +- .../include/gtest/internal/gtest-port.h | 6 +- .../googletest/src/gtest-death-test.cc | 13 +- .../googletest/src/gtest-internal-inl.h | 8 +- utils/unittest/googletest/src/gtest.cc | 78 +- utils/update_llc_test_checks.py | 8 +- utils/vim/README | 33 +- utils/vim/ftdetect/llvm-lit.vim | 1 + utils/vim/ftdetect/llvm.vim | 1 + utils/vim/ftdetect/tablegen.vim | 1 + utils/vim/ftplugin/llvm.vim | 11 + utils/vim/ftplugin/tablegen.vim | 12 + utils/vim/indent/llvm.vim | 72 + utils/vim/{ => syntax}/llvm.vim | 8 +- utils/vim/{ => syntax}/tablegen.vim | 2 +- utils/yaml-bench/YAMLBench.cpp | 18 +- 9756 files changed, 467770 insertions(+), 210179 deletions(-) delete mode 100644 autoconf/m4/func_isinf.m4 delete mode 100644 autoconf/m4/func_isnan.m4 create mode 100644 docs/BitSets.rst create mode 100644 docs/BuildingLLVMWithAutotools.rst create mode 100644 docs/Frontend/PerformanceTips.rst create mode 100644 docs/LibFuzzer.rst delete mode 100644 docs/doxygen.css delete mode 100644 docs/doxygen.footer delete mode 100644 docs/doxygen.header create mode 100644 examples/Kaleidoscope/Orc/CMakeLists.txt create mode 100644 examples/Kaleidoscope/Orc/fully_lazy/CMakeLists.txt create mode 100644 examples/Kaleidoscope/Orc/fully_lazy/Makefile create mode 100644 examples/Kaleidoscope/Orc/fully_lazy/README.txt create mode 100644 examples/Kaleidoscope/Orc/fully_lazy/toy.cpp create mode 100644 examples/Kaleidoscope/Orc/initial/CMakeLists.txt create mode 100644 examples/Kaleidoscope/Orc/initial/Makefile create mode 100644 examples/Kaleidoscope/Orc/initial/README.txt create mode 100644 examples/Kaleidoscope/Orc/initial/toy.cpp create mode 100644 examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt create mode 100644 examples/Kaleidoscope/Orc/lazy_codegen/Makefile create mode 100644 examples/Kaleidoscope/Orc/lazy_codegen/README.txt create mode 100644 examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp create mode 100644 examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt create mode 100644 examples/Kaleidoscope/Orc/lazy_irgen/Makefile create mode 100644 examples/Kaleidoscope/Orc/lazy_irgen/README.txt create mode 100644 examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp create mode 100644 include/llvm/ADT/EpochTracker.h delete mode 100644 include/llvm/Analysis/ConstantsScanner.h delete mode 100644 include/llvm/Analysis/FunctionTargetTransformInfo.h create mode 100644 include/llvm/Analysis/IteratedDominanceFrontier.h create mode 100644 include/llvm/Analysis/LoopAccessAnalysis.h create mode 100644 include/llvm/Analysis/TargetLibraryInfo.def create mode 100644 include/llvm/Analysis/TargetLibraryInfo.h create mode 100644 include/llvm/Analysis/TargetTransformInfoImpl.h create mode 100644 include/llvm/CodeGen/BasicTTIImpl.h create mode 100644 include/llvm/CodeGen/DwarfStringPoolEntry.h delete mode 100644 include/llvm/CodeGen/ForwardControlFlowIntegrity.h delete mode 100644 include/llvm/CodeGen/JumpInstrTables.h delete mode 100644 include/llvm/CodeGen/StackMapLivenessAnalysis.h create mode 100644 include/llvm/CodeGen/WinEHFuncInfo.h rename include/llvm/DebugInfo/{ => DWARF}/DWARFAbbreviationDeclaration.h (99%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFAcceleratorTable.h (85%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFCompileUnit.h (95%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFContext.h (91%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugAbbrev.h (96%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugArangeSet.h (100%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugAranges.h (100%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugFrame.h (100%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugInfoEntry.h (98%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugLine.h (99%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugLoc.h (97%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFDebugRangeList.h (97%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFFormValue.h (94%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFRelocMap.h (100%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFSection.h (86%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFTypeUnit.h (96%) rename include/llvm/DebugInfo/{ => DWARF}/DWARFUnit.h (81%) create mode 100644 include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIADataStream.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIASession.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h create mode 100644 include/llvm/DebugInfo/PDB/DIA/DIASupport.h create mode 100644 include/llvm/DebugInfo/PDB/IPDBDataStream.h create mode 100644 include/llvm/DebugInfo/PDB/IPDBEnumChildren.h create mode 100644 include/llvm/DebugInfo/PDB/IPDBLineNumber.h create mode 100644 include/llvm/DebugInfo/PDB/IPDBRawSymbol.h create mode 100644 include/llvm/DebugInfo/PDB/IPDBSession.h create mode 100644 include/llvm/DebugInfo/PDB/IPDBSourceFile.h create mode 100644 include/llvm/DebugInfo/PDB/PDB.h create mode 100644 include/llvm/DebugInfo/PDB/PDBContext.h create mode 100644 include/llvm/DebugInfo/PDB/PDBExtras.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymDumper.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbol.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolBlock.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolCustom.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolData.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolExe.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolFunc.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolLabel.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolThunk.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h create mode 100644 include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h create mode 100644 include/llvm/DebugInfo/PDB/PDBTypes.h create mode 100644 include/llvm/ExecutionEngine/JITSymbolFlags.h create mode 100644 include/llvm/ExecutionEngine/ObjectMemoryBuffer.h create mode 100644 include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h create mode 100644 include/llvm/ExecutionEngine/Orc/CompileUtils.h create mode 100644 include/llvm/ExecutionEngine/Orc/ExecutionUtils.h create mode 100644 include/llvm/ExecutionEngine/Orc/IRCompileLayer.h create mode 100644 include/llvm/ExecutionEngine/Orc/IRTransformLayer.h create mode 100644 include/llvm/ExecutionEngine/Orc/IndirectionUtils.h create mode 100644 include/llvm/ExecutionEngine/Orc/JITSymbol.h create mode 100644 include/llvm/ExecutionEngine/Orc/LambdaResolver.h create mode 100644 include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h create mode 100644 include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h create mode 100644 include/llvm/ExecutionEngine/Orc/OrcTargetSupport.h create mode 100644 include/llvm/ExecutionEngine/OrcMCJITReplacement.h create mode 100644 include/llvm/IR/DebugInfoFlags.def create mode 100644 include/llvm/IR/DebugInfoMetadata.h create mode 100644 include/llvm/IR/IntrinsicsBPF.td create mode 100644 include/llvm/IR/IntrinsicsSystemZ.td delete mode 100644 include/llvm/PassManager.h create mode 100644 include/llvm/Passes/PassBuilder.h create mode 100644 include/llvm/Support/COM.h create mode 100644 include/llvm/Support/Dwarf.def create mode 100644 include/llvm/Support/MipsABIFlags.h create mode 100644 include/llvm/Support/TargetParser.h delete mode 100644 include/llvm/Target/TargetLibraryInfo.h create mode 100644 include/llvm/Transforms/IPO/LowerBitSets.h create mode 100644 include/llvm/Transforms/InstCombine/InstCombine.h rename {lib => include/llvm}/Transforms/InstCombine/InstCombineWorklist.h (83%) create mode 100644 include/llvm/Transforms/Scalar/EarlyCSE.h create mode 100644 include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h create mode 100644 include/llvm/Transforms/Scalar/SimplifyCFG.h create mode 100644 lib/Analysis/DivergenceAnalysis.cpp delete mode 100644 lib/Analysis/FunctionTargetTransformInfo.cpp create mode 100644 lib/Analysis/IteratedDominanceFrontier.cpp delete mode 100644 lib/Analysis/JumpInstrTableInfo.cpp create mode 100644 lib/Analysis/LoopAccessAnalysis.cpp create mode 100644 lib/Analysis/MemDerefPrinter.cpp rename lib/{Target => Analysis}/TargetLibraryInfo.cpp (63%) delete mode 100644 lib/Bitcode/Reader/BitcodeReader.h delete mode 100644 lib/CodeGen/AsmPrinter/DebugLocList.h create mode 100644 lib/CodeGen/AsmPrinter/DebugLocStream.h create mode 100644 lib/CodeGen/CoreCLRGC.cpp delete mode 100644 lib/CodeGen/ForwardControlFlowIntegrity.cpp create mode 100644 lib/CodeGen/GCRootLowering.cpp delete mode 100644 lib/CodeGen/JumpInstrTables.cpp delete mode 100644 lib/CodeGen/PrologEpilogInserter.h create mode 100644 lib/CodeGen/ShadowStackGCLowering.cpp create mode 100644 lib/CodeGen/ShrinkWrap.cpp create mode 100644 lib/CodeGen/WinEHPrepare.cpp create mode 100644 lib/DebugInfo/DWARF/CMakeLists.txt rename lib/DebugInfo/{ => DWARF}/DWARFAbbreviationDeclaration.cpp (97%) rename lib/DebugInfo/{ => DWARF}/DWARFAcceleratorTable.cpp (98%) rename lib/DebugInfo/{ => DWARF}/DWARFCompileUnit.cpp (82%) rename lib/DebugInfo/{ => DWARF}/DWARFContext.cpp (91%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugAbbrev.cpp (98%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugArangeSet.cpp (98%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugAranges.cpp (95%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugFrame.cpp (63%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugInfoEntry.cpp (95%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugLine.cpp (99%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugLoc.cpp (96%) rename lib/DebugInfo/{ => DWARF}/DWARFDebugRangeList.cpp (97%) rename lib/DebugInfo/{ => DWARF}/DWARFFormValue.cpp (88%) rename lib/DebugInfo/{ => DWARF}/DWARFTypeUnit.cpp (87%) rename lib/DebugInfo/{ => DWARF}/DWARFUnit.cpp (96%) create mode 100644 lib/DebugInfo/DWARF/LLVMBuild.txt create mode 100644 lib/DebugInfo/DWARF/Makefile rename lib/DebugInfo/{ => DWARF}/SyntaxHighlighting.cpp (100%) rename lib/DebugInfo/{ => DWARF}/SyntaxHighlighting.h (100%) create mode 100644 lib/DebugInfo/DWARF/module.modulemap create mode 100644 lib/DebugInfo/PDB/CMakeLists.txt create mode 100644 lib/DebugInfo/PDB/DIA/DIADataStream.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIALineNumber.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIASession.cpp create mode 100644 lib/DebugInfo/PDB/DIA/DIASourceFile.cpp create mode 100644 lib/DebugInfo/PDB/IPDBSourceFile.cpp create mode 100644 lib/DebugInfo/PDB/LLVMBuild.txt create mode 100644 lib/DebugInfo/PDB/Makefile create mode 100644 lib/DebugInfo/PDB/PDB.cpp create mode 100644 lib/DebugInfo/PDB/PDBContext.cpp create mode 100644 lib/DebugInfo/PDB/PDBExtras.cpp create mode 100644 lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymDumper.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbol.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolBlock.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolCompiland.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolCustom.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolData.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolExe.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolFunc.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolLabel.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolThunk.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolUnknown.cpp create mode 100644 lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp delete mode 100644 lib/DebugInfo/module.modulemap delete mode 100644 lib/ExecutionEngine/EventListenerCommon.h create mode 100644 lib/ExecutionEngine/Orc/CMakeLists.txt create mode 100644 lib/ExecutionEngine/Orc/ExecutionUtils.cpp create mode 100644 lib/ExecutionEngine/Orc/IndirectionUtils.cpp create mode 100644 lib/ExecutionEngine/Orc/LLVMBuild.txt create mode 100644 lib/ExecutionEngine/Orc/Makefile create mode 100644 lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp create mode 100644 lib/ExecutionEngine/Orc/OrcMCJITReplacement.h create mode 100644 lib/ExecutionEngine/Orc/OrcTargetSupport.cpp create mode 100644 lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp create mode 100644 lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h create mode 100644 lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h rename lib/ExecutionEngine/{MCJIT => }/SectionMemoryManager.cpp (100%) create mode 100644 lib/Fuzzer/CMakeLists.txt create mode 100644 lib/Fuzzer/FuzzerCrossOver.cpp create mode 100644 lib/Fuzzer/FuzzerDriver.cpp create mode 100644 lib/Fuzzer/FuzzerFlags.def create mode 100644 lib/Fuzzer/FuzzerIO.cpp create mode 100644 lib/Fuzzer/FuzzerInterface.cpp create mode 100644 lib/Fuzzer/FuzzerInterface.h create mode 100644 lib/Fuzzer/FuzzerInternal.h create mode 100644 lib/Fuzzer/FuzzerLoop.cpp create mode 100644 lib/Fuzzer/FuzzerMain.cpp create mode 100644 lib/Fuzzer/FuzzerMutate.cpp create mode 100644 lib/Fuzzer/FuzzerSHA1.cpp create mode 100644 lib/Fuzzer/FuzzerSanitizerOptions.cpp create mode 100644 lib/Fuzzer/FuzzerTraceState.cpp create mode 100644 lib/Fuzzer/FuzzerUtil.cpp create mode 100644 lib/Fuzzer/README.txt create mode 100644 lib/Fuzzer/cxx_fuzzer_tokens.txt create mode 100755 lib/Fuzzer/pull_and_push_fuzz_corpus.sh create mode 100644 lib/Fuzzer/test/CMakeLists.txt create mode 100644 lib/Fuzzer/test/CounterTest.cpp create mode 100644 lib/Fuzzer/test/CxxTokensTest.cpp create mode 100644 lib/Fuzzer/test/DFSanMemcmpTest.cpp create mode 100644 lib/Fuzzer/test/DFSanSimpleCmpTest.cpp create mode 100644 lib/Fuzzer/test/FourIndependentBranchesTest.cpp create mode 100644 lib/Fuzzer/test/FullCoverageSetTest.cpp create mode 100644 lib/Fuzzer/test/FuzzerUnittest.cpp create mode 100644 lib/Fuzzer/test/InfiniteTest.cpp create mode 100644 lib/Fuzzer/test/NullDerefTest.cpp create mode 100644 lib/Fuzzer/test/SimpleTest.cpp create mode 100644 lib/Fuzzer/test/TimeoutTest.cpp create mode 100644 lib/Fuzzer/test/UserSuppliedFuzzerTest.cpp create mode 100644 lib/Fuzzer/test/dfsan/CMakeLists.txt create mode 100644 lib/Fuzzer/test/fuzzer.test create mode 100644 lib/Fuzzer/test/lit.cfg create mode 100644 lib/Fuzzer/test/lit.site.cfg.in create mode 100644 lib/Fuzzer/test/unit/lit.cfg create mode 100644 lib/Fuzzer/test/unit/lit.site.cfg.in delete mode 100644 lib/IR/AsmWriter.h create mode 100644 lib/IR/DebugInfoMetadata.cpp delete mode 100644 lib/IR/LeaksContext.h create mode 100644 lib/IR/MetadataImpl.h create mode 100644 lib/IR/Operator.cpp delete mode 100644 lib/IR/UseListOrder.cpp create mode 100644 lib/MC/MCInstrDesc.cpp create mode 100644 lib/Passes/CMakeLists.txt create mode 100644 lib/Passes/LLVMBuild.txt create mode 100644 lib/Passes/Makefile rename tools/opt/Passes.cpp => lib/Passes/PassBuilder.cpp (86%) rename {tools/opt => lib/Passes}/PassRegistry.def (78%) create mode 100644 lib/Support/COM.cpp delete mode 100644 lib/Support/IsInf.cpp delete mode 100644 lib/Support/IsNAN.cpp create mode 100644 lib/Support/TargetParser.cpp create mode 100644 lib/Support/Unix/COM.inc create mode 100644 lib/Support/Windows/COM.inc create mode 100644 lib/Target/AArch64/AArch64TargetTransformInfo.h create mode 100644 lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h delete mode 100644 lib/Target/ARM/ARMFPUName.def create mode 100644 lib/Target/ARM/ARMTargetTransformInfo.h delete mode 100644 lib/Target/ARM/MCTargetDesc/ARMArchName.def delete mode 100644 lib/Target/ARM/MCTargetDesc/ARMArchName.h delete mode 100644 lib/Target/ARM/Thumb2RegisterInfo.cpp delete mode 100644 lib/Target/ARM/Thumb2RegisterInfo.h rename lib/Target/ARM/{Thumb1RegisterInfo.cpp => ThumbRegisterInfo.cpp} (80%) rename lib/Target/ARM/{Thumb1RegisterInfo.h => ThumbRegisterInfo.h} (81%) rename lib/Target/{ARM/ARMFPUName.h => BPF/BPF.h} (50%) create mode 100644 lib/Target/BPF/BPF.td create mode 100644 lib/Target/BPF/BPFAsmPrinter.cpp create mode 100644 lib/Target/BPF/BPFCallingConv.td create mode 100644 lib/Target/BPF/BPFFrameLowering.cpp create mode 100644 lib/Target/BPF/BPFFrameLowering.h create mode 100644 lib/Target/BPF/BPFISelDAGToDAG.cpp create mode 100644 lib/Target/BPF/BPFISelLowering.cpp create mode 100644 lib/Target/BPF/BPFISelLowering.h create mode 100644 lib/Target/BPF/BPFInstrFormats.td create mode 100644 lib/Target/BPF/BPFInstrInfo.cpp create mode 100644 lib/Target/BPF/BPFInstrInfo.h create mode 100644 lib/Target/BPF/BPFInstrInfo.td create mode 100644 lib/Target/BPF/BPFMCInstLower.cpp create mode 100644 lib/Target/BPF/BPFMCInstLower.h create mode 100644 lib/Target/BPF/BPFRegisterInfo.cpp create mode 100644 lib/Target/BPF/BPFRegisterInfo.h create mode 100644 lib/Target/BPF/BPFRegisterInfo.td create mode 100644 lib/Target/BPF/BPFSubtarget.cpp create mode 100644 lib/Target/BPF/BPFSubtarget.h create mode 100644 lib/Target/BPF/BPFTargetMachine.cpp create mode 100644 lib/Target/BPF/BPFTargetMachine.h create mode 100644 lib/Target/BPF/CMakeLists.txt create mode 100644 lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp create mode 100644 lib/Target/BPF/InstPrinter/BPFInstPrinter.h create mode 100644 lib/Target/BPF/InstPrinter/CMakeLists.txt create mode 100644 lib/Target/BPF/InstPrinter/LLVMBuild.txt create mode 100644 lib/Target/BPF/InstPrinter/Makefile create mode 100644 lib/Target/BPF/LLVMBuild.txt create mode 100644 lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp create mode 100644 lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp create mode 100644 lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h create mode 100644 lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp create mode 100644 lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp create mode 100644 lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.h create mode 100644 lib/Target/BPF/MCTargetDesc/CMakeLists.txt create mode 100644 lib/Target/BPF/MCTargetDesc/LLVMBuild.txt create mode 100644 lib/Target/BPF/MCTargetDesc/Makefile create mode 100644 lib/Target/BPF/Makefile rename lib/{DebugInfo/DIContext.cpp => Target/BPF/TargetInfo/BPFTargetInfo.cpp} (51%) create mode 100644 lib/Target/BPF/TargetInfo/CMakeLists.txt create mode 100644 lib/Target/BPF/TargetInfo/LLVMBuild.txt create mode 100644 lib/Target/BPF/TargetInfo/Makefile delete mode 100644 lib/Target/Hexagon/HexagonCallingConvLower.cpp delete mode 100644 lib/Target/Hexagon/HexagonCallingConvLower.h create mode 100644 lib/Target/Hexagon/HexagonExpandCondsets.cpp create mode 100644 lib/Target/Hexagon/HexagonInstrInfoVector.td delete mode 100644 lib/Target/Hexagon/HexagonSplitTFRCondSets.cpp delete mode 100644 lib/Target/Hexagon/HexagonVarargsCallingConvention.h create mode 100644 lib/Target/Hexagon/MCTargetDesc/HexagonFixupKinds.h delete mode 100644 lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp delete mode 100644 lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.h create mode 100644 lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp create mode 100644 lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h create mode 100644 lib/Target/Mips/MicroMips32r6InstrFormats.td create mode 100644 lib/Target/Mips/MicroMips32r6InstrInfo.td delete mode 100644 lib/Target/Mips/Mips16HardFloat.h delete mode 100644 lib/Target/Mips/MipsModuleISelDAGToDAG.h delete mode 100644 lib/Target/Mips/MipsOs16.h create mode 100644 lib/Target/NVPTX/NVPTXTargetTransformInfo.h delete mode 100644 lib/Target/NVPTX/NVPTXutil.cpp delete mode 100644 lib/Target/NVPTX/NVPTXutil.h create mode 100644 lib/Target/PowerPC/PPCEarlyReturn.cpp create mode 100644 lib/Target/PowerPC/PPCInstrHTM.td create mode 100644 lib/Target/PowerPC/PPCInstrQPX.td create mode 100644 lib/Target/PowerPC/PPCLoopDataPrefetch.cpp create mode 100644 lib/Target/PowerPC/PPCLoopPreIncPrep.cpp create mode 100644 lib/Target/PowerPC/PPCTLSDynamicCall.cpp create mode 100644 lib/Target/PowerPC/PPCTOCRegDeps.cpp create mode 100644 lib/Target/PowerPC/PPCTargetTransformInfo.h create mode 100644 lib/Target/PowerPC/PPCVSXCopy.cpp create mode 100644 lib/Target/PowerPC/PPCVSXFMAMutate.cpp create mode 100644 lib/Target/PowerPC/PPCVSXSwapRemoval.cpp create mode 100644 lib/Target/R600/AMDGPUTargetTransformInfo.h create mode 100644 lib/Target/R600/SIFixControlFlowLiveIntervals.cpp create mode 100644 lib/Target/SystemZ/SystemZInstrVector.td create mode 100644 lib/Target/SystemZ/SystemZLDCleanup.cpp create mode 100644 lib/Target/SystemZ/SystemZTargetTransformInfo.cpp create mode 100644 lib/Target/SystemZ/SystemZTargetTransformInfo.h create mode 100644 lib/Target/X86/X86CallFrameOptimization.cpp create mode 100644 lib/Target/X86/X86ExpandPseudo.cpp create mode 100644 lib/Target/X86/X86TargetTransformInfo.h create mode 100644 lib/Target/X86/X86WinEHState.cpp delete mode 100644 lib/Target/XCore/XCoreTargetTransformInfo.cpp create mode 100644 lib/Target/XCore/XCoreTargetTransformInfo.h create mode 100644 lib/Transforms/IPO/LowerBitSets.cpp rename lib/Transforms/InstCombine/{InstCombine.h => InstCombineInternal.h} (66%) create mode 100644 lib/Transforms/ObjCARC/ARCInstKind.cpp create mode 100644 lib/Transforms/ObjCARC/ARCInstKind.h create mode 100644 lib/Transforms/ObjCARC/BlotMapVector.h delete mode 100644 lib/Transforms/ObjCARC/ObjCARCUtil.cpp create mode 100644 lib/Transforms/ObjCARC/PtrState.cpp create mode 100644 lib/Transforms/ObjCARC/PtrState.h create mode 100644 lib/Transforms/Scalar/BDCE.cpp create mode 100644 lib/Transforms/Scalar/Float2Int.cpp create mode 100644 lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp create mode 100644 lib/Transforms/Scalar/LoopDistribute.cpp create mode 100644 lib/Transforms/Scalar/LoopInterchange.cpp rename lib/Transforms/{Utils => Scalar}/LowerExpectIntrinsic.cpp (59%) create mode 100644 lib/Transforms/Scalar/NaryReassociate.cpp create mode 100644 lib/Transforms/Scalar/PlaceSafepoints.cpp create mode 100644 lib/Transforms/Scalar/RewriteStatepointsForGC.cpp create mode 100644 lib/Transforms/Scalar/SpeculativeExecution.cpp create mode 100644 lib/Transforms/Scalar/StraightLineStrengthReduce.cpp create mode 100644 lib/Transforms/Utils/LoopUtils.cpp create mode 100644 test/Analysis/AssumptionCache/basic.ll create mode 100644 test/Analysis/BasicAA/struct-geps.ll create mode 100644 test/Analysis/BlockFrequencyInfo/loops_with_profile_info.ll create mode 100644 test/Analysis/BranchProbabilityInfo/pr22718.ll create mode 100644 test/Analysis/CFLAliasAnalysis/asm-global-bugfix.ll create mode 100644 test/Analysis/CFLAliasAnalysis/branch-alias.ll create mode 100644 test/Analysis/CFLAliasAnalysis/stratified-attrs-indexing.ll create mode 100644 test/Analysis/CostModel/X86/masked-intrinsic-cost.ll create mode 100644 test/Analysis/Delinearization/divide_by_one.ll create mode 100644 test/Analysis/Delinearization/type_mismatch.ll create mode 100644 test/Analysis/DependenceAnalysis/Constraints.ll create mode 100644 test/Analysis/DependenceAnalysis/PR21585.ll create mode 100644 test/Analysis/DependenceAnalysis/UsefulGEP.ll create mode 100644 test/Analysis/DivergenceAnalysis/NVPTX/diverge.ll create mode 100644 test/Analysis/DivergenceAnalysis/NVPTX/lit.local.cfg create mode 100644 test/Analysis/Lint/cppeh-catch-intrinsics-clean.ll create mode 100644 test/Analysis/Lint/cppeh-catch-intrinsics.ll create mode 100644 test/Analysis/LoopAccessAnalysis/backward-dep-different-types.ll create mode 100644 test/Analysis/LoopAccessAnalysis/resort-to-memchecks-only.ll create mode 100644 test/Analysis/LoopAccessAnalysis/safe-no-checks.ll create mode 100644 test/Analysis/LoopAccessAnalysis/store-to-invariant-check1.ll create mode 100644 test/Analysis/LoopAccessAnalysis/store-to-invariant-check2.ll create mode 100644 test/Analysis/LoopAccessAnalysis/store-to-invariant-check3.ll create mode 100644 test/Analysis/LoopAccessAnalysis/underlying-objects-1.ll create mode 100644 test/Analysis/LoopAccessAnalysis/underlying-objects-2.ll create mode 100644 test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks.ll create mode 100644 test/Analysis/ScalarEvolution/ext-antecedent.ll create mode 100644 test/Analysis/ScalarEvolution/incorrect-nsw.ll create mode 100644 test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll create mode 100644 test/Analysis/ScalarEvolution/infer-via-ranges.ll create mode 100644 test/Analysis/ScalarEvolution/latch-dominating-conditions.ll create mode 100644 test/Analysis/ScalarEvolution/min-max-exprs.ll create mode 100644 test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll create mode 100644 test/Analysis/ScalarEvolution/pr22641.ll create mode 100644 test/Analysis/ScalarEvolution/pr22674.ll create mode 100644 test/Analysis/ScalarEvolution/range-signedness.ll create mode 100644 test/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll create mode 100644 test/Analysis/ScalarEvolution/scev-prestart-nowrap.ll create mode 100644 test/Analysis/TypeBasedAliasAnalysis/cyclic.ll create mode 100644 test/Analysis/ValueTracking/memory-dereferenceable.ll create mode 100644 test/Analysis/ValueTracking/pr23011.ll create mode 100644 test/Assembler/alloca-invalid-type-2.ll create mode 100644 test/Assembler/alloca-invalid-type.ll create mode 100644 test/Assembler/alloca-size-one.ll create mode 100644 test/Assembler/call-invalid-1.ll create mode 100644 test/Assembler/debug-info.ll create mode 100644 test/Assembler/drop-debug-info.ll create mode 100644 test/Assembler/extractvalue-no-idx.ll delete mode 100644 test/Assembler/functionlocal-metadata.ll create mode 100644 test/Assembler/generic-debug-node.ll create mode 100644 test/Assembler/getelementptr_invalid_ptr.ll create mode 100644 test/Assembler/getelementptr_vec_idx4.ll create mode 100644 test/Assembler/gv-invalid-type.ll create mode 100644 test/Assembler/insertvalue-invalid-type-1.ll create mode 100644 test/Assembler/insertvalue-invalid-type.ll create mode 100644 test/Assembler/invalid-datalayout14.ll create mode 100644 test/Assembler/invalid-datalayout15.ll create mode 100644 test/Assembler/invalid-datalayout16.ll create mode 100644 test/Assembler/invalid-datalayout17.ll create mode 100644 test/Assembler/invalid-datalayout18.ll create mode 100644 test/Assembler/invalid-datalayout19.ll create mode 100644 test/Assembler/invalid-datalayout20.ll create mode 100644 test/Assembler/invalid-datalayout21.ll create mode 100644 test/Assembler/invalid-datalayout22.ll create mode 100644 test/Assembler/invalid-datalayout23.ll create mode 100644 test/Assembler/invalid-datalayout24.ll create mode 100644 test/Assembler/invalid-debug-info-version.ll create mode 100644 test/Assembler/invalid-generic-debug-node-tag-bad.ll create mode 100644 test/Assembler/invalid-generic-debug-node-tag-missing.ll create mode 100644 test/Assembler/invalid-generic-debug-node-tag-overflow.ll create mode 100644 test/Assembler/invalid-generic-debug-node-tag-wrong-type.ll create mode 100644 test/Assembler/invalid-gep-mismatched-explicit-type.ll create mode 100644 test/Assembler/invalid-gep-missing-explicit-type.ll create mode 100644 test/Assembler/invalid-label.ll create mode 100644 test/Assembler/invalid-landingpad.ll create mode 100644 test/Assembler/invalid-load-mismatched-explicit-type.ll create mode 100644 test/Assembler/invalid-load-missing-explicit-type.ll create mode 100644 test/Assembler/invalid-mdcompileunit-language-bad.ll create mode 100644 test/Assembler/invalid-mdcompileunit-language-overflow.ll create mode 100644 test/Assembler/invalid-mdcompileunit-missing-language.ll create mode 100644 test/Assembler/invalid-mdcompileunit-null-file.ll create mode 100644 test/Assembler/invalid-mdcompositetype-missing-tag.ll create mode 100644 test/Assembler/invalid-mdderivedtype-missing-basetype.ll create mode 100644 test/Assembler/invalid-mdderivedtype-missing-tag.ll create mode 100644 test/Assembler/invalid-mdenumerator-missing-name.ll create mode 100644 test/Assembler/invalid-mdenumerator-missing-value.ll create mode 100644 test/Assembler/invalid-mdexpression-large.ll create mode 100644 test/Assembler/invalid-mdexpression-verify.ll create mode 100644 test/Assembler/invalid-mdfile-missing-directory.ll create mode 100644 test/Assembler/invalid-mdfile-missing-filename.ll create mode 100644 test/Assembler/invalid-mdglobalvariable-empty-name.ll create mode 100644 test/Assembler/invalid-mdglobalvariable-missing-name.ll create mode 100644 test/Assembler/invalid-mdimportedentity-missing-scope.ll create mode 100644 test/Assembler/invalid-mdimportedentity-missing-tag.ll create mode 100644 test/Assembler/invalid-mdlexicalblock-missing-scope.ll create mode 100644 test/Assembler/invalid-mdlexicalblock-null-scope.ll create mode 100644 test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll create mode 100644 test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll create mode 100644 test/Assembler/invalid-mdlexicalblockfile-null-scope.ll create mode 100644 test/Assembler/invalid-mdlocalvariable-missing-scope.ll create mode 100644 test/Assembler/invalid-mdlocalvariable-missing-tag.ll create mode 100644 test/Assembler/invalid-mdlocalvariable-null-scope.ll create mode 100644 test/Assembler/invalid-mdlocation-missing-scope-2.ll create mode 100644 test/Assembler/invalid-mdlocation-missing-scope.ll create mode 100644 test/Assembler/invalid-mdlocation-null-scope.ll create mode 100644 test/Assembler/invalid-mdnamespace-missing-namespace.ll create mode 100644 test/Assembler/invalid-mdnode-badref.ll create mode 100644 test/Assembler/invalid-mdsubrange-count-large.ll create mode 100644 test/Assembler/invalid-mdsubrange-count-missing.ll create mode 100644 test/Assembler/invalid-mdsubrange-count-negative.ll create mode 100644 test/Assembler/invalid-mdsubrange-lowerBound-max.ll create mode 100644 test/Assembler/invalid-mdsubrange-lowerBound-min.ll create mode 100644 test/Assembler/invalid-mdsubroutinetype-missing-types.ll create mode 100644 test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll create mode 100644 test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll create mode 100644 test/Assembler/invalid_cast4.ll create mode 100644 test/Assembler/large-comdat.ll create mode 100644 test/Assembler/mdcompileunit.ll create mode 100644 test/Assembler/mdexpression.ll create mode 100644 test/Assembler/mdfile-escaped-chars.ll create mode 100644 test/Assembler/mdglobalvariable.ll create mode 100644 test/Assembler/mdimportedentity.ll create mode 100644 test/Assembler/mdlexicalblock.ll create mode 100644 test/Assembler/mdlocalvariable.ll create mode 100644 test/Assembler/mdnamespace.ll create mode 100644 test/Assembler/mdobjcproperty.ll create mode 100644 test/Assembler/mdsubprogram.ll create mode 100644 test/Assembler/mdsubrange-empty-array.ll create mode 100644 test/Assembler/mdsubroutinetype.ll create mode 100644 test/Assembler/mdtemplateparameter.ll create mode 100644 test/Assembler/mdtype-large-values.ll create mode 100644 test/Assembler/metadata-function-local.ll create mode 100644 test/Assembler/metadata-null-operands.ll create mode 100644 test/Assembler/unsized-recursive-type.ll create mode 100644 test/Bitcode/DICompileUnit-no-DWOId.ll create mode 100644 test/Bitcode/DICompileUnit-no-DWOId.ll.bc create mode 100644 test/Bitcode/Inputs/invalid-GCTable-overflow.bc create mode 100644 test/Bitcode/Inputs/invalid-abbrev-fixed-size-too-big.bc create mode 100644 test/Bitcode/Inputs/invalid-abbrev-no-operands.bc create mode 100644 test/Bitcode/Inputs/invalid-abbrev-vbr-size-too-big.bc create mode 100644 test/Bitcode/Inputs/invalid-abbrev.bc create mode 100644 test/Bitcode/Inputs/invalid-align.bc create mode 100644 test/Bitcode/Inputs/invalid-array-element-type.bc create mode 100644 test/Bitcode/Inputs/invalid-array-op-not-2nd-to-last.bc create mode 100644 test/Bitcode/Inputs/invalid-array-operand-encoding.bc create mode 100644 test/Bitcode/Inputs/invalid-array-type.bc create mode 100644 test/Bitcode/Inputs/invalid-bad-abbrev-number.bc create mode 100644 test/Bitcode/Inputs/invalid-bitwidth.bc create mode 100644 test/Bitcode/Inputs/invalid-call-mismatched-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-call-non-function-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-code-len-width.bc create mode 100644 test/Bitcode/Inputs/invalid-extract-0-indices.bc create mode 100644 test/Bitcode/Inputs/invalid-extractval-array-idx.bc create mode 100644 test/Bitcode/Inputs/invalid-extractval-struct-idx.bc create mode 100644 test/Bitcode/Inputs/invalid-extractval-too-many-idxs.bc create mode 100644 test/Bitcode/Inputs/invalid-fixme-streaming-blob.bc create mode 100644 test/Bitcode/Inputs/invalid-fp-shift.bc create mode 100644 test/Bitcode/Inputs/invalid-function-argument-type.bc create mode 100644 test/Bitcode/Inputs/invalid-function-comdat-id.bc create mode 100644 test/Bitcode/Inputs/invalid-fwdref-type-mismatch-2.bc create mode 100644 test/Bitcode/Inputs/invalid-fwdref-type-mismatch.bc create mode 100644 test/Bitcode/Inputs/invalid-gep-mismatched-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-gep-operator-mismatched-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-global-var-comdat-id.bc create mode 100644 test/Bitcode/Inputs/invalid-insert-0-indices.bc create mode 100644 test/Bitcode/Inputs/invalid-inserted-value-type-mismatch.bc create mode 100644 test/Bitcode/Inputs/invalid-insertval-array-idx.bc create mode 100644 test/Bitcode/Inputs/invalid-insertval-struct-idx.bc create mode 100644 test/Bitcode/Inputs/invalid-insertval-too-many-idxs.bc create mode 100644 test/Bitcode/Inputs/invalid-invoke-mismatched-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-invoke-non-function-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-load-mismatched-explicit-type.bc create mode 100644 test/Bitcode/Inputs/invalid-load-pointer-type.bc create mode 100644 test/Bitcode/Inputs/invalid-load-ptr-type.bc create mode 100644 test/Bitcode/Inputs/invalid-no-proper-module.bc create mode 100644 test/Bitcode/Inputs/invalid-non-vector-extractelement.bc create mode 100644 test/Bitcode/Inputs/invalid-non-vector-insertelement.bc create mode 100644 test/Bitcode/Inputs/invalid-non-vector-shufflevector.bc create mode 100644 test/Bitcode/Inputs/invalid-pointer-element-type.bc create mode 100644 test/Bitcode/Inputs/invalid-pr20485.bc create mode 100644 test/Bitcode/Inputs/invalid-too-big-fwdref.bc create mode 100644 test/Bitcode/Inputs/invalid-type-table-forward-ref.bc create mode 100644 test/Bitcode/Inputs/invalid-unexpected-eof.bc create mode 100644 test/Bitcode/Inputs/invalid-vector-element-type.bc create mode 100644 test/Bitcode/cmpxchg.3.6.ll create mode 100644 test/Bitcode/cmpxchg.3.6.ll.bc create mode 100644 test/Bitcode/debug-loc-again.ll create mode 100644 test/Bitcode/drop-debug-info.3.5.ll create mode 100644 test/Bitcode/drop-debug-info.3.5.ll.bc delete mode 100644 test/Bitcode/drop-debug-info.ll create mode 100644 test/Bitcode/invalid.test create mode 100644 test/Bitcode/weak-macho-3.5.ll create mode 100644 test/Bitcode/weak-macho-3.5.ll.bc create mode 100644 test/BugPoint/replace-funcs-with-null.ll create mode 100644 test/CodeGen/AArch64/aarch64-dynamic-stack-layout.ll create mode 100644 test/CodeGen/AArch64/arm64-codegen-prepare-extload.ll create mode 100644 test/CodeGen/AArch64/arm64-ldp-aa.ll create mode 100644 test/CodeGen/AArch64/arm64-misaligned-memcpy-inline.ll create mode 100644 test/CodeGen/AArch64/arm64-neon-v8.1a.ll create mode 100644 test/CodeGen/AArch64/arm64-shrink-wrapping.ll create mode 100644 test/CodeGen/AArch64/arm64-stp-aa.ll create mode 100644 test/CodeGen/AArch64/bitcast.ll create mode 100644 test/CodeGen/AArch64/concat_vector-scalar-combine.ll create mode 100644 test/CodeGen/AArch64/concat_vector-truncate-combine.ll create mode 100644 test/CodeGen/AArch64/concat_vector-truncated-scalar-combine.ll create mode 100644 test/CodeGen/AArch64/f16-instructions.ll create mode 100644 test/CodeGen/AArch64/fast-isel-address-extends.ll create mode 100644 test/CodeGen/AArch64/fast-isel-int-ext5.ll create mode 100644 test/CodeGen/AArch64/fold-constants.ll delete mode 100644 test/CodeGen/AArch64/fp16-instructions.ll create mode 100644 test/CodeGen/AArch64/fp16-v16-instructions.ll create mode 100644 test/CodeGen/AArch64/fp16-vector-nvcast.ll create mode 100644 test/CodeGen/AArch64/function-subtarget-features.ll create mode 100644 test/CodeGen/AArch64/global-merge-group-by-use.ll create mode 100644 test/CodeGen/AArch64/global-merge-ignore-single-use.ll create mode 100644 test/CodeGen/AArch64/inline-asm-globaladdress.ll create mode 100644 test/CodeGen/AArch64/large_shift.ll create mode 100644 test/CodeGen/AArch64/machine-sink-kill-flags.ll create mode 100644 test/CodeGen/AArch64/merge-store.ll create mode 100644 test/CodeGen/AArch64/minmax.ll create mode 100644 test/CodeGen/AArch64/or-combine.ll create mode 100644 test/CodeGen/AArch64/print-mrs-system-register.ll create mode 100644 test/CodeGen/AArch64/remat-float0.ll create mode 100644 test/CodeGen/AArch64/stackmap-liveness.ll create mode 100644 test/CodeGen/AArch64/tailcall-mem-intrinsics.ll create mode 100644 test/CodeGen/AArch64/tailcall_misched_graph.ll create mode 100644 test/CodeGen/AArch64/vcvt-oversize.ll create mode 100644 test/CodeGen/ARM/Windows/stack-probe-non-default.ll create mode 100644 test/CodeGen/ARM/aggregate-padding.ll create mode 100644 test/CodeGen/ARM/byval-align.ll create mode 100644 test/CodeGen/ARM/combine-movc-sub.ll delete mode 100644 test/CodeGen/ARM/darwin-section-order.ll create mode 100644 test/CodeGen/ARM/debug-info-no-frame.ll create mode 100644 test/CodeGen/ARM/disable-fp-elim.ll create mode 100644 test/CodeGen/ARM/fast-isel-remat-same-constant.ll create mode 100644 test/CodeGen/ARM/fast-isel-shift-materialize.ll create mode 100644 test/CodeGen/ARM/fast-isel-update-valuemap-for-extract.ll create mode 100644 test/CodeGen/ARM/fast-isel-vaddd.ll create mode 100644 test/CodeGen/ARM/fp16-promote.ll create mode 100644 test/CodeGen/ARM/ifcvt-dead-def.ll create mode 100644 test/CodeGen/ARM/ifcvt-iter-indbr.ll create mode 100644 test/CodeGen/ARM/ifcvt-regmask-noreturn.ll create mode 100644 test/CodeGen/ARM/krait-cpu-div-attribute.ll create mode 100644 test/CodeGen/ARM/movcc-double.ll create mode 100644 test/CodeGen/ARM/neon-v8.1a.ll create mode 100644 test/CodeGen/ARM/noopt-dmb-v7.ll delete mode 100644 test/CodeGen/ARM/odr_comdat.ll create mode 100644 test/CodeGen/ARM/print-memb-operand.ll create mode 100644 test/CodeGen/ARM/regpair_hint_phys.ll create mode 100644 test/CodeGen/ARM/sched-it-debug-nodes.ll create mode 100644 test/CodeGen/ARM/t2abs-killflags.ll create mode 100644 test/CodeGen/ARM/tail-dup-kill-flags.ll create mode 100644 test/CodeGen/ARM/thumb-alignment.ll create mode 100644 test/CodeGen/ARM/thumb-big-stack.ll create mode 100644 test/CodeGen/ARM/thumb2-size-reduction-internal-flags.ll create mode 100644 test/CodeGen/ARM/vector-load.ll create mode 100644 test/CodeGen/ARM/vector-store.ll create mode 100644 test/CodeGen/BPF/alu8.ll create mode 100644 test/CodeGen/BPF/atomics.ll create mode 100644 test/CodeGen/BPF/basictest.ll create mode 100644 test/CodeGen/BPF/byval.ll create mode 100644 test/CodeGen/BPF/cc_args.ll create mode 100644 test/CodeGen/BPF/cc_ret.ll create mode 100644 test/CodeGen/BPF/cmp.ll create mode 100644 test/CodeGen/BPF/ex1.ll create mode 100644 test/CodeGen/BPF/intrinsics.ll create mode 100644 test/CodeGen/BPF/lit.local.cfg create mode 100644 test/CodeGen/BPF/load.ll create mode 100644 test/CodeGen/BPF/loops.ll create mode 100644 test/CodeGen/BPF/many_args1.ll create mode 100644 test/CodeGen/BPF/many_args2.ll create mode 100644 test/CodeGen/BPF/sanity.ll create mode 100644 test/CodeGen/BPF/setcc.ll create mode 100644 test/CodeGen/BPF/shifts.ll create mode 100644 test/CodeGen/BPF/sockex2.ll create mode 100644 test/CodeGen/BPF/struct_ret1.ll create mode 100644 test/CodeGen/BPF/struct_ret2.ll create mode 100644 test/CodeGen/BPF/vararg1.ll create mode 100644 test/CodeGen/Generic/icmp-illegal.ll create mode 100644 test/CodeGen/Generic/overloaded-intrinsic-name.ll create mode 100644 test/CodeGen/Hexagon/alu64.ll create mode 100644 test/CodeGen/Hexagon/brev_ld.ll create mode 100644 test/CodeGen/Hexagon/brev_st.ll create mode 100644 test/CodeGen/Hexagon/calling-conv-2.ll create mode 100644 test/CodeGen/Hexagon/calling-conv.ll create mode 100644 test/CodeGen/Hexagon/circ_ld.ll create mode 100644 test/CodeGen/Hexagon/circ_ldd_bug.ll create mode 100644 test/CodeGen/Hexagon/circ_ldw.ll create mode 100644 test/CodeGen/Hexagon/circ_st.ll create mode 100644 test/CodeGen/Hexagon/clr_set_toggle.ll delete mode 100644 test/CodeGen/Hexagon/cmp-not.ll create mode 100644 test/CodeGen/Hexagon/expand-condsets-basic.ll create mode 100644 test/CodeGen/Hexagon/expand-condsets-rm-segment.ll create mode 100644 test/CodeGen/Hexagon/expand-condsets-undef.ll create mode 100644 test/CodeGen/Hexagon/hwloop-crit-edge.ll create mode 100644 test/CodeGen/Hexagon/hwloop-loop1.ll create mode 100644 test/CodeGen/Hexagon/hwloop-missed.ll create mode 100644 test/CodeGen/Hexagon/hwloop-ph-deadcode.ll create mode 100644 test/CodeGen/Hexagon/hwloop-pos-ivbump1.ll create mode 100644 test/CodeGen/Hexagon/hwloop-preheader.ll create mode 100644 test/CodeGen/Hexagon/hwloop-range.ll create mode 100644 test/CodeGen/Hexagon/hwloop-recursion.ll create mode 100644 test/CodeGen/Hexagon/hwloop-wrap.ll create mode 100644 test/CodeGen/Hexagon/hwloop-wrap2.ll create mode 100644 test/CodeGen/Hexagon/hwloop1.ll create mode 100644 test/CodeGen/Hexagon/hwloop2.ll create mode 100644 test/CodeGen/Hexagon/hwloop3.ll create mode 100644 test/CodeGen/Hexagon/hwloop4.ll create mode 100644 test/CodeGen/Hexagon/hwloop5.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/alu32_alu.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/alu32_perm.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/cr.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_alu.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_bit.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_complex.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_fp.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_mpy.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_perm.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_pred.ll create mode 100644 test/CodeGen/Hexagon/intrinsics/xtype_shift.ll create mode 100644 test/CodeGen/Hexagon/mem-fi-add.ll create mode 100644 test/CodeGen/Hexagon/remove-endloop.ll create mode 100644 test/CodeGen/Hexagon/shrink-frame-basic.ll create mode 100644 test/CodeGen/Hexagon/stack-align1.ll create mode 100644 test/CodeGen/Hexagon/stack-align2.ll create mode 100644 test/CodeGen/Hexagon/stack-alloca1.ll create mode 100644 test/CodeGen/Hexagon/stack-alloca2.ll create mode 100644 test/CodeGen/Hexagon/tail-call-mem-intrinsics.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-anyextend.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-apint-truncate.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-bad-bitcast.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-bitcast-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-bitcast.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-cst-v4i32.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-cst-v4i8.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-cst.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-extract.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-fma.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-illegal-type.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-insert-extract-elt.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-load-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-load.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-loadv4i16.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-mul-v2i16.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-mul-v2i32.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-mul-v4i16.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-mul-v4i8.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-mul-v8i8.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-no-tfrs-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-no-tfrs.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-packhl.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-shift-imm.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-shuffle.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-splat.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-store-v2i16.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-truncate.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vaddb-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vaddb.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vaddh-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vaddh.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vaddw.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vaslw.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vshifts.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsplatb.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsplath.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsubb-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsubb.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsubh-1.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsubh.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-vsubw.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-xor.ll create mode 100644 test/CodeGen/Hexagon/vect/vect-zeroextend.ll create mode 100644 test/CodeGen/Mips/Fast-ISel/constexpr-address.ll create mode 100644 test/CodeGen/Mips/Fast-ISel/fastalloca.ll create mode 100644 test/CodeGen/Mips/Fast-ISel/logopm.ll create mode 100644 test/CodeGen/Mips/Fast-ISel/overflt.ll create mode 100644 test/CodeGen/Mips/Fast-ISel/retabi.ll create mode 100644 test/CodeGen/Mips/Fast-ISel/shftopm.ll create mode 100644 test/CodeGen/Mips/dagcombine_crash.ll create mode 100644 test/CodeGen/Mips/delay-slot-fill-forward.ll create mode 100644 test/CodeGen/Mips/delay-slot-kill.ll create mode 100644 test/CodeGen/Mips/emergency-spill-slot-near-fp.ll create mode 100644 test/CodeGen/Mips/fp16-promote.ll create mode 100644 test/CodeGen/Mips/inlineasm_constraint_R.ll create mode 100644 test/CodeGen/Mips/inlineasm_constraint_ZC.ll create mode 100644 test/CodeGen/Mips/inlineasm_constraint_m.ll create mode 100644 test/CodeGen/Mips/insn-zero-size-bb.ll create mode 100644 test/CodeGen/Mips/micromips-addu16.ll create mode 100644 test/CodeGen/Mips/micromips-and16.ll create mode 100644 test/CodeGen/Mips/micromips-compact-jump.ll create mode 100644 test/CodeGen/Mips/micromips-gp-rc.ll create mode 100644 test/CodeGen/Mips/micromips-not16.ll create mode 100644 test/CodeGen/Mips/micromips-or16.ll create mode 100644 test/CodeGen/Mips/micromips-subu16.ll create mode 100644 test/CodeGen/Mips/micromips-sw-lw-16.ll create mode 100644 test/CodeGen/Mips/micromips-xor16.ll create mode 100644 test/CodeGen/NVPTX/bug22246.ll create mode 100644 test/CodeGen/NVPTX/bug22322.ll create mode 100644 test/CodeGen/NVPTX/function-align.ll create mode 100644 test/CodeGen/NVPTX/nounroll.ll delete mode 100644 test/CodeGen/NVPTX/ptx-version-30.ll delete mode 100644 test/CodeGen/NVPTX/ptx-version-31.ll create mode 100644 test/CodeGen/NVPTX/sm-version-32.ll create mode 100644 test/CodeGen/NVPTX/sm-version-37.ll create mode 100644 test/CodeGen/NVPTX/sm-version-50.ll create mode 100644 test/CodeGen/NVPTX/sm-version-52.ll create mode 100644 test/CodeGen/NVPTX/sm-version-53.ll create mode 100644 test/CodeGen/PowerPC/MergeConsecutiveStores.ll create mode 100644 test/CodeGen/PowerPC/crypto_bifs.ll create mode 100644 test/CodeGen/PowerPC/div-e-32.ll create mode 100644 test/CodeGen/PowerPC/div-e-all.ll create mode 100644 test/CodeGen/PowerPC/ec-input.ll create mode 100644 test/CodeGen/PowerPC/extra-toc-reg-deps.ll create mode 100644 test/CodeGen/PowerPC/f32-to-i64.ll create mode 100644 test/CodeGen/PowerPC/fast-isel-icmp-split.ll create mode 100644 test/CodeGen/PowerPC/fast-isel-load-store-vsx.ll create mode 100644 test/CodeGen/PowerPC/flt-preinc.ll create mode 100644 test/CodeGen/PowerPC/fp-int-conversions-direct-moves.ll create mode 100644 test/CodeGen/PowerPC/htm.ll create mode 100644 test/CodeGen/PowerPC/ldtoc-inv.ll create mode 100644 test/CodeGen/PowerPC/loop-data-prefetch-inner.ll create mode 100644 test/CodeGen/PowerPC/loop-data-prefetch.ll create mode 100644 test/CodeGen/PowerPC/loop-prep-all.ll create mode 100644 test/CodeGen/PowerPC/memcpy-vec.ll create mode 100644 test/CodeGen/PowerPC/memset-nc-le.ll create mode 100644 test/CodeGen/PowerPC/memset-nc.ll create mode 100644 test/CodeGen/PowerPC/no-pref-jumps.ll create mode 100644 test/CodeGen/PowerPC/optnone-crbits-i1-ret.ll create mode 100644 test/CodeGen/PowerPC/p8-isel-sched.ll create mode 100644 test/CodeGen/PowerPC/pip-inner.ll create mode 100644 test/CodeGen/PowerPC/ppc-crbits-onoff.ll create mode 100644 test/CodeGen/PowerPC/ppc-empty-fs.ll create mode 100644 test/CodeGen/PowerPC/ppc64-fastcc-fast-isel.ll create mode 100644 test/CodeGen/PowerPC/ppc64-fastcc.ll create mode 100644 test/CodeGen/PowerPC/ppc64-func-desc-hoist.ll create mode 100644 test/CodeGen/PowerPC/ppc64-i128-abi.ll create mode 100644 test/CodeGen/PowerPC/ppc64-icbt-pwr7.ll create mode 100644 test/CodeGen/PowerPC/ppc64-icbt-pwr8.ll create mode 100644 test/CodeGen/PowerPC/ppc64-r2-alloc.ll create mode 100644 test/CodeGen/PowerPC/pr22711.ll create mode 100644 test/CodeGen/PowerPC/preinc-ld-sel-crash.ll create mode 100644 test/CodeGen/PowerPC/preincprep-invoke.ll create mode 100644 test/CodeGen/PowerPC/qpx-bv-sint.ll create mode 100644 test/CodeGen/PowerPC/qpx-bv.ll create mode 100644 test/CodeGen/PowerPC/qpx-func-clobber.ll create mode 100644 test/CodeGen/PowerPC/qpx-load.ll create mode 100644 test/CodeGen/PowerPC/qpx-recipest.ll create mode 100644 test/CodeGen/PowerPC/qpx-rounding-ops.ll create mode 100644 test/CodeGen/PowerPC/qpx-s-load.ll create mode 100644 test/CodeGen/PowerPC/qpx-s-sel.ll create mode 100644 test/CodeGen/PowerPC/qpx-s-store.ll create mode 100644 test/CodeGen/PowerPC/qpx-sel.ll create mode 100644 test/CodeGen/PowerPC/qpx-split-vsetcc.ll create mode 100644 test/CodeGen/PowerPC/qpx-store.ll create mode 100644 test/CodeGen/PowerPC/qpx-unalperm.ll create mode 100644 test/CodeGen/PowerPC/swaps-le-1.ll create mode 100644 test/CodeGen/PowerPC/swaps-le-2.ll create mode 100644 test/CodeGen/PowerPC/tls-cse.ll create mode 100644 test/CodeGen/PowerPC/vec_add_sub_doubleword.ll create mode 100644 test/CodeGen/PowerPC/vec_add_sub_quadword.ll create mode 100644 test/CodeGen/PowerPC/vec_clz.ll create mode 100644 test/CodeGen/PowerPC/vec_cmpd.ll create mode 100644 test/CodeGen/PowerPC/vec_minmax.ll create mode 100644 test/CodeGen/PowerPC/vec_mul_even_odd.ll create mode 100644 test/CodeGen/PowerPC/vec_popcnt.ll create mode 100644 test/CodeGen/PowerPC/vec_rotate_shift.ll create mode 100644 test/CodeGen/PowerPC/vec_shuffle_p8vector.ll create mode 100644 test/CodeGen/PowerPC/vec_shuffle_p8vector_le.ll create mode 100644 test/CodeGen/PowerPC/vec_veqv_vnand_vorc.ll create mode 100644 test/CodeGen/PowerPC/vsx-elementary-arith.ll create mode 100644 test/CodeGen/PowerPC/vsx-infl-copy1.ll create mode 100644 test/CodeGen/PowerPC/vsx-infl-copy2.ll create mode 100644 test/CodeGen/PowerPC/vsx-recip-est.ll create mode 100644 test/CodeGen/PowerPC/vsx-spill-norwstore.ll create mode 100644 test/CodeGen/PowerPC/vsx_scalar_ld_st.ll create mode 100644 test/CodeGen/PowerPC/xxleqv_xxlnand_xxlorc.ll delete mode 100644 test/CodeGen/R600/128bit-kernel-args.ll delete mode 100644 test/CodeGen/R600/64bit-kernel-args.ll create mode 100644 test/CodeGen/R600/coalescer_remat.ll create mode 100644 test/CodeGen/R600/commute-compares.ll create mode 100644 test/CodeGen/R600/cvt_flr_i32_f32.ll create mode 100644 test/CodeGen/R600/cvt_rpi_i32_f32.ll create mode 100644 test/CodeGen/R600/debug.ll create mode 100644 test/CodeGen/R600/ffloor.f64.ll create mode 100644 test/CodeGen/R600/fma-combine.ll create mode 100644 test/CodeGen/R600/llvm.AMDGPU.fract.f64.ll delete mode 100644 test/CodeGen/R600/llvm.floor.ll create mode 100644 test/CodeGen/R600/llvm.round.f64.ll delete mode 100644 test/CodeGen/R600/llvm.trunc.ll create mode 100644 test/CodeGen/R600/mad-combine.ll create mode 100644 test/CodeGen/R600/madak.ll create mode 100644 test/CodeGen/R600/madmk.ll create mode 100644 test/CodeGen/R600/merge-stores.ll delete mode 100644 test/CodeGen/R600/misaligned-load.ll create mode 100644 test/CodeGen/R600/sdivrem64.ll create mode 100644 test/CodeGen/R600/si-spill-cf.ll create mode 100644 test/CodeGen/SystemZ/ctpop-01.ll create mode 100644 test/CodeGen/SystemZ/fp-move-10.ll create mode 100644 test/CodeGen/SystemZ/fp-move-11.ll create mode 100644 test/CodeGen/SystemZ/frame-19.ll create mode 100644 test/CodeGen/SystemZ/frame-20.ll create mode 100644 test/CodeGen/SystemZ/htm-intrinsics.ll create mode 100644 test/CodeGen/SystemZ/int-cmp-50.ll create mode 100644 test/CodeGen/SystemZ/risbg-03.ll create mode 100644 test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll create mode 100644 test/CodeGen/SystemZ/tls-02.ll create mode 100644 test/CodeGen/SystemZ/tls-03.ll create mode 100644 test/CodeGen/SystemZ/tls-04.ll create mode 100644 test/CodeGen/SystemZ/tls-05.ll create mode 100644 test/CodeGen/SystemZ/tls-06.ll create mode 100644 test/CodeGen/SystemZ/tls-07.ll create mode 100644 test/CodeGen/SystemZ/vec-abi-align.ll create mode 100644 test/CodeGen/SystemZ/vec-abs-01.ll create mode 100644 test/CodeGen/SystemZ/vec-abs-02.ll create mode 100644 test/CodeGen/SystemZ/vec-abs-03.ll create mode 100644 test/CodeGen/SystemZ/vec-abs-04.ll create mode 100644 test/CodeGen/SystemZ/vec-abs-05.ll create mode 100644 test/CodeGen/SystemZ/vec-add-01.ll create mode 100644 test/CodeGen/SystemZ/vec-and-01.ll create mode 100644 test/CodeGen/SystemZ/vec-and-02.ll create mode 100644 test/CodeGen/SystemZ/vec-and-03.ll create mode 100644 test/CodeGen/SystemZ/vec-args-01.ll create mode 100644 test/CodeGen/SystemZ/vec-args-02.ll create mode 100644 test/CodeGen/SystemZ/vec-args-03.ll create mode 100644 test/CodeGen/SystemZ/vec-args-04.ll create mode 100644 test/CodeGen/SystemZ/vec-args-05.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-01.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-02.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-03.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-04.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-05.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-06.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-07.ll create mode 100644 test/CodeGen/SystemZ/vec-args-error-08.ll create mode 100644 test/CodeGen/SystemZ/vec-cmp-01.ll create mode 100644 test/CodeGen/SystemZ/vec-cmp-02.ll create mode 100644 test/CodeGen/SystemZ/vec-cmp-03.ll create mode 100644 test/CodeGen/SystemZ/vec-cmp-04.ll create mode 100644 test/CodeGen/SystemZ/vec-cmp-05.ll create mode 100644 test/CodeGen/SystemZ/vec-cmp-06.ll create mode 100644 test/CodeGen/SystemZ/vec-combine-01.ll create mode 100644 test/CodeGen/SystemZ/vec-combine-02.ll create mode 100644 test/CodeGen/SystemZ/vec-const-01.ll create mode 100644 test/CodeGen/SystemZ/vec-const-02.ll create mode 100644 test/CodeGen/SystemZ/vec-const-03.ll create mode 100644 test/CodeGen/SystemZ/vec-const-04.ll create mode 100644 test/CodeGen/SystemZ/vec-const-05.ll create mode 100644 test/CodeGen/SystemZ/vec-const-06.ll create mode 100644 test/CodeGen/SystemZ/vec-const-07.ll create mode 100644 test/CodeGen/SystemZ/vec-const-08.ll create mode 100644 test/CodeGen/SystemZ/vec-const-09.ll create mode 100644 test/CodeGen/SystemZ/vec-const-10.ll create mode 100644 test/CodeGen/SystemZ/vec-const-11.ll create mode 100644 test/CodeGen/SystemZ/vec-const-12.ll create mode 100644 test/CodeGen/SystemZ/vec-const-13.ll create mode 100644 test/CodeGen/SystemZ/vec-const-14.ll create mode 100644 test/CodeGen/SystemZ/vec-const-15.ll create mode 100644 test/CodeGen/SystemZ/vec-const-16.ll create mode 100644 test/CodeGen/SystemZ/vec-const-17.ll create mode 100644 test/CodeGen/SystemZ/vec-const-18.ll create mode 100644 test/CodeGen/SystemZ/vec-conv-01.ll create mode 100644 test/CodeGen/SystemZ/vec-conv-02.ll create mode 100644 test/CodeGen/SystemZ/vec-ctlz-01.ll create mode 100644 test/CodeGen/SystemZ/vec-ctpop-01.ll create mode 100644 test/CodeGen/SystemZ/vec-cttz-01.ll create mode 100644 test/CodeGen/SystemZ/vec-div-01.ll create mode 100644 test/CodeGen/SystemZ/vec-extract-01.ll create mode 100644 test/CodeGen/SystemZ/vec-extract-02.ll create mode 100644 test/CodeGen/SystemZ/vec-intrinsics.ll create mode 100644 test/CodeGen/SystemZ/vec-log-01.ll create mode 100644 test/CodeGen/SystemZ/vec-max-01.ll create mode 100644 test/CodeGen/SystemZ/vec-max-02.ll create mode 100644 test/CodeGen/SystemZ/vec-max-03.ll create mode 100644 test/CodeGen/SystemZ/vec-max-04.ll create mode 100644 test/CodeGen/SystemZ/vec-min-01.ll create mode 100644 test/CodeGen/SystemZ/vec-min-02.ll create mode 100644 test/CodeGen/SystemZ/vec-min-03.ll create mode 100644 test/CodeGen/SystemZ/vec-min-04.ll create mode 100644 test/CodeGen/SystemZ/vec-move-01.ll create mode 100644 test/CodeGen/SystemZ/vec-move-02.ll create mode 100644 test/CodeGen/SystemZ/vec-move-03.ll create mode 100644 test/CodeGen/SystemZ/vec-move-04.ll create mode 100644 test/CodeGen/SystemZ/vec-move-05.ll create mode 100644 test/CodeGen/SystemZ/vec-move-06.ll create mode 100644 test/CodeGen/SystemZ/vec-move-07.ll create mode 100644 test/CodeGen/SystemZ/vec-move-08.ll create mode 100644 test/CodeGen/SystemZ/vec-move-09.ll create mode 100644 test/CodeGen/SystemZ/vec-move-10.ll create mode 100644 test/CodeGen/SystemZ/vec-move-11.ll create mode 100644 test/CodeGen/SystemZ/vec-move-12.ll create mode 100644 test/CodeGen/SystemZ/vec-move-13.ll create mode 100644 test/CodeGen/SystemZ/vec-move-14.ll create mode 100644 test/CodeGen/SystemZ/vec-move-15.ll create mode 100644 test/CodeGen/SystemZ/vec-move-16.ll create mode 100644 test/CodeGen/SystemZ/vec-move-17.ll create mode 100644 test/CodeGen/SystemZ/vec-mul-01.ll create mode 100644 test/CodeGen/SystemZ/vec-mul-02.ll create mode 100644 test/CodeGen/SystemZ/vec-neg-01.ll create mode 100644 test/CodeGen/SystemZ/vec-or-01.ll create mode 100644 test/CodeGen/SystemZ/vec-or-02.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-01.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-02.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-03.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-04.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-05.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-06.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-07.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-08.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-09.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-10.ll create mode 100644 test/CodeGen/SystemZ/vec-perm-11.ll create mode 100644 test/CodeGen/SystemZ/vec-round-01.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-01.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-02.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-03.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-04.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-05.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-06.ll create mode 100644 test/CodeGen/SystemZ/vec-shift-07.ll create mode 100644 test/CodeGen/SystemZ/vec-sqrt-01.ll create mode 100644 test/CodeGen/SystemZ/vec-sub-01.ll create mode 100644 test/CodeGen/SystemZ/vec-xor-01.ll create mode 100644 test/CodeGen/Thumb/stack-access.ll create mode 100644 test/CodeGen/Thumb2/cbnz.ll create mode 100644 test/CodeGen/Thumb2/ifcvt-compare.ll create mode 100644 test/CodeGen/WinEH/cppeh-alloca-sink.ll create mode 100644 test/CodeGen/WinEH/cppeh-catch-all.ll create mode 100644 test/CodeGen/WinEH/cppeh-catch-and-throw.ll create mode 100644 test/CodeGen/WinEH/cppeh-catch-scalar.ll create mode 100644 test/CodeGen/WinEH/cppeh-catch-unwind.ll create mode 100644 test/CodeGen/WinEH/cppeh-cleanup-invoke.ll create mode 100644 test/CodeGen/WinEH/cppeh-demote-liveout.ll create mode 100644 test/CodeGen/WinEH/cppeh-frame-vars.ll create mode 100644 test/CodeGen/WinEH/cppeh-inalloca.ll create mode 100644 test/CodeGen/WinEH/cppeh-min-unwind.ll create mode 100644 test/CodeGen/WinEH/cppeh-mixed-catch-and-cleanup.ll create mode 100644 test/CodeGen/WinEH/cppeh-multi-catch.ll create mode 100644 test/CodeGen/WinEH/cppeh-nested-1.ll create mode 100644 test/CodeGen/WinEH/cppeh-nested-2.ll create mode 100644 test/CodeGen/WinEH/cppeh-nested-3.ll create mode 100644 test/CodeGen/WinEH/cppeh-nested-rethrow.ll create mode 100644 test/CodeGen/WinEH/cppeh-nonalloca-frame-values.ll create mode 100644 test/CodeGen/WinEH/cppeh-prepared-catch-all.ll create mode 100644 test/CodeGen/WinEH/cppeh-prepared-catch-reordered.ll create mode 100644 test/CodeGen/WinEH/cppeh-prepared-catch.ll create mode 100644 test/CodeGen/WinEH/cppeh-prepared-cleanups.ll create mode 100644 test/CodeGen/WinEH/cppeh-shared-empty-catch.ll create mode 100644 test/CodeGen/WinEH/cppeh-similar-catch-blocks.ll create mode 100644 test/CodeGen/WinEH/cppeh-state-calc-1.ll create mode 100644 test/CodeGen/WinEH/lit.local.cfg create mode 100644 test/CodeGen/WinEH/seh-catch-all.ll create mode 100644 test/CodeGen/WinEH/seh-inlined-finally.ll create mode 100644 test/CodeGen/WinEH/seh-outlined-finally.ll create mode 100644 test/CodeGen/WinEH/seh-prepared-basic.ll create mode 100644 test/CodeGen/WinEH/seh-resume-phi.ll create mode 100644 test/CodeGen/WinEH/seh-simple.ll delete mode 100644 test/CodeGen/X86/2006-10-07-ScalarSSEMiscompile.ll delete mode 100644 test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll delete mode 100644 test/CodeGen/X86/2007-06-15-IntToMMX.ll delete mode 100644 test/CodeGen/X86/2008-10-06-MMXISelBug.ll delete mode 100644 test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll delete mode 100644 test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll delete mode 100644 test/CodeGen/X86/2009-08-02-mmx-scalar-to-vector.ll delete mode 100644 test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll delete mode 100644 test/CodeGen/X86/2013-02-12-ShuffleToZext.ll create mode 100644 test/CodeGen/X86/GC/dynamic-frame-size.ll create mode 100644 test/CodeGen/X86/add32ri8.ll create mode 100644 test/CodeGen/X86/avx-insertelt.ll delete mode 100644 test/CodeGen/X86/avx1-stack-reload-folding.ll delete mode 100644 test/CodeGen/X86/avx2-pmovx-256-old-shuffle.ll create mode 100644 test/CodeGen/X86/avx512-bugfix-23634.ll create mode 100644 test/CodeGen/X86/avx512-calling-conv.ll create mode 100644 test/CodeGen/X86/avx512-intel-ocl.ll create mode 100755 test/CodeGen/X86/avx512-mask-bugfix.ll create mode 100644 test/CodeGen/X86/avx512-round.ll create mode 100644 test/CodeGen/X86/avx512-scalar.ll create mode 100644 test/CodeGen/X86/avx512dqvl-intrinsics.ll create mode 100644 test/CodeGen/X86/bitcast-mmx.ll create mode 100644 test/CodeGen/X86/branchfolding-landingpads.ll delete mode 100644 test/CodeGen/X86/cfi_enforcing.ll delete mode 100644 test/CodeGen/X86/cfi_invoke.ll delete mode 100644 test/CodeGen/X86/cfi_non_default_function.ll delete mode 100644 test/CodeGen/X86/cfi_simple_indirect_call.ll create mode 100644 test/CodeGen/X86/cmov-double.ll create mode 100644 test/CodeGen/X86/cmovcmov.ll create mode 100644 test/CodeGen/X86/cmp-fast-isel.ll create mode 100644 test/CodeGen/X86/coalescer-subreg.ll create mode 100644 test/CodeGen/X86/code_placement_outline_optional_branches.ll create mode 100644 test/CodeGen/X86/commute-clmul.ll create mode 100644 test/CodeGen/X86/commute-fcmp.ll create mode 100644 test/CodeGen/X86/commute-xop.ll create mode 100644 test/CodeGen/X86/constant-hoisting-optnone.ll create mode 100644 test/CodeGen/X86/copy-propagation.ll create mode 100644 test/CodeGen/X86/dbg-combine.ll create mode 100644 test/CodeGen/X86/dwarf-eh-prepare.ll create mode 100644 test/CodeGen/X86/eh-label.ll create mode 100644 test/CodeGen/X86/exception-label.ll create mode 100644 test/CodeGen/X86/exedeps-movq.ll create mode 100644 test/CodeGen/X86/extractelement-index.ll create mode 100644 test/CodeGen/X86/extractelement-legalization-store-ordering.ll create mode 100644 test/CodeGen/X86/fast-isel-constrain-store-indexreg.ll create mode 100644 test/CodeGen/X86/fast-isel-double-half-convertion.ll create mode 100644 test/CodeGen/X86/fast-isel-float-half-convertion.ll create mode 100644 test/CodeGen/X86/fast-isel-fptrunc-fpext.ll create mode 100644 test/CodeGen/X86/fast-isel-int-float-conversion.ll create mode 100644 test/CodeGen/X86/fast-isel-movsbl-indexreg.ll create mode 100644 test/CodeGen/X86/fast-isel-sext.ll create mode 100644 test/CodeGen/X86/fast-isel-trunc-kill-subreg.ll create mode 100644 test/CodeGen/X86/fast-isel-vecload.ll create mode 100644 test/CodeGen/X86/fastmath-float-half-conversion.ll create mode 100644 test/CodeGen/X86/fcmove.ll create mode 100644 test/CodeGen/X86/fdiv-combine.ll create mode 100644 test/CodeGen/X86/float-conv-elim.ll create mode 100644 test/CodeGen/X86/fold-load-unops.ll create mode 100644 test/CodeGen/X86/fold-vector-bv-crash.ll create mode 100644 test/CodeGen/X86/fold-vector-shuffle-crash.ll create mode 100644 test/CodeGen/X86/fold-vector-trunc-sitofp.ll create mode 100644 test/CodeGen/X86/fp-double-rounding.ll delete mode 100644 test/CodeGen/X86/frameallocate.ll create mode 100644 test/CodeGen/X86/frameescape.ll create mode 100644 test/CodeGen/X86/function-subtarget-features-2.ll create mode 100644 test/CodeGen/X86/function-subtarget-features.ll create mode 100644 test/CodeGen/X86/global-sections-comdat.ll create mode 100644 test/CodeGen/X86/huge-stack-offset.ll create mode 100644 test/CodeGen/X86/i1narrowfail.ll create mode 100644 test/CodeGen/X86/imul.ll delete mode 100644 test/CodeGen/X86/imul64-lea.ll create mode 100644 test/CodeGen/X86/init-priority.ll create mode 100644 test/CodeGen/X86/inline-asm-duplicated-constraint.ll create mode 100644 test/CodeGen/X86/insertps-O0-bug.ll delete mode 100644 test/CodeGen/X86/jump_table_alias.ll delete mode 100644 test/CodeGen/X86/jump_table_align.ll delete mode 100644 test/CodeGen/X86/jump_table_bitcast.ll delete mode 100644 test/CodeGen/X86/jump_tables.ll create mode 100644 test/CodeGen/X86/licm-regpressure.ll create mode 100644 test/CodeGen/X86/llc-override-mcpu-mattr.ll create mode 100644 test/CodeGen/X86/logical-load-fold.ll create mode 100644 test/CodeGen/X86/masked_gather_scatter.ll create mode 100644 test/CodeGen/X86/merge-consecutive-stores-i1.ll create mode 100644 test/CodeGen/X86/mmx-arg-passing-x86-64.ll delete mode 100644 test/CodeGen/X86/mmx-arg-passing2.ll delete mode 100644 test/CodeGen/X86/mmx-bitcast-to-i64.ll create mode 100644 test/CodeGen/X86/mmx-bitcast.ll delete mode 100644 test/CodeGen/X86/mmx-emms.ll create mode 100644 test/CodeGen/X86/mmx-fold-load.ll delete mode 100644 test/CodeGen/X86/mmx-insert-element.ll rename test/CodeGen/X86/{mmx-builtins.ll => mmx-intrinsics.ll} (99%) delete mode 100644 test/CodeGen/X86/mmx-pinsrw.ll delete mode 100644 test/CodeGen/X86/mmx-punpckhdq.ll delete mode 100644 test/CodeGen/X86/mmx-s2v.ll delete mode 100644 test/CodeGen/X86/mmx-shift.ll delete mode 100644 test/CodeGen/X86/mmx-shuffle.ll create mode 100644 test/CodeGen/X86/non-unique-sections.ll delete mode 100644 test/CodeGen/X86/odr_comdat.ll delete mode 100644 test/CodeGen/X86/palignr-2.ll create mode 100644 test/CodeGen/X86/pr21792.ll create mode 100644 test/CodeGen/X86/pr23103.ll create mode 100644 test/CodeGen/X86/pr23246.ll create mode 100644 test/CodeGen/X86/pr23273.ll create mode 100644 test/CodeGen/X86/seh-catch-all.ll create mode 100644 test/CodeGen/X86/seh-except-finally.ll create mode 100644 test/CodeGen/X86/seh-filter.ll create mode 100644 test/CodeGen/X86/seh-finally.ll create mode 100644 test/CodeGen/X86/seh-safe-div.ll create mode 100644 test/CodeGen/X86/selectiondag-crash.ll create mode 100755 test/CodeGen/X86/shift-avx2-crash.ll create mode 100644 test/CodeGen/X86/sibcall-win64.ll create mode 100644 test/CodeGen/X86/sink-cheap-instructions.ll create mode 100644 test/CodeGen/X86/splat-const.ll create mode 100644 test/CodeGen/X86/sret-implicit.ll create mode 100644 test/CodeGen/X86/sse-scalar-fp-arith-unary.ll create mode 100644 test/CodeGen/X86/sse2-intrinsics-x86-upgrade.ll create mode 100644 test/CodeGen/X86/stack-folding-3dnow.ll create mode 100644 test/CodeGen/X86/stack-folding-fp-avx1.ll create mode 100644 test/CodeGen/X86/stack-folding-fp-sse42.ll create mode 100644 test/CodeGen/X86/stack-folding-int-avx1.ll create mode 100644 test/CodeGen/X86/stack-folding-int-avx2.ll create mode 100644 test/CodeGen/X86/stack-folding-int-sse42.ll create mode 100644 test/CodeGen/X86/stack-folding-mmx.ll create mode 100644 test/CodeGen/X86/stack-folding-xop.ll create mode 100644 test/CodeGen/X86/statepoint-allocas.ll create mode 100644 test/CodeGen/X86/statepoint-gctransition-call-lowering.ll create mode 100644 test/CodeGen/X86/statepoint-invoke.ll create mode 100644 test/CodeGen/X86/switch.ll create mode 100644 test/CodeGen/X86/tail-call-win64.ll create mode 100644 test/CodeGen/X86/tailcall-mem-intrinsics.ll create mode 100644 test/CodeGen/X86/twoaddr-coalesce-3.ll delete mode 100644 test/CodeGen/X86/vec_clear.ll create mode 100644 test/CodeGen/X86/vec_extract-mmx.ll create mode 100644 test/CodeGen/X86/vec_fp_to_int.ll create mode 100644 test/CodeGen/X86/vec_insert-mmx.ll create mode 100644 test/CodeGen/X86/vec_int_to_fp.ll create mode 100644 test/CodeGen/X86/vec_partial.ll create mode 100644 test/CodeGen/X86/vec_reassociate.ll create mode 100644 test/CodeGen/X86/vec_shift7.ll create mode 100644 test/CodeGen/X86/vector-shuffle-mmx.ll create mode 100644 test/CodeGen/X86/win32-eh.ll create mode 100644 test/CodeGen/X86/win64_frame.ll create mode 100644 test/CodeGen/X86/win64_nonvol.ll create mode 100644 test/CodeGen/X86/win_eh_prepare.ll create mode 100644 test/CodeGen/X86/x32-lea-1.ll create mode 100644 test/CodeGen/X86/x86-32-vector-calling-conv.ll create mode 100644 test/CodeGen/X86/x86-64-baseptr.ll create mode 100644 test/CodeGen/X86/x86-fold-pshufb.ll create mode 100644 test/CodeGen/X86/x86-framelowering-trap.ll create mode 100644 test/CodeGen/X86/x86-shrink-wrapping.ll create mode 100644 test/CodeGen/X86/x86-upgrade-avx2-vbroadcast.ll delete mode 100644 test/DebugInfo/2010-03-30-InvalidDbgInfoCrash.ll create mode 100644 test/DebugInfo/AArch64/constant-dbgloc.ll create mode 100644 test/DebugInfo/AArch64/frameindices.ll create mode 100644 test/DebugInfo/ARM/constant-dbgloc.ll create mode 100644 test/DebugInfo/ARM/header.ll create mode 100644 test/DebugInfo/ARM/line.test create mode 100644 test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll delete mode 100644 test/DebugInfo/ARM/sectionorder.ll create mode 100644 test/DebugInfo/ARM/single-constant-use-preserves-dbgloc.ll create mode 100644 test/DebugInfo/Inputs/line.ll create mode 100644 test/DebugInfo/Mips/InlinedFnLocalVar.ll create mode 100644 test/DebugInfo/PDB/Inputs/empty.cpp create mode 100644 test/DebugInfo/PDB/Inputs/empty.pdb create mode 100644 test/DebugInfo/PDB/Inputs/symbolformat-fpo.cpp create mode 100644 test/DebugInfo/PDB/Inputs/symbolformat.cpp create mode 100644 test/DebugInfo/PDB/Inputs/symbolformat.pdb create mode 100644 test/DebugInfo/PDB/lit.local.cfg create mode 100644 test/DebugInfo/PDB/pdbdump-flags.test create mode 100644 test/DebugInfo/PDB/pdbdump-symbol-format.test create mode 100644 test/DebugInfo/PowerPC/line.test delete mode 100644 test/DebugInfo/X86/2010-08-10-DbgConstant.ll create mode 100644 test/DebugInfo/X86/InlinedFnLocalVar.ll create mode 100644 test/DebugInfo/X86/arange-and-stub.ll create mode 100644 test/DebugInfo/X86/deleted-bit-piece.ll create mode 100644 test/DebugInfo/X86/empty.ll create mode 100644 test/DebugInfo/X86/float_const.ll create mode 100644 test/DebugInfo/X86/frame-register.ll create mode 100644 test/DebugInfo/X86/header.ll create mode 100644 test/DebugInfo/X86/inlined-formal-parameter.ll create mode 100644 test/DebugInfo/X86/line.test create mode 100644 test/DebugInfo/X86/mi-print.ll create mode 100644 test/DebugInfo/X86/missing-file-line.ll create mode 100644 test/DebugInfo/X86/nophysreg.ll create mode 100644 test/DebugInfo/X86/sroasplit-1.ll create mode 100644 test/DebugInfo/X86/sroasplit-2.ll create mode 100644 test/DebugInfo/X86/sroasplit-3.ll create mode 100644 test/DebugInfo/X86/sroasplit-4.ll create mode 100644 test/DebugInfo/X86/sroasplit-5.ll create mode 100644 test/DebugInfo/X86/union-const.ll create mode 100644 test/DebugInfo/accel-table-hash-collisions.ll create mode 100644 test/DebugInfo/constant-sdnodes-have-dbg-location.ll create mode 100644 test/DebugInfo/constantfp-sdnodes-have-dbg-location.ll create mode 100644 test/DebugInfo/debuginfofinder-forward-declaration.ll delete mode 100644 test/DebugInfo/duplicate_inline.ll create mode 100644 test/DebugInfo/piece-verifier.ll delete mode 100644 test/ExecutionEngine/2003-05-07-ArgumentTest.ll delete mode 100644 test/ExecutionEngine/MCJIT/2010-01-15-UndefValue.ll delete mode 100644 test/ExecutionEngine/MCJIT/hello-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcLazy/anonymous_globals.ll create mode 100644 test/ExecutionEngine/OrcLazy/hello.ll create mode 100644 test/ExecutionEngine/OrcLazy/lit.local.cfg create mode 100644 test/ExecutionEngine/OrcLazy/private_linkage.ll rename test/ExecutionEngine/{ => OrcMCJIT}/2002-12-16-ArgTest.ll (74%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-01-04-ArgumentBug.ll (86%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-01-04-LoopTest.ll (91%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-01-04-PhiTest.ll (81%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-01-09-SARTest.ll (83%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-01-10-FUCOM.ll (85%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-01-15-AlignmentTest.ll (89%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-05-06-LivenessClobber.ll (79%) create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-05-07-ArgumentTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-05-11-PHIRegAllocBug.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-06-04-bzip2-bug.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-06-05-PHIBug.ll rename test/ExecutionEngine/{ => OrcMCJIT}/2003-08-15-AllocaAssertion.ll (83%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-08-21-EnvironmentTest.ll (80%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-08-23-RegisterAllocatePhysReg.ll (95%) rename test/ExecutionEngine/{ => OrcMCJIT}/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll (92%) rename test/ExecutionEngine/{ => OrcMCJIT}/2005-12-02-TailCallBug.ll (92%) rename test/ExecutionEngine/{ => OrcMCJIT}/2007-12-10-APIntLoadStore.ll (71%) rename test/ExecutionEngine/{ => OrcMCJIT}/2008-06-05-APInt-OverAShr.ll (74%) create mode 100644 test/ExecutionEngine/OrcMCJIT/2013-04-04-RelocAddend.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/Inputs/cross-module-b.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/Inputs/multi-module-b.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/Inputs/multi-module-c.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/Inputs/multi-module-eh-b.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/cross-module-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/cross-module-sm-pic-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/eh-lg-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/eh-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/eh.ll rename test/ExecutionEngine/{ => OrcMCJIT}/fpbitcast.ll (64%) create mode 100644 test/ExecutionEngine/OrcMCJIT/hello.ll rename test/ExecutionEngine/{ => OrcMCJIT}/hello2.ll (70%) create mode 100644 test/ExecutionEngine/OrcMCJIT/lit.local.cfg create mode 100644 test/ExecutionEngine/OrcMCJIT/load-object-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/multi-module-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/multi-module-eh-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/multi-module-sm-pic-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/non-extern-addend.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/pr13727.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/Inputs/cross-module-b.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/Inputs/multi-module-b.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/Inputs/multi-module-c.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/cross-module-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/cross-module-sm-pic-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/lit.local.cfg create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/multi-module-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/multi-module-sm-pic-a.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/simpletest-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/stubs-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/stubs-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-common-symbols-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-data-align-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-fp-no-external-funcs-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-global-init-nonzero-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-global-init-nonzero-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-ptr-reloc-remote.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/remote/test-ptr-reloc-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/simplesttest.ll rename test/ExecutionEngine/{ => OrcMCJIT}/simpletest.ll (70%) create mode 100644 test/ExecutionEngine/OrcMCJIT/stubs-sm-pic.ll rename test/ExecutionEngine/{ => OrcMCJIT}/stubs.ll (80%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-arith.ll (96%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-branch.ll (81%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-call-no-external-funcs.ll (83%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-call.ll (88%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-cast.ll (98%) create mode 100644 test/ExecutionEngine/OrcMCJIT/test-common-symbols-alignment.ll rename test/ExecutionEngine/{ => OrcMCJIT}/test-common-symbols.ll (66%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-constantexpr.ll (84%) create mode 100644 test/ExecutionEngine/OrcMCJIT/test-data-align.ll rename test/ExecutionEngine/{ => OrcMCJIT}/test-fp-no-external-funcs.ll (85%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-fp.ll (87%) create mode 100644 test/ExecutionEngine/OrcMCJIT/test-global-ctors.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-global-init-nonzero-sm-pic.ll rename test/ExecutionEngine/{ => OrcMCJIT}/test-global-init-nonzero.ll (80%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-global.ll (80%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-loadstore.ll (68%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-local.ll (81%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-logical.ll (93%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-loop.ll (86%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-phi.ll (93%) create mode 100644 test/ExecutionEngine/OrcMCJIT/test-ptr-reloc-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-ptr-reloc.ll rename test/ExecutionEngine/{ => OrcMCJIT}/test-ret.ll (90%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-return.ll (71%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-setcond-fp.ll (95%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-setcond-int.ll (98%) rename test/ExecutionEngine/{ => OrcMCJIT}/test-shift.ll (96%) create mode 100644 test/ExecutionEngine/RuntimeDyld/X86/COFF_x86_64 create mode 100644 test/ExecutionEngine/RuntimeDyld/X86/ELF_x64-64_PIC_relocations.s create mode 100644 test/ExecutionEngine/RuntimeDyld/X86/Inputs/ExternalGlobal.ll delete mode 100644 test/ExecutionEngine/hello.ll delete mode 100644 test/ExecutionEngine/simplesttest.ll create mode 100644 test/Feature/seh-nounwind.ll create mode 100644 test/FileCheck/same.txt create mode 100644 test/Instrumentation/AddressSanitizer/X86/asm_cpuid.ll create mode 100644 test/Instrumentation/AddressSanitizer/do-not-instrument-promotable-allocas.ll create mode 100644 test/Instrumentation/AddressSanitizer/experiment-call.ll create mode 100644 test/Instrumentation/AddressSanitizer/experiment.ll create mode 100644 test/Instrumentation/AddressSanitizer/instrument-stack.ll create mode 100644 test/Instrumentation/InstrProfiling/linkage.ll create mode 100644 test/Instrumentation/MemorySanitizer/store-long-origin.ll create mode 100644 test/Instrumentation/SanitizerCoverage/cmp-tracing.ll create mode 100644 test/Instrumentation/ThreadSanitizer/capture.ll create mode 100644 test/Instrumentation/ThreadSanitizer/unaligned.ll create mode 100644 test/LTO/ARM/inline-asm.ll create mode 100644 test/LTO/ARM/lit.local.cfg create mode 100644 test/LTO/ARM/runtime-library-subtarget.ll rename test/LTO/{ => X86}/Inputs/bcsection.macho.s (100%) rename test/LTO/{ => X86}/Inputs/bcsection.s (100%) rename test/LTO/{ => X86}/Inputs/invalid.ll.bc (100%) rename test/LTO/{ => X86}/Inputs/list-symbols.ll (100%) rename test/LTO/{ => X86}/attrs.ll (100%) rename test/LTO/{ => X86}/bcsection.ll (100%) rename test/LTO/{ => X86}/cfi_endproc.ll (92%) rename test/LTO/{ => X86}/current-section.ll (100%) rename test/LTO/{ => X86}/diagnostic-handler-remarks.ll (100%) rename test/LTO/{ => X86}/invalid.ll (100%) rename test/LTO/{ => X86}/keep-used-puts-during-instcombine.ll (88%) rename test/LTO/{ => X86}/linkonce_odr_func.ll (90%) rename test/LTO/{ => X86}/list-symbols.ll (100%) rename test/LTO/{ => X86}/lit.local.cfg (100%) rename test/LTO/{ => X86}/no-undefined-puts-when-implemented.ll (89%) rename test/LTO/{ => X86}/private-symbol.ll (100%) rename test/LTO/{ => X86}/runtime-library.ll (100%) create mode 100644 test/LTO/X86/set-merged.ll rename test/LTO/{ => X86}/symver-asm.ll (100%) rename test/LTO/{ => X86}/triple-init.ll (100%) delete mode 100644 test/LTO/jump-table-type.ll delete mode 100644 test/Linker/2011-08-22-ResolveAlias.ll delete mode 100644 test/Linker/2011-08-22-ResolveAlias2.ll create mode 100644 test/Linker/Inputs/apple-version/1.ll create mode 100644 test/Linker/Inputs/apple-version/2.ll create mode 100644 test/Linker/Inputs/apple-version/3.ll create mode 100644 test/Linker/Inputs/apple-version/4.ll create mode 100644 test/Linker/Inputs/drop-debug.bc create mode 100644 test/Linker/Inputs/metadata-function.ll create mode 100644 test/Linker/Inputs/override-different-linkage.ll create mode 100644 test/Linker/Inputs/override-with-internal-linkage-2.ll create mode 100644 test/Linker/Inputs/override-with-internal-linkage.ll create mode 100644 test/Linker/Inputs/override.ll create mode 100644 test/Linker/Inputs/pr22807-1.ll create mode 100644 test/Linker/Inputs/pr22807-2.ll create mode 100644 test/Linker/Inputs/subprogram-linkonce-weak-odr.ll create mode 100644 test/Linker/Inputs/subprogram-linkonce-weak.ll create mode 100644 test/Linker/Inputs/targettriple-c.ll create mode 100644 test/Linker/apple-version.ll create mode 100644 test/Linker/broken.ll delete mode 100644 test/Linker/comdat3.ll create mode 100644 test/Linker/drop-debug.ll create mode 100644 test/Linker/metadata-function.ll create mode 100644 test/Linker/override-different-linkage.ll create mode 100644 test/Linker/override-with-internal-linkage-2.ll create mode 100644 test/Linker/override-with-internal-linkage.ll create mode 100644 test/Linker/override.ll create mode 100644 test/Linker/pr22807.ll create mode 100644 test/Linker/subprogram-linkonce-weak-odr.ll create mode 100644 test/Linker/subprogram-linkonce-weak.ll create mode 100644 test/MC/AArch64/arm64-fp-encoding-error.s create mode 100644 test/MC/AArch64/armv8.1a-lor.s create mode 100644 test/MC/AArch64/armv8.1a-pan.s create mode 100644 test/MC/AArch64/armv8.1a-rdma.s create mode 100644 test/MC/AArch64/armv8.1a-vhe.s create mode 100644 test/MC/AArch64/expr-shr.s create mode 100644 test/MC/ARM/Windows/invalid-relocation.s create mode 100644 test/MC/ARM/arm11-hint-instr.s create mode 100644 test/MC/ARM/basic-arm-instructions-v8.1a.s create mode 100644 test/MC/ARM/directive-arch-armv6k.s create mode 100644 test/MC/ARM/directive-fpu-diagnostics.s create mode 100644 test/MC/ARM/eh-link.s create mode 100644 test/MC/ARM/thumb1-relax-adr.s create mode 100644 test/MC/ARM/thumb1-relax-bcc.s create mode 100644 test/MC/ARM/thumb1-relax-br.s create mode 100644 test/MC/ARM/thumb1-relax-ldrlit.s create mode 100644 test/MC/ARM/thumb2-bxj-v8.s create mode 100644 test/MC/ARM/thumb2-dsp-diag.s create mode 100644 test/MC/AsmParser/at-pseudo-variable-bad.s create mode 100644 test/MC/AsmParser/at-pseudo-variable.s create mode 100644 test/MC/AsmParser/expr-shr.s create mode 100644 test/MC/AsmParser/ifnes.s create mode 100644 test/MC/COFF/cross-section-relative.ll create mode 100644 test/MC/COFF/pr23025.s delete mode 100644 test/MC/COFF/weak-symbol.ll create mode 100644 test/MC/Disassembler/AArch64/armv8.1a-lor.txt create mode 100644 test/MC/Disassembler/AArch64/armv8.1a-pan.txt create mode 100644 test/MC/Disassembler/AArch64/armv8.1a-rdma.txt create mode 100644 test/MC/Disassembler/AArch64/armv8.1a-vhe.txt create mode 100644 test/MC/Disassembler/ARM/armv8.1a.txt create mode 100644 test/MC/Disassembler/ARM/invalid-armv8.1a.txt create mode 100644 test/MC/Disassembler/ARM/invalid-thumbv8.1a.txt create mode 100644 test/MC/Disassembler/ARM/thumb-v8.1a.txt create mode 100644 test/MC/Disassembler/Hexagon/xtype_complex.txt create mode 100644 test/MC/Disassembler/Mips/micromips32r6.txt create mode 100644 test/MC/Disassembler/Mips/mips32r3/valid-mips32r3-le.txt create mode 100644 test/MC/Disassembler/Mips/mips32r3/valid-mips32r3.txt create mode 100644 test/MC/Disassembler/Mips/mips32r3/valid-xfail-mips32r3.txt create mode 100644 test/MC/Disassembler/Mips/mips32r5/valid-mips32r5-le.txt create mode 100644 test/MC/Disassembler/Mips/mips32r5/valid-mips32r5.txt create mode 100644 test/MC/Disassembler/Mips/mips32r5/valid-xfail-mips32r5.txt create mode 100644 test/MC/Disassembler/Mips/mips64r3/valid-mips64r3-el.txt create mode 100644 test/MC/Disassembler/Mips/mips64r3/valid-mips64r3.txt create mode 100644 test/MC/Disassembler/Mips/mips64r3/valid-xfail-mips64r3.txt create mode 100644 test/MC/Disassembler/Mips/mips64r5/valid-mips64r5-el.txt create mode 100644 test/MC/Disassembler/Mips/mips64r5/valid-mips64r5.txt create mode 100644 test/MC/Disassembler/Mips/mips64r5/valid-xfail-mips64r5.txt create mode 100644 test/MC/Disassembler/PowerPC/dcbt.txt create mode 100644 test/MC/Disassembler/PowerPC/ppc64-encoding-p8vector.txt create mode 100644 test/MC/Disassembler/PowerPC/qpx.txt create mode 100644 test/MC/Disassembler/Sparc/sparc-special-registers.txt create mode 100644 test/MC/Disassembler/SystemZ/insns-z13-bad.txt create mode 100644 test/MC/Disassembler/SystemZ/insns-z13.txt create mode 100644 test/MC/ELF/alias-to-local.s create mode 100644 test/MC/ELF/common-error1.s create mode 100644 test/MC/ELF/common-error2.s create mode 100644 test/MC/ELF/pr19582.s create mode 100644 test/MC/ELF/section-unique-err1.s create mode 100644 test/MC/ELF/section-unique-err2.s create mode 100644 test/MC/ELF/section-unique-err3.s create mode 100644 test/MC/ELF/section-unique-err4.s create mode 100644 test/MC/ELF/section-unique.s create mode 100644 test/MC/ELF/size.s create mode 100644 test/MC/ELF/symver-msvc.s create mode 100644 test/MC/ELF/weak-diff.s create mode 100644 test/MC/MachO/AArch64/classrefs.s create mode 100644 test/MC/MachO/AArch64/cstexpr-gotpcrel.ll create mode 100644 test/MC/MachO/AArch64/ld64-workaround.s create mode 100644 test/MC/MachO/AArch64/mergeable.s create mode 100644 test/MC/MachO/ARM/cstexpr-gotpcrel.ll create mode 100644 test/MC/MachO/cstexpr-gotpcrel-32.ll create mode 100644 test/MC/MachO/cstexpr-gotpcrel-64.ll create mode 100644 test/MC/MachO/x86_64-mergeable.s create mode 100644 test/MC/Mips/asciiz-directive-bad.s create mode 100644 test/MC/Mips/asciiz-directive.s create mode 100644 test/MC/Mips/insn-directive.s rename test/MC/Mips/{micromips-branch16.s => micromips-branch-fixup.s} (77%) delete mode 100644 test/MC/Mips/micromips-branch7.s delete mode 100644 test/MC/Mips/micromips-expressions.s create mode 100644 test/MC/Mips/micromips32r6/valid.s create mode 100644 test/MC/Mips/mips32r3/abiflags.s create mode 100644 test/MC/Mips/mips32r3/invalid-mips64r2.s create mode 100644 test/MC/Mips/mips32r3/invalid.s create mode 100644 test/MC/Mips/mips32r3/valid-xfail.s create mode 100644 test/MC/Mips/mips32r3/valid.s create mode 100644 test/MC/Mips/mips32r5/abiflags.s create mode 100644 test/MC/Mips/mips32r5/invalid-mips64r2.s create mode 100644 test/MC/Mips/mips32r5/invalid.s create mode 100644 test/MC/Mips/mips32r5/valid-xfail.s create mode 100644 test/MC/Mips/mips32r5/valid.s create mode 100644 test/MC/Mips/mips64r3/abi-bad.s create mode 100644 test/MC/Mips/mips64r3/abiflags.s create mode 100644 test/MC/Mips/mips64r3/invalid.s create mode 100644 test/MC/Mips/mips64r3/valid-xfail.s create mode 100644 test/MC/Mips/mips64r3/valid.s create mode 100644 test/MC/Mips/mips64r5/abi-bad.s create mode 100644 test/MC/Mips/mips64r5/abiflags.s create mode 100644 test/MC/Mips/mips64r5/invalid.s create mode 100644 test/MC/Mips/mips64r5/valid-xfail.s create mode 100644 test/MC/Mips/mips64r5/valid.s create mode 100644 test/MC/Mips/module-directive-bad.s create mode 100644 test/MC/Mips/set-at-noat-bad-syntax.s create mode 100644 test/MC/Mips/set-defined-symbol.s create mode 100644 test/MC/Mips/set-nomacro-micromips.s create mode 100644 test/MC/Mips/set-nomacro.s create mode 100644 test/MC/Mips/sort-relocation-table.s create mode 100644 test/MC/Mips/target-soft-float.s create mode 100644 test/MC/PowerPC/dcbt.s create mode 100644 test/MC/PowerPC/htm.s create mode 100644 test/MC/PowerPC/ppc64-encoding-p8vector.s create mode 100644 test/MC/PowerPC/qpx.s create mode 100644 test/MC/R600/ds-err.s create mode 100644 test/MC/R600/ds.s create mode 100644 test/MC/R600/mubuf.s create mode 100644 test/MC/R600/smrd.s create mode 100644 test/MC/R600/sop1-err.s create mode 100644 test/MC/R600/sop1.s create mode 100644 test/MC/R600/sop2.s create mode 100644 test/MC/R600/sopc.s create mode 100644 test/MC/R600/sopk.s create mode 100644 test/MC/R600/vop1.s create mode 100644 test/MC/R600/vop2-err.s create mode 100644 test/MC/R600/vop2.s create mode 100644 test/MC/R600/vop3-errs.s create mode 100644 test/MC/R600/vop3.s create mode 100644 test/MC/R600/vopc.s create mode 100644 test/MC/Sparc/sparc-assembly-exprs.s create mode 100644 test/MC/Sparc/sparc-little-endian.s create mode 100644 test/MC/Sparc/sparc-special-registers.s create mode 100644 test/MC/Sparc/sparc-synthetic-instructions.s create mode 100644 test/MC/Sparc/sparcv9-atomic-instructions.s create mode 100644 test/MC/SystemZ/fixups.s create mode 100644 test/MC/SystemZ/insn-bad-z13.s create mode 100644 test/MC/SystemZ/insn-bad-zEC12.s create mode 100644 test/MC/SystemZ/insn-good-z13.s create mode 100644 test/MC/SystemZ/insn-good-zEC12.s create mode 100644 test/MC/X86/AlignedBundling/section-alignment.s create mode 100644 test/MC/X86/avx512-err.s create mode 100644 test/MC/X86/expand-var.s create mode 100644 test/MC/X86/i386-darwin-frame-register.ll create mode 100644 test/MC/X86/intel-syntax-x86-64-avx512f_vl.s create mode 100644 test/MC/X86/invalid-sleb.s create mode 100644 test/Object/Inputs/archive-test.a-irix6-mips64el create mode 100755 test/Object/Inputs/macho-empty-kext-bundle-x86-64 create mode 100644 test/Object/Inputs/macho-invalid-bad-symbol-index create mode 100644 test/Object/Inputs/macho-invalid-no-size-for-sections create mode 100644 test/Object/Inputs/macho-invalid-section-index-getSectionRawName create mode 100644 test/Object/Inputs/macho-invalid-symbol-name-past-eof create mode 100644 test/Object/Inputs/macho-invalid-too-small-load-command create mode 100644 test/Object/Inputs/macho-invalid-too-small-segment-load-command rename test/Object/Inputs/{macho-zero-ncmds => macho-invalid-zero-ncmds} (100%) create mode 100644 test/Object/Inputs/macho64-invalid-incomplete-load-command create mode 100644 test/Object/Inputs/macho64-invalid-no-size-for-sections create mode 100644 test/Object/Inputs/macho64-invalid-too-small-load-command create mode 100644 test/Object/Inputs/macho64-invalid-too-small-segment-load-command create mode 100644 test/Object/Inputs/sectionGroup.elf.x86-64 create mode 100644 test/Object/Mips/abi-flags.yaml create mode 100644 test/Object/Mips/elf-abi.yaml create mode 100644 test/Object/Mips/elf-flags.yaml create mode 100644 test/Object/Mips/elf-mips64-rel.yaml create mode 100644 test/Object/elf-unknown-type.test create mode 100644 test/Object/kext.test create mode 100644 test/Object/macho-invalid.test create mode 100644 test/Object/nm-irix6.test create mode 100644 test/Object/obj2yaml-sectiongroup.test delete mode 100644 test/Object/objdump-macho-quirks.test create mode 100644 test/Object/yaml2obj-elf-rel-noref.yaml create mode 100644 test/Other/Inputs/utf8-bom-response create mode 100644 test/Other/Inputs/utf8-response create mode 100644 test/Other/opt-override-mcpu-mattr.ll create mode 100644 test/TableGen/AsmPredicateCondsEmission.td create mode 100644 test/Transforms/BDCE/basic.ll create mode 100644 test/Transforms/BDCE/dce-pure.ll create mode 100644 test/Transforms/BDCE/order.ll create mode 100644 test/Transforms/CodeGenPrepare/R600/lit.local.cfg create mode 100644 test/Transforms/CodeGenPrepare/R600/no-sink-addrspacecast.ll create mode 100644 test/Transforms/CodeGenPrepare/X86/memset_chk-simplify-nobuiltin.ll create mode 100644 test/Transforms/CodeGenPrepare/overflow-intrinsics.ll create mode 100644 test/Transforms/CodeGenPrepare/statepoint-relocate.ll create mode 100644 test/Transforms/ConstProp/InsertElement.ll create mode 100644 test/Transforms/ConstProp/convert-from-fp16.ll create mode 100644 test/Transforms/CorrelatedValuePropagation/select.ll create mode 100644 test/Transforms/DeadArgElim/aggregates.ll create mode 100644 test/Transforms/EarlyCSE/AArch64/intrinsics.ll create mode 100644 test/Transforms/EarlyCSE/AArch64/lit.local.cfg create mode 100644 test/Transforms/EarlyCSE/conditional.ll create mode 100644 test/Transforms/EarlyCSE/edge.ll create mode 100644 test/Transforms/EarlyCSE/read-reg.ll create mode 100644 test/Transforms/Float2Int/basic.ll create mode 100644 test/Transforms/Float2Int/float2int-optnone.ll create mode 100644 test/Transforms/Float2Int/toolarge.ll create mode 100644 test/Transforms/FunctionAttrs/readnone.ll create mode 100644 test/Transforms/GVN/basic-undef-test.ll create mode 100644 test/Transforms/GVN/pre-no-cost-phi.ll create mode 100644 test/Transforms/GVN/volatile.ll create mode 100644 test/Transforms/IRCE/bug-loop-varying-upper-limit.ll create mode 100644 test/Transforms/IRCE/bug-mismatched-types.ll create mode 100644 test/Transforms/IRCE/decrementing-loop.ll create mode 100644 test/Transforms/IRCE/low-becount.ll create mode 100644 test/Transforms/IRCE/multiple-access-no-preloop.ll create mode 100644 test/Transforms/IRCE/not-likely-taken.ll create mode 100644 test/Transforms/IRCE/only-lower-check.ll create mode 100644 test/Transforms/IRCE/only-upper-check.ll create mode 100644 test/Transforms/IRCE/single-access-no-preloop.ll create mode 100644 test/Transforms/IRCE/single-access-with-preloop.ll create mode 100644 test/Transforms/IRCE/unhandled.ll create mode 100644 test/Transforms/IRCE/with-parent-loops.ll create mode 100644 test/Transforms/IndVarSimplify/lftr-udiv-tripcount.ll create mode 100644 test/Transforms/Inline/alloca-dbgdeclare.ll delete mode 100644 test/Transforms/Inline/alloca-merge-align-nodl.ll create mode 100644 test/Transforms/Inline/crash-lifetime-marker.ll create mode 100644 test/Transforms/Inline/debug-info-duplicate-calls.ll create mode 100644 test/Transforms/Inline/frameescape.ll create mode 100644 test/Transforms/Inline/inline-fast-math-flags.ll create mode 100644 test/Transforms/Inline/inline-fp.ll create mode 100644 test/Transforms/Inline/pr22285.ll create mode 100644 test/Transforms/Inline/store-sroa.ll create mode 100644 test/Transforms/Inline/vector-bonus.ll delete mode 100644 test/Transforms/InstCombine/2012-09-24-MemcpyFromGlobalCrash.ll create mode 100644 test/Transforms/InstCombine/aligned-altivec.ll create mode 100644 test/Transforms/InstCombine/aligned-qpx.ll create mode 100644 test/Transforms/InstCombine/branch.ll create mode 100644 test/Transforms/InstCombine/constant-fold-hang.ll create mode 100644 test/Transforms/InstCombine/default-alignment.ll create mode 100644 test/Transforms/InstCombine/demand_shrink_nsw.ll delete mode 100644 test/Transforms/InstCombine/descale-zero.ll create mode 100644 test/Transforms/InstCombine/dom-conditions.ll create mode 100644 test/Transforms/InstCombine/gc.relocate.ll create mode 100644 test/Transforms/InstCombine/gep-sext.ll create mode 100644 test/Transforms/InstCombine/inline-intrinsic-assert.ll create mode 100644 test/Transforms/InstCombine/max-of-nots.ll create mode 100644 test/Transforms/InstCombine/mem-gep-zidx.ll create mode 100644 test/Transforms/InstCombine/memchr.ll create mode 100644 test/Transforms/InstCombine/minmax-fold.ll create mode 100644 test/Transforms/InstCombine/objsize-noverify.ll create mode 100644 test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll create mode 100644 test/Transforms/InstCombine/select-crash-noverify.ll create mode 100644 test/Transforms/InstCombine/switch-truncate-crash.ll create mode 100644 test/Transforms/InstCombine/type_pun.ll create mode 100644 test/Transforms/InstCombine/unpack-fca.ll create mode 100644 test/Transforms/InstCombine/x86-insertps.ll create mode 100644 test/Transforms/InstCombine/x86-vperm2.ll create mode 100644 test/Transforms/InstSimplify/floating-point-compare.ll create mode 100644 test/Transforms/JumpThreading/thread-cmp.ll create mode 100644 test/Transforms/LICM/constexpr.ll create mode 100644 test/Transforms/LICM/pr23608.ll create mode 100644 test/Transforms/LoopDistribute/basic-with-memchecks.ll create mode 100644 test/Transforms/LoopDistribute/basic.ll create mode 100644 test/Transforms/LoopDistribute/crash-in-memcheck-generation.ll create mode 100644 test/Transforms/LoopDistribute/no-if-convert.ll create mode 100644 test/Transforms/LoopDistribute/outside-use.ll create mode 100644 test/Transforms/LoopDistribute/program-order.ll create mode 100644 test/Transforms/LoopInterchange/currentLimitation.ll create mode 100644 test/Transforms/LoopInterchange/interchange.ll create mode 100644 test/Transforms/LoopInterchange/profitability.ll create mode 100644 test/Transforms/LoopInterchange/reductions.ll create mode 100644 test/Transforms/LoopRotate/pr22337.ll create mode 100644 test/Transforms/LoopStrengthReduce/negative-scale.ll create mode 100644 test/Transforms/LoopUnroll/AArch64/lit.local.cfg create mode 100644 test/Transforms/LoopUnroll/AArch64/partial.ll create mode 100644 test/Transforms/LoopUnroll/AArch64/runtime-loop.ll create mode 100644 test/Transforms/LoopUnroll/PowerPC/a2-high-cost-trip-count-computation.ll create mode 100644 test/Transforms/LoopUnroll/full-unroll-bad-geps.ll create mode 100644 test/Transforms/LoopUnroll/full-unroll-heuristics.ll create mode 100644 test/Transforms/LoopUnroll/high-cost-trip-count-computation.ll create mode 100644 test/Transforms/LoopUnroll/runtime-loop4.ll create mode 100644 test/Transforms/LoopUnroll/runtime-loop5.ll create mode 100644 test/Transforms/LoopUnroll/unroll-cleanup.ll create mode 100644 test/Transforms/LoopVectorize/AArch64/arbitrary-induction-step.ll create mode 100644 test/Transforms/LoopVectorize/PowerPC/large-loop-rdx.ll create mode 100644 test/Transforms/LoopVectorize/PowerPC/small-loop-rdx.ll create mode 100644 test/Transforms/LoopVectorize/X86/veclib-calls.ll create mode 100644 test/Transforms/LoopVectorize/unroll.ll create mode 100644 test/Transforms/LowerBitSets/constant.ll create mode 100644 test/Transforms/LowerBitSets/layout.ll create mode 100644 test/Transforms/LowerBitSets/simple.ll create mode 100644 test/Transforms/LowerBitSets/single-offset.ll create mode 100644 test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll create mode 100644 test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll create mode 100644 test/Transforms/MemCpyOpt/memset-memcpy-to-2x-memset.ll create mode 100644 test/Transforms/MergeFunc/alloca.ll create mode 100644 test/Transforms/NaryReassociate/NVPTX/lit.local.cfg create mode 100644 test/Transforms/NaryReassociate/NVPTX/nary-gep.ll create mode 100644 test/Transforms/NaryReassociate/NVPTX/nary-slsr.ll create mode 100644 test/Transforms/NaryReassociate/nary-add.ll delete mode 100644 test/Transforms/ObjCARC/arc-annotations.ll create mode 100644 test/Transforms/PlaceSafepoints/basic.ll create mode 100644 test/Transforms/PlaceSafepoints/call-in-loop.ll create mode 100644 test/Transforms/PlaceSafepoints/call_gc_result.ll create mode 100644 test/Transforms/PlaceSafepoints/finite-loops.ll create mode 100644 test/Transforms/PlaceSafepoints/invokes.ll create mode 100644 test/Transforms/PlaceSafepoints/memset.ll create mode 100644 test/Transforms/PlaceSafepoints/patchable-statepoints.ll create mode 100644 test/Transforms/PlaceSafepoints/split-backedge.ll create mode 100644 test/Transforms/PlaceSafepoints/statepoint-calling-conventions.ll create mode 100644 test/Transforms/PlaceSafepoints/statepoint-coreclr.ll create mode 100644 test/Transforms/PlaceSafepoints/statepoint-format.ll create mode 100644 test/Transforms/PlaceSafepoints/statepoint-frameescape.ll delete mode 100644 test/Transforms/PruneEH/2003-11-21-PHIUpdate.ll create mode 100644 test/Transforms/PruneEH/seh-nounwind.ll create mode 100644 test/Transforms/Reassociate/crash2.ll create mode 100644 test/Transforms/Reassociate/min_int.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-1.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-10.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-11.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-2.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-3.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-4.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-5.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-6.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-7.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-8.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers-9.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/base-pointers.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/basics.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/constants.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/gc_relocate_creation.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/live-vector.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/liveness-basics.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/preprocess.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/relocate_invoke_result.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/relocation.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/rematerialize-derived-pointers.ll create mode 100644 test/Transforms/SLPVectorizer/X86/atomics.ll create mode 100644 test/Transforms/SLPVectorizer/X86/crash_cmpop.ll create mode 100644 test/Transforms/SROA/ppcf128-no-fold.ll create mode 100644 test/Transforms/SampleProfile/Inputs/entry_counts.prof create mode 100644 test/Transforms/SampleProfile/entry_counts.ll delete mode 100644 test/Transforms/Scalarizer/no-data-layout.ll create mode 100644 test/Transforms/SeparateConstOffsetFromGEP/NVPTX/value-tracking-domtree.ll create mode 100644 test/Transforms/SimplifyCFG/AArch64/lit.local.cfg create mode 100644 test/Transforms/SimplifyCFG/AArch64/prefer-fma.ll rename test/{CodeGen => Transforms/SimplifyCFG}/PowerPC/cttz-ctlz-spec.ll (65%) create mode 100644 test/Transforms/SimplifyCFG/PowerPC/lit.local.cfg rename test/{CodeGen => Transforms/SimplifyCFG}/R600/cttz-ctlz.ll (63%) create mode 100644 test/Transforms/SimplifyCFG/R600/lit.local.cfg rename test/{CodeGen/X86/cttz-ctlz.ll => Transforms/SimplifyCFG/X86/speculate-cttz-ctlz.ll} (50%) create mode 100644 test/Transforms/SimplifyCFG/clamp.ll create mode 100644 test/Transforms/SimplifyCFG/duplicate-landingpad.ll create mode 100644 test/Transforms/SimplifyCFG/seh-nounwind.ll delete mode 100644 test/Transforms/SimplifyCFG/trivial-throw.ll create mode 100644 test/Transforms/SpeculativeExecution/spec.ll create mode 100644 test/Transforms/StraightLineStrengthReduce/NVPTX/lit.local.cfg create mode 100644 test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll create mode 100644 test/Transforms/StraightLineStrengthReduce/X86/lit.local.cfg create mode 100644 test/Transforms/StraightLineStrengthReduce/X86/no-slsr.ll create mode 100644 test/Transforms/StraightLineStrengthReduce/slsr-add.ll create mode 100644 test/Transforms/StraightLineStrengthReduce/slsr-gep.ll create mode 100644 test/Transforms/StraightLineStrengthReduce/slsr-mul.ll create mode 100644 test/Transforms/StructurizeCFG/nested-loop-order.ll create mode 100644 test/Transforms/StructurizeCFG/post-order-traversal-bug.ll create mode 100644 test/Verifier/comdat3.ll create mode 100644 test/Verifier/dbg-typerefs.ll create mode 100644 test/Verifier/dbg.ll delete mode 100644 test/Verifier/frameallocate.ll create mode 100644 test/Verifier/frameescape.ll create mode 100644 test/Verifier/function-metadata-bad.ll create mode 100644 test/Verifier/function-metadata-good.ll create mode 100644 test/Verifier/gc_relocate_addrspace.ll create mode 100644 test/Verifier/gc_relocate_operand.ll create mode 100644 test/Verifier/gc_relocate_return.ll create mode 100644 test/Verifier/ident-meta4.ll create mode 100644 test/Verifier/invalid-patchable-statepoint.ll create mode 100644 test/Verifier/invalid-statepoint.ll create mode 100644 test/Verifier/invalid-statepoint2.ll create mode 100644 test/Verifier/llvm.dbg.declare-address.ll create mode 100644 test/Verifier/llvm.dbg.declare-expression.ll create mode 100644 test/Verifier/llvm.dbg.declare-variable.ll create mode 100644 test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll create mode 100644 test/Verifier/llvm.dbg.value-expression.ll create mode 100644 test/Verifier/llvm.dbg.value-value.ll create mode 100644 test/Verifier/llvm.dbg.value-variable.ll create mode 100644 test/Verifier/mdcompositetype-templateparams-tuple.ll create mode 100644 test/Verifier/mdcompositetype-templateparams.ll create mode 100644 test/Verifier/memcpy.ll create mode 100644 test/Verifier/module-flags-2.ll create mode 100644 test/Verifier/module-flags-3.ll create mode 100644 test/Verifier/recursive-struct-param.ll rename test/YAMLParser/{bool.data => bool.test} (100%) rename test/YAMLParser/{construct-bool.data => construct-bool.test} (100%) rename test/YAMLParser/{construct-custom.data => construct-custom.test} (100%) rename test/YAMLParser/{construct-float.data => construct-float.test} (100%) rename test/YAMLParser/{construct-int.data => construct-int.test} (100%) rename test/YAMLParser/{construct-map.data => construct-map.test} (100%) rename test/YAMLParser/{construct-merge.data => construct-merge.test} (100%) rename test/YAMLParser/{construct-null.data => construct-null.test} (100%) rename test/YAMLParser/{construct-omap.data => construct-omap.test} (100%) rename test/YAMLParser/{construct-pairs.data => construct-pairs.test} (100%) rename test/YAMLParser/{construct-seq.data => construct-seq.test} (100%) rename test/YAMLParser/{construct-set.data => construct-set.test} (100%) rename test/YAMLParser/{construct-str-ascii.data => construct-str-ascii.test} (100%) rename test/YAMLParser/{construct-str.data => construct-str.test} (100%) rename test/YAMLParser/{construct-timestamp.data => construct-timestamp.test} (100%) rename test/YAMLParser/{construct-value.data => construct-value.test} (100%) rename test/YAMLParser/{duplicate-key.former-loader-error.data => duplicate-key.former-loader-error.test} (100%) rename test/YAMLParser/{duplicate-mapping-key.former-loader-error.data => duplicate-mapping-key.former-loader-error.test} (100%) rename test/YAMLParser/{duplicate-merge-key.former-loader-error.data => duplicate-merge-key.former-loader-error.test} (100%) rename test/YAMLParser/{duplicate-value-key.former-loader-error.data => duplicate-value-key.former-loader-error.test} (100%) rename test/YAMLParser/{emit-block-scalar-in-simple-key-context-bug.data => emit-block-scalar-in-simple-key-context-bug.test} (100%) rename test/YAMLParser/{empty-document-bug.data => empty-document-bug.test} (100%) rename test/YAMLParser/{float.data => float.test} (100%) rename test/YAMLParser/{int.data => int.test} (100%) rename test/YAMLParser/{invalid-single-quote-bug.data => invalid-single-quote-bug.test} (100%) rename test/YAMLParser/{merge.data => merge.test} (100%) rename test/YAMLParser/{more-floats.data => more-floats.test} (100%) rename test/YAMLParser/{negative-float-bug.data => negative-float-bug.test} (100%) rename test/YAMLParser/{null.data => null.test} (100%) rename test/YAMLParser/{resolver.data => resolver.test} (100%) rename test/YAMLParser/{run-parser-crash-bug.data => run-parser-crash-bug.test} (100%) rename test/YAMLParser/{scan-document-end-bug.data => scan-document-end-bug.test} (100%) rename test/YAMLParser/{scan-line-break-bug.data => scan-line-break-bug.test} (100%) rename test/YAMLParser/{single-dot-is-not-float-bug.data => single-dot-is-not-float-bug.test} (100%) rename test/YAMLParser/{sloppy-indentation.data => sloppy-indentation.test} (100%) rename test/YAMLParser/{spec-02-01.data => spec-02-01.test} (100%) rename test/YAMLParser/{spec-02-02.data => spec-02-02.test} (100%) rename test/YAMLParser/{spec-02-03.data => spec-02-03.test} (100%) rename test/YAMLParser/{spec-02-04.data => spec-02-04.test} (100%) rename test/YAMLParser/{spec-02-05.data => spec-02-05.test} (100%) rename test/YAMLParser/{spec-02-06.data => spec-02-06.test} (100%) rename test/YAMLParser/{spec-02-07.data => spec-02-07.test} (100%) rename test/YAMLParser/{spec-02-08.data => spec-02-08.test} (100%) rename test/YAMLParser/{spec-02-09.data => spec-02-09.test} (100%) rename test/YAMLParser/{spec-02-10.data => spec-02-10.test} (100%) rename test/YAMLParser/{spec-02-11.data => spec-02-11.test} (100%) rename test/YAMLParser/{spec-02-12.data => spec-02-12.test} (100%) rename test/YAMLParser/{spec-02-13.data => spec-02-13.test} (100%) rename test/YAMLParser/{spec-02-14.data => spec-02-14.test} (100%) rename test/YAMLParser/{spec-02-15.data => spec-02-15.test} (100%) rename test/YAMLParser/{spec-02-16.data => spec-02-16.test} (100%) rename test/YAMLParser/{spec-02-17.data => spec-02-17.test} (100%) rename test/YAMLParser/{spec-02-18.data => spec-02-18.test} (100%) rename test/YAMLParser/{spec-02-19.data => spec-02-19.test} (100%) rename test/YAMLParser/{spec-02-20.data => spec-02-20.test} (100%) rename test/YAMLParser/{spec-02-21.data => spec-02-21.test} (100%) rename test/YAMLParser/{spec-02-22.data => spec-02-22.test} (100%) rename test/YAMLParser/{spec-02-23.data => spec-02-23.test} (100%) rename test/YAMLParser/{spec-02-24.data => spec-02-24.test} (100%) rename test/YAMLParser/{spec-02-25.data => spec-02-25.test} (100%) rename test/YAMLParser/{spec-02-26.data => spec-02-26.test} (100%) rename test/YAMLParser/{spec-02-27.data => spec-02-27.test} (100%) rename test/YAMLParser/{spec-02-28.data => spec-02-28.test} (100%) rename test/YAMLParser/{spec-05-01-utf8.data => spec-05-01-utf8.test} (100%) rename test/YAMLParser/{spec-05-02-utf8.data => spec-05-02-utf8.test} (53%) rename test/YAMLParser/{spec-05-03.data => spec-05-03.test} (100%) rename test/YAMLParser/{spec-05-04.data => spec-05-04.test} (100%) rename test/YAMLParser/{spec-05-05.data => spec-05-05.test} (100%) rename test/YAMLParser/{spec-05-06.data => spec-05-06.test} (100%) rename test/YAMLParser/{spec-05-07.data => spec-05-07.test} (100%) rename test/YAMLParser/{spec-05-08.data => spec-05-08.test} (100%) rename test/YAMLParser/{spec-05-09.data => spec-05-09.test} (100%) rename test/YAMLParser/{spec-05-10.data => spec-05-10.test} (50%) rename test/YAMLParser/{spec-05-11.data => spec-05-11.test} (100%) rename test/YAMLParser/{spec-05-12.data => spec-05-12.test} (61%) rename test/YAMLParser/{spec-05-13.data => spec-05-13.test} (100%) rename test/YAMLParser/{spec-05-14.data => spec-05-14.test} (100%) delete mode 100644 test/YAMLParser/spec-05-15.data create mode 100644 test/YAMLParser/spec-05-15.test rename test/YAMLParser/{spec-06-01.data => spec-06-01.test} (100%) rename test/YAMLParser/{spec-06-02.data => spec-06-02.test} (100%) rename test/YAMLParser/{spec-06-03.data => spec-06-03.test} (100%) rename test/YAMLParser/{spec-06-04.data => spec-06-04.test} (100%) rename test/YAMLParser/{spec-06-05.data => spec-06-05.test} (100%) rename test/YAMLParser/{spec-06-06.data => spec-06-06.test} (100%) rename test/YAMLParser/{spec-06-07.data => spec-06-07.test} (100%) rename test/YAMLParser/{spec-06-08.data => spec-06-08.test} (100%) rename test/YAMLParser/{spec-07-01.data => spec-07-01.test} (100%) rename test/YAMLParser/{spec-07-02.data => spec-07-02.test} (100%) delete mode 100644 test/YAMLParser/spec-07-03.data create mode 100644 test/YAMLParser/spec-07-03.test rename test/YAMLParser/{spec-07-04.data => spec-07-04.test} (100%) delete mode 100644 test/YAMLParser/spec-07-05.data create mode 100644 test/YAMLParser/spec-07-05.test rename test/YAMLParser/{spec-07-06.data => spec-07-06.test} (100%) rename test/YAMLParser/{spec-07-07a.data => spec-07-07a.test} (100%) rename test/YAMLParser/{spec-07-07b.data => spec-07-07b.test} (100%) rename test/YAMLParser/{spec-07-08.data => spec-07-08.test} (100%) rename test/YAMLParser/{spec-07-09.data => spec-07-09.test} (100%) rename test/YAMLParser/{spec-07-10.data => spec-07-10.test} (100%) rename test/YAMLParser/{spec-07-11.data => spec-07-11.test} (100%) rename test/YAMLParser/{spec-07-12a.data => spec-07-12a.test} (100%) rename test/YAMLParser/{spec-07-12b.data => spec-07-12b.test} (100%) rename test/YAMLParser/{spec-07-13.data => spec-07-13.test} (100%) rename test/YAMLParser/{spec-08-01.data => spec-08-01.test} (100%) rename test/YAMLParser/{spec-08-02.data => spec-08-02.test} (100%) rename test/YAMLParser/{spec-08-03.data => spec-08-03.test} (100%) delete mode 100644 test/YAMLParser/spec-08-04.data create mode 100644 test/YAMLParser/spec-08-04.test rename test/YAMLParser/{spec-08-05.data => spec-08-05.test} (100%) rename test/YAMLParser/{spec-08-06.data => spec-08-06.test} (55%) rename test/YAMLParser/{spec-08-07.data => spec-08-07.test} (100%) rename test/YAMLParser/{spec-08-08.data => spec-08-08.test} (100%) rename test/YAMLParser/{spec-08-09.data => spec-08-09.test} (100%) rename test/YAMLParser/{spec-08-10.data => spec-08-10.test} (100%) rename test/YAMLParser/{spec-08-11.data => spec-08-11.test} (100%) rename test/YAMLParser/{spec-08-12.data => spec-08-12.test} (100%) rename test/YAMLParser/{spec-08-13.data => spec-08-13.test} (100%) rename test/YAMLParser/{spec-08-14.data => spec-08-14.test} (100%) rename test/YAMLParser/{spec-08-15.data => spec-08-15.test} (100%) rename test/YAMLParser/{spec-09-01.data => spec-09-01.test} (100%) delete mode 100644 test/YAMLParser/spec-09-02.data create mode 100644 test/YAMLParser/spec-09-02.test rename test/YAMLParser/{spec-09-03.data => spec-09-03.test} (100%) rename test/YAMLParser/{spec-09-04.data => spec-09-04.test} (100%) rename test/YAMLParser/{spec-09-05.data => spec-09-05.test} (100%) rename test/YAMLParser/{spec-09-06.data => spec-09-06.test} (100%) rename test/YAMLParser/{spec-09-07.data => spec-09-07.test} (100%) rename test/YAMLParser/{spec-09-08.data => spec-09-08.test} (100%) rename test/YAMLParser/{spec-09-09.data => spec-09-09.test} (100%) rename test/YAMLParser/{spec-09-10.data => spec-09-10.test} (100%) rename test/YAMLParser/{spec-09-11.data => spec-09-11.test} (100%) rename test/YAMLParser/{spec-09-12.data => spec-09-12.test} (100%) rename test/YAMLParser/{spec-09-13.data => spec-09-13.test} (100%) delete mode 100644 test/YAMLParser/spec-09-14.data create mode 100644 test/YAMLParser/spec-09-14.test rename test/YAMLParser/{spec-09-15.data => spec-09-15.test} (100%) rename test/YAMLParser/{spec-09-16.data => spec-09-16.test} (100%) rename test/YAMLParser/{spec-09-17.data => spec-09-17.test} (100%) delete mode 100644 test/YAMLParser/spec-09-18.data create mode 100644 test/YAMLParser/spec-09-18.test delete mode 100644 test/YAMLParser/spec-09-19.data create mode 100644 test/YAMLParser/spec-09-19.test delete mode 100644 test/YAMLParser/spec-09-20.data create mode 100644 test/YAMLParser/spec-09-20.test delete mode 100644 test/YAMLParser/spec-09-21.data create mode 100644 test/YAMLParser/spec-09-21.test delete mode 100644 test/YAMLParser/spec-09-22.data create mode 100644 test/YAMLParser/spec-09-22.test rename test/YAMLParser/{spec-09-23.data => spec-09-23.test} (100%) delete mode 100644 test/YAMLParser/spec-09-24.data create mode 100644 test/YAMLParser/spec-09-24.test delete mode 100644 test/YAMLParser/spec-09-25.data create mode 100644 test/YAMLParser/spec-09-25.test delete mode 100644 test/YAMLParser/spec-09-26.data create mode 100644 test/YAMLParser/spec-09-26.test delete mode 100644 test/YAMLParser/spec-09-27.data delete mode 100644 test/YAMLParser/spec-09-28.data rename test/YAMLParser/{spec-09-29.data => spec-09-29.test} (100%) rename test/YAMLParser/{spec-09-30.data => spec-09-30.test} (100%) rename test/YAMLParser/{spec-09-31.data => spec-09-31.test} (100%) rename test/YAMLParser/{spec-09-32.data => spec-09-32.test} (100%) rename test/YAMLParser/{spec-09-33.data => spec-09-33.test} (100%) rename test/YAMLParser/{spec-10-01.data => spec-10-01.test} (100%) rename test/YAMLParser/{spec-10-02.data => spec-10-02.test} (100%) rename test/YAMLParser/{spec-10-03.data => spec-10-03.test} (100%) rename test/YAMLParser/{spec-10-04.data => spec-10-04.test} (100%) rename test/YAMLParser/{spec-10-05.data => spec-10-05.test} (100%) rename test/YAMLParser/{spec-10-06.data => spec-10-06.test} (100%) rename test/YAMLParser/{spec-10-07.data => spec-10-07.test} (100%) rename test/YAMLParser/{spec-10-08.data => spec-10-08.test} (91%) rename test/YAMLParser/{spec-10-09.data => spec-10-09.test} (100%) rename test/YAMLParser/{spec-10-10.data => spec-10-10.test} (100%) rename test/YAMLParser/{spec-10-11.data => spec-10-11.test} (100%) rename test/YAMLParser/{spec-10-12.data => spec-10-12.test} (100%) rename test/YAMLParser/{spec-10-13.data => spec-10-13.test} (100%) rename test/YAMLParser/{spec-10-14.data => spec-10-14.test} (100%) rename test/YAMLParser/{spec-10-15.data => spec-10-15.test} (100%) rename test/YAMLParser/{str.data => str.test} (100%) rename test/YAMLParser/{timestamp-bugs.data => timestamp-bugs.test} (100%) rename test/YAMLParser/{timestamp.data => timestamp.test} (100%) rename test/YAMLParser/{utf8-implicit.data => utf8-implicit.test} (100%) rename test/YAMLParser/{utf8.data => utf8.test} (100%) rename test/YAMLParser/{value.data => value.test} (100%) rename test/YAMLParser/{yaml.data => yaml.test} (100%) create mode 100755 test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64 create mode 100644 test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64.o create mode 100644 test/tools/dsymutil/X86/basic-linking-x86.test create mode 100644 test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test create mode 100644 test/tools/dsymutil/X86/basic-lto-linking-x86.test create mode 100644 test/tools/dsymutil/X86/lit.local.cfg create mode 100644 test/tools/dsymutil/basic-linking.test create mode 100644 test/tools/gold/Inputs/drop-debug.bc create mode 100644 test/tools/gold/drop-debug.ll create mode 100644 test/tools/gold/opt-level.ll delete mode 100644 test/tools/gold/option.ll create mode 100644 test/tools/gold/remarks.ll create mode 100755 test/tools/llvm-cov/Inputs/binary-formats.macho32b create mode 100755 test/tools/llvm-cov/Inputs/binary-formats.macho32l create mode 100755 test/tools/llvm-cov/Inputs/binary-formats.macho64l create mode 100644 test/tools/llvm-cov/Inputs/binary-formats.proftext delete mode 100644 test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata create mode 100644 test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext delete mode 100644 test/tools/llvm-cov/Inputs/regionMarkers.profdata create mode 100644 test/tools/llvm-cov/Inputs/regionMarkers.proftext create mode 100755 test/tools/llvm-cov/Inputs/universal-binary create mode 100644 test/tools/llvm-cov/Inputs/universal-binary.proftext create mode 100644 test/tools/llvm-cov/binary-formats.c create mode 100644 test/tools/llvm-cov/universal-binary.c create mode 100644 test/tools/llvm-cxxdump/Inputs/eh.obj.coff-i386 rename test/tools/{llvm-vtabledump => llvm-cxxdump}/Inputs/trivial.obj.coff-i386 (100%) rename test/tools/{llvm-vtabledump => llvm-cxxdump}/Inputs/trivial.obj.elf-i386 (100%) create mode 100644 test/tools/llvm-cxxdump/eh.test rename test/tools/{llvm-vtabledump => llvm-cxxdump}/trivial.test (95%) create mode 100644 test/tools/llvm-objdump/AArch64/Inputs/link-opt-hints.macho-aarch64 create mode 100644 test/tools/llvm-objdump/AArch64/Inputs/print-mrs.obj.macho-aarch64 create mode 100644 test/tools/llvm-objdump/AArch64/macho-link-opt-hints.test create mode 100644 test/tools/llvm-objdump/AArch64/macho-print-mrs.test create mode 100644 test/tools/llvm-objdump/ARM/Inputs/data-in-code.macho-arm create mode 100644 test/tools/llvm-objdump/ARM/macho-data-in-code.test create mode 100644 test/tools/llvm-objdump/Inputs/common-symbol-elf create mode 100644 test/tools/llvm-objdump/Inputs/proc-specific-section-elf create mode 100755 test/tools/llvm-objdump/X86/Inputs/Objc1.32bit.exe.macho-i386 create mode 100644 test/tools/llvm-objdump/X86/Inputs/Objc1.32bit.obj.macho-i386 create mode 100755 test/tools/llvm-objdump/X86/Inputs/Objc2.32bit.exe.macho-i386 create mode 100644 test/tools/llvm-objdump/X86/Inputs/Objc2.32bit.obj.macho-i386 create mode 100755 test/tools/llvm-objdump/X86/Inputs/Objc2.64bit.exe.macho-x86_64 create mode 100644 test/tools/llvm-objdump/X86/Inputs/Objc2.64bit.obj.macho-x86_64 create mode 100755 test/tools/llvm-objdump/X86/Inputs/dylibModInit.macho-x86_64 create mode 100644 test/tools/llvm-objdump/X86/macho-archive-headers.test create mode 100644 test/tools/llvm-objdump/X86/macho-cstring-dump.test create mode 100644 test/tools/llvm-objdump/X86/macho-dis-no-leading-addr.test create mode 100644 test/tools/llvm-objdump/X86/macho-dis-symname.test create mode 100644 test/tools/llvm-objdump/X86/macho-dylib.test create mode 100644 test/tools/llvm-objdump/X86/macho-indirect-symbols.test create mode 100644 test/tools/llvm-objdump/X86/macho-info-plist.test create mode 100644 test/tools/llvm-objdump/X86/macho-literal-pointers-i386.test create mode 100644 test/tools/llvm-objdump/X86/macho-literal-pointers-x86_64.test create mode 100644 test/tools/llvm-objdump/X86/macho-literals.test create mode 100644 test/tools/llvm-objdump/X86/macho-nontext-disasm.test create mode 100644 test/tools/llvm-objdump/X86/macho-objc-meta-data.test create mode 100644 test/tools/llvm-objdump/X86/macho-relocations.test create mode 100644 test/tools/llvm-objdump/X86/macho-section-contents.test create mode 100644 test/tools/llvm-objdump/X86/macho-section-headers.test create mode 100644 test/tools/llvm-objdump/X86/macho-section.test create mode 100644 test/tools/llvm-objdump/X86/macho-symbol-table.test create mode 100644 test/tools/llvm-objdump/X86/macho-unwind-info.test create mode 100644 test/tools/llvm-objdump/common-symbol-elf.test create mode 100644 test/tools/llvm-objdump/macho-sections.test create mode 100644 test/tools/llvm-objdump/proc-specific-section-elf.test create mode 100644 test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.cpp create mode 100644 test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.pdb create mode 100644 test/tools/llvm-pdbdump/Inputs/FilterTest.cpp create mode 100644 test/tools/llvm-pdbdump/Inputs/FilterTest.pdb create mode 100644 test/tools/llvm-pdbdump/Inputs/LoadAddressTest.cpp create mode 100644 test/tools/llvm-pdbdump/Inputs/LoadAddressTest.pdb create mode 100644 test/tools/llvm-pdbdump/class-layout.test create mode 100644 test/tools/llvm-pdbdump/enum-layout.test create mode 100644 test/tools/llvm-pdbdump/lit.local.cfg create mode 100644 test/tools/llvm-pdbdump/load-address.test create mode 100644 test/tools/llvm-pdbdump/regex-filter.test create mode 100644 test/tools/llvm-readobj/Inputs/abiflags.obj.elf-mips create mode 100644 test/tools/llvm-readobj/Inputs/abiflags.obj.elf-mipsel create mode 100755 test/tools/llvm-readobj/Inputs/dtflags.elf-x86-64 create mode 100644 test/tools/llvm-readobj/Inputs/macho-universal-archive.x86_64.i386 create mode 100644 test/tools/llvm-readobj/Inputs/macho-universal.x86_64.i386 create mode 100755 test/tools/llvm-readobj/Inputs/mips-options.elf-mips64el create mode 100755 test/tools/llvm-readobj/Inputs/trivial.exe.coff-arm create mode 100644 test/tools/llvm-readobj/coff-arm-baserelocs.test create mode 100644 test/tools/llvm-readobj/elf-dtflags.test create mode 100644 test/tools/llvm-readobj/macho-universal-x86_64.i386.test create mode 100644 test/tools/llvm-readobj/mips-abiflags.test create mode 100644 test/tools/llvm-readobj/mips-options.test create mode 100644 test/tools/llvm-symbolizer/pdb/Inputs/test.cpp create mode 100644 test/tools/llvm-symbolizer/pdb/Inputs/test.exe create mode 100644 test/tools/llvm-symbolizer/pdb/Inputs/test.exe.input create mode 100644 test/tools/llvm-symbolizer/pdb/Inputs/test.pdb create mode 100644 test/tools/llvm-symbolizer/pdb/lit.local.cfg create mode 100644 test/tools/llvm-symbolizer/pdb/pdb.test create mode 100644 test/tools/lto/lit.local.cfg create mode 100644 test/tools/lto/opt-level.ll create mode 100644 tools/lli/OrcLazyJIT.cpp create mode 100644 tools/lli/OrcLazyJIT.h delete mode 100644 tools/llvm-cov/CoverageSummary.cpp delete mode 100644 tools/llvm-cov/CoverageSummary.h rename tools/{llvm-vtabledump => llvm-cxxdump}/CMakeLists.txt (63%) rename tools/{llvm-vtabledump => llvm-cxxdump}/Error.cpp (58%) rename tools/{llvm-vtabledump => llvm-cxxdump}/Error.h (51%) rename tools/{llvm-vtabledump => llvm-cxxdump}/LLVMBuild.txt (87%) rename tools/{llvm-vtabledump => llvm-cxxdump}/Makefile (82%) rename tools/{llvm-vtabledump/llvm-vtabledump.cpp => llvm-cxxdump/llvm-cxxdump.cpp} (74%) rename tools/{llvm-vtabledump/llvm-vtabledump.h => llvm-cxxdump/llvm-cxxdump.h} (66%) create mode 100644 tools/llvm-pdbdump/BuiltinDumper.cpp create mode 100644 tools/llvm-pdbdump/BuiltinDumper.h create mode 100644 tools/llvm-pdbdump/CMakeLists.txt create mode 100644 tools/llvm-pdbdump/ClassDefinitionDumper.cpp create mode 100644 tools/llvm-pdbdump/ClassDefinitionDumper.h create mode 100644 tools/llvm-pdbdump/CompilandDumper.cpp create mode 100644 tools/llvm-pdbdump/CompilandDumper.h create mode 100644 tools/llvm-pdbdump/EnumDumper.cpp create mode 100644 tools/llvm-pdbdump/EnumDumper.h create mode 100644 tools/llvm-pdbdump/ExternalSymbolDumper.cpp create mode 100644 tools/llvm-pdbdump/ExternalSymbolDumper.h create mode 100644 tools/llvm-pdbdump/FunctionDumper.cpp create mode 100644 tools/llvm-pdbdump/FunctionDumper.h create mode 100644 tools/llvm-pdbdump/LLVMBuild.txt create mode 100644 tools/llvm-pdbdump/LinePrinter.cpp create mode 100644 tools/llvm-pdbdump/LinePrinter.h create mode 100644 tools/llvm-pdbdump/Makefile create mode 100644 tools/llvm-pdbdump/TypeDumper.cpp create mode 100644 tools/llvm-pdbdump/TypeDumper.h create mode 100644 tools/llvm-pdbdump/TypedefDumper.cpp create mode 100644 tools/llvm-pdbdump/TypedefDumper.h create mode 100644 tools/llvm-pdbdump/VariableDumper.cpp create mode 100644 tools/llvm-pdbdump/VariableDumper.h create mode 100644 tools/llvm-pdbdump/llvm-pdbdump.cpp create mode 100644 tools/llvm-pdbdump/llvm-pdbdump.h delete mode 100644 tools/opt/Passes.h create mode 100644 unittests/Analysis/AliasAnalysisTest.cpp create mode 100644 unittests/AsmParser/AsmParserTest.cpp create mode 100644 unittests/AsmParser/CMakeLists.txt create mode 100644 unittests/AsmParser/Makefile create mode 100644 unittests/DebugInfo/DWARF/CMakeLists.txt create mode 100644 unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp create mode 100644 unittests/DebugInfo/DWARF/Makefile delete mode 100644 unittests/DebugInfo/DWARFFormValueTest.cpp create mode 100644 unittests/DebugInfo/PDB/CMakeLists.txt create mode 100644 unittests/DebugInfo/PDB/Makefile create mode 100644 unittests/DebugInfo/PDB/PDBApiTest.cpp create mode 100644 unittests/ExecutionEngine/Orc/CMakeLists.txt create mode 100644 unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp create mode 100644 unittests/ExecutionEngine/Orc/LazyEmittingLayerTest.cpp create mode 100644 unittests/ExecutionEngine/Orc/Makefile create mode 100644 unittests/ExecutionEngine/Orc/OrcTestCommon.cpp create mode 100644 unittests/ExecutionEngine/Orc/OrcTestCommon.h create mode 100644 unittests/ProfileData/CMakeLists.txt create mode 100644 unittests/ProfileData/CoverageMappingTest.cpp create mode 100644 unittests/ProfileData/InstrProfTest.cpp create mode 100644 unittests/ProfileData/Makefile create mode 100644 unittests/Support/DwarfTest.cpp create mode 100644 unittests/Support/EndianStreamTest.cpp create mode 100644 unittests/Support/TargetRegistry.cpp create mode 100644 unittests/Support/raw_pwrite_stream_test.cpp create mode 100644 unittests/Transforms/IPO/CMakeLists.txt create mode 100644 unittests/Transforms/IPO/LowerBitSets.cpp create mode 100644 unittests/Transforms/IPO/Makefile create mode 100644 unittests/Transforms/Utils/ValueMapperTest.cpp create mode 100644 utils/create_ladder_graph.py create mode 100644 utils/vim/ftdetect/llvm-lit.vim create mode 100644 utils/vim/ftdetect/llvm.vim create mode 100644 utils/vim/ftdetect/tablegen.vim create mode 100644 utils/vim/ftplugin/llvm.vim create mode 100644 utils/vim/ftplugin/tablegen.vim create mode 100644 utils/vim/indent/llvm.vim rename utils/vim/{ => syntax}/llvm.vim (93%) rename utils/vim/{ => syntax}/tablegen.vim (97%) diff --git a/.gitignore b/.gitignore index 1f3f1a9520c..02146ef0ac5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ # Byte compiled python modules. *.pyc # vim swap files -.*.swp +.*.sw? .sw? #OS X specific files. .DS_store @@ -37,7 +37,7 @@ cscope.files cscope.out autoconf/aclocal.m4 autoconf/autom4te.cache -compile_commands.json +/compile_commands.json #==============================================================================# # Directories to ignore (do not add trailing '/'s, they skip symlinks). diff --git a/CMakeLists.txt b/CMakeLists.txt index bb21cc5d751..776f3f6a2e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,19 +1,23 @@ # See docs/CMake.html for instructions about how to build LLVM with CMake. -cmake_minimum_required(VERSION 2.8.8) +cmake_minimum_required(VERSION 2.8.12.2) -# FIXME: It may be removed when we use 2.8.12. -if(CMAKE_VERSION VERSION_LESS 2.8.12) - # Invalidate a couple of keywords. - set(cmake_2_8_12_INTERFACE) - set(cmake_2_8_12_PRIVATE) -else() - # Use ${cmake_2_8_12_KEYWORD} intead of KEYWORD in target_link_libraries(). - set(cmake_2_8_12_INTERFACE INTERFACE) - set(cmake_2_8_12_PRIVATE PRIVATE) - if(POLICY CMP0022) - cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required - endif() +if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + message(STATUS "No build type selected, default to Debug") + set(CMAKE_BUILD_TYPE "Debug") +endif() + +if(POLICY CMP0022) + cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required +endif() + +if (POLICY CMP0051) + # CMake 3.1 and higher include generator expressions of the form + # $ in the SOURCES property. These need to be + # stripped everywhere that access the SOURCES property, so we just + # defer to the OLD behavior of not including generator expressions + # in the output for now. + cmake_policy(SET CMP0051 OLD) endif() if(CMAKE_VERSION VERSION_LESS 3.1.20141117) @@ -47,13 +51,17 @@ set(CMAKE_MODULE_PATH ) set(LLVM_VERSION_MAJOR 3) -set(LLVM_VERSION_MINOR 6) -set(LLVM_VERSION_PATCH 1) +set(LLVM_VERSION_MINOR 7) +set(LLVM_VERSION_PATCH 0) +set(LLVM_VERSION_SUFFIX svn) if (NOT PACKAGE_VERSION) - set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}") + set(PACKAGE_VERSION + "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}") endif() +option(LLVM_INSTALL_UTILS "Include utility binaries in the 'install' target." OFF) + option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF) option(LLVM_USE_FOLDERS "Enable solution folders in Visual Studio. Disable for Express versions." ON) @@ -85,6 +93,7 @@ set(CPACK_PACKAGE_VERSION_MINOR ${LLVM_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${LLVM_VERSION_PATCH}) set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.TXT") +set(CPACK_NSIS_COMPRESSOR "/SOLID lzma \r\n SetCompressorDictSize 32") if(WIN32 AND NOT UNIX) set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "LLVM") set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}\\\\cmake\\\\nsis_logo.bmp") @@ -96,6 +105,9 @@ if(WIN32 AND NOT UNIX) "ExecWait '$INSTDIR/tools/msbuild/install.bat'") set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "ExecWait '$INSTDIR/tools/msbuild/uninstall.bat'") + if( CMAKE_CL_64 ) + set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64") + endif() endif() include(CPack) @@ -222,17 +234,11 @@ list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD) include(AddLLVMDefinitions) option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON) - -# MSVC has a gazillion warnings with this. -if( MSVC ) - option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." OFF) -else() - option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON) -endif() - +option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON) option(LLVM_ENABLE_MODULES "Compile with C++ modules enabled." OFF) option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." OFF) option(LLVM_ENABLE_LIBCXX "Use libc++ if available." OFF) +option(LLVM_ENABLE_LIBCXXABI "Use libc++abi when using libc++." OFF) option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON) option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF) @@ -242,6 +248,9 @@ else() option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON) endif() +set(LLVM_ABI_BREAKING_CHECKS "WITH_ASSERTS" CACHE STRING + "Enable abi-breaking checks. Can be WITH_ASSERTS, FORCE_ON or FORCE_OFF.") + option(LLVM_FORCE_USE_OLD_HOST_TOOLCHAIN "Set to ON to force using an old, unsupported host toolchain." OFF) @@ -325,11 +334,17 @@ option (LLVM_BUILD_EXTERNAL_COMPILER_RT "Build compiler-rt as an external project." OFF) option(LLVM_BUILD_LLVM_DYLIB "Build libllvm dynamic library" OFF) +option(LLVM_DYLIB_EXPORT_ALL "Export all symbols from libLLVM.dylib (default is C API only" OFF) option(LLVM_DISABLE_LLVM_DYLIB_ATEXIT "Disable llvm-shlib's atexit destructors." ON) if(LLVM_DISABLE_LLVM_DYLIB_ATEXIT) set(DISABLE_LLVM_DYLIB_ATEXIT 1) endif() +option(LLVM_OPTIMIZED_TABLEGEN "Force TableGen to be built with optimization" OFF) +if(CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND LLVM_ENABLE_ASSERTIONS)) + set(LLVM_USE_HOST_TOOLS ON) +endif() + # All options referred to from HandleLLVMOptions have to be specified # BEFORE this include, otherwise options will not be correctly set on # first cmake run @@ -516,9 +531,9 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR}) # when crosscompiling import the executable targets from a file -if(CMAKE_CROSSCOMPILING) +if(LLVM_USE_HOST_TOOLS) include(CrossCompile) -endif(CMAKE_CROSSCOMPILING) +endif(LLVM_USE_HOST_TOOLS) if( ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD ) # On FreeBSD, /usr/local/* is not used by default. In order to build LLVM @@ -532,7 +547,7 @@ if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS ) endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS ) # Make sure we don't get -rdynamic in every binary. For those that need it, -# use set_target_properties(target PROPERTIES ENABLE_EXPORTS 1) +# use export_executable_symbols(target). set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") include(AddLLVM) @@ -627,6 +642,7 @@ add_subdirectory(cmake/modules) if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) install(DIRECTORY include/llvm include/llvm-c DESTINATION include + COMPONENT llvm-headers FILES_MATCHING PATTERN "*.def" PATTERN "*.h" @@ -638,6 +654,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) install(DIRECTORY ${LLVM_INCLUDE_DIR}/llvm DESTINATION include + COMPONENT llvm-headers FILES_MATCHING PATTERN "*.def" PATTERN "*.h" @@ -648,4 +665,12 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) PATTERN "config.h" EXCLUDE PATTERN ".svn" EXCLUDE ) + + if (NOT CMAKE_CONFIGURATION_TYPES) + add_custom_target(installhdrs + DEPENDS ${name} + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=llvm-headers + -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") + endif() endif() diff --git a/CODE_OWNERS.TXT b/CODE_OWNERS.TXT index d35134fbca0..25d9d38ef95 100644 --- a/CODE_OWNERS.TXT +++ b/CODE_OWNERS.TXT @@ -49,6 +49,10 @@ N: Peter Collingbourne E: peter@pcc.me.uk D: llgo +N: Quentin Colombet +E: qcolombet@apple.com +D: Register allocators + N: Anshuman Dasgupta E: adasgupt@codeaurora.org D: Hexagon Backend @@ -85,6 +89,10 @@ N: Lang Hames E: lhames@gmail.com D: MCJIT, RuntimeDyld and JIT event listeners +N: David Majnemer +E: david.majnemer@gmail.com +D: IR Constant Folder + N: Galina Kistanova E: gkistanova@gmail.com D: LLVM Buildbot @@ -116,7 +124,7 @@ D: SampleProfile and related parts of ProfileData N: Jakob Olesen E: stoklund@2pi.dk -D: Register allocators and TableGen +D: TableGen N: Richard Osborne E: richard@xmos.com @@ -126,6 +134,10 @@ N: Chad Rosier E: mcrosier@codeaurora.org D: Fast-Isel +N: Alex Rosenberg +E: alexr@leftfield.org +D: Sony PlayStation®4 support + N: Nadav Rotem E: nrotem@apple.com D: X86 Backend, Loop Vectorizer @@ -146,10 +158,14 @@ N: Michael Spencer E: bigcheesegs@gmail.com D: Windows parts of Support, Object, ar, nm, objdump, ranlib, size +N: Alexei Starovoitov +E: alexei.starovoitov@gmail.com +D: BPF backend + N: Tom Stellard E: thomas.stellard@amd.com E: mesa-dev@lists.freedesktop.org -D: Release manager for the 3.5 branch, R600 Backend, libclc +D: Release manager for the 3.5 and 3.6 branches, R600 Backend, libclc N: Evgeniy Stepanov E: eugenis@google.com @@ -170,3 +186,7 @@ D: libLTO, IR Linker N: Peter Zotov E: whitequark@whitequark.org D: OCaml bindings + +N: Andrey Churbanov +E: andrey.churbanov@intel.com +D: OpenMP runtime library diff --git a/LICENSE.TXT b/LICENSE.TXT index 922092b0521..84090c07a54 100644 --- a/LICENSE.TXT +++ b/LICENSE.TXT @@ -4,7 +4,7 @@ LLVM Release License University of Illinois/NCSA Open Source License -Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign. +Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. All rights reserved. Developed by: diff --git a/Makefile.config.in b/Makefile.config.in index d34a2d51a93..7af5d3c9020 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -58,6 +58,22 @@ LLVM_OBJ_ROOT := $(call realpath, @abs_top_builddir@) PROJ_SRC_ROOT := $(LLVM_SRC_ROOT) PROJ_SRC_DIR := $(LLVM_SRC_ROOT)$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR)) +# FIXME: This is temporary during the grace period where in-source builds are +# deprecated. Convert to a hard error when that period is up. +# +# See: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html +ifeq ($(LLVM_SRC_ROOT), $(LLVM_OBJ_ROOT)) + $(warning ######################################################################################) + $(warning # #) + $(warning # WARNING #) + $(warning # #) + $(warning # In-source builds are deprecated. #) + $(warning # #) + $(warning # Please configure from a separate build directory! #) + $(warning # #) + $(warning ######################################################################################) +endif + ifneq ($(CLANG_SRC_ROOT),) CLANG_SRC_ROOT:= $(call realpath, $(CLANG_SRC_ROOT)) PROJ_SRC_DIR := $(patsubst $(LLVM_SRC_ROOT)/tools/clang%,$(CLANG_SRC_ROOT)%,$(PROJ_SRC_DIR)) @@ -293,6 +309,11 @@ ENABLE_TERMINFO = @ENABLE_TERMINFO@ #ENABLE_EXPENSIVE_CHECKS = 0 @ENABLE_EXPENSIVE_CHECKS@ +# --enable-abi-breaking-checks : decide whether we should compile in asserts and +# checks that make the build ABI incompatible with an llvm built without these +# checks enabled. +ENABLE_ABI_BREAKING_CHECKS = @ENABLE_ABI_BREAKING_CHECKS@ + # When DEBUG_RUNTIME is enabled, the runtime libraries will retain debug # symbols. #DEBUG_RUNTIME = 1 diff --git a/Makefile.rules b/Makefile.rules index c8c971f6b28..24cac3b3765 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -631,6 +631,9 @@ ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) ifneq ($(HOST_OS),Darwin) ifneq ($(HOST_ARCH),Mips) CXX.Flags += -ffunction-sections -fdata-sections + ifeq ($(HOST_OS),SunOS) + CXX.Flags += -falign-functions=8 + endif endif endif endif @@ -638,8 +641,12 @@ ifndef NO_DEAD_STRIP ifeq ($(HOST_OS),Darwin) LD.Flags += -Wl,-dead_strip else - ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) - LD.Flags += -Wl,--gc-sections + ifeq ($(HOST_OS),SunOS) + LD.Flags += -Wl,-z -Wl,discard-unused=sections + else + ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) + LD.Flags += -Wl,--gc-sections + endif endif endif endif diff --git a/README.txt b/README.txt index d9c9239ce1a..6358a068421 100644 --- a/README.txt +++ b/README.txt @@ -15,4 +15,3 @@ documentation setup. If you're writing a package for LLVM, see docs/Packaging.rst for our suggestions. - diff --git a/autoconf/config.sub b/autoconf/config.sub index 673d62bfbf5..2583c901235 100755 --- a/autoconf/config.sub +++ b/autoconf/config.sub @@ -1354,7 +1354,7 @@ case $os in | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -bitrig*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1489,6 +1489,8 @@ case $os in ;; -nacl*) ;; + -ps4) + ;; -none) ;; *) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 577a7d521ea..586f3f26cb3 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -32,12 +32,12 @@ dnl===-----------------------------------------------------------------------=== dnl Initialize autoconf and define the package name, version number and dnl address for reporting bugs. -AC_INIT([LLVM],[3.6.1],[http://llvm.org/bugs/]) +AC_INIT([LLVM],[3.7.0svn],[http://llvm.org/bugs/]) LLVM_VERSION_MAJOR=3 -LLVM_VERSION_MINOR=6 -LLVM_VERSION_PATCH=1 -LLVM_VERSION_SUFFIX= +LLVM_VERSION_MINOR=7 +LLVM_VERSION_PATCH=0 +LLVM_VERSION_SUFFIX=svn AC_DEFINE_UNQUOTED([LLVM_VERSION_MAJOR], $LLVM_VERSION_MAJOR, [Major version of the LLVM API]) AC_DEFINE_UNQUOTED([LLVM_VERSION_MINOR], $LLVM_VERSION_MINOR, [Minor version of the LLVM API]) @@ -51,8 +51,8 @@ AC_SUBST([LLVM_VERSION_SUFFIX]) dnl Provide a copyright substitution and ensure the copyright notice is included dnl in the output of --version option of the generated configure script. -AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."]) -AC_COPYRIGHT([Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.]) +AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."]) +AC_COPYRIGHT([Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.]) dnl Indicate that we require autoconf 2.60 or later. AC_PREREQ(2.60) @@ -73,6 +73,19 @@ if test ${srcdir} != "." ; then fi fi +dnl Quit if it is an in-source build +if test ${srcdir} == "." ; then + AC_MSG_WARN([**************************************************************************************]) + AC_MSG_WARN([* *]) + AC_MSG_WARN([* WARNING *]) + AC_MSG_WARN([* *]) + AC_MSG_WARN([* In-source builds are deprecated. *]) + AC_MSG_WARN([* *]) + AC_MSG_WARN([* Please configure from a separate build directory! *]) + AC_MSG_WARN([* *]) + AC_MSG_WARN([**************************************************************************************]) +fi + dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS, dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc). : ${CFLAGS=} @@ -105,7 +118,7 @@ if test "$CXX" = "clang++" ; then ], [ AC_MSG_RESULT([no]) - AC_MSG_ERROR([Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ...]) + AC_MSG_ERROR([Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ...]) ]) AC_LANG_POP([C++]) fi @@ -267,6 +280,11 @@ AC_CACHE_CHECK([type of operating system we're going to host on], llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="DragonFly" llvm_cv_platform_type="Unix" ;; + *-*-bitrig*) + llvm_cv_link_all_option="-Wl,--whole-archive" + llvm_cv_no_link_all_option="-Wl,--no-whole-archive" + llvm_cv_os_type="Bitrig" + llvm_cv_platform_type="Unix" ;; *-*-hpux*) llvm_cv_link_all_option="-Wl,--whole-archive" llvm_cv_no_link_all_option="-Wl,--no-whole-archive" @@ -347,6 +365,8 @@ AC_CACHE_CHECK([type of operating system we're going to target], llvm_cv_target_os_type="NetBSD" ;; *-*-dragonfly*) llvm_cv_target_os_type="DragonFly" ;; + *-*-bitrig*) + llvm_cv_target_os_type="Bitrig" ;; *-*-hpux*) llvm_cv_target_os_type="HP-UX" ;; *-*-interix*) @@ -369,6 +389,8 @@ AC_CACHE_CHECK([type of operating system we're going to target], llvm_cv_target_os_type="NativeClient" ;; *-unknown-eabi*) llvm_cv_target_os_type="Freestanding" ;; + *-*-ps4) + llvm_cv_target_os_type="PS4" ;; *) llvm_cv_target_os_type="Unknown" ;; esac]) @@ -692,8 +714,10 @@ AC_ARG_ENABLE(assertions,AS_HELP_STRING( --enable-assertions,[Compile with assertion checks enabled (default is YES)]),, enableval="yes") if test ${enableval} = "yes" ; then AC_SUBST(DISABLE_ASSERTIONS,[[]]) + assertions_enabled="yes" else AC_SUBST(DISABLE_ASSERTIONS,[[DISABLE_ASSERTIONS=1]]) + assertions_enabled="no" fi dnl --enable-werror : check whether we want Werror on by default @@ -717,6 +741,28 @@ else AC_SUBST(EXPENSIVE_CHECKS,[[no]]) fi +dnl --enable-abi-breaking-checks : decide whether we should compile in asserts and +dnl checks that make the build ABI incompatible with an llvm built without these +dnl checks enabled. +AC_ARG_ENABLE(abi-breaking-checks,AS_HELP_STRING( + --enable-abi-breaking-checks,[Compile with abi-breaking asserts support (default is with-asserts)]),, enableval="with-asserts") +case "$enableval" in + with-asserts) if test ${assertions_enabled} = "yes" ; then + AC_DEFINE([LLVM_ENABLE_ABI_BREAKING_CHECKS],[1],[Define to enable checks that alter the LLVM C++ ABI]) + AC_SUBST(ENABLE_ABI_BREAKING_CHECKS,[1]) + else + AC_SUBST(ENABLE_ABI_BREAKING_CHECKS,[0]) + fi ;; + yes) + AC_DEFINE([LLVM_ENABLE_ABI_BREAKING_CHECKS],[1],[Define to enable checks that alter the LLVM C++ ABI]) + AC_SUBST(ENABLE_ABI_BREAKING_CHECKS,[1]) + ;; + no) + AC_SUBST(ENABLE_ABI_BREAKING_CHECKS,[0]) + ;; + *) AC_MSG_ERROR([Invalid setting for --enable-abi-breaking-checks. Use "with-asserts", "yes" or "no"]) +esac + dnl --enable-debug-runtime : should runtime libraries have debug symbols? AC_ARG_ENABLE(debug-runtime, AS_HELP_STRING(--enable-debug-runtime,[Build runtime libs with debug symbols (default is NO)]),,enableval=no) @@ -792,11 +838,139 @@ AC_ARG_ENABLE(doxygen, enableval=default) case "$enableval" in yes) AC_SUBST(ENABLE_DOXYGEN,[1]) ;; - no) AC_SUBST(ENABLE_DOXYGEN,[0]) ;; - default) AC_SUBST(ENABLE_DOXYGEN,[0]) ;; + no|default) AC_SUBST(ENABLE_DOXYGEN,[0]) ;; *) AC_MSG_ERROR([Invalid setting for --enable-doxygen. Use "yes" or "no"]) ;; esac +dnl Allow enablement of doxygen search engine +AC_ARG_ENABLE(doxygen-search, + AS_HELP_STRING([--enable-doxygen-search], + [Enable doxygen search support (default is NO)]),, + enableval=default) +ENABLE_DOXYGEN_SEARCH="$enableval" + +case "$enableval" in + yes|no|default) ;; + *) AC_MSG_ERROR([Invalid setting for --enable-doxygen-search. Use "yes" or "no"]) ;; +esac + +AC_ARG_ENABLE(doxygen-external-search, + AS_HELP_STRING([--enable-doxygen-external-search], + [Enable doxygen exteranl search (default is NO)]),, + enableval=default) +ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval" + +case "$enableval" in + yes) + dnl To match with the CMake behavior, enable doxygen when + dnl --enable-doxygen-external-search is enabled. + case "$ENABLE_DOXYGEN_SEARCH" in + yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;; + no) AC_MSG_ERROR([The option --enable-doxygen-external-search requires --enable-doxygen-search]) ;; + esac + ;; + no|default) ;; + *) AC_MSG_ERROR([Invalid setting for --enable-doxygen-external-search. Use "yes" or "no"]) ;; +esac + +AC_ARG_WITH(doxygen-search-engine-url, + AS_HELP_STRING([--with-doxygen-search-engine-url], + [Specify the external search engine for doxygen]),,) +WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval" + +AC_ARG_WITH(doxygen-search-mappings, + AS_HELP_STRING([--with-doxygen-search-mappings], + [Specify the extra search mapping for doxygen]),,) +WITH_DOXYGEN_SEARCH_MAPPINGS="$withval" + +case "$ENABLE_DOXYGEN_SEARCH" in + yes) + if test "$ENABLE_DOXYGEN" = "0" ; then + AC_MSG_ERROR([The option --enable-doxygen-search requires --enable-doxygen.]) + fi + + AC_SUBST(enable_searchengine,[YES]) + + case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in + yes) + AC_SUBST(enable_external_search,[YES]) + AC_SUBST(enable_server_based_search,[YES]) + AC_SUBST(searchengine_url,["$WITH_DOXYGEN_SEARCH_ENGINE_URL"]) + AC_SUBST(extra_search_mappings,["$WITH_DOXYGEN_SEARCH_MAPPINGS"]) + ;; + + no|default) + AC_SUBST(enable_external_search,[NO]) + AC_SUBST(enable_server_based_search,[NO]) + AC_SUBST(searchengine_url,[]) + AC_SUBST(extra_search_mappings,[]) + ;; + esac + ;; + + no|default) + AC_SUBST(enable_searchengine,[NO]) + AC_SUBST(searchengine_url,[]) + AC_SUBST(enable_server_based_search,[NO]) + AC_SUBST(enable_external_search,[NO]) + AC_SUBST(extra_search_mappings,[]) + ;; + + *) + AC_MSG_ERROR([Invalid setting for --enable-doxygen-search. Use "yes" or "no"]) + ;; +esac + +dnl Allow enablement of doxygen generated Qt help files +AC_ARG_ENABLE(doxygen-qt-help, + AS_HELP_STRING([--enable-doxygen-qt-help], + [Build Qt help files (default is NO)]),, + enableval=default) +case "$enableval" in + yes) + if test "$ENABLE_DOXYGEN" = "0" ; then + AC_MSG_ERROR([The option --enable-doxygen-qt-help requires --enable-doxygen.]) + fi + + AC_PATH_PROG(QHELPGENERATOR, [qhelpgenerator], [qhelpgenerator]) + + dnl Qt help file for llvm doxygen documentation + AC_SUBST(llvm_doxygen_generate_qhp,[YES]) + AC_SUBST(llvm_doxygen_qch_filename,[org.llvm.qch]) + AC_SUBST(llvm_doxygen_qhp_namespace,[org.llvm]) + AC_SUBST(llvm_doxygen_qhelpgenerator_path,["$QHELPGENERATOR"]) + AC_SUBST(llvm_doxygen_qhp_cust_filter_name,["$PACKAGE_STRING"]) + AC_SUBST(llvm_doxygen_qhp_cust_filter_attrs,["$PACKAGE_NAME,$PACKAGE_VERSION"]) + + dnl Qt help file for clang doxygen documentation + AC_SUBST(clang_doxygen_generate_qhp,[YES]) + AC_SUBST(clang_doxygen_qch_filename,[org.llvm.clang.qch]) + AC_SUBST(clang_doxygen_qhp_namespace,[org.llvm.clang]) + AC_SUBST(clang_doxygen_qhelpgenerator_path,["$QHELPGENERATOR"]) + AC_SUBST(clang_doxygen_qhp_cust_filter_name,["Clang $PACKAGE_VERSION"]) + AC_SUBST(clang_doxygen_qhp_cust_filter_attrs,["Clang,$PACKAGE_VERSION"]) + ;; + + no|default) + AC_SUBST(llvm_doxygen_generate_qhp,[NO]) + AC_SUBST(llvm_doxygen_qch_filename,[]) + AC_SUBST(llvm_doxygen_qhp_namespace,[]) + AC_SUBST(llvm_doxygen_qhelpgenerator_path,[]) + AC_SUBST(llvm_doxygen_qhp_cust_filter_name,[]) + AC_SUBST(llvm_doxygen_qhp_cust_filter_attrs,[]) + + AC_SUBST(clang_doxygen_generate_qhp,[NO]) + AC_SUBST(clang_doxygen_qch_filename,[]) + AC_SUBST(clang_doxygen_qhp_namespace,[]) + AC_SUBST(clang_doxygen_qhelpgenerator_path,[]) + AC_SUBST(clang_doxygen_qhp_cust_filter_name,["Clang $PACKAGE_VERSION"]) + AC_SUBST(clang_doxygen_qhp_cust_filter_attrs,["Clang,$PACKAGE_VERSION"]) + ;; + + *) + AC_MSG_ERROR([Invalid setting for --enable-doxygen-qt-help. Use "yes" or "no"]) ;; +esac + dnl Allow disablement of threads AC_ARG_ENABLE(threads, AS_HELP_STRING([--enable-threads], @@ -1533,11 +1707,11 @@ AC_ARG_WITH(oprofile, AC_SEARCH_LIBS(bfd_init, bfd, [], []) AC_SEARCH_LIBS(op_open_agent, opagent, [], [ echo "Error! You need to have libopagent around." - exit -1 + exit 1 ]) AC_CHECK_HEADER([opagent.h], [], [ echo "Error! You need to have opagent.h around." - exit -1 + exit 1 ]) fi ;; *) @@ -1690,9 +1864,7 @@ dnl=== SECTION 8: Check for specific functions needed dnl=== dnl===-----------------------------------------------------------------------=== -AC_CHECK_FUNCS([backtrace ceilf floorf roundf rintf nearbyintf getcwd ]) -AC_CHECK_FUNCS([powf fmodf strtof round ]) -AC_CHECK_FUNCS([log log2 log10 exp exp2]) +AC_CHECK_FUNCS([backtrace getcwd ]) AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ]) AC_CHECK_FUNCS([isatty mkdtemp mkstemp ]) AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit ]) @@ -1756,11 +1928,6 @@ if test "$llvm_cv_os_type" = "MingW" ; then AC_DEFINE_UNQUOTED([WIN32_ELMCB_PCSTR],$llvm_cv_win32_elmcb_pcstr,[Type of 1st arg on ELM Callback]) fi -dnl Check for variations in the Standard C++ library and STL. These macros are -dnl provided by LLVM in the autoconf/m4 directory. -AC_FUNC_ISNAN -AC_FUNC_ISINF - dnl Check for mmap support.We also need to know if /dev/zero is required to dnl be opened for allocating RWX memory. dnl Make sure we aren't attempting to configure for an unknown system diff --git a/autoconf/m4/func_isinf.m4 b/autoconf/m4/func_isinf.m4 deleted file mode 100644 index 40dc48b2b8a..00000000000 --- a/autoconf/m4/func_isinf.m4 +++ /dev/null @@ -1,42 +0,0 @@ -dnl -dnl This function determins if the isinf function isavailable on this -dnl platform. -dnl - -AC_DEFUN([AC_FUNC_ISINF],[ - -AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h], - [isinf], [], - [float f; isinf(f);]) -if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then - AC_DEFINE([HAVE_ISINF_IN_MATH_H], [1], - [Set to 1 if the isinf function is found in ]) -fi - -AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath], - [isinf], [], - [float f; isinf(f);]) -if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then - AC_DEFINE([HAVE_ISINF_IN_CMATH], [1], - [Set to 1 if the isinf function is found in ]) -fi - -AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath], - [std::isinf], [], - [float f; std::isinf(f);]) -if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then - AC_DEFINE([HAVE_STD_ISINF_IN_CMATH], [1], - [Set to 1 if the std::isinf function is found in ]) -fi - -AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h], - [finite], [], - [float f; finite(f);]) -if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then - AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H], [1], - [Set to 1 if the finite function is found in ]) -fi - -]) - - diff --git a/autoconf/m4/func_isnan.m4 b/autoconf/m4/func_isnan.m4 deleted file mode 100644 index eb5ca0daeb5..00000000000 --- a/autoconf/m4/func_isnan.m4 +++ /dev/null @@ -1,27 +0,0 @@ -# -# This function determines if the isnan function is available on this -# platform. -# -AC_DEFUN([AC_FUNC_ISNAN],[ -AC_SINGLE_CXX_CHECK([ac_cv_func_isnan_in_math_h], - [isnan], [], - [float f; isnan(f);]) - -if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then - AC_DEFINE([HAVE_ISNAN_IN_MATH_H],1,[Set to 1 if the isnan function is found in ]) -fi - -AC_SINGLE_CXX_CHECK([ac_cv_func_isnan_in_cmath], - [isnan], [], - [float f; isnan(f);]) -if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then - AC_DEFINE([HAVE_ISNAN_IN_CMATH],1,[Set to 1 if the isnan function is found in ]) -fi - -AC_SINGLE_CXX_CHECK([ac_cv_func_std_isnan_in_cmath], - [std::isnan], [], - [float f; std::isnan(f);]) -if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then - AC_DEFINE([HAVE_STD_ISNAN_IN_CMATH],1,[Set to 1 if the std::isnan function is found in ]) -fi -]) diff --git a/bindings/go/llvm/DIBuilderBindings.cpp b/bindings/go/llvm/DIBuilderBindings.cpp index 5671866d4d0..df5885de25c 100644 --- a/bindings/go/llvm/DIBuilderBindings.cpp +++ b/bindings/go/llvm/DIBuilderBindings.cpp @@ -12,22 +12,15 @@ //===----------------------------------------------------------------------===// #include "DIBuilderBindings.h" - #include "IRBindings.h" +#include "llvm/IR/DIBuilder.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Module.h" -#include "llvm/IR/DIBuilder.h" using namespace llvm; DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DIBuilder, LLVMDIBuilderRef) -namespace { -template T unwrapDI(LLVMMetadataRef v) { - return v ? T(unwrap(v)) : T(); -} -} - LLVMDIBuilderRef LLVMNewDIBuilder(LLVMModuleRef mref) { Module *m = unwrap(mref); return wrap(new DIBuilder(*m)); @@ -47,16 +40,14 @@ LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef Dref, int Optimized, const char *Flags, unsigned RuntimeVersion) { DIBuilder *D = unwrap(Dref); - DICompileUnit CU = D->createCompileUnit(Lang, File, Dir, Producer, Optimized, - Flags, RuntimeVersion); - return wrap(CU); + return wrap(D->createCompileUnit(Lang, File, Dir, Producer, Optimized, Flags, + RuntimeVersion)); } LLVMMetadataRef LLVMDIBuilderCreateFile(LLVMDIBuilderRef Dref, const char *File, const char *Dir) { DIBuilder *D = unwrap(Dref); - DIFile F = D->createFile(File, Dir); - return wrap(F); + return wrap(D->createFile(File, Dir)); } LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref, @@ -65,8 +56,8 @@ LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref, unsigned Line, unsigned Column) { DIBuilder *D = unwrap(Dref); - DILexicalBlock LB = D->createLexicalBlock( - unwrapDI(Scope), unwrapDI(File), Line, Column); + auto *LB = D->createLexicalBlock(unwrap(Scope), + unwrap(File), Line, Column); return wrap(LB); } @@ -75,9 +66,8 @@ LLVMMetadataRef LLVMDIBuilderCreateLexicalBlockFile(LLVMDIBuilderRef Dref, LLVMMetadataRef File, unsigned Discriminator) { DIBuilder *D = unwrap(Dref); - DILexicalBlockFile LBF = D->createLexicalBlockFile( - unwrapDI(Scope), unwrapDI(File), Discriminator); - return wrap(LBF); + return wrap(D->createLexicalBlockFile(unwrap(Scope), + unwrap(File), Discriminator)); } LLVMMetadataRef LLVMDIBuilderCreateFunction( @@ -86,11 +76,11 @@ LLVMMetadataRef LLVMDIBuilderCreateFunction( LLVMMetadataRef CompositeType, int IsLocalToUnit, int IsDefinition, unsigned ScopeLine, unsigned Flags, int IsOptimized, LLVMValueRef Func) { DIBuilder *D = unwrap(Dref); - DISubprogram SP = D->createFunction( - unwrapDI(Scope), Name, LinkageName, unwrapDI(File), - Line, unwrapDI(CompositeType), IsLocalToUnit, - IsDefinition, ScopeLine, Flags, IsOptimized, unwrap(Func)); - return wrap(SP); + return wrap(D->createFunction(unwrap(Scope), Name, LinkageName, + File ? unwrap(File) : nullptr, Line, + unwrap(CompositeType), + IsLocalToUnit, IsDefinition, ScopeLine, Flags, + IsOptimized, unwrap(Func))); } LLVMMetadataRef LLVMDIBuilderCreateLocalVariable( @@ -98,10 +88,9 @@ LLVMMetadataRef LLVMDIBuilderCreateLocalVariable( const char *Name, LLVMMetadataRef File, unsigned Line, LLVMMetadataRef Ty, int AlwaysPreserve, unsigned Flags, unsigned ArgNo) { DIBuilder *D = unwrap(Dref); - DIVariable V = D->createLocalVariable( - Tag, unwrapDI(Scope), Name, unwrapDI(File), Line, - unwrapDI(Ty), AlwaysPreserve, Flags, ArgNo); - return wrap(V); + return wrap(D->createLocalVariable( + Tag, unwrap(Scope), Name, unwrap(File), Line, + unwrap(Ty), AlwaysPreserve, Flags, ArgNo)); } LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef Dref, @@ -110,8 +99,7 @@ LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef Dref, uint64_t AlignInBits, unsigned Encoding) { DIBuilder *D = unwrap(Dref); - DIBasicType T = D->createBasicType(Name, SizeInBits, AlignInBits, Encoding); - return wrap(T); + return wrap(D->createBasicType(Name, SizeInBits, AlignInBits, Encoding)); } LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef Dref, @@ -120,18 +108,17 @@ LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef Dref, uint64_t AlignInBits, const char *Name) { DIBuilder *D = unwrap(Dref); - DIDerivedType T = D->createPointerType(unwrapDI(PointeeType), - SizeInBits, AlignInBits, Name); - return wrap(T); + return wrap(D->createPointerType(unwrap(PointeeType), SizeInBits, + AlignInBits, Name)); } LLVMMetadataRef LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef Dref, LLVMMetadataRef File, LLVMMetadataRef ParameterTypes) { DIBuilder *D = unwrap(Dref); - DICompositeType CT = D->createSubroutineType( - unwrapDI(File), unwrapDI(ParameterTypes)); - return wrap(CT); + return wrap( + D->createSubroutineType(File ? unwrap(File) : nullptr, + DITypeRefArray(unwrap(ParameterTypes)))); } LLVMMetadataRef LLVMDIBuilderCreateStructType( @@ -140,11 +127,22 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType( uint64_t AlignInBits, unsigned Flags, LLVMMetadataRef DerivedFrom, LLVMMetadataRef ElementTypes) { DIBuilder *D = unwrap(Dref); - DICompositeType CT = D->createStructType( - unwrapDI(Scope), Name, unwrapDI(File), Line, - SizeInBits, AlignInBits, Flags, unwrapDI(DerivedFrom), - unwrapDI(ElementTypes)); - return wrap(CT); + return wrap(D->createStructType( + unwrap(Scope), Name, File ? unwrap(File) : nullptr, Line, + SizeInBits, AlignInBits, Flags, + DerivedFrom ? unwrap(DerivedFrom) : nullptr, + ElementTypes ? DINodeArray(unwrap(ElementTypes)) : nullptr)); +} + +LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType( + LLVMDIBuilderRef Dref, unsigned Tag, const char *Name, + LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, + unsigned RuntimeLang, uint64_t SizeInBits, uint64_t AlignInBits, + unsigned Flags) { + DIBuilder *D = unwrap(Dref); + return wrap(D->createReplaceableCompositeType( + Tag, Name, unwrap(Scope), File ? unwrap(File) : nullptr, + Line, RuntimeLang, SizeInBits, AlignInBits, Flags)); } LLVMMetadataRef @@ -154,10 +152,9 @@ LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, LLVMMetadataRef Ty) { DIBuilder *D = unwrap(Dref); - DIDerivedType DT = D->createMemberType( - unwrapDI(Scope), Name, unwrapDI(File), Line, - SizeInBits, AlignInBits, OffsetInBits, Flags, unwrapDI(Ty)); - return wrap(DT); + return wrap(D->createMemberType( + unwrap(Scope), Name, File ? unwrap(File) : nullptr, Line, + SizeInBits, AlignInBits, OffsetInBits, Flags, unwrap(Ty))); } LLVMMetadataRef LLVMDIBuilderCreateArrayType(LLVMDIBuilderRef Dref, @@ -166,10 +163,9 @@ LLVMMetadataRef LLVMDIBuilderCreateArrayType(LLVMDIBuilderRef Dref, LLVMMetadataRef ElementType, LLVMMetadataRef Subscripts) { DIBuilder *D = unwrap(Dref); - DICompositeType CT = - D->createArrayType(SizeInBits, AlignInBits, unwrapDI(ElementType), - unwrapDI(Subscripts)); - return wrap(CT); + return wrap(D->createArrayType(SizeInBits, AlignInBits, + unwrap(ElementType), + DINodeArray(unwrap(Subscripts)))); } LLVMMetadataRef LLVMDIBuilderCreateTypedef(LLVMDIBuilderRef Dref, @@ -177,17 +173,15 @@ LLVMMetadataRef LLVMDIBuilderCreateTypedef(LLVMDIBuilderRef Dref, LLVMMetadataRef File, unsigned Line, LLVMMetadataRef Context) { DIBuilder *D = unwrap(Dref); - DIDerivedType DT = - D->createTypedef(unwrapDI(Ty), Name, unwrapDI(File), Line, - unwrapDI(Context)); - return wrap(DT); + return wrap(D->createTypedef(unwrap(Ty), Name, + File ? unwrap(File) : nullptr, Line, + Context ? unwrap(Context) : nullptr)); } LLVMMetadataRef LLVMDIBuilderGetOrCreateSubrange(LLVMDIBuilderRef Dref, int64_t Lo, int64_t Count) { DIBuilder *D = unwrap(Dref); - DISubrange S = D->getOrCreateSubrange(Lo, Count); - return wrap(S); + return wrap(D->getOrCreateSubrange(Lo, Count)); } LLVMMetadataRef LLVMDIBuilderGetOrCreateArray(LLVMDIBuilderRef Dref, @@ -196,8 +190,8 @@ LLVMMetadataRef LLVMDIBuilderGetOrCreateArray(LLVMDIBuilderRef Dref, DIBuilder *D = unwrap(Dref); Metadata **DataValue = unwrap(Data); ArrayRef Elements(DataValue, Length); - DIArray A = D->getOrCreateArray(Elements); - return wrap(A); + DINodeArray A = D->getOrCreateArray(Elements); + return wrap(A.get()); } LLVMMetadataRef LLVMDIBuilderGetOrCreateTypeArray(LLVMDIBuilderRef Dref, @@ -206,15 +200,14 @@ LLVMMetadataRef LLVMDIBuilderGetOrCreateTypeArray(LLVMDIBuilderRef Dref, DIBuilder *D = unwrap(Dref); Metadata **DataValue = unwrap(Data); ArrayRef Elements(DataValue, Length); - DITypeArray A = D->getOrCreateTypeArray(Elements); - return wrap(A); + DITypeRefArray A = D->getOrCreateTypeArray(Elements); + return wrap(A.get()); } LLVMMetadataRef LLVMDIBuilderCreateExpression(LLVMDIBuilderRef Dref, int64_t *Addr, size_t Length) { DIBuilder *D = unwrap(Dref); - DIExpression Expr = D->createExpression(ArrayRef(Addr, Length)); - return wrap(Expr); + return wrap(D->createExpression(ArrayRef(Addr, Length))); } LLVMValueRef LLVMDIBuilderInsertDeclareAtEnd(LLVMDIBuilderRef Dref, @@ -222,10 +215,14 @@ LLVMValueRef LLVMDIBuilderInsertDeclareAtEnd(LLVMDIBuilderRef Dref, LLVMMetadataRef VarInfo, LLVMMetadataRef Expr, LLVMBasicBlockRef Block) { + // Fail immediately here until the llgo folks update their bindings. The + // called function is going to assert out anyway. + llvm_unreachable("DIBuilder API change requires a DebugLoc"); + DIBuilder *D = unwrap(Dref); - Instruction *Instr = - D->insertDeclare(unwrap(Storage), unwrapDI(VarInfo), - unwrapDI(Expr), unwrap(Block)); + Instruction *Instr = D->insertDeclare( + unwrap(Storage), unwrap(VarInfo), + unwrap(Expr), /* DebugLoc */ nullptr, unwrap(Block)); return wrap(Instr); } @@ -234,9 +231,13 @@ LLVMValueRef LLVMDIBuilderInsertValueAtEnd(LLVMDIBuilderRef Dref, LLVMMetadataRef VarInfo, LLVMMetadataRef Expr, LLVMBasicBlockRef Block) { + // Fail immediately here until the llgo folks update their bindings. The + // called function is going to assert out anyway. + llvm_unreachable("DIBuilder API change requires a DebugLoc"); + DIBuilder *D = unwrap(Dref); Instruction *Instr = D->insertDbgValueIntrinsic( - unwrap(Val), Offset, unwrapDI(VarInfo), - unwrapDI(Expr), unwrap(Block)); + unwrap(Val), Offset, unwrap(VarInfo), + unwrap(Expr), /* DebugLoc */ nullptr, unwrap(Block)); return wrap(Instr); } diff --git a/bindings/go/llvm/DIBuilderBindings.h b/bindings/go/llvm/DIBuilderBindings.h index 8a8ce3f6e7b..a4fba278418 100644 --- a/bindings/go/llvm/DIBuilderBindings.h +++ b/bindings/go/llvm/DIBuilderBindings.h @@ -14,8 +14,8 @@ #ifndef LLVM_BINDINGS_GO_LLVM_DIBUILDERBINDINGS_H #define LLVM_BINDINGS_GO_LLVM_DIBUILDERBINDINGS_H -#include "llvm-c/Core.h" #include "IRBindings.h" +#include "llvm-c/Core.h" #ifdef __cplusplus extern "C" { @@ -84,6 +84,11 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType( uint64_t AlignInBits, unsigned Flags, LLVMMetadataRef DerivedFrom, LLVMMetadataRef ElementTypes); +LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType( + LLVMDIBuilderRef D, unsigned Tag, const char *Name, LLVMMetadataRef Scope, + LLVMMetadataRef File, unsigned Line, unsigned RuntimeLang, + uint64_t SizeInBits, uint64_t AlignInBits, unsigned Flags); + LLVMMetadataRef LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef D, LLVMMetadataRef Scope, const char *Name, LLVMMetadataRef File, diff --git a/bindings/go/llvm/IRBindings.cpp b/bindings/go/llvm/IRBindings.cpp index fac4126acda..fd0cb8006a4 100644 --- a/bindings/go/llvm/IRBindings.cpp +++ b/bindings/go/llvm/IRBindings.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #include "IRBindings.h" - #include "llvm/IR/Attributes.h" #include "llvm/IR/DebugLoc.h" #include "llvm/IR/Function.h" @@ -66,8 +65,9 @@ LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs, LLVMMetadataRef LLVMTemporaryMDNode(LLVMContextRef C, LLVMMetadataRef *MDs, unsigned Count) { - return wrap(MDNode::getTemporary(*unwrap(C), - ArrayRef(unwrap(MDs), Count))); + return wrap(MDTuple::getTemporary(*unwrap(C), + ArrayRef(unwrap(MDs), Count)) + .release()); } void LLVMAddNamedMetadataOperand2(LLVMModuleRef M, const char *name, @@ -86,8 +86,8 @@ void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { } void LLVMMetadataReplaceAllUsesWith(LLVMMetadataRef MD, LLVMMetadataRef New) { - auto *Node = unwrap(MD); - Node->replaceAllUsesWith(unwrap(New)); + auto *Node = unwrap(MD); + Node->replaceAllUsesWith(unwrap(New)); MDNode::deleteTemporary(Node); } diff --git a/bindings/go/llvm/InstrumentationBindings.cpp b/bindings/go/llvm/InstrumentationBindings.cpp index b604abb5c70..8b7bafa77ad 100644 --- a/bindings/go/llvm/InstrumentationBindings.cpp +++ b/bindings/go/llvm/InstrumentationBindings.cpp @@ -12,10 +12,9 @@ //===----------------------------------------------------------------------===// #include "InstrumentationBindings.h" - #include "llvm-c/Core.h" +#include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" -#include "llvm/PassManager.h" #include "llvm/Transforms/Instrumentation.h" using namespace llvm; @@ -37,6 +36,11 @@ void LLVMAddMemorySanitizerPass(LLVMPassManagerRef PM) { } void LLVMAddDataFlowSanitizerPass(LLVMPassManagerRef PM, - const char *ABIListFile) { - unwrap(PM)->add(createDataFlowSanitizerPass(ABIListFile)); + int ABIListFilesNum, + const char **ABIListFiles) { + std::vector ABIListFilesVec; + for (int i = 0; i != ABIListFilesNum; ++i) { + ABIListFilesVec.push_back(ABIListFiles[i]); + } + unwrap(PM)->add(createDataFlowSanitizerPass(ABIListFilesVec)); } diff --git a/bindings/go/llvm/InstrumentationBindings.h b/bindings/go/llvm/InstrumentationBindings.h index e8dbd59e431..97af2d58c27 100644 --- a/bindings/go/llvm/InstrumentationBindings.h +++ b/bindings/go/llvm/InstrumentationBindings.h @@ -28,8 +28,8 @@ void LLVMAddAddressSanitizerFunctionPass(LLVMPassManagerRef PM); void LLVMAddAddressSanitizerModulePass(LLVMPassManagerRef PM); void LLVMAddThreadSanitizerPass(LLVMPassManagerRef PM); void LLVMAddMemorySanitizerPass(LLVMPassManagerRef PM); -void LLVMAddDataFlowSanitizerPass(LLVMPassManagerRef PM, - const char *ABIListFile); +void LLVMAddDataFlowSanitizerPass(LLVMPassManagerRef PM, int ABIListFilesNum, + const char **ABIListFiles); #ifdef __cplusplus } diff --git a/bindings/go/llvm/SupportBindings.cpp b/bindings/go/llvm/SupportBindings.cpp index df5f8655756..5e251b7da09 100644 --- a/bindings/go/llvm/SupportBindings.cpp +++ b/bindings/go/llvm/SupportBindings.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #include "SupportBindings.h" - #include "llvm/Support/DynamicLibrary.h" #include #include diff --git a/bindings/go/llvm/dibuilder.go b/bindings/go/llvm/dibuilder.go index 3b1a1a64545..f03f740b777 100644 --- a/bindings/go/llvm/dibuilder.go +++ b/bindings/go/llvm/dibuilder.go @@ -343,6 +343,38 @@ func (d *DIBuilder) CreateStructType(scope Metadata, t DIStructType) Metadata { return Metadata{C: result} } +// DIReplaceableCompositeType holds the values for creating replaceable +// composite type debug metadata. +type DIReplaceableCompositeType struct { + Tag dwarf.Tag + Name string + File Metadata + Line int + RuntimeLang int + SizeInBits uint64 + AlignInBits uint64 + Flags int +} + +// CreateReplaceableCompositeType creates replaceable composite type debug metadata. +func (d *DIBuilder) CreateReplaceableCompositeType(scope Metadata, t DIReplaceableCompositeType) Metadata { + name := C.CString(t.Name) + defer C.free(unsafe.Pointer(name)) + result := C.LLVMDIBuilderCreateReplaceableCompositeType( + d.ref, + C.unsigned(t.Tag), + name, + scope.C, + t.File.C, + C.unsigned(t.Line), + C.unsigned(t.RuntimeLang), + C.uint64_t(t.SizeInBits), + C.uint64_t(t.AlignInBits), + C.unsigned(t.Flags), + ) + return Metadata{C: result} +} + // DIMemberType holds the values for creating member type debug metadata. type DIMemberType struct { Name string diff --git a/bindings/go/llvm/linker.go b/bindings/go/llvm/linker.go index 31e9ad24bf5..f64f66c858e 100644 --- a/bindings/go/llvm/linker.go +++ b/bindings/go/llvm/linker.go @@ -20,16 +20,9 @@ package llvm import "C" import "errors" -type LinkerMode C.LLVMLinkerMode - -const ( - LinkerDestroySource = C.LLVMLinkerDestroySource - LinkerPreserveSource = C.LLVMLinkerPreserveSource -) - -func LinkModules(Dest, Src Module, Mode LinkerMode) error { +func LinkModules(Dest, Src Module) error { var cmsg *C.char - failed := C.LLVMLinkModules(Dest.C, Src.C, C.LLVMLinkerMode(Mode), &cmsg) + failed := C.LLVMLinkModules(Dest.C, Src.C, C.LLVMLinkerDestroySource, &cmsg) if failed != 0 { err := errors.New(C.GoString(cmsg)) C.LLVMDisposeMessage(cmsg) diff --git a/bindings/go/llvm/transforms_instrumentation.go b/bindings/go/llvm/transforms_instrumentation.go index 9b191b26693..73e2732cbd9 100644 --- a/bindings/go/llvm/transforms_instrumentation.go +++ b/bindings/go/llvm/transforms_instrumentation.go @@ -36,8 +36,11 @@ func (pm PassManager) AddMemorySanitizerPass() { C.LLVMAddMemorySanitizerPass(pm.C) } -func (pm PassManager) AddDataFlowSanitizerPass(abilist string) { - cabilist := C.CString(abilist) - defer C.free(unsafe.Pointer(cabilist)) - C.LLVMAddDataFlowSanitizerPass(pm.C, cabilist) +func (pm PassManager) AddDataFlowSanitizerPass(abilist []string) { + abiliststrs := make([]*C.char, len(abilist)) + for i, arg := range abilist { + abiliststrs[i] = C.CString(arg) + defer C.free(unsafe.Pointer(abiliststrs[i])) + } + C.LLVMAddDataFlowSanitizerPass(pm.C, C.int(len(abilist)), &abiliststrs[0]) } diff --git a/bindings/ocaml/linker/linker_ocaml.c b/bindings/ocaml/linker/linker_ocaml.c index ed37777d852..3b8512aa595 100644 --- a/bindings/ocaml/linker/linker_ocaml.c +++ b/bindings/ocaml/linker/linker_ocaml.c @@ -23,11 +23,11 @@ void llvm_raise(value Prototype, char *Message); -/* llmodule -> llmodule -> Mode.t -> unit */ -CAMLprim value llvm_link_modules(LLVMModuleRef Dst, LLVMModuleRef Src, value Mode) { +/* llmodule -> llmodule -> unit */ +CAMLprim value llvm_link_modules(LLVMModuleRef Dst, LLVMModuleRef Src) { char* Message; - if (LLVMLinkModules(Dst, Src, Int_val(Mode), &Message)) + if (LLVMLinkModules(Dst, Src, 0, &Message)) llvm_raise(*caml_named_value("Llvm_linker.Error"), Message); return Val_unit; diff --git a/bindings/ocaml/linker/llvm_linker.ml b/bindings/ocaml/linker/llvm_linker.ml index 5854d70bb52..3044abd8b6c 100644 --- a/bindings/ocaml/linker/llvm_linker.ml +++ b/bindings/ocaml/linker/llvm_linker.ml @@ -11,11 +11,5 @@ exception Error of string let () = Callback.register_exception "Llvm_linker.Error" (Error "") -module Mode = struct - type t = - | DestroySource - | PreserveSource -end - -external link_modules : Llvm.llmodule -> Llvm.llmodule -> Mode.t -> unit +external link_modules : Llvm.llmodule -> Llvm.llmodule -> unit = "llvm_link_modules" diff --git a/bindings/ocaml/linker/llvm_linker.mli b/bindings/ocaml/linker/llvm_linker.mli index 4def7a8cc98..06c3b92a577 100644 --- a/bindings/ocaml/linker/llvm_linker.mli +++ b/bindings/ocaml/linker/llvm_linker.mli @@ -14,13 +14,6 @@ exception Error of string -(** Linking mode. *) -module Mode : sig - type t = - | DestroySource - | PreserveSource -end - (** [link_modules dst src mode] links [src] into [dst], raising [Error] if the linking fails. *) -val link_modules : Llvm.llmodule -> Llvm.llmodule -> Mode.t -> unit \ No newline at end of file +val link_modules : Llvm.llmodule -> Llvm.llmodule -> unit \ No newline at end of file diff --git a/bindings/ocaml/llvm/llvm.ml b/bindings/ocaml/llvm/llvm.ml index 042edcba84e..9a3cb1f0de0 100644 --- a/bindings/ocaml/llvm/llvm.ml +++ b/bindings/ocaml/llvm/llvm.ml @@ -1300,6 +1300,8 @@ external build_fcmp : Fcmp.t -> llvalue -> llvalue -> string -> (*--... Miscellaneous instructions .........................................--*) external build_phi : (llvalue * llbasicblock) list -> string -> llbuilder -> llvalue = "llvm_build_phi" +external build_empty_phi : lltype -> string -> llbuilder -> llvalue + = "llvm_build_empty_phi" external build_call : llvalue -> llvalue array -> string -> llbuilder -> llvalue = "llvm_build_call" external build_select : llvalue -> llvalue -> llvalue -> string -> llbuilder -> diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli index 8fdddd1895e..dcda02764f5 100644 --- a/bindings/ocaml/llvm/llvm.mli +++ b/bindings/ocaml/llvm/llvm.mli @@ -2422,6 +2422,12 @@ val build_fcmp : Fcmp.t -> llvalue -> llvalue -> string -> val build_phi : (llvalue * llbasicblock) list -> string -> llbuilder -> llvalue +(** [build_empty_phi ty name b] creates a + [%name = phi %ty] instruction at the position specified by + the instruction builder [b]. [ty] is the type of the instruction. + See the method [llvm::LLVMBuilder::CreatePHI]. *) +val build_empty_phi : lltype -> string -> llbuilder -> llvalue + (** [build_call fn args name b] creates a [%name = call %fn(args...)] instruction at the position specified by the instruction builder [b]. diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c index 1fa4d0f32d0..3889f9276cc 100644 --- a/bindings/ocaml/llvm/llvm_ocaml.c +++ b/bindings/ocaml/llvm/llvm_ocaml.c @@ -2191,6 +2191,15 @@ CAMLprim LLVMValueRef llvm_build_phi(value Incoming, value Name, value B) { return PhiNode; } +/* lltype -> string -> llbuilder -> value */ +CAMLprim LLVMValueRef llvm_build_empty_phi(LLVMTypeRef Type, value Name, value B) { + LLVMValueRef PhiNode; + + return LLVMBuildPhi(Builder_val(B), Type, String_val(Name)); + + return PhiNode; +} + /* llvalue -> llvalue array -> string -> llbuilder -> llvalue */ CAMLprim LLVMValueRef llvm_build_call(LLVMValueRef Fn, value Params, value Name, value B) { diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 6a7538895c4..4e22aabd2d9 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -79,6 +79,7 @@ check_symbol_exists(FE_INEXACT "fenv.h" HAVE_DECL_FE_INEXACT) check_include_file(mach/mach.h HAVE_MACH_MACH_H) check_include_file(mach-o/dyld.h HAVE_MACH_O_DYLD_H) +check_include_file(histedit.h HAVE_HISTEDIT_H) # size_t must be defined before including cxxabi.h on FreeBSD 10.0. check_cxx_source_compiles(" @@ -110,7 +111,9 @@ if( NOT PURE_WINDOWS ) else() set(HAVE_LIBZ 0) endif() - check_library_exists(edit el_init "" HAVE_LIBEDIT) + if (HAVE_HISTEDIT_H) + check_library_exists(edit el_init "" HAVE_LIBEDIT) + endif() if(LLVM_ENABLE_TERMINFO) set(HAVE_TERMINFO 0) foreach(library tinfo terminfo curses ncurses ncursesw) @@ -134,20 +137,6 @@ check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE) check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT) check_symbol_exists(isatty unistd.h HAVE_ISATTY) -check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH) -check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H) -check_symbol_exists(finite ieeefp.h HAVE_FINITE_IN_IEEEFP_H) -check_symbol_exists(isnan cmath HAVE_ISNAN_IN_CMATH) -check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H) -check_symbol_exists(ceilf math.h HAVE_CEILF) -check_symbol_exists(floorf math.h HAVE_FLOORF) -check_symbol_exists(fmodf math.h HAVE_FMODF) -check_symbol_exists(log math.h HAVE_LOG) -check_symbol_exists(log2 math.h HAVE_LOG2) -check_symbol_exists(log10 math.h HAVE_LOG10) -check_symbol_exists(exp math.h HAVE_EXP) -check_symbol_exists(exp2 math.h HAVE_EXP2) -check_symbol_exists(exp10 math.h HAVE_EXP10) check_symbol_exists(futimens sys/stat.h HAVE_FUTIMENS) check_symbol_exists(futimes sys/time.h HAVE_FUTIMES) if( HAVE_SETJMP_H ) @@ -159,7 +148,7 @@ endif() if( HAVE_SYS_UIO_H ) check_symbol_exists(writev sys/uio.h HAVE_WRITEV) endif() -check_symbol_exists(nearbyintf math.h HAVE_NEARBYINTF) +check_symbol_exists(mallctl malloc_np.h HAVE_MALLCTL) check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO) check_symbol_exists(malloc_zone_statistics malloc/malloc.h HAVE_MALLOC_ZONE_STATISTICS) @@ -426,6 +415,24 @@ if( MSVC ) set(SHLIBEXT ".lib") set(stricmp "_stricmp") set(strdup "_strdup") + + # See if the DIA SDK is available and usable. + set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK") + + # Due to a bug in MSVC 2013's installation software, it is possible + # for MSVC 2013 to write the DIA SDK into the Visual Studio 2012 + # install directory. If this happens, the installation is corrupt + # and there's nothing we can do. It happens with enough frequency + # though that we should handle it. We do so by simply checking that + # the DIA SDK folder exists. Should this happen you will need to + # uninstall VS 2012 and then re-install VS 2013. + if (IS_DIRECTORY ${MSVC_DIA_SDK_DIR}) + set(HAVE_DIA_SDK 1) + else() + set(HAVE_DIA_SDK 0) + endif() +else() + set(HAVE_DIA_SDK 0) endif( MSVC ) if( PURE_WINDOWS ) @@ -519,6 +526,14 @@ else() endif() endif() +find_program(GOLD_EXECUTABLE NAMES ${LLVM_DEFAULT_TARGET_TRIPLE}-ld.gold ld.gold ${LLVM_DEFAULT_TARGET_TRIPLE}-ld ld DOC "The gold linker") +set(LLVM_BINUTILS_INCDIR "" CACHE PATH + "PATH to binutils/include containing plugin-api.h for gold plugin.") + +if(APPLE) + find_program(LD64_EXECUTABLE NAMES ld DOC "The ld64 linker") +endif() + include(FindOCaml) include(AddOCaml) if(WIN32) diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index dae8e758c7c..85a09845b2e 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -10,7 +10,7 @@ function(llvm_update_compile_flags name) # LLVM_REQUIRES_EH is an internal flag that individual # targets can use to force EH - if(LLVM_REQUIRES_EH OR LLVM_ENABLE_EH) + if((LLVM_REQUIRES_EH OR LLVM_ENABLE_EH) AND NOT CLANG_CL) if(NOT (LLVM_REQUIRES_RTTI OR LLVM_ENABLE_RTTI)) message(AUTHOR_WARNING "Exception handling requires RTTI. Enabling RTTI for ${name}") set(LLVM_REQUIRES_RTTI ON) @@ -22,6 +22,10 @@ function(llvm_update_compile_flags name) list(APPEND LLVM_COMPILE_DEFINITIONS _HAS_EXCEPTIONS=0) list(APPEND LLVM_COMPILE_FLAGS "/EHs-c-") endif() + if (CLANG_CL) + # FIXME: Remove this once clang-cl supports SEH + list(APPEND LLVM_COMPILE_DEFINITIONS "GTEST_HAS_SEH=0") + endif() endif() # LLVM_REQUIRES_RTTI is an internal flag that individual @@ -87,7 +91,7 @@ function(add_llvm_symbol_exports target_name export_file) set(CAT "cat") set(export_file_nativeslashes ${export_file}) - if(WIN32 AND NOT CYGWIN) + if(WIN32 AND NOT CYGWIN AND NOT MSYS) set(CAT "type") # Convert ${export_file} to native format (backslashes) for "type" # Does not use file(TO_NATIVE_PATH) as it doesn't create a native @@ -104,7 +108,7 @@ function(add_llvm_symbol_exports target_name export_file) COMMENT "Creating export file for ${target_name}") set(export_file_linker_flag "${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}") if(MSVC) - set(export_file_linker_flag "/DEF:${export_file_linker_flag}") + set(export_file_linker_flag "/DEF:\"${export_file_linker_flag}\"") endif() set_property(TARGET ${target_name} APPEND_STRING PROPERTY LINK_FLAGS " ${export_file_linker_flag}") @@ -154,33 +158,38 @@ if(NOT WIN32 AND NOT APPLE) endif() function(add_link_opts target_name) - # Pass -O3 to the linker. This enabled different optimizations on different - # linkers. - if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32)) - set_property(TARGET ${target_name} APPEND_STRING PROPERTY - LINK_FLAGS " -Wl,-O3") - endif() + # Don't use linker optimizations in debug builds since it slows down the + # linker in a context where the optimizations are not important. + if (NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") - if(LLVM_LINKER_IS_GOLD) - # With gold gc-sections is always safe. - set_property(TARGET ${target_name} APPEND_STRING PROPERTY - LINK_FLAGS " -Wl,--gc-sections") - # Note that there is a bug with -Wl,--icf=safe so it is not safe - # to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704. - endif() - - if(NOT LLVM_NO_DEAD_STRIP) - if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - # ld64's implementation of -dead_strip breaks tools that use plugins. + # Pass -O3 to the linker. This enabled different optimizations on different + # linkers. + if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32)) set_property(TARGET ${target_name} APPEND_STRING PROPERTY - LINK_FLAGS " -Wl,-dead_strip") - elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD) - # Object files are compiled with -ffunction-data-sections. - # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks - # tools that use plugins. Always pass --gc-sections once we require - # a newer linker. + LINK_FLAGS " -Wl,-O3") + endif() + + if(LLVM_LINKER_IS_GOLD) + # With gold gc-sections is always safe. set_property(TARGET ${target_name} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--gc-sections") + # Note that there is a bug with -Wl,--icf=safe so it is not safe + # to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704. + endif() + + if(NOT LLVM_NO_DEAD_STRIP) + if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + # ld64's implementation of -dead_strip breaks tools that use plugins. + set_property(TARGET ${target_name} APPEND_STRING PROPERTY + LINK_FLAGS " -Wl,-dead_strip") + elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD) + # Object files are compiled with -ffunction-data-sections. + # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks + # tools that use plugins. Always pass --gc-sections once we require + # a newer linker. + set_property(TARGET ${target_name} APPEND_STRING PROPERTY + LINK_FLAGS " -Wl,--gc-sections") + endif() endif() endif() endfunction(add_link_opts) @@ -334,6 +343,11 @@ function(llvm_add_library name) PREFIX "" ) endif() + + set_target_properties(${name} + PROPERTIES + SOVERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR} + VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}) endif() if(ARG_MODULE OR ARG_SHARED) @@ -393,6 +407,11 @@ function(llvm_add_library name) endfunction() macro(add_llvm_library name) + cmake_parse_arguments(ARG + "SHARED" + "" + "" + ${ARGN}) if( BUILD_SHARED_LIBS ) llvm_add_library(${name} SHARED ${ARGN}) else() @@ -404,11 +423,28 @@ macro(add_llvm_library name) set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON) else() if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO") + if(ARG_SHARED OR BUILD_SHARED_LIBS) + if(WIN32 OR CYGWIN) + set(install_type RUNTIME) + else() + set(install_type LIBRARY) + endif() + else() + set(install_type ARCHIVE) + endif() + install(TARGETS ${name} - EXPORT LLVMExports - RUNTIME DESTINATION bin - LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + EXPORT LLVMExports + ${install_type} DESTINATION lib${LLVM_LIBDIR_SUFFIX} + COMPONENT ${name}) + + if (NOT CMAKE_CONFIGURATION_TYPES) + add_custom_target(install-${name} + DEPENDS ${name} + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=${name} + -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") + endif() endif() set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) endif() @@ -472,6 +508,12 @@ macro(add_llvm_executable name) endif( LLVM_COMMON_DEPENDS ) endmacro(add_llvm_executable name) +function(export_executable_symbols target) + if (NOT MSVC) # MSVC's linker doesn't support exporting all symbols. + set_target_properties(${target} PROPERTIES ENABLE_EXPORTS 1) + endif() +endfunction() + set (LLVM_TOOLCHAIN_TOOLS llvm-ar @@ -489,7 +531,16 @@ macro(add_llvm_tool name) if( LLVM_BUILD_TOOLS ) install(TARGETS ${name} EXPORT LLVMExports - RUNTIME DESTINATION bin) + RUNTIME DESTINATION bin + COMPONENT ${name}) + + if (NOT CMAKE_CONFIGURATION_TYPES) + add_custom_target(install-${name} + DEPENDS ${name} + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=${name} + -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") + endif() endif() endif() if( LLVM_BUILD_TOOLS ) @@ -514,6 +565,18 @@ endmacro(add_llvm_example name) macro(add_llvm_utility name) add_llvm_executable(${name} ${ARGN}) set_target_properties(${name} PROPERTIES FOLDER "Utils") + if( LLVM_INSTALL_UTILS ) + install (TARGETS ${name} + RUNTIME DESTINATION bin + COMPONENT ${name}) + if (NOT CMAKE_CONFIGURATION_TYPES) + add_custom_target(install-${name} + DEPENDS ${name} + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=${name} + -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") + endif() + endif() endmacro(add_llvm_utility name) @@ -584,12 +647,6 @@ function(add_unittest test_suite test_name) set(EXCLUDE_FROM_ALL ON) endif() - # Visual Studio 2012 only supports up to 8 template parameters in - # std::tr1::tuple by default, but gtest requires 10 - if (MSVC AND MSVC_VERSION EQUAL 1700) - list(APPEND LLVM_COMPILE_DEFINITIONS _VARIADIC_MAX=10) - endif () - include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include) if (NOT LLVM_ENABLE_THREADS) list(APPEND LLVM_COMPILE_DEFINITIONS GTEST_HAS_PTHREAD=0) @@ -719,18 +776,20 @@ function(add_lit_target target comment) foreach(param ${ARG_PARAMS}) list(APPEND LIT_COMMAND --param ${param}) endforeach() - if( ARG_DEPENDS ) + if (ARG_DEFAULT_ARGS) add_custom_target(${target} COMMAND ${LIT_COMMAND} ${ARG_DEFAULT_ARGS} COMMENT "${comment}" ${cmake_3_2_USES_TERMINAL} ) - add_dependencies(${target} ${ARG_DEPENDS}) else() add_custom_target(${target} COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, no tools built.") message(STATUS "${target} does nothing.") endif() + if (ARG_DEPENDS) + add_dependencies(${target} ${ARG_DEPENDS}) + endif() # Tests should be excluded from "Build Solution". set_target_properties(${target} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON) @@ -757,3 +816,30 @@ function(add_lit_testsuite target comment) ARGS ${ARG_ARGS} ) endfunction() + +function(add_lit_testsuites project directory) + if (NOT CMAKE_CONFIGURATION_TYPES) + parse_arguments(ARG "PARAMS;DEPENDS;ARGS" "" ${ARGN}) + file(GLOB_RECURSE litCfg ${directory}/lit*.cfg) + set(lit_suites) + foreach(f ${litCfg}) + get_filename_component(dir ${f} DIRECTORY) + set(lit_suites ${lit_suites} ${dir}) + endforeach() + list(REMOVE_DUPLICATES lit_suites) + foreach(dir ${lit_suites}) + string(REPLACE ${directory} "" name_slash ${dir}) + if (name_slash) + string(REPLACE "/" "-" name_slash ${name_slash}) + string(REPLACE "\\" "-" name_dashes ${name_slash}) + string(TOLOWER "${project}${name_dashes}" name_var) + add_lit_target("check-${name_var}" "Running lit suite ${dir}" + ${dir} + PARAMS ${ARG_PARAMS} + DEPENDS ${ARG_DEPENDS} + ARGS ${ARG_ARGS} + ) + endif() + endforeach() + endif() +endfunction() diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake index 2ed48197728..a03788ec9f9 100644 --- a/cmake/modules/CheckAtomic.cmake +++ b/cmake/modules/CheckAtomic.cmake @@ -2,13 +2,18 @@ INCLUDE(CheckCXXSourceCompiles) -check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC) -if (HAVE_LIBATOMIC) - list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic") +check_function_exists(__atomic_fetch_add_4 HAVE___ATOMIC_FETCH_ADD_4) +if( NOT HAVE___ATOMIC_FETCH_ADD_4 ) + check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC) + set(HAVE_LIBATOMIC False) + if( HAVE_LIBATOMIC ) + list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic") + endif() endif() CHECK_CXX_SOURCE_COMPILES(" #ifdef _MSC_VER +#include /* Workaround for PR19898. */ #include #endif int main() { diff --git a/cmake/modules/CrossCompile.cmake b/cmake/modules/CrossCompile.cmake index 400381cda48..76a3078a544 100644 --- a/cmake/modules/CrossCompile.cmake +++ b/cmake/modules/CrossCompile.cmake @@ -1,33 +1,55 @@ -if(NOT DEFINED LLVM_NATIVE_BUILD) - set(LLVM_NATIVE_BUILD "${CMAKE_BINARY_DIR}/native") - message(STATUS "Setting native build dir to ${LLVM_NATIVE_BUILD}") -endif(NOT DEFINED LLVM_NATIVE_BUILD) +function(llvm_create_cross_target_internal target_name toochain buildtype) -add_custom_command(OUTPUT ${LLVM_NATIVE_BUILD} - COMMAND ${CMAKE_COMMAND} -E make_directory ${LLVM_NATIVE_BUILD} - COMMENT "Creating ${LLVM_NATIVE_BUILD}...") + if(NOT DEFINED LLVM_${target_name}_BUILD) + set(LLVM_${target_name}_BUILD "${CMAKE_BINARY_DIR}/${target_name}") + set(LLVM_${target_name}_BUILD ${LLVM_${target_name}_BUILD} PARENT_SCOPE) + message(STATUS "Setting native build dir to " ${LLVM_${target_name}_BUILD}) + endif(NOT DEFINED LLVM_${target_name}_BUILD) -add_custom_command(OUTPUT ${LLVM_NATIVE_BUILD}/CMakeCache.txt - COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" ${CMAKE_SOURCE_DIR} - WORKING_DIRECTORY ${LLVM_NATIVE_BUILD} - DEPENDS ${LLVM_NATIVE_BUILD} - COMMENT "Configuring native LLVM...") + if (EXISTS ${LLVM_MAIN_SRC_DIR}/cmake/platforms/${toolchain}.cmake) + set(CROSS_TOOLCHAIN_FLAGS_${target_name} + -DCMAKE_TOOLCHAIN_FILE=\"${LLVM_MAIN_SRC_DIR}/cmake/platforms/${toolchain}.cmake\" + CACHE STRING "Toolchain file for ${target_name}") + endif() -add_custom_target(ConfigureNativeLLVM DEPENDS ${LLVM_NATIVE_BUILD}/CMakeCache.txt) + add_custom_command(OUTPUT ${LLVM_${target_name}_BUILD} + COMMAND ${CMAKE_COMMAND} -E make_directory ${LLVM_${target_name}_BUILD} + COMMENT "Creating ${LLVM_${target_name}_BUILD}...") -set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${LLVM_NATIVE_BUILD}) + add_custom_command(OUTPUT ${LLVM_${target_name}_BUILD}/CMakeCache.txt + COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" + ${CROSS_TOOLCHAIN_FLAGS_${target_name}} ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${LLVM_${target_name}_BUILD} + DEPENDS ${LLVM_${target_name}_BUILD} + COMMENT "Configuring ${target_name} LLVM...") -if(NOT IS_DIRECTORY ${LLVM_NATIVE_BUILD}) - if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin") - set(HOST_SYSROOT_FLAGS -DCMAKE_OSX_SYSROOT=macosx) - endif(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin") + add_custom_target(CONFIGURE_LLVM_${target_name} + DEPENDS ${LLVM_${target_name}_BUILD}/CMakeCache.txt) - message(STATUS "Configuring native build...") - execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory - ${LLVM_NATIVE_BUILD} ) + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES + ${LLVM_${target_name}_BUILD}) - message(STATUS "Configuring native targets...") - execute_process(COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release - -G "${CMAKE_GENERATOR}" -DLLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD} ${HOST_SYSROOT_FLAGS} ${CMAKE_SOURCE_DIR} - WORKING_DIRECTORY ${LLVM_NATIVE_BUILD} ) -endif(NOT IS_DIRECTORY ${LLVM_NATIVE_BUILD}) + if(NOT IS_DIRECTORY ${LLVM_${target_name}_BUILD}) + + + message(STATUS "Configuring ${target_name} build...") + execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory + ${LLVM_${target_name}_BUILD} ) + + message(STATUS "Configuring ${target_name} targets...") + if (buildtype) + set(build_type_flags "-DCMAKE_BUILD_TYPE=${buildtype}") + endif() + execute_process(COMMAND ${CMAKE_COMMAND} ${build_type_flags} + -G "${CMAKE_GENERATOR}" -DLLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD} + ${CROSS_TOOLCHAIN_FLAGS_${target_name}} ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${LLVM_${target_name}_BUILD} ) + endif(NOT IS_DIRECTORY ${LLVM_${target_name}_BUILD}) + +endfunction() + +function(llvm_create_cross_target target_name sysroot) + llvm_create_cross_target_internal(${target_name} ${sysroot} ${CMAKE_BUILD_TYPE}) +endfunction() + +llvm_create_cross_target_internal(NATIVE "" Release) diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 2ee0dd5b1b7..a9368948e86 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -21,11 +21,16 @@ if(NOT LLVM_FORCE_USE_OLD_TOOLCHAIN) message(FATAL_ERROR "Host Clang version must be at least 3.1!") endif() - # Also test that we aren't using too old of a version of libstdc++ with the - # Clang compiler. This is tricky as there is no real way to check the - # version of libstdc++ directly. Instead we test for a known bug in - # libstdc++4.6 that is fixed in libstdc++4.7. - if(NOT LLVM_ENABLE_LIBCXX) + if (CMAKE_CXX_SIMULATE_ID MATCHES "MSVC") + if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS 18.0) + message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=18.0") + endif() + set(CLANG_CL 1) + elseif(NOT LLVM_ENABLE_LIBCXX) + # Otherwise, test that we aren't using too old of a version of libstdc++ + # with the Clang compiler. This is tricky as there is no real way to + # check the version of libstdc++ directly. Instead we test for a known + # bug in libstdc++4.6 that is fixed in libstdc++4.7. set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS}) set(OLD_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}) set(CMAKE_REQUIRED_FLAGS "-std=c++0x") @@ -41,8 +46,11 @@ int main() { return (float)x; }" set(CMAKE_REQUIRED_LIBRARIES ${OLD_CMAKE_REQUIRED_LIBRARIES}) endif() elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 17.0) - message(FATAL_ERROR "Host Visual Studio must be at least 2012 (MSVC 17.0)") + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0) + message(FATAL_ERROR "Host Visual Studio must be at least 2013") + elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0.31101) + message(WARNING "Host Visual Studio should at least be 2013 Update 4 (MSVC 18.0.31101)" + " due to miscompiles from earlier versions") endif() endif() endif() @@ -70,6 +78,23 @@ if( LLVM_ENABLE_ASSERTIONS ) endif() endif() +string(TOUPPER "${LLVM_ABI_BREAKING_CHECKS}" uppercase_LLVM_ABI_BREAKING_CHECKS) + +if( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "WITH_ASSERTS" ) + if( LLVM_ENABLE_ASSERTIONS ) + set( LLVM_ENABLE_ABI_BREAKING_CHECKS 1 ) + endif() +elseif( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "FORCE_ON" ) + set( LLVM_ENABLE_ABI_BREAKING_CHECKS 1 ) +elseif( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "FORCE_OFF" ) + # We don't need to do anything special to turn off ABI breaking checks. +elseif( NOT DEFINED LLVM_ABI_BREAKING_CHECKS ) + # Treat LLVM_ABI_BREAKING_CHECKS like "FORCE_OFF" when it has not been + # defined. +else() + message(FATAL_ERROR "Unknown value for LLVM_ABI_BREAKING_CHECKS: \"${LLVM_ABI_BREAKING_CHECKS}\"!") +endif() + if(WIN32) set(LLVM_HAVE_LINK_VERSION_SCRIPT 0) if(CYGWIN) @@ -104,6 +129,15 @@ if(APPLE) set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress") endif() +# Pass -Wl,-z,defs. This makes sure all symbols are defined. Otherwise a DSO +# build might work on ELF but fail on MachO/COFF. +if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR + ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") AND + NOT LLVM_USE_SANITIZER) + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs") +endif() + + function(append value) foreach(variable ${ARGN}) set(${variable} "${${variable}} ${value}" PARENT_SCOPE) @@ -236,7 +270,9 @@ if( MSVC ) -D_CRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS + ) + set(msvc_warning_flags # Disabled warnings. -wd4146 # Suppress 'unary minus operator applied to unsigned type, result still unsigned' -wd4180 # Suppress 'qualifier applied to function type has no meaning; ignored' @@ -255,7 +291,31 @@ if( MSVC ) -wd4624 # Suppress ''derived class' : destructor could not be generated because a base class destructor is inaccessible' -wd4722 # Suppress 'function' : destructor never returns, potential memory leak -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)' - + -wd4100 # Suppress 'unreferenced formal parameter' + -wd4127 # Suppress 'conditional expression is constant' + -wd4512 # Suppress 'assignment operator could not be generated' + -wd4505 # Suppress 'unreferenced local function has been removed' + -wd4610 # Suppress ' can never be instantiated' + -wd4510 # Suppress 'default constructor could not be generated' + -wd4702 # Suppress 'unreachable code' + -wd4245 # Suppress 'signed/unsigned mismatch' + -wd4706 # Suppress 'assignment within conditional expression' + -wd4310 # Suppress 'cast truncates constant value' + -wd4701 # Suppress 'potentially uninitialized local variable' + -wd4703 # Suppress 'potentially uninitialized local pointer variable' + -wd4389 # Suppress 'signed/unsigned mismatch' + -wd4611 # Suppress 'interaction between '_setjmp' and C++ object destruction is non-portable' + -wd4805 # Suppress 'unsafe mix of type and type in operation' + -wd4204 # Suppress 'nonstandard extension used : non-constant aggregate initializer' + + # Idelly, we'd like this warning to be enabled, but MSVC 2013 doesn't + # support the 'aligned' attribute in the way that clang sources requires (for + # any code that uses the LLVM_ALIGNAS marco), so this is must be disabled to + # avoid unwanted alignment warnings. + # When we switch to requiring a version of MSVC that supports the 'alignas' + # specifier (MSVC 2015?) this warning can be re-enabled. + -wd4324 # Suppress 'structure was padded due to __declspec(align())' + # Promoted warnings. -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning. @@ -265,14 +325,31 @@ if( MSVC ) # Enable warnings if (LLVM_ENABLE_WARNINGS) - add_llvm_definitions( /W4 ) + append("/W4" msvc_warning_flags) + # CMake appends /W3 by default, and having /W3 followed by /W4 will result in + # cl : Command line warning D9025 : overriding '/W3' with '/W4'. Since this is + # a command line warning and not a compiler warning, it cannot be suppressed except + # by fixing the command line. + string(REGEX REPLACE " /W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + string(REGEX REPLACE " /W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + if (LLVM_ENABLE_PEDANTIC) # No MSVC equivalent available endif (LLVM_ENABLE_PEDANTIC) endif (LLVM_ENABLE_WARNINGS) if (LLVM_ENABLE_WERROR) - add_llvm_definitions( /WX ) + append("/WX" msvc_warning_flags) endif (LLVM_ENABLE_WERROR) + + foreach(flag ${msvc_warning_flags}) + append("${flag}" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + endforeach(flag) + + # Disable sized deallocation if the flag is supported. MSVC fails to compile + # the operator new overload in User otherwise. + check_c_compiler_flag("/WX /Zc:sizedDealloc-" SUPPORTS_SIZED_DEALLOC) + append_if(SUPPORTS_SIZED_DEALLOC "/Zc:sizedDealloc-" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE ) if (LLVM_ENABLE_WARNINGS) append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) @@ -390,17 +467,25 @@ if(LLVM_USE_SANITIZER) endif() elseif (LLVM_USE_SANITIZER STREQUAL "Undefined") append_common_sanitizer_flags() - append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover" + append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) elseif (LLVM_USE_SANITIZER STREQUAL "Thread") append_common_sanitizer_flags() append("-fsanitize=thread" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + elseif (LLVM_USE_SANITIZER STREQUAL "Address;Undefined" OR + LLVM_USE_SANITIZER STREQUAL "Undefined;Address") + append_common_sanitizer_flags() + append("-fsanitize=address,undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all" + CMAKE_C_FLAGS CMAKE_CXX_FLAGS) else() message(WARNING "Unsupported value of LLVM_USE_SANITIZER: ${LLVM_USE_SANITIZER}") endif() else() message(WARNING "LLVM_USE_SANITIZER is not supported on this platform.") endif() + if (LLVM_USE_SANITIZE_COVERAGE) + append("-fsanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + endif() endif() # Turn on -gsplit-dwarf if requested @@ -424,7 +509,8 @@ endif() # But MinSizeRel seems to add that automatically, so maybe disable these # flags instead if LLVM_NO_DEAD_STRIP is set. if(NOT CYGWIN AND NOT WIN32) - if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND + NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") check_c_compiler_flag("-Werror -fno-function-sections" C_SUPPORTS_FNO_FUNCTION_SECTIONS) if (C_SUPPORTS_FNO_FUNCTION_SECTIONS) # Don't add -ffunction-section if it can be disabled with -fno-function-sections. diff --git a/cmake/modules/HandleLLVMStdlib.cmake b/cmake/modules/HandleLLVMStdlib.cmake index 47bb6cddc8e..66ad078fb66 100644 --- a/cmake/modules/HandleLLVMStdlib.cmake +++ b/cmake/modules/HandleLLVMStdlib.cmake @@ -12,22 +12,28 @@ if(NOT DEFINED LLVM_STDLIB_HANDLED) set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON) endif() - function(append_if condition value) - if(${condition}) - foreach(variable ${ARGN}) - set(${variable} "${${variable}} ${value}" PARENT_SCOPE) - endforeach(variable) - endif() + function(append value) + foreach(variable ${ARGN}) + set(${variable} "${${variable}} ${value}" PARENT_SCOPE) + endforeach(variable) endfunction() include(CheckCXXCompilerFlag) if(LLVM_ENABLE_LIBCXX) if(LLVM_COMPILER_IS_GCC_COMPATIBLE) check_cxx_compiler_flag("-stdlib=libc++" CXX_SUPPORTS_STDLIB) - append_if(CXX_SUPPORTS_STDLIB "-stdlib=libc++" CMAKE_CXX_FLAGS) - append_if(CXX_SUPPORTS_STDLIB "-stdlib=libc++" CMAKE_EXE_LINKER_FLAGS) - append_if(CXX_SUPPORTS_STDLIB "-stdlib=libc++" CMAKE_SHARED_LINKER_FLAGS) - append_if(CXX_SUPPORTS_STDLIB "-stdlib=libc++" CMAKE_MODULE_LINKER_FLAGS) + if(CXX_SUPPORTS_STDLIB) + append("-stdlib=libc++" + CMAKE_CXX_FLAGS CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS + CMAKE_MODULE_LINKER_FLAGS) + if(LLVM_ENABLE_LIBCXXABI) + append("-lc++abi" + CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS + CMAKE_MODULE_LINKER_FLAGS) + endif() + else() + message(WARNING "Can't specify libc++ with '-stdlib='") + endif() else() message(WARNING "Not sure how to specify libc++ for this compiler") endif() diff --git a/cmake/modules/LLVM-Config.cmake b/cmake/modules/LLVM-Config.cmake index b24c12989fa..22ac7145191 100755 --- a/cmake/modules/LLVM-Config.cmake +++ b/cmake/modules/LLVM-Config.cmake @@ -41,9 +41,9 @@ function(explicit_llvm_config executable) llvm_map_components_to_libnames(LIBRARIES ${link_components}) get_target_property(t ${executable} TYPE) if("x${t}" STREQUAL "xSTATIC_LIBRARY") - target_link_libraries(${executable} ${cmake_2_8_12_INTERFACE} ${LIBRARIES}) + target_link_libraries(${executable} INTERFACE ${LIBRARIES}) elseif("x${t}" STREQUAL "xSHARED_LIBRARY" OR "x${t}" STREQUAL "xMODULE_LIBRARY") - target_link_libraries(${executable} ${cmake_2_8_12_PRIVATE} ${LIBRARIES}) + target_link_libraries(${executable} PRIVATE ${LIBRARIES}) else() # Use plain form for legacy user. target_link_libraries(${executable} ${LIBRARIES}) @@ -132,6 +132,41 @@ function(llvm_map_components_to_libnames out_libs) # already processed elseif( c STREQUAL "all" ) list(APPEND expanded_components ${LLVM_AVAILABLE_LIBS}) + elseif( c STREQUAL "AllTargetsAsmPrinters" ) + # Link all the asm printers from all the targets + foreach(t ${LLVM_TARGETS_TO_BUILD}) + if( TARGET LLVM${t}AsmPrinter ) + list(APPEND expanded_components "LLVM${t}AsmPrinter") + endif() + endforeach(t) + elseif( c STREQUAL "AllTargetsAsmParsers" ) + # Link all the asm parsers from all the targets + foreach(t ${LLVM_TARGETS_TO_BUILD}) + if( TARGET LLVM${t}AsmParser ) + list(APPEND expanded_components "LLVM${t}AsmParser") + endif() + endforeach(t) + elseif( c STREQUAL "AllTargetsDescs" ) + # Link all the descs from all the targets + foreach(t ${LLVM_TARGETS_TO_BUILD}) + if( TARGET LLVM${t}Desc ) + list(APPEND expanded_components "LLVM${t}Desc") + endif() + endforeach(t) + elseif( c STREQUAL "AllTargetsDisassemblers" ) + # Link all the disassemblers from all the targets + foreach(t ${LLVM_TARGETS_TO_BUILD}) + if( TARGET LLVM${t}Disassembler ) + list(APPEND expanded_components "LLVM${t}Disassembler") + endif() + endforeach(t) + elseif( c STREQUAL "AllTargetsInfos" ) + # Link all the infos from all the targets + foreach(t ${LLVM_TARGETS_TO_BUILD}) + if( TARGET LLVM${t}Info ) + list(APPEND expanded_components "LLVM${t}Info") + endif() + endforeach(t) else( NOT idx LESS 0 ) # Canonize the component name: string(TOUPPER "${c}" capitalized) diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in index 9a9cd854427..5b7789dbc9a 100644 --- a/cmake/modules/LLVMConfig.cmake.in +++ b/cmake/modules/LLVMConfig.cmake.in @@ -21,6 +21,8 @@ set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@) set(TARGET_TRIPLE "@TARGET_TRIPLE@") +set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@) + set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@) set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@) diff --git a/cmake/modules/LLVMProcessSources.cmake b/cmake/modules/LLVMProcessSources.cmake index 64ebce805eb..ae1921b5bc0 100644 --- a/cmake/modules/LLVMProcessSources.cmake +++ b/cmake/modules/LLVMProcessSources.cmake @@ -28,26 +28,39 @@ macro(add_td_sources srcs) endif() endmacro(add_td_sources) +function(add_header_files_for_glob hdrs_out glob) + file(GLOB hds ${glob}) + set(${hdrs_out} ${hds} PARENT_SCOPE) +endfunction(add_header_files_for_glob) -macro(add_header_files srcs) - file(GLOB hds *.h) - if( hds ) - set_source_files_properties(${hds} PROPERTIES HEADER_FILE_ONLY ON) - list(APPEND ${srcs} ${hds}) - endif() -endmacro(add_header_files) +function(find_all_header_files hdrs_out additional_headerdirs) + add_header_files_for_glob(hds *.h) + list(APPEND all_headers ${hds}) + + foreach(additional_dir ${additional_headerdirs}) + add_header_files_for_glob(hds "${additional_dir}/*.h") + list(APPEND all_headers ${hds}) + add_header_files_for_glob(hds "${additional_dir}/*.inc") + list(APPEND all_headers ${hds}) + endforeach(additional_dir) + + set( ${hdrs_out} ${all_headers} PARENT_SCOPE ) +endfunction(find_all_header_files) function(llvm_process_sources OUT_VAR) - cmake_parse_arguments(ARG "" "" "ADDITIONAL_HEADERS" ${ARGN}) + cmake_parse_arguments(ARG "" "" "ADDITIONAL_HEADERS;ADDITIONAL_HEADER_DIRS" ${ARGN}) set(sources ${ARG_UNPARSED_ARGUMENTS}) llvm_check_source_file_list( ${sources} ) if( MSVC_IDE OR XCODE ) # This adds .td and .h files to the Visual Studio solution: add_td_sources(sources) - add_header_files(sources) + find_all_header_files(hdrs "${ARG_ADDITIONAL_HEADER_DIRS}") + if (hdrs) + set_source_files_properties(${hdrs} PROPERTIES HEADER_FILE_ONLY ON) + endif() set_source_files_properties(${ARG_ADDITIONAL_HEADERS} PROPERTIES HEADER_FILE_ONLY ON) - list(APPEND sources ${ARG_ADDITIONAL_HEADERS}) + list(APPEND sources ${ARG_ADDITIONAL_HEADERS} ${hdrs}) endif() set( ${OUT_VAR} ${sources} PARENT_SCOPE ) diff --git a/cmake/modules/Makefile b/cmake/modules/Makefile index e38f5a64258..97ee7d3df4b 100644 --- a/cmake/modules/Makefile +++ b/cmake/modules/Makefile @@ -21,6 +21,12 @@ else LLVM_ENABLE_ASSERTIONS := 1 endif +ifeq ($(ENABLE_ABI_BREAKING_CHECKS),1) + LLVM_ABI_BREAKING_CHECKS := FORCE_ON +else + LLVM_ABI_BREAKING_CHECKS := FORCE_OFF +endif + ifeq ($(REQUIRES_EH),1) LLVM_ENABLE_EH := 1 else @@ -63,6 +69,7 @@ $(PROJ_OBJ_DIR)/LLVMConfig.cmake: LLVMConfig.cmake.in Makefile $(LLVMBuildCMakeF -e 's/@LLVM_TARGETS_TO_BUILD@/'"$(TARGETS_TO_BUILD)"'/' \ -e 's/@LLVM_TARGETS_WITH_JIT@/'"$(TARGETS_WITH_JIT)"'/' \ -e 's/@TARGET_TRIPLE@/'"$(TARGET_TRIPLE)"'/' \ + -e 's/@LLVM_ABI_BREAKING_CHECKS@/'"$(LLVM_ABI_BREAKING_CHECKS)"'/' \ -e 's/@LLVM_ENABLE_ASSERTIONS@/'"$(LLVM_ENABLE_ASSERTIONS)"'/' \ -e 's/@LLVM_ENABLE_EH@/'"$(LLVM_ENABLE_EH)"'/' \ -e 's/@LLVM_ENABLE_RTTI@/'"$(LLVM_ENABLE_RTTI)"'/' \ diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake index 67031a5d706..97e272b04a5 100644 --- a/cmake/modules/TableGen.cmake +++ b/cmake/modules/TableGen.cmake @@ -32,7 +32,7 @@ function(tablegen project ofn) # The file in LLVM_TARGET_DEFINITIONS may be not in the current # directory and local_tds may not contain it, so we must # explicitly list it here: - DEPENDS ${${project}_TABLEGEN_EXE} ${local_tds} ${global_tds} + DEPENDS ${${project}_TABLEGEN_TARGET} ${local_tds} ${global_tds} ${LLVM_TARGET_DEFINITIONS_ABSOLUTE} COMMENT "Building ${ofn}..." ) @@ -90,21 +90,20 @@ macro(add_tablegen target project) # Effective tblgen executable to be used: set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN} PARENT_SCOPE) + set(${project}_TABLEGEN_TARGET ${${project}_TABLEGEN} PARENT_SCOPE) - if(CMAKE_CROSSCOMPILING) + if(LLVM_USE_HOST_TOOLS) if( ${${project}_TABLEGEN} STREQUAL "${target}" ) set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/bin/${target}") set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE) add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE} - COMMAND ${CMAKE_COMMAND} --build . --target ${target} --config $ - DEPENDS ${LLVM_NATIVE_BUILD}/CMakeCache.txt + COMMAND ${CMAKE_COMMAND} --build . --target ${target} --config Release + DEPENDS CONFIGURE_LLVM_NATIVE ${target} WORKING_DIRECTORY ${LLVM_NATIVE_BUILD} COMMENT "Building native TableGen...") - add_custom_target(${project}NativeTableGen DEPENDS ${${project}_TABLEGEN_EXE}) - add_dependencies(${project}NativeTableGen ConfigureNativeLLVM) - - add_dependencies(${target} ${project}NativeTableGen) + add_custom_target(${project}-tablegen-host DEPENDS ${${project}_TABLEGEN_EXE}) + set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE) endif() endif() diff --git a/cmake/platforms/iOS.cmake b/cmake/platforms/iOS.cmake index 49736432bdf..49140590ab2 100644 --- a/cmake/platforms/iOS.cmake +++ b/cmake/platforms/iOS.cmake @@ -15,11 +15,25 @@ SET(CMAKE_C_COMPILER_WORKS True) SET(DARWIN_TARGET_OS_NAME ios) IF(NOT DEFINED ENV{SDKROOT}) - MESSAGE(FATAL_ERROR "SDKROOT env var must be set: " $ENV{SDKROOT}) + execute_process(COMMAND xcodebuild -version -sdk iphoneos Path + OUTPUT_VARIABLE SDKROOT + ERROR_QUIET + OUTPUT_STRIP_TRAILING_WHITESPACE) +ELSE() + execute_process(COMMAND xcodebuild -version -sdk $ENV{SDKROOT} Path + OUTPUT_VARIABLE SDKROOT + ERROR_QUIET + OUTPUT_STRIP_TRAILING_WHITESPACE) ENDIF() +IF(NOT EXISTS ${SDKROOT}) + MESSAGE(FATAL_ERROR "SDKROOT could not be detected!") +ENDIF() + +set(CMAKE_OSX_SYSROOT ${SDKROOT}) + IF(NOT CMAKE_C_COMPILER) - execute_process(COMMAND xcrun -sdk iphoneos -find clang + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find clang OUTPUT_VARIABLE CMAKE_C_COMPILER ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -27,21 +41,39 @@ IF(NOT CMAKE_C_COMPILER) ENDIF() IF(NOT CMAKE_CXX_COMPILER) - execute_process(COMMAND xcrun -sdk iphoneos -find clang++ + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find clang++ OUTPUT_VARIABLE CMAKE_CXX_COMPILER ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) message(STATUS "Using c compiler ${CMAKE_CXX_COMPILER}") ENDIF() +IF(NOT CMAKE_AR) + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find ar + OUTPUT_VARIABLE CMAKE_AR_val + ERROR_QUIET + OUTPUT_STRIP_TRAILING_WHITESPACE) + SET(CMAKE_AR ${CMAKE_AR_val} CACHE FILEPATH "Archiver") + message(STATUS "Using ar ${CMAKE_AR}") +ENDIF() + +IF(NOT CMAKE_RANLIB) + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find ranlib + OUTPUT_VARIABLE CMAKE_RANLIB_val + ERROR_QUIET + OUTPUT_STRIP_TRAILING_WHITESPACE) + SET(CMAKE_RANLIB ${CMAKE_RANLIB_val} CACHE FILEPATH "Ranlib") + message(STATUS "Using ranlib ${CMAKE_RANLIB}") +ENDIF() + IF (NOT DEFINED IOS_MIN_TARGET) -execute_process(COMMAND xcodebuild -sdk iphoneos -version SDKVersion +execute_process(COMMAND xcodebuild -sdk ${SDKROOT} -version SDKVersion OUTPUT_VARIABLE IOS_MIN_TARGET ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) ENDIF() -SET(IOS_COMMON_FLAGS "-isysroot $ENV{SDKROOT} -mios-version-min=${IOS_MIN_TARGET}") +SET(IOS_COMMON_FLAGS "-mios-version-min=${IOS_MIN_TARGET}") SET(CMAKE_C_FLAGS "${IOS_COMMON_FLAGS}" CACHE STRING "toolchain_cflags" FORCE) SET(CMAKE_CXX_FLAGS "${IOS_COMMON_FLAGS}" CACHE STRING "toolchain_cxxflags" FORCE) SET(CMAKE_LINK_FLAGS "${IOS_COMMON_FLAGS}" CACHE STRING "toolchain_linkflags" FORCE) diff --git a/configure b/configure index ea5bf52101b..37f3d7d95ae 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.60 for LLVM 3.6.1. +# Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn. # # Report bugs to . # @@ -9,7 +9,7 @@ # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # -# Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign. +# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## @@ -561,8 +561,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='LLVM' PACKAGE_TARNAME='llvm' -PACKAGE_VERSION='3.6.1' -PACKAGE_STRING='LLVM 3.6.1' +PACKAGE_VERSION='3.7.0svn' +PACKAGE_STRING='LLVM 3.7.0svn' PACKAGE_BUGREPORT='http://llvm.org/bugs/' ac_unique_file="lib/IR/Module.cpp" @@ -697,6 +697,7 @@ DISABLE_ASSERTIONS ENABLE_WERROR ENABLE_EXPENSIVE_CHECKS EXPENSIVE_CHECKS +ENABLE_ABI_BREAKING_CHECKS DEBUG_RUNTIME DEBUG_SYMBOLS KEEP_SYMBOLS @@ -705,6 +706,24 @@ TARGET_HAS_JIT TARGETS_WITH_JIT ENABLE_DOCS ENABLE_DOXYGEN +enable_searchengine +enable_external_search +enable_server_based_search +searchengine_url +extra_search_mappings +QHELPGENERATOR +llvm_doxygen_generate_qhp +llvm_doxygen_qch_filename +llvm_doxygen_qhp_namespace +llvm_doxygen_qhelpgenerator_path +llvm_doxygen_qhp_cust_filter_name +llvm_doxygen_qhp_cust_filter_attrs +clang_doxygen_generate_qhp +clang_doxygen_qch_filename +clang_doxygen_qhp_namespace +clang_doxygen_qhelpgenerator_path +clang_doxygen_qhp_cust_filter_name +clang_doxygen_qhp_cust_filter_attrs LLVM_ENABLE_THREADS ENABLE_PTHREADS LLVM_ENABLE_ZLIB @@ -1314,7 +1333,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures LLVM 3.6.1 to adapt to many kinds of systems. +\`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1380,7 +1399,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of LLVM 3.6.1:";; + short | recursive ) echo "Configuration of LLVM 3.7.0svn:";; esac cat <<\_ACEOF @@ -1408,6 +1427,9 @@ Optional Features: --enable-expensive-checks Compile with expensive debug checks enabled (default is NO) + --enable-abi-breaking-checks + Compile with abi-breaking asserts support (default + is with-asserts) --enable-debug-runtime Build runtime libs with debug symbols (default is NO) --enable-debug-symbols Build compiler with debug symbols (default is NO if @@ -1416,6 +1438,11 @@ Optional Features: --enable-jit Enable Just In Time Compiling (default is YES) --enable-docs Build documents (default is YES) --enable-doxygen Build doxygen documentation (default is NO) + --enable-doxygen-search Enable doxygen search support (default is NO) + --enable-doxygen-external-search + Enable doxygen exteranl search (default is NO) + --enable-doxygen-qt-help + Build Qt help files (default is NO) --enable-threads Use threads if available (default is YES) --enable-pthreads Use pthreads if available (default is YES) --enable-zlib Use zlib for compression/decompression if available @@ -1450,6 +1477,10 @@ Optional Features: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-doxygen-search-engine-url + Specify the external search engine for doxygen + --with-doxygen-search-mappings + Specify the extra search mapping for doxygen --with-optimize-option Select the compiler options to use for optimized builds --with-extra-options Specify additional options to compile LLVM with @@ -1550,7 +1581,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -LLVM configure 3.6.1 +LLVM configure 3.7.0svn generated by GNU Autoconf 2.60 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1558,7 +1589,7 @@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. -Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign. +Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. _ACEOF exit fi @@ -1566,7 +1597,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by LLVM $as_me 3.6.1, which was +It was created by LLVM $as_me 3.7.0svn, which was generated by GNU Autoconf 2.60. Invocation command line was $ $0 $@ @@ -1921,9 +1952,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu LLVM_VERSION_MAJOR=3 -LLVM_VERSION_MINOR=6 -LLVM_VERSION_PATCH=1 -LLVM_VERSION_SUFFIX= +LLVM_VERSION_MINOR=7 +LLVM_VERSION_PATCH=0 +LLVM_VERSION_SUFFIX=svn cat >>confdefs.h <<_ACEOF @@ -1951,7 +1982,7 @@ _ACEOF -LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign." +LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign." @@ -1999,6 +2030,27 @@ echo "$as_me: error: Already configured in ${srcdir}" >&2;} fi fi +if test ${srcdir} == "." ; then + { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5 +echo "$as_me: WARNING: **************************************************************************************" >&2;} + { echo "$as_me:$LINENO: WARNING: * *" >&5 +echo "$as_me: WARNING: * *" >&2;} + { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5 +echo "$as_me: WARNING: * WARNING *" >&2;} + { echo "$as_me:$LINENO: WARNING: * *" >&5 +echo "$as_me: WARNING: * *" >&2;} + { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5 +echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;} + { echo "$as_me:$LINENO: WARNING: * *" >&5 +echo "$as_me: WARNING: * *" >&2;} + { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5 +echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;} + { echo "$as_me:$LINENO: WARNING: * *" >&5 +echo "$as_me: WARNING: * *" >&2;} + { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5 +echo "$as_me: WARNING: **************************************************************************************" >&2;} +fi + : ${CFLAGS=} : ${CXXFLAGS=} @@ -3574,8 +3626,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } - { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 -echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} + { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5 +echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;} { (exit 1); exit 1; }; } fi @@ -3966,6 +4018,11 @@ else llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="DragonFly" llvm_cv_platform_type="Unix" ;; + *-*-bitrig*) + llvm_cv_link_all_option="-Wl,--whole-archive" + llvm_cv_no_link_all_option="-Wl,--no-whole-archive" + llvm_cv_os_type="Bitrig" + llvm_cv_platform_type="Unix" ;; *-*-hpux*) llvm_cv_link_all_option="-Wl,--whole-archive" llvm_cv_no_link_all_option="-Wl,--no-whole-archive" @@ -4052,6 +4109,8 @@ else llvm_cv_target_os_type="NetBSD" ;; *-*-dragonfly*) llvm_cv_target_os_type="DragonFly" ;; + *-*-bitrig*) + llvm_cv_target_os_type="Bitrig" ;; *-*-hpux*) llvm_cv_target_os_type="HP-UX" ;; *-*-interix*) @@ -4074,6 +4133,8 @@ else llvm_cv_target_os_type="NativeClient" ;; *-unknown-eabi*) llvm_cv_target_os_type="Freestanding" ;; + *-*-ps4) + llvm_cv_target_os_type="PS4" ;; *) llvm_cv_target_os_type="Unknown" ;; esac @@ -4944,9 +5005,11 @@ fi if test ${enableval} = "yes" ; then DISABLE_ASSERTIONS= + assertions_enabled="yes" else DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 + assertions_enabled="no" fi # Check whether --enable-werror was given. @@ -4987,6 +5050,44 @@ else fi +# Check whether --enable-abi-breaking-checks was given. +if test "${enable_abi_breaking_checks+set}" = set; then + enableval=$enable_abi_breaking_checks; +else + enableval="with-asserts" +fi + +case "$enableval" in + with-asserts) if test ${assertions_enabled} = "yes" ; then + +cat >>confdefs.h <<\_ACEOF +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 +_ACEOF + + ENABLE_ABI_BREAKING_CHECKS=1 + + else + ENABLE_ABI_BREAKING_CHECKS=0 + + fi ;; + yes) + +cat >>confdefs.h <<\_ACEOF +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 +_ACEOF + + ENABLE_ABI_BREAKING_CHECKS=1 + + ;; + no) + ENABLE_ABI_BREAKING_CHECKS=0 + + ;; + *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5 +echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;} + { (exit 1); exit 1; }; } +esac + # Check whether --enable-debug-runtime was given. if test "${enable_debug_runtime+set}" = set; then enableval=$enable_debug_runtime; @@ -5105,15 +5206,231 @@ fi case "$enableval" in yes) ENABLE_DOXYGEN=1 ;; - no) ENABLE_DOXYGEN=0 - ;; - default) ENABLE_DOXYGEN=0 + no|default) ENABLE_DOXYGEN=0 ;; *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} { (exit 1); exit 1; }; } ;; esac +# Check whether --enable-doxygen-search was given. +if test "${enable_doxygen_search+set}" = set; then + enableval=$enable_doxygen_search; +else + enableval=default +fi + +ENABLE_DOXYGEN_SEARCH="$enableval" + +case "$enableval" in + yes|no|default) ;; + *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5 +echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;} + { (exit 1); exit 1; }; } ;; +esac + +# Check whether --enable-doxygen-external-search was given. +if test "${enable_doxygen_external_search+set}" = set; then + enableval=$enable_doxygen_external_search; +else + enableval=default +fi + +ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval" + +case "$enableval" in + yes) + case "$ENABLE_DOXYGEN_SEARCH" in + yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;; + no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5 +echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;} + { (exit 1); exit 1; }; } ;; + esac + ;; + no|default) ;; + *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5 +echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;} + { (exit 1); exit 1; }; } ;; +esac + + +# Check whether --with-doxygen-search-engine-url was given. +if test "${with_doxygen_search_engine_url+set}" = set; then + withval=$with_doxygen_search_engine_url; +fi + +WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval" + + +# Check whether --with-doxygen-search-mappings was given. +if test "${with_doxygen_search_mappings+set}" = set; then + withval=$with_doxygen_search_mappings; +fi + +WITH_DOXYGEN_SEARCH_MAPPINGS="$withval" + +case "$ENABLE_DOXYGEN_SEARCH" in + yes) + if test "$ENABLE_DOXYGEN" = "0" ; then + { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5 +echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;} + { (exit 1); exit 1; }; } + fi + + enable_searchengine=YES + + + case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in + yes) + enable_external_search=YES + + enable_server_based_search=YES + + searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL" + + extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS" + + ;; + + no|default) + enable_external_search=NO + + enable_server_based_search=NO + + + + ;; + esac + ;; + + no|default) + enable_searchengine=NO + + + enable_server_based_search=NO + + enable_external_search=NO + + + ;; + + *) + { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5 +echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;} + { (exit 1); exit 1; }; } + ;; +esac + +# Check whether --enable-doxygen-qt-help was given. +if test "${enable_doxygen_qt_help+set}" = set; then + enableval=$enable_doxygen_qt_help; +else + enableval=default +fi + +case "$enableval" in + yes) + if test "$ENABLE_DOXYGEN" = "0" ; then + { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5 +echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;} + { (exit 1); exit 1; }; } + fi + + # Extract the first word of "qhelpgenerator", so it can be a program name with args. +set dummy qhelpgenerator; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $QHELPGENERATOR in + [\\/]* | ?:[\\/]*) + ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator" + ;; +esac +fi +QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR +if test -n "$QHELPGENERATOR"; then + { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5 +echo "${ECHO_T}$QHELPGENERATOR" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + + llvm_doxygen_generate_qhp=YES + + llvm_doxygen_qch_filename=org.llvm.qch + + llvm_doxygen_qhp_namespace=org.llvm + + llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR" + + llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING" + + llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION" + + + clang_doxygen_generate_qhp=YES + + clang_doxygen_qch_filename=org.llvm.clang.qch + + clang_doxygen_qhp_namespace=org.llvm.clang + + clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR" + + clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" + + clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" + + ;; + + no|default) + llvm_doxygen_generate_qhp=NO + + + + + + + + clang_doxygen_generate_qhp=NO + + + + + clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" + + clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" + + ;; + + *) + { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5 +echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;} + { (exit 1); exit 1; }; } ;; +esac + # Check whether --enable-threads was given. if test "${enable_threads+set}" = set; then enableval=$enable_threads; @@ -9908,7 +10225,7 @@ if test "$ac_res" != no; then else echo "Error! You need to have libopagent around." - exit -1 + exit 1 fi @@ -10071,7 +10388,7 @@ if test $ac_cv_header_opagent_h = yes; then else echo "Error! You need to have opagent.h around." - exit -1 + exit 1 fi @@ -13690,239 +14007,7 @@ fi - - - - - -for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - - - - -for ac_func in powf fmodf strtof round -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - - - - - -for ac_func in log log2 log10 exp exp2 +for ac_func in backtrace getcwd do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -16793,642 +16878,6 @@ _ACEOF fi - - - { echo "$as_me:$LINENO: checking for isnan in " >&5 -echo $ECHO_N "checking for isnan in ... $ECHO_C" >&6; } -if test "${ac_cv_func_isnan_in_math_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; isnan(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_isnan_in_math_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_isnan_in_math_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 -echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } - - -if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN_IN_MATH_H 1 -_ACEOF - -fi - - - { echo "$as_me:$LINENO: checking for isnan in " >&5 -echo $ECHO_N "checking for isnan in ... $ECHO_C" >&6; } -if test "${ac_cv_func_isnan_in_cmath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; isnan(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_isnan_in_cmath=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_isnan_in_cmath=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 -echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } - -if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN_IN_CMATH 1 -_ACEOF - -fi - - - { echo "$as_me:$LINENO: checking for std::isnan in " >&5 -echo $ECHO_N "checking for std::isnan in ... $ECHO_C" >&6; } -if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; std::isnan(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_std_isnan_in_cmath=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_std_isnan_in_cmath=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 -echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } - -if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_STD_ISNAN_IN_CMATH 1 -_ACEOF - -fi - - - - - { echo "$as_me:$LINENO: checking for isinf in " >&5 -echo $ECHO_N "checking for isinf in ... $ECHO_C" >&6; } -if test "${ac_cv_func_isinf_in_math_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; isinf(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_isinf_in_math_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_isinf_in_math_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 -echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } - -if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF_IN_MATH_H 1 -_ACEOF - -fi - - - { echo "$as_me:$LINENO: checking for isinf in " >&5 -echo $ECHO_N "checking for isinf in ... $ECHO_C" >&6; } -if test "${ac_cv_func_isinf_in_cmath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; isinf(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_isinf_in_cmath=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_isinf_in_cmath=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 -echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } - -if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF_IN_CMATH 1 -_ACEOF - -fi - - - { echo "$as_me:$LINENO: checking for std::isinf in " >&5 -echo $ECHO_N "checking for std::isinf in ... $ECHO_C" >&6; } -if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; std::isinf(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_std_isinf_in_cmath=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_std_isinf_in_cmath=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 -echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } - -if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_STD_ISINF_IN_CMATH 1 -_ACEOF - -fi - - - { echo "$as_me:$LINENO: checking for finite in " >&5 -echo $ECHO_N "checking for finite in ... $ECHO_C" >&6; } -if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -float f; finite(f); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_finite_in_ieeefp_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_finite_in_ieeefp_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 -echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } - -if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE_IN_IEEEFP_H 1 -_ACEOF - -fi - - - if test "$llvm_cv_platform_type" = "Unix" ; then @@ -19071,7 +18520,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by LLVM $as_me 3.6.1, which was +This file was extended by LLVM $as_me 3.7.0svn, which was generated by GNU Autoconf 2.60. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -19124,7 +18573,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -LLVM config.status 3.6.1 +LLVM config.status 3.7.0svn configured by $0, generated by GNU Autoconf 2.60, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" @@ -19420,8 +18869,8 @@ DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim ENABLE_WERROR!$ENABLE_WERROR$ac_delim ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim +ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim -DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then @@ -19463,12 +18912,31 @@ _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF +DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim JIT!$JIT$ac_delim TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim ENABLE_DOCS!$ENABLE_DOCS$ac_delim ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim +enable_searchengine!$enable_searchengine$ac_delim +enable_external_search!$enable_external_search$ac_delim +enable_server_based_search!$enable_server_based_search$ac_delim +searchengine_url!$searchengine_url$ac_delim +extra_search_mappings!$extra_search_mappings$ac_delim +QHELPGENERATOR!$QHELPGENERATOR$ac_delim +llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim +llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim +llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim +llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim +llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim +llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim +clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim +clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim +clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim +clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim +clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim +clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim @@ -19541,27 +19009,9 @@ HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim MMAP_FILE!$MMAP_FILE$ac_delim SHLIBEXT!$SHLIBEXT$ac_delim LLVM_PREFIX!$LLVM_PREFIX$ac_delim -LLVM_BINDIR!$LLVM_BINDIR$ac_delim -LLVM_DATADIR!$LLVM_DATADIR$ac_delim -LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim -LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim -LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim -LLVM_INFODIR!$LLVM_INFODIR$ac_delim -LLVM_MANDIR!$LLVM_MANDIR$ac_delim -LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim -BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim -HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim -HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim -OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim -ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim -RPATH!$RPATH$ac_delim -RDYNAMIC!$RDYNAMIC$ac_delim -program_prefix!$program_prefix$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 @@ -19597,6 +19047,67 @@ CEOF$ac_eof _ACEOF +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + cat >conf$$subs.sed <<_ACEOF +LLVM_BINDIR!$LLVM_BINDIR$ac_delim +LLVM_DATADIR!$LLVM_DATADIR$ac_delim +LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim +LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim +LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim +LLVM_INFODIR!$LLVM_INFODIR$ac_delim +LLVM_MANDIR!$LLVM_MANDIR$ac_delim +LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim +BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim +HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim +HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim +OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim +ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim +RPATH!$RPATH$ac_delim +RDYNAMIC!$RDYNAMIC$ac_delim +program_prefix!$program_prefix$ac_delim +LIBOBJS!$LIBOBJS$ac_delim +LTLIBOBJS!$LTLIBOBJS$ac_delim +_ACEOF + + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +if test -n "$ac_eof"; then + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` + ac_eof=`expr $ac_eof + 1` +fi + +cat >>$CONFIG_STATUS <<_ACEOF +cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end +_ACEOF +sed ' +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +s/^/s,@/; s/!/@,|#_!!_#|/ +:n +t n +s/'"$ac_delim"'$/,g/; t +s/$/\\/; p +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +:end +s/|#_!!_#|//g +CEOF$ac_eof +_ACEOF + + # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty @@ -19840,7 +19351,7 @@ s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && diff --git a/docs/BitCodeFormat.rst b/docs/BitCodeFormat.rst index fc553f79174..4b398a4e956 100644 --- a/docs/BitCodeFormat.rst +++ b/docs/BitCodeFormat.rst @@ -672,7 +672,7 @@ for each library name referenced. MODULE_CODE_GLOBALVAR Record ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -``[GLOBALVAR, pointer type, isconst, initid, linkage, alignment, section, visibility, threadlocal, unnamed_addr, dllstorageclass]`` +``[GLOBALVAR, pointer type, isconst, initid, linkage, alignment, section, visibility, threadlocal, unnamed_addr, externally_initialized, dllstorageclass, comdat]`` The ``GLOBALVAR`` record (code 7) marks the declaration or definition of a global variable. The operand fields are: diff --git a/docs/BitSets.rst b/docs/BitSets.rst new file mode 100644 index 00000000000..c6ffdbdb8a1 --- /dev/null +++ b/docs/BitSets.rst @@ -0,0 +1,70 @@ +======= +Bitsets +======= + +This is a mechanism that allows IR modules to co-operatively build pointer +sets corresponding to addresses within a given set of globals. One example +of a use case for this is to allow a C++ program to efficiently verify (at +each call site) that a vtable pointer is in the set of valid vtable pointers +for the type of the class or its derived classes. + +To use the mechanism, a client creates a global metadata node named +``llvm.bitsets``. Each element is a metadata node with three elements: +the first is a metadata string containing an identifier for the bitset, +the second is a global variable and the third is a byte offset into the +global variable. + +This will cause a link-time optimization pass to generate bitsets from the +memory addresses referenced from the elements of the bitset metadata. The pass +will lay out the referenced globals consecutively, so their definitions must +be available at LTO time. The `GlobalLayoutBuilder`_ class is responsible for +laying out the globals efficiently to minimize the sizes of the underlying +bitsets. An intrinsic, :ref:`llvm.bitset.test `, generates code +to test whether a given pointer is a member of a bitset. + +:Example: + +:: + + target datalayout = "e-p:32:32" + + @a = internal global i32 0 + @b = internal global i32 0 + @c = internal global i32 0 + @d = internal global [2 x i32] [i32 0, i32 0] + + !llvm.bitsets = !{!0, !1, !2, !3, !4} + + !0 = !{!"bitset1", i32* @a, i32 0} + !1 = !{!"bitset1", i32* @b, i32 0} + !2 = !{!"bitset2", i32* @b, i32 0} + !3 = !{!"bitset2", i32* @c, i32 0} + !4 = !{!"bitset2", i32* @d, i32 4} + + declare i1 @llvm.bitset.test(i8* %ptr, metadata %bitset) nounwind readnone + + define i1 @foo(i32* %p) { + %pi8 = bitcast i32* %p to i8* + %x = call i1 @llvm.bitset.test(i8* %pi8, metadata !"bitset1") + ret i1 %x + } + + define i1 @bar(i32* %p) { + %pi8 = bitcast i32* %p to i8* + %x = call i1 @llvm.bitset.test(i8* %pi8, metadata !"bitset2") + ret i1 %x + } + + define void @main() { + %a1 = call i1 @foo(i32* @a) ; returns 1 + %b1 = call i1 @foo(i32* @b) ; returns 1 + %c1 = call i1 @foo(i32* @c) ; returns 0 + %a2 = call i1 @bar(i32* @a) ; returns 0 + %b2 = call i1 @bar(i32* @b) ; returns 1 + %c2 = call i1 @bar(i32* @c) ; returns 1 + %d02 = call i1 @bar(i32* getelementptr ([2 x i32]* @d, i32 0, i32 0)) ; returns 0 + %d12 = call i1 @bar(i32* getelementptr ([2 x i32]* @d, i32 0, i32 1)) ; returns 1 + ret void + } + +.. _GlobalLayoutBuilder: http://llvm.org/klaus/llvm/blob/master/include/llvm/Transforms/IPO/LowerBitSets.h diff --git a/docs/BranchWeightMetadata.rst b/docs/BranchWeightMetadata.rst index aff7923d186..2ebc6c32416 100644 --- a/docs/BranchWeightMetadata.rst +++ b/docs/BranchWeightMetadata.rst @@ -115,3 +115,26 @@ CFG Modifications Branch Weight Metatada is not proof against CFG changes. If terminator operands' are changed some action should be taken. In other case some misoptimizations may occur due to incorrent branch prediction information. + +Function Entry Counts +===================== + +To allow comparing different functions durint inter-procedural analysis and +optimization, ``MD_prof`` nodes can also be assigned to a function definition. +The first operand is a string indicating the name of the associated counter. + +Currently, one counter is supported: "function_entry_count". This is a 64-bit +counter that indicates the number of times that this function was invoked (in +the case of instrumentation-based profiles). In the case of sampling-based +profiles, this counter is an approximation of how many times the function was +invoked. + +For example, in the code below, the instrumentation for function foo() +indicates that it was called 2,590 times at runtime. + +.. code-block:: llvm + + define i32 @foo() !prof !1 { + ret i32 0 + } + !1 = !{!"function_entry_count", i64 2590} diff --git a/docs/Bugpoint.rst b/docs/Bugpoint.rst index 8fa64bc1242..6bd7ff99564 100644 --- a/docs/Bugpoint.rst +++ b/docs/Bugpoint.rst @@ -208,7 +208,7 @@ point---a simple binary search may not be sufficient, as transformations that interact may require isolating more than one call. In TargetLowering, use ``return SDNode();`` instead of ``return false;``. -Now that that the number of transformations is down to a manageable number, try +Now that the number of transformations is down to a manageable number, try examining the output to see if you can figure out which transformations are being done. If that can be figured out, then do the usual debugging. If which code corresponds to the transformation being performed isn't obvious, set a diff --git a/docs/BuildingLLVMWithAutotools.rst b/docs/BuildingLLVMWithAutotools.rst new file mode 100644 index 00000000000..6f9a1341055 --- /dev/null +++ b/docs/BuildingLLVMWithAutotools.rst @@ -0,0 +1,332 @@ +==================================== +Building LLVM With Autotools +==================================== + +.. contents:: + :local: + +Overview +======== + +This document details how to use the LLVM autotools based build system to +configure and build LLVM from source. The normal developer process using CMake +is detailed `here `_. + +A Quick Summary +--------------- + +#. Configure and build LLVM and Clang: + + * ``cd where-you-want-to-build-llvm`` + * ``mkdir build`` (for building without polluting the source dir) + * ``cd build`` + * ``../llvm/configure [options]`` + Some common options: + + * ``--prefix=directory`` --- Specify for *directory* the full pathname of + where you want the LLVM tools and libraries to be installed (default + ``/usr/local``). + + * ``--enable-optimized`` --- Compile with optimizations enabled (default + is NO). + + * ``--enable-assertions`` --- Compile with assertion checks enabled + (default is YES). + + * ``make [-j]`` --- The ``-j`` specifies the number of jobs (commands) to run + simultaneously. This builds both LLVM and Clang for Debug+Asserts mode. + The ``--enable-optimized`` configure option is used to specify a Release + build. + + * ``make check-all`` --- This run the regression tests to ensure everything + is in working order. + + * If you get an "internal compiler error (ICE)" or test failures, see + `here `_. + +Local LLVM Configuration +------------------------ + +Once checked out from the Subversion repository, the LLVM suite source code must +be configured via the ``configure`` script. This script sets variables in the +various ``*.in`` files, most notably ``llvm/Makefile.config`` and +``llvm/include/Config/config.h``. It also populates *OBJ_ROOT* with the +Makefiles needed to begin building LLVM. + +The following environment variables are used by the ``configure`` script to +configure the build system: + ++------------+-----------------------------------------------------------+ +| Variable | Purpose | ++============+===========================================================+ +| CC | Tells ``configure`` which C compiler to use. By default, | +| | ``configure`` will check ``PATH`` for ``clang`` and GCC C | +| | compilers (in this order). Use this variable to override | +| | ``configure``\'s default behavior. | ++------------+-----------------------------------------------------------+ +| CXX | Tells ``configure`` which C++ compiler to use. By | +| | default, ``configure`` will check ``PATH`` for | +| | ``clang++`` and GCC C++ compilers (in this order). Use | +| | this variable to override ``configure``'s default | +| | behavior. | ++------------+-----------------------------------------------------------+ + +The following options can be used to set or enable LLVM specific options: + +``--enable-optimized`` + + Enables optimized compilation (debugging symbols are removed and GCC + optimization flags are enabled). Note that this is the default setting if you + are using the LLVM distribution. The default behavior of a Subversion + checkout is to use an unoptimized build (also known as a debug build). + +``--enable-debug-runtime`` + + Enables debug symbols in the runtime libraries. The default is to strip debug + symbols from the runtime libraries. + +``--enable-jit`` + + Compile the Just In Time (JIT) compiler functionality. This is not available + on all platforms. The default is dependent on platform, so it is best to + explicitly enable it if you want it. + +``--enable-targets=target-option`` + + Controls which targets will be built and linked into llc. The default value + for ``target_options`` is "all" which builds and links all available targets. + The "host" target is selected as the target of the build host. You can also + specify a comma separated list of target names that you want available in llc. + The target names use all lower case. The current set of targets is: + + ``aarch64, arm, arm64, cpp, hexagon, mips, mipsel, mips64, mips64el, msp430, + powerpc, nvptx, r600, sparc, systemz, x86, x86_64, xcore``. + +``--enable-doxygen`` + + Look for the doxygen program and enable construction of doxygen based + documentation from the source code. This is disabled by default because + generating the documentation can take a long time and producess 100s of + megabytes of output. + +To configure LLVM, follow these steps: + +#. Change directory into the object root directory: + + .. code-block:: console + + % cd OBJ_ROOT + +#. Run the ``configure`` script located in the LLVM source tree: + + .. code-block:: console + + % $LLVM_SRC_DIR/configure --prefix=/install/path [other options] + +Compiling the LLVM Suite Source Code +------------------------------------ + +Once you have configured LLVM, you can build it. There are three types of +builds: + +Debug Builds + + These builds are the default when one is using a Subversion checkout and + types ``gmake`` (unless the ``--enable-optimized`` option was used during + configuration). The build system will compile the tools and libraries with + debugging information. To get a Debug Build using the LLVM distribution the + ``--disable-optimized`` option must be passed to ``configure``. + +Release (Optimized) Builds + + These builds are enabled with the ``--enable-optimized`` option to + ``configure`` or by specifying ``ENABLE_OPTIMIZED=1`` on the ``gmake`` command + line. For these builds, the build system will compile the tools and libraries + with GCC optimizations enabled and strip debugging information from the + libraries and executables it generates. Note that Release Builds are default + when using an LLVM distribution. + +Profile Builds + + These builds are for use with profiling. They compile profiling information + into the code for use with programs like ``gprof``. Profile builds must be + started by specifying ``ENABLE_PROFILING=1`` on the ``gmake`` command line. + +Once you have LLVM configured, you can build it by entering the *OBJ_ROOT* +directory and issuing the following command: + +.. code-block:: console + + % gmake + +If the build fails, please `check here `_ +to see if you are using a version of GCC that is known not to compile LLVM. + +If you have multiple processors in your machine, you may wish to use some of the +parallel build options provided by GNU Make. For example, you could use the +command: + +.. code-block:: console + + % gmake -j2 + +There are several special targets which are useful when working with the LLVM +source code: + +``gmake clean`` + + Removes all files generated by the build. This includes object files, + generated C/C++ files, libraries, and executables. + +``gmake dist-clean`` + + Removes everything that ``gmake clean`` does, but also removes files generated + by ``configure``. It attempts to return the source tree to the original state + in which it was shipped. + +``gmake install`` + + Installs LLVM header files, libraries, tools, and documentation in a hierarchy + under ``$PREFIX``, specified with ``$LLVM_SRC_DIR/configure --prefix=[dir]``, which + defaults to ``/usr/local``. + +``gmake -C runtime install-bytecode`` + + Assuming you built LLVM into $OBJDIR, when this command is run, it will + install bitcode libraries into the GCC front end's bitcode library directory. + If you need to update your bitcode libraries, this is the target to use once + you've built them. + +Please see the `Makefile Guide `_ for further details on +these ``make`` targets and descriptions of other targets available. + +It is also possible to override default values from ``configure`` by declaring +variables on the command line. The following are some examples: + +``gmake ENABLE_OPTIMIZED=1`` + + Perform a Release (Optimized) build. + +``gmake ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1`` + + Perform a Release (Optimized) build without assertions enabled. + +``gmake ENABLE_OPTIMIZED=0`` + + Perform a Debug build. + +``gmake ENABLE_PROFILING=1`` + + Perform a Profiling build. + +``gmake VERBOSE=1`` + + Print what ``gmake`` is doing on standard output. + +``gmake TOOL_VERBOSE=1`` + + Ask each tool invoked by the makefiles to print out what it is doing on + the standard output. This also implies ``VERBOSE=1``. + +Every directory in the LLVM object tree includes a ``Makefile`` to build it and +any subdirectories that it contains. Entering any directory inside the LLVM +object tree and typing ``gmake`` should rebuild anything in or below that +directory that is out of date. + +This does not apply to building the documentation. +LLVM's (non-Doxygen) documentation is produced with the +`Sphinx `_ documentation generation system. +There are some HTML documents that have not yet been converted to the new +system (which uses the easy-to-read and easy-to-write +`reStructuredText `_ plaintext markup +language). +The generated documentation is built in the ``$LLVM_SRC_DIR/docs`` directory using +a special makefile. +For instructions on how to install Sphinx, see +`Sphinx Introduction for LLVM Developers +`_. +After following the instructions there for installing Sphinx, build the LLVM +HTML documentation by doing the following: + +.. code-block:: console + + $ cd $LLVM_SRC_DIR/docs + $ make -f Makefile.sphinx + +This creates a ``_build/html`` sub-directory with all of the HTML files, not +just the generated ones. +This directory corresponds to ``llvm.org/docs``. +For example, ``_build/html/SphinxQuickstartTemplate.html`` corresponds to +``llvm.org/docs/SphinxQuickstartTemplate.html``. +The :doc:`SphinxQuickstartTemplate` is useful when creating a new document. + +Cross-Compiling LLVM +-------------------- + +It is possible to cross-compile LLVM itself. That is, you can create LLVM +executables and libraries to be hosted on a platform different from the platform +where they are built (a Canadian Cross build). To configure a cross-compile, +supply the configure script with ``--build`` and ``--host`` options that are +different. The values of these options must be legal target triples that your +GCC compiler supports. + +The result of such a build is executables that are not runnable on on the build +host (--build option) but can be executed on the compile host (--host option). + +Check :doc:`HowToCrossCompileLLVM` and `Clang docs on how to cross-compile in general +`_ for more information +about cross-compiling. + +The Location of LLVM Object Files +--------------------------------- + +The LLVM build system is capable of sharing a single LLVM source tree among +several LLVM builds. Hence, it is possible to build LLVM for several different +platforms or configurations using the same source tree. + +This is accomplished in the typical autoconf manner: + +* Change directory to where the LLVM object files should live: + + .. code-block:: console + + % cd OBJ_ROOT + +* Run the ``configure`` script found in the LLVM source directory: + + .. code-block:: console + + % $LLVM_SRC_DIR/configure + +The LLVM build will place files underneath *OBJ_ROOT* in directories named after +the build type: + +Debug Builds with assertions enabled (the default) + + Tools + + ``OBJ_ROOT/Debug+Asserts/bin`` + + Libraries + + ``OBJ_ROOT/Debug+Asserts/lib`` + +Release Builds + + Tools + + ``OBJ_ROOT/Release/bin`` + + Libraries + + ``OBJ_ROOT/Release/lib`` + +Profile Builds + + Tools + + ``OBJ_ROOT/Profile/bin`` + + Libraries + + ``OBJ_ROOT/Profile/lib`` diff --git a/docs/CMake.rst b/docs/CMake.rst index 47cb2f3f04f..b9e473fab2b 100644 --- a/docs/CMake.rst +++ b/docs/CMake.rst @@ -26,7 +26,7 @@ Quick start We use here the command-line, non-interactive CMake interface. #. `Download `_ and install - CMake. Version 2.8 is the minimum required. + CMake. Version 2.8.8 is the minimum required. #. Open a shell. Your development tools must be reachable from this shell through the PATH environment variable. @@ -59,6 +59,36 @@ We use here the command-line, non-interactive CMake interface. environment variable, for instance. You can force CMake to use a given build tool, see the `Usage`_ section. +#. After CMake has finished running, proceed to use IDE project files or start + the build from the build directory: + + .. code-block:: console + + $ cmake --build . + + The ``--build`` option tells ``cmake`` to invoke the underlying build + tool (``make``, ``ninja``, ``xcodebuild``, ``msbuild``, etc). + + The underlying build tool can be invoked directly either of course, but + the ``--build`` option is portable. + +#. After LLVM has finished building, install it from the build directory: + + .. code-block:: console + + $ cmake --build . --target install + + The ``--target`` option with ``install`` parameter in addition to + the ``--build`` option tells ``cmake`` to build the ``install`` target. + + It is possible to set a different install prefix at installation time + by invoking the ``cmake_install.cmake`` script generated in the + build directory: + + .. code-block:: console + + $ cmake -DCMAKE_INSTALL_PREFIX=/tmp/llvm -P cmake_install.cmake + .. _Basic CMake usage: .. _Usage: @@ -215,8 +245,8 @@ LLVM-specific variables Build in C++1y mode, if available. Defaults to OFF. **LLVM_ENABLE_ASSERTIONS**:BOOL - Enables code assertions. Defaults to OFF if and only if ``CMAKE_BUILD_TYPE`` - is *Release*. + Enables code assertions. Defaults to ON if and only if ``CMAKE_BUILD_TYPE`` + is *Debug*. **LLVM_ENABLE_EH**:BOOL Build LLVM with exception handling support. This is necessary if you wish to @@ -240,6 +270,15 @@ LLVM-specific variables **LLVM_ENABLE_WERROR**:BOOL Stop and fail build, if a compiler warning is triggered. Defaults to OFF. +**LLVM_ABI_BREAKING_CHECKS**:STRING + Used to decide if LLVM should be built with ABI breaking checks or + not. Allowed values are `WITH_ASSERTS` (default), `FORCE_ON` and + `FORCE_OFF`. `WITH_ASSERTS` turns on ABI breaking checks in an + assertion enabled build. `FORCE_ON` (`FORCE_OFF`) turns them on + (off) irrespective of whether normal (`NDEBUG` based) assertions are + enabled or not. A version of LLVM built with ABI breaking checks + is not ABI compatible with a version built without it. + **LLVM_BUILD_32_BITS**:BOOL Build 32-bits executables and libraries on 64-bits systems. This option is available only on some 64-bits unix systems. Defaults to OFF. @@ -316,8 +355,8 @@ LLVM-specific variables otherwise this has no effect. **LLVM_DOXYGEN_QCH_FILENAME**:STRING - The filename of the Qt Compressed Help file that will be genrated when - ``-DLLVM_ENABLE_DOXYGEN=ON`` and + The filename of the Qt Compressed Help file that will be generated when + ``-DLLVM_ENABLE_DOXYGEN=ON`` and ``-DLLVM_ENABLE_DOXYGEN_QT_HELP=ON`` are given. Defaults to ``org.llvm.qch``. This option is only useful in combination with @@ -330,7 +369,7 @@ LLVM-specific variables for more information. Defaults to "org.llvm". This option is only useful in combination with ``-DLLVM_ENABLE_DOXYGEN_QT_HELP=ON``; otherwise this has no effect. - + **LLVM_DOXYGEN_QHP_CUST_FILTER_NAME**:STRING See `Qt Help Project`_ for more information. Defaults to the CMake variable ``${PACKAGE_STRING}`` which @@ -429,7 +468,7 @@ and uses them to build a simple application ``simple-tool``. add_definitions(${LLVM_DEFINITIONS}) # Now build our tools - add_excutable(simple-tool tool.cpp) + add_executable(simple-tool tool.cpp) # Find the libraries that correspond to the LLVM components # that we wish to use diff --git a/docs/CodeGenerator.rst b/docs/CodeGenerator.rst index 7e5b6eb7639..75d40db958c 100644 --- a/docs/CodeGenerator.rst +++ b/docs/CodeGenerator.rst @@ -1340,7 +1340,7 @@ found before being stored or after being reloaded. If the indirect strategy is used, after all the virtual registers have been mapped to physical registers or stack slots, it is necessary to use a spiller object to place load and store instructions in the code. Every virtual that has -been mapped to a stack slot will be stored to memory after been defined and will +been mapped to a stack slot will be stored to memory after being defined and will be loaded before being used. The implementation of the spiller tries to recycle load/store instructions, avoiding unnecessary instructions. For an example of how to invoke the spiller, see ``RegAllocLinearScan::runOnMachineFunction`` in @@ -1353,7 +1353,7 @@ With very rare exceptions (e.g., function calls), the LLVM machine code instructions are three address instructions. That is, each instruction is expected to define at most one register, and to use at most two registers. However, some architectures use two address instructions. In this case, the -defined register is also one of the used register. For instance, an instruction +defined register is also one of the used registers. For instance, an instruction such as ``ADD %EAX, %EBX``, in X86 is actually equivalent to ``%EAX = %EAX + %EBX``. @@ -1578,7 +1578,7 @@ three important things that you have to implement for your target: correspond to. The MCInsts that are generated by this are fed into the instruction printer or the encoder. -Finally, at your choosing, you can also implement an subclass of MCCodeEmitter +Finally, at your choosing, you can also implement a subclass of MCCodeEmitter which lowers MCInst's into machine code bytes and relocations. This is important if you want to support direct .o file emission, or would like to implement an assembler for your target. diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst index 0552c7117e2..498d76b04d8 100644 --- a/docs/CodingStandards.rst +++ b/docs/CodingStandards.rst @@ -83,7 +83,7 @@ Supported C++11 Language and Library Features While LLVM, Clang, and LLD use C++11, not all features are available in all of the toolchains which we support. The set of features supported for use in LLVM -is the intersection of those supported in MSVC 2012, GCC 4.7, and Clang 3.1. +is the intersection of those supported in MSVC 2013, GCC 4.7, and Clang 3.1. The ultimate definition of this set is what build bots with those respective toolchains accept. Don't argue with the build bots. However, we have some guidance below to help you know what to expect. @@ -123,6 +123,20 @@ unlikely to be supported by our host compilers. * ``override`` and ``final``: N2928_, N3206_, N3272_ * Atomic operations and the C++11 memory model: N2429_ +* Variadic templates: N2242_ +* Explicit conversion operators: N2437_ +* Defaulted and deleted functions: N2346_ + + * But not defaulted move constructors or move assignment operators, MSVC 2013 + cannot synthesize them. +* Initializer lists: N2627_ +* Delegating constructors: N1986_ +* Default member initializers (non-static data member initializers): N2756_ + + * Only use these for scalar members that would otherwise be left + uninitialized. Non-scalar members generally have appropriate default + constructors, and MSVC 2013 has problems when braced initializer lists are + involved. .. _N2118: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html .. _N2439: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm @@ -143,7 +157,12 @@ unlikely to be supported by our host compilers. .. _N3206: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm .. _N3272: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm .. _N2429: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2429.htm -.. _MSVC-compatible RTTI: http://llvm.org/PR18951 +.. _N2242: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2242.pdf +.. _N2437: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2437.pdf +.. _N2346: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm +.. _N2627: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm +.. _N1986: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf +.. _N2756: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2756.htm The supported features in the C++11 standard libraries are less well tracked, but also much greater. Most of the standard libraries implement most of C++11's @@ -159,9 +178,6 @@ being aware of: * While most of the atomics library is well implemented, the fences are missing. Fortunately, they are rarely needed. * The locale support is incomplete. -* ``std::initializer_list`` (and the constructors and functions that take it as - an argument) are not always available, so you cannot (for example) initialize - a ``std::vector`` with a braced initializer list. * ``std::equal()`` (and other algorithms) incorrectly assert in MSVC when given ``nullptr`` as an iterator. @@ -231,8 +247,8 @@ tree. The standard header looks like this: //===----------------------------------------------------------------------===// /// /// \file - /// \brief This file contains the declaration of the Instruction class, which is - /// the base class for all of the VM instructions. + /// This file contains the declaration of the Instruction class, which is the + /// base class for all of the VM instructions. /// //===----------------------------------------------------------------------===// @@ -251,10 +267,11 @@ The next section in the file is a concise note that defines the license that the file is released under. This makes it perfectly clear what terms the source code can be distributed under and should not be modified in any way. -The main body is a ``doxygen`` comment describing the purpose of the file. It -should have a ``\brief`` command that describes the file in one or two -sentences. Any additional information should be separated by a blank line. If -an algorithm is being implemented or something tricky is going on, a reference +The main body is a ``doxygen`` comment (identified by the ``///`` comment +marker instead of the usual ``//``) describing the purpose of the file. The +first sentence or a passage beginning with ``\brief`` is used as an abstract. +Any additional information should be separated by a blank line. If an +algorithm is being implemented or something tricky is going on, a reference to the paper where it is published should be included, as well as any notes or *gotchas* in the code to watch out for. @@ -281,7 +298,8 @@ happens: does the method return null? Abort? Format your hard disk? Comment Formatting ^^^^^^^^^^^^^^^^^^ -In general, prefer C++ style (``//``) comments. They take less space, require +In general, prefer C++ style comments (``//`` for normal comments, ``///`` for +``doxygen`` documentation comments). They take less space, require less typing, don't have nesting problems, etc. There are a few cases when it is useful to use C style (``/* */``) comments however: @@ -302,10 +320,11 @@ Doxygen Use in Documentation Comments Use the ``\file`` command to turn the standard file header into a file-level comment. -Include descriptive ``\brief`` paragraphs for all public interfaces (public -classes, member and non-member functions). Explain API use and purpose in -``\brief`` paragraphs, don't just restate the information that can be inferred -from the API name. Put detailed discussion into separate paragraphs. +Include descriptive paragraphs for all public interfaces (public classes, +member and non-member functions). Don't just restate the information that can +be inferred from the API name. The first sentence or a paragraph beginning +with ``\brief`` is used as an abstract. Put detailed discussion into separate +paragraphs. To refer to parameter names inside a paragraph, use the ``\p name`` command. Don't use the ``\arg name`` command since it starts a new paragraph that @@ -325,8 +344,8 @@ A minimal documentation comment: .. code-block:: c++ - /// \brief Does foo and bar. - void fooBar(bool Baz); + /// Sets the xyzzy property to \p Baz. + void setXyzzy(bool Baz); A documentation comment that uses all Doxygen features in a preferred way: @@ -383,10 +402,10 @@ Correct: // In Something.h: - /// \brief An abstraction for some complicated thing. + /// An abstraction for some complicated thing. class Something { public: - /// \brief Does foo and bar. + /// Does foo and bar. void fooBar(); }; @@ -710,7 +729,7 @@ the symbol (e.g., MSVC). This can lead to problems at link time. // Bar isn't POD, but it does look like a struct. struct Bar { int Data; - Foo() : Data(0) { } + Bar() : Data(0) { } }; Do not use Braced Initializer Lists to Call a Constructor @@ -1290,34 +1309,6 @@ that the enum expression may take any representable value, not just those of individual enumerators. To suppress this warning, use ``llvm_unreachable`` after the switch. -Use ``LLVM_DELETED_FUNCTION`` to mark uncallable methods -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Prior to C++11, a common pattern to make a class uncopyable was to declare an -unimplemented copy constructor and copy assignment operator and make them -private. This would give a compiler error for accessing a private method or a -linker error because it wasn't implemented. - -With C++11, we can mark methods that won't be implemented with ``= delete``. -This will trigger a much better error message and tell the compiler that the -method will never be implemented. This enables other checks like -``-Wunused-private-field`` to run correctly on classes that contain these -methods. - -For compatibility with MSVC, ``LLVM_DELETED_FUNCTION`` should be used which -will expand to ``= delete`` on compilers that support it. These methods should -still be declared private. Example of the uncopyable pattern: - -.. code-block:: c++ - - class DontCopy { - private: - DontCopy(const DontCopy&) LLVM_DELETED_FUNCTION; - DontCopy &operator =(const DontCopy&) LLVM_DELETED_FUNCTION; - public: - ... - }; - Don't evaluate ``end()`` every time through a loop ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/CommandGuide/FileCheck.rst b/docs/CommandGuide/FileCheck.rst index af01503792e..03c88297677 100644 --- a/docs/CommandGuide/FileCheck.rst +++ b/docs/CommandGuide/FileCheck.rst @@ -185,6 +185,31 @@ For example, something like this works as you'd expect: newline between it and the previous directive. A "``CHECK-NEXT:``" cannot be the first directive in a file. +The "CHECK-SAME:" directive +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Sometimes you want to match lines and would like to verify that matches happen +on the same line as the previous match. In this case, you can use "``CHECK:``" +and "``CHECK-SAME:``" directives to specify this. If you specified a custom +check prefix, just use "``-SAME:``". + +"``CHECK-SAME:``" is particularly powerful in conjunction with "``CHECK-NOT:``" +(described below). + +For example, the following works like you'd expect: + +.. code-block:: llvm + + !0 = !DILocation(line: 5, scope: !1, inlinedAt: !2) + + ; CHECK: !DILocation(line: 5, + ; CHECK-NOT: column: + ; CHECK-SAME: scope: ![[SCOPE:[0-9]+]] + +"``CHECK-SAME:``" directives reject the input if there are any newlines between +it and the previous directive. A "``CHECK-SAME:``" cannot be the first +directive in a file. + The "CHECK-NOT:" directive ~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -339,7 +364,7 @@ simply uniquely match a single line in the file being verified. FileCheck Pattern Matching Syntax ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The "``CHECK:``" and "``CHECK-NOT:``" directives both take a pattern to match. +All FileCheck directives take a pattern to match. For most uses of FileCheck, fixed string matching is perfectly sufficient. For some things, a more flexible form of matching is desired. To support this, FileCheck allows you to specify regular expressions in matching strings, diff --git a/docs/CommandGuide/lit.rst b/docs/CommandGuide/lit.rst index 2708e9de074..1f97bc31dd7 100644 --- a/docs/CommandGuide/lit.rst +++ b/docs/CommandGuide/lit.rst @@ -56,7 +56,7 @@ GENERAL OPTIONS Search for :file:`{NAME}.cfg` and :file:`{NAME}.site.cfg` when searching for test suites, instead of :file:`lit.cfg` and :file:`lit.site.cfg`. -.. option:: --param NAME, --param NAME=VALUE +.. option:: -D NAME, -D NAME=VALUE, --param NAME, --param NAME=VALUE Add a user defined parameter ``NAME`` with the given ``VALUE`` (or the empty string if not given). The meaning and use of these parameters is test suite @@ -341,7 +341,7 @@ LOCAL CONFIGURATION FILES ~~~~~~~~~~~~~~~~~~~~~~~~~ When :program:`lit` loads a subdirectory in a test suite, it instantiates a -local test configuration by cloning the configuration for the parent direction +local test configuration by cloning the configuration for the parent directory --- the root of this configuration chain will always be a test suite. Once the test configuration is cloned :program:`lit` checks for a *lit.local.cfg* file in the subdirectory. If present, this file will be loaded and can be used to diff --git a/docs/CommandGuide/llvm-cov.rst b/docs/CommandGuide/llvm-cov.rst index e0b2fe98651..d0e78a9a1d1 100644 --- a/docs/CommandGuide/llvm-cov.rst +++ b/docs/CommandGuide/llvm-cov.rst @@ -4,18 +4,49 @@ llvm-cov - emit coverage information SYNOPSIS -------- -:program:`llvm-cov` [options] SOURCEFILE +:program:`llvm-cov` *command* [*args...*] DESCRIPTION ----------- -The :program:`llvm-cov` tool reads code coverage data files and displays the -coverage information for a specified source file. It is compatible with the -``gcov`` tool from version 4.2 of ``GCC`` and may also be compatible with -some later versions of ``gcov``. +The :program:`llvm-cov` tool shows code coverage information for +programs that are instrumented to emit profile data. It can be used to +work with ``gcov``\-style coverage or with ``clang``\'s instrumentation +based profiling. -To use llvm-cov, you must first build an instrumented version of your -application that collects coverage data as it runs. Compile with the +If the program is invoked with a base name of ``gcov``, it will behave as if +the :program:`llvm-cov gcov` command were called. Otherwise, a command should +be provided. + +COMMANDS +-------- + +* :ref:`gcov ` +* :ref:`show ` +* :ref:`report ` + +.. program:: llvm-cov gcov + +.. _llvm-cov-gcov: + +GCOV COMMAND +------------ + +SYNOPSIS +^^^^^^^^ + +:program:`llvm-cov gcov` [*options*] *SOURCEFILE* + +DESCRIPTION +^^^^^^^^^^^ + +The :program:`llvm-cov gcov` tool reads code coverage data files and displays +the coverage information for a specified source file. It is compatible with the +``gcov`` tool from version 4.2 of ``GCC`` and may also be compatible with some +later versions of ``gcov``. + +To use :program:`llvm-cov gcov`, you must first build an instrumented version +of your application that collects coverage data as it runs. Compile with the ``-fprofile-arcs`` and ``-ftest-coverage`` options to add the instrumentation. (Alternatively, you can use the ``--coverage`` option, which includes both of those other options.) You should compile with debugging @@ -39,24 +70,23 @@ directories, the prefix from the ``GCOV_PREFIX`` variable is added. These environment variables allow you to run the instrumented program on a machine where the original object file directories are not accessible, but you will then need to copy the ``.gcda`` files back to the object file directories -where llvm-cov expects to find them. +where :program:`llvm-cov gcov` expects to find them. -Once you have generated the coverage data files, run llvm-cov for each main -source file where you want to examine the coverage results. This should be run -from the same directory where you previously ran the compiler. The results for -the specified source file are written to a file named by appending a ``.gcov`` -suffix. A separate output file is also created for each file included by the -main source file, also with a ``.gcov`` suffix added. +Once you have generated the coverage data files, run :program:`llvm-cov gcov` +for each main source file where you want to examine the coverage results. This +should be run from the same directory where you previously ran the +compiler. The results for the specified source file are written to a file named +by appending a ``.gcov`` suffix. A separate output file is also created for +each file included by the main source file, also with a ``.gcov`` suffix added. -The basic content of an llvm-cov output file is a copy of the source file with +The basic content of an ``.gcov`` output file is a copy of the source file with an execution count and line number prepended to every line. The execution count is shown as ``-`` if a line does not contain any executable code. If a line contains code but that code was never executed, the count is displayed as ``#####``. - OPTIONS -------- +^^^^^^^ .. option:: -a, --all-blocks @@ -66,7 +96,7 @@ OPTIONS .. option:: -b, --branch-probabilities - Display conditional branch probabilities and a summary of branch information. + Display conditional branch probabilities and a summary of branch information. .. option:: -c, --branch-counts @@ -120,8 +150,148 @@ OPTIONS Display the version of llvm-cov. EXIT STATUS ------------ +^^^^^^^^^^^ -:program:`llvm-cov` returns 1 if it cannot read input files. Otherwise, it -exits with zero. +:program:`llvm-cov gcov` returns 1 if it cannot read input files. Otherwise, +it exits with zero. + +.. program:: llvm-cov show + +.. _llvm-cov-show: + +SHOW COMMAND +------------ + +SYNOPSIS +^^^^^^^^ + +:program:`llvm-cov show` [*options*] -instr-profile *PROFILE* *BIN* [*SOURCES*] + +DESCRIPTION +^^^^^^^^^^^ + +The :program:`llvm-cov show` command shows line by line coverage of a binary +*BIN* using the profile data *PROFILE*. It can optionally be filtered to only +show the coverage for the files listed in *SOURCES*. + +To use :program:`llvm-cov show`, you need a program that is compiled with +instrumentation to emit profile and coverage data. To build such a program with +``clang`` use the ``-fprofile-instr-generate`` and ``-fcoverage-mapping`` +flags. If linking with the ``clang`` driver, pass ``-fprofile-instr-generate`` +to the link stage to make sure the necessary runtime libraries are linked in. + +The coverage information is stored in the built executable or library itself, +and this is what you should pass to :program:`llvm-cov show` as the *BIN* +argument. The profile data is generated by running this instrumented program +normally. When the program exits it will write out a raw profile file, +typically called ``default.profraw``, which can be converted to a format that +is suitable for the *PROFILE* argument using the :program:`llvm-profdata merge` +tool. + +OPTIONS +^^^^^^^ + +.. option:: -show-line-counts + + Show the execution counts for each line. This is enabled by default, unless + another ``-show`` option is used. + +.. option:: -show-expansions + + Expand inclusions, such as preprocessor macros or textual inclusions, inline + in the display of the source file. + +.. option:: -show-instantiations + + For source regions that are instantiated multiple times, such as templates in + ``C++``, show each instantiation separately as well as the combined summary. + +.. option:: -show-regions + + Show the execution counts for each region by displaying a caret that points to + the character where the region starts. + +.. option:: -show-line-counts-or-regions + + Show the execution counts for each line if there is only one region on the + line, but show the individual regions if there are multiple on the line. + +.. option:: -use-color[=VALUE] + + Enable or disable color output. By default this is autodetected. + +.. option:: -arch= + + If the covered binary is a universal binary, select the architecture to use. + It is an error to specify an architecture that is not included in the + universal binary or to use an architecture that does not match a + non-universal binary. + +.. option:: -name= + + Show code coverage only for functions with the given name. + +.. option:: -name-regex= + + Show code coverage only for functions that match the given regular expression. + +.. option:: -line-coverage-gt= + + Show code coverage only for functions with line coverage greater than the + given threshold. + +.. option:: -line-coverage-lt= + + Show code coverage only for functions with line coverage less than the given + threshold. + +.. option:: -region-coverage-gt= + + Show code coverage only for functions with region coverage greater than the + given threshold. + +.. option:: -region-coverage-lt= + + Show code coverage only for functions with region coverage less than the given + threshold. + +.. program:: llvm-cov report + +.. _llvm-cov-report: + +REPORT COMMAND +-------------- + +SYNOPSIS +^^^^^^^^ + +:program:`llvm-cov report` [*options*] -instr-profile *PROFILE* *BIN* [*SOURCES*] + +DESCRIPTION +^^^^^^^^^^^ + +The :program:`llvm-cov report` command displays a summary of the coverage of a +binary *BIN* using the profile data *PROFILE*. It can optionally be filtered to +only show the coverage for the files listed in *SOURCES*. + +If no source files are provided, a summary line is printed for each file in the +coverage data. If any files are provided, summaries are shown for each function +in the listed files instead. + +For information on compiling programs for coverage and generating profile data, +see :ref:`llvm-cov-show`. + +OPTIONS +^^^^^^^ + +.. option:: -use-color[=VALUE] + + Enable or disable color output. By default this is autodetected. + +.. option:: -arch= + + If the covered binary is a universal binary, select the architecture to use. + It is an error to specify an architecture that is not included in the + universal binary or to use an architecture that does not match a + non-universal binary. diff --git a/docs/CommandGuide/llvm-profdata.rst b/docs/CommandGuide/llvm-profdata.rst index 0762e2c7cde..45f70731d69 100644 --- a/docs/CommandGuide/llvm-profdata.rst +++ b/docs/CommandGuide/llvm-profdata.rst @@ -15,12 +15,12 @@ data files. COMMANDS -------- -* `merge `_ -* `show `_ +* :ref:`merge ` +* :ref:`show ` .. program:: llvm-profdata merge -.. _profdata_merge: +.. _profdata-merge: MERGE ----- @@ -51,7 +51,7 @@ OPTIONS .. program:: llvm-profdata show -.. _profdata_show: +.. _profdata-show: SHOW ---- diff --git a/docs/CompilerWriterInfo.rst b/docs/CompilerWriterInfo.rst index a012c329541..2dfdc9b142d 100644 --- a/docs/CompilerWriterInfo.rst +++ b/docs/CompilerWriterInfo.rst @@ -41,6 +41,8 @@ MIPS * `MIPS Processor Architecture `_ +* `MIPS 64-bit ELF Object File Specification `_ + PowerPC ------- diff --git a/docs/DeveloperPolicy.rst b/docs/DeveloperPolicy.rst index 508a04fd2d5..f090c6d5654 100644 --- a/docs/DeveloperPolicy.rst +++ b/docs/DeveloperPolicy.rst @@ -275,6 +275,64 @@ reverted. This is necessary when the change blocks other developers from making progress. The developer is welcome to re-commit the change after the problem has been fixed. +.. _commit messages: + +Commit messages +--------------- + +Although we don't enforce the format of commit messages, we prefer that +you follow these guidelines to help review, search in logs, email formatting +and so on. These guidelines are very similar to rules used by other open source +projects. + +Most importantly, the contents of the message should be carefully written to +convey the rationale of the change (without delving too much in detail). It +also should avoid being vague or overly specific. For example, "bits were not +set right" will leave the reviewer wondering about which bits, and why they +weren't right, while "Correctly set overflow bits in TargetInfo" conveys almost +all there is to the change. + +Below are some guidelines about the format of the message itself: + +* Separate the commit message into title, body and, if you're not the original + author, a "Patch by" attribution line (see below). + +* The title should be concise. Because all commits are emailed to the list with + the first line as the subject, long titles are frowned upon. Short titles + also look better in `git log`. + +* When the changes are restricted to a specific part of the code (e.g. a + back-end or optimization pass), it is customary to add a tag to the + beginning of the line in square brackets. For example, "[SCEV] ..." + or "[OpenMP] ...". This helps email filters and searches for post-commit + reviews. + +* The body, if it exists, should be separated from the title by an empty line. + +* The body should be concise, but explanatory, including a complete + reasoning. Unless it is required to understand the change, examples, + code snippets and gory details should be left to bug comments, web + review or the mailing list. + +* If the patch fixes a bug in bugzilla, please include the PR# in the message. + +* `Attribution of Changes`_ should be in a separate line, after the end of + the body, as simple as "Patch by John Doe.". This is how we officially + handle attribution, and there are automated processes that rely on this + format. + +* Text formatting and spelling should follow the same rules as documentation + and in-code comments, ex. capitalization, full stop, etc. + +* If the commit is a bug fix on top of another recently committed patch, or a + revert or reapply of a patch, include the svn revision number of the prior + related commit. This could be as simple as "Revert rNNNN because it caused + PR#". + +For minor violations of these recommendations, the community normally favors +reminding the contributor of this policy over reverting. Minor corrections and +omissions can be handled by sending a reply to the commits mailing list. + Obtaining Commit Access ----------------------- @@ -425,8 +483,9 @@ want the source code to be littered with random attributions "this code written by J. Random Hacker" (this is noisy and distracting). In practice, the revision control system keeps a perfect history of who changed what, and the CREDITS.txt file describes higher-level contributions. If you commit a patch for someone -else, please say "patch contributed by J. Random Hacker!" in the commit -message. Overall, please do not add contributor names to the source code. +else, please follow the attribution of changes in the simple manner as outlined +by the `commit messages`_ section. Overall, please do not add contributor names +to the source code. Also, don't commit patches authored by others unless they have submitted the patch to the project or you have been authorized to submit them on their behalf diff --git a/docs/ExceptionHandling.rst b/docs/ExceptionHandling.rst index 64edca786ab..72ed78a3c99 100644 --- a/docs/ExceptionHandling.rst +++ b/docs/ExceptionHandling.rst @@ -64,6 +64,21 @@ handling at the expense of slower execution when no exceptions are thrown. As exceptions are, by their nature, intended for uncommon code paths, DWARF exception handling is generally preferred to SJLJ. +Windows Runtime Exception Handling +----------------------------------- + +Windows runtime based exception handling uses the same basic IR structure as +Itanium ABI based exception handling, but it relies on the personality +functions provided by the native Windows runtime library, ``__CxxFrameHandler3`` +for C++ exceptions: ``__C_specific_handler`` for 64-bit SEH or +``_frame_handler3/4`` for 32-bit SEH. This results in a very different +execution model and requires some minor modifications to the initial IR +representation and a significant restructuring just before code generation. + +General information about the Windows x64 exception handling mechanism can be +found at `MSDN Exception Handling (x64) +`_. + Overview -------- @@ -263,9 +278,9 @@ there are no catches or filters that require it to. exceptions and throws a third. When all cleanups are finished, if the exception is not handled by the current -function, resume unwinding by calling the `resume -instruction `_, passing in the result of the -``landingpad`` instruction for the original landing pad. +function, resume unwinding by calling the :ref:`resume instruction `, +passing in the result of the ``landingpad`` instruction for the original +landing pad. Throw Filters ------------- @@ -306,6 +321,97 @@ the selector results they understand and then resume exception propagation with the `resume instruction `_ if none of the conditions match. +C++ Exception Handling using the Windows Runtime +================================================= + +(Note: Windows C++ exception handling support is a work in progress and is + not yet fully implemented. The text below describes how it will work + when completed.) + +The Windows runtime function for C++ exception handling uses a multi-phase +approach. When an exception occurs it searches the current callstack for a +frame that has a handler for the exception. If a handler is found, it then +calls the cleanup handler for each frame above the handler which has a +cleanup handler before calling the catch handler. These calls are all made +from a stack context different from the original frame in which the handler +is defined. Therefore, it is necessary to outline these handlers from their +original context before code generation. + +Catch handlers are called with a pointer to the handler itself as the first +argument and a pointer to the parent function's stack frame as the second +argument. The catch handler uses the `llvm.recoverframe +`_ to get a +pointer to a frame allocation block that is created in the parent frame using +the `llvm.allocateframe +`_ intrinsic. +The ``WinEHPrepare`` pass will have created a structure definition for the +contents of this block. The first two members of the structure will always be +(1) a 32-bit integer that the runtime uses to track the exception state of the +parent frame for the purposes of handling chained exceptions and (2) a pointer +to the object associated with the exception (roughly, the parameter of the +catch clause). These two members will be followed by any frame variables from +the parent function which must be accessed in any of the functions unwind or +catch handlers. The catch handler returns the address at which execution +should continue. + +Cleanup handlers perform any cleanup necessary as the frame goes out of scope, +such as calling object destructors. The runtime handles the actual unwinding +of the stack. If an exception occurs in a cleanup handler the runtime manages +termination of the process. Cleanup handlers are called with the same arguments +as catch handlers (a pointer to the handler and a pointer to the parent stack +frame) and use the same mechanism described above to access frame variables +in the parent function. Cleanup handlers do not return a value. + +The IR generated for Windows runtime based C++ exception handling is initially +very similar to the ``landingpad`` mechanism described above. Calls to +libc++abi functions (such as ``__cxa_begin_catch``/``__cxa_end_catch`` and +``__cxa_throw_exception`` are replaced with calls to intrinsics or Windows +runtime functions (such as ``llvm.eh.begincatch``/``llvm.eh.endcatch`` and +``__CxxThrowException``). + +During the WinEHPrepare pass, the handler functions are outlined into handler +functions and the original landing pad code is replaced with a call to the +``llvm.eh.actions`` intrinsic that describes the order in which handlers will +be processed from the logical location of the landing pad and an indirect +branch to the return value of the ``llvm.eh.actions`` intrinsic. The +``llvm.eh.actions`` intrinsic is defined as returning the address at which +execution will continue. This is a temporary construct which will be removed +before code generation, but it allows for the accurate tracking of control +flow until then. + +A typical landing pad will look like this after outlining: + +.. code-block:: llvm + + lpad: + %vals = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) + cleanup + catch i8* bitcast (i8** @_ZTIi to i8*) + catch i8* bitcast (i8** @_ZTIf to i8*) + %recover = call i8* (...)* @llvm.eh.actions( + i32 3, i8* bitcast (i8** @_ZTIi to i8*), i8* (i8*, i8*)* @_Z4testb.catch.1) + i32 2, i8* null, void (i8*, i8*)* @_Z4testb.cleanup.1) + i32 1, i8* bitcast (i8** @_ZTIf to i8*), i8* (i8*, i8*)* @_Z4testb.catch.0) + i32 0, i8* null, void (i8*, i8*)* @_Z4testb.cleanup.0) + indirectbr i8* %recover, [label %try.cont1, label %try.cont2] + +In this example, the landing pad represents an exception handling context with +two catch handlers and a cleanup handler that have been outlined. If an +exception is thrown with a type that matches ``_ZTIi``, the ``_Z4testb.catch.1`` +handler will be called an no clean-up is needed. If an exception is thrown +with a type that matches ``_ZTIf``, first the ``_Z4testb.cleanup.1`` handler +will be called to perform unwind-related cleanup, then the ``_Z4testb.catch.1`` +handler will be called. If an exception is throw which does not match either +of these types and the exception is handled by another frame further up the +call stack, first the ``_Z4testb.cleanup.1`` handler will be called, then the +``_Z4testb.cleanup.0`` handler (which corresponds to a different scope) will be +called, and exception handling will continue at the next frame in the call +stack will be called. One of the catch handlers will return the address of +``%try.cont1`` in the parent function and the other will return the address of +``%try.cont2``, meaning that execution continues at one of those blocks after +an exception is caught. + + Exception Handling Intrinsics ============================= @@ -329,6 +435,115 @@ function. This value can be used to compare against the result of Uses of this intrinsic are generated by the C++ front-end. +.. _llvm.eh.begincatch: + +``llvm.eh.begincatch`` +---------------------- + +.. code-block:: llvm + + void @llvm.eh.begincatch(i8* %ehptr, i8* %ehobj) + + +This intrinsic marks the beginning of catch handling code within the blocks +following a ``landingpad`` instruction. The exact behavior of this function +depends on the compilation target and the personality function associated +with the ``landingpad`` instruction. + +The first argument to this intrinsic is a pointer that was previously extracted +from the aggregate return value of the ``landingpad`` instruction. The second +argument to the intrinsic is a pointer to stack space where the exception object +should be stored. The runtime handles the details of copying the exception +object into the slot. If the second parameter is null, no copy occurs. + +Uses of this intrinsic are generated by the C++ front-end. Many targets will +use implementation-specific functions (such as ``__cxa_begin_catch``) instead +of this intrinsic. The intrinsic is provided for targets that require a more +abstract interface. + +When used in the native Windows C++ exception handling implementation, this +intrinsic serves as a placeholder to delimit code before a catch handler is +outlined. When the handler is is outlined, this intrinsic will be replaced +by instructions that retrieve the exception object pointer from the frame +allocation block. + + +.. _llvm.eh.endcatch: + +``llvm.eh.endcatch`` +---------------------- + +.. code-block:: llvm + + void @llvm.eh.endcatch() + + +This intrinsic marks the end of catch handling code within the current block, +which will be a successor of a block which called ``llvm.eh.begincatch''. +The exact behavior of this function depends on the compilation target and the +personality function associated with the corresponding ``landingpad`` +instruction. + +There may be more than one call to ``llvm.eh.endcatch`` for any given call to +``llvm.eh.begincatch`` with each ``llvm.eh.endcatch`` call corresponding to the +end of a different control path. All control paths following a call to +``llvm.eh.begincatch`` must reach a call to ``llvm.eh.endcatch``. + +Uses of this intrinsic are generated by the C++ front-end. Many targets will +use implementation-specific functions (such as ``__cxa_begin_catch``) instead +of this intrinsic. The intrinsic is provided for targets that require a more +abstract interface. + +When used in the native Windows C++ exception handling implementation, this +intrinsic serves as a placeholder to delimit code before a catch handler is +outlined. After the handler is outlined, this intrinsic is simply removed. + +.. _llvm.eh.actions: + +``llvm.eh.actions`` +---------------------- + +.. code-block:: llvm + + void @llvm.eh.actions() + +This intrinsic represents the list of actions to take when an exception is +thrown. It is typically used by Windows exception handling schemes where cleanup +outlining is required by the runtime. The arguments are a sequence of ``i32`` +sentinels indicating the action type followed by some pre-determined number of +arguments required to implement that action. + +A code of ``i32 0`` indicates a cleanup action, which expects one additional +argument. The argument is a pointer to a function that implements the cleanup +action. + +A code of ``i32 1`` indicates a catch action, which expects three additional +arguments. Different EH schemes give different meanings to the three arguments, +but the first argument indicates whether the catch should fire, the second is +the frameescape index of the exception object, and the third is the code to run +to catch the exception. + +For Windows C++ exception handling, the first argument for a catch handler is a +pointer to the RTTI type descriptor for the object to catch. The second +argument is an index into the argument list of the ``llvm.frameescape`` call in +the main function. The exception object will be copied into the provided stack +object. If the exception object is not required, this argument should be -1. +The third argument is a pointer to a function implementing the catch. This +function returns the address of the basic block where execution should resume +after handling the exception. + +For Windows SEH, the first argument is a pointer to the filter function, which +indicates if the exception should be caught or not. The second argument is +typically negative one. The third argument is the address of a basic block +where the exception will be handled. In other words, catch handlers are not +outlined in SEH. After running cleanups, execution immediately resumes at this +PC. + +In order to preserve the structure of the CFG, a call to '``llvm.eh.actions``' +must be followed by an ':ref:`indirectbr `' instruction that +jumps to the result of the intrinsic call. + + SJLJ Intrinsics --------------- diff --git a/docs/ExtendingLLVM.rst b/docs/ExtendingLLVM.rst index 2552c075c9c..56c48af1ff3 100644 --- a/docs/ExtendingLLVM.rst +++ b/docs/ExtendingLLVM.rst @@ -178,42 +178,46 @@ Adding a new instruction to maintain compatibility with the previous version. Only add an instruction if it is absolutely necessary. -#. ``llvm/include/llvm/Instruction.def``: +#. ``llvm/include/llvm/IR/Instruction.def``: add a number for your instruction and an enum name -#. ``llvm/include/llvm/Instructions.h``: +#. ``llvm/include/llvm/IR/Instructions.h``: add a definition for the class that will represent your instruction -#. ``llvm/include/llvm/Support/InstVisitor.h``: +#. ``llvm/include/llvm/IR/InstVisitor.h``: add a prototype for a visitor to your new instruction type -#. ``llvm/lib/AsmParser/Lexer.l``: +#. ``llvm/lib/AsmParser/LLLexer.cpp``: add a new token to parse your instruction from assembly text file -#. ``llvm/lib/AsmParser/llvmAsmParser.y``: +#. ``llvm/lib/AsmParser/LLParser.cpp``: add the grammar on how your instruction can be read and what it will construct as a result -#. ``llvm/lib/Bitcode/Reader/Reader.cpp``: +#. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp``: add a case for your instruction and how it will be parsed from bitcode -#. ``llvm/lib/VMCore/Instruction.cpp``: +#. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp``: + + add a case for your instruction and how it will be parsed from bitcode + +#. ``llvm/lib/IR/Instruction.cpp``: add a case for how your instruction will be printed out to assembly -#. ``llvm/lib/VMCore/Instructions.cpp``: +#. ``llvm/lib/IR/Instructions.cpp``: implement the class you defined in ``llvm/include/llvm/Instructions.h`` #. Test your instruction -#. ``llvm/lib/Target/*``: +#. ``llvm/lib/Target/*``: add support for your instruction to code generators, or add a lowering pass. @@ -236,69 +240,88 @@ Adding a new type Adding a fundamental type ------------------------- -#. ``llvm/include/llvm/Type.h``: +#. ``llvm/include/llvm/IR/Type.h``: add enum for the new type; add static ``Type*`` for this type -#. ``llvm/lib/VMCore/Type.cpp``: +#. ``llvm/lib/IR/Type.cpp`` and ``llvm/lib/IR/ValueTypes.cpp``: add mapping from ``TypeID`` => ``Type*``; initialize the static ``Type*`` -#. ``llvm/lib/AsmReader/Lexer.l``: +#. ``llvm/llvm/llvm-c/Core.cpp``: + + add enum ``LLVMTypeKind`` and modify + ``LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty)`` for the new type + +#. ``llvm/include/llvm/IR/TypeBuilder.h``: + + add new class to represent new type in the hierarchy + +#. ``llvm/lib/AsmParser/LLLexer.cpp``: add ability to parse in the type from text assembly -#. ``llvm/lib/AsmReader/llvmAsmParser.y``: +#. ``llvm/lib/AsmParser/LLParser.cpp``: add a token for that type +#. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp``: + + modify ``static void WriteTypeTable(const ValueEnumerator &VE, + BitstreamWriter &Stream)`` to serialize your type + +#. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp``: + + modify ``bool BitcodeReader::ParseTypeType()`` to read your data type + +#. ``include/llvm/Bitcode/LLVMBitCodes.h``: + + add enum ``TypeCodes`` for the new type + Adding a derived type --------------------- -#. ``llvm/include/llvm/Type.h``: +#. ``llvm/include/llvm/IR/Type.h``: add enum for the new type; add a forward declaration of the type also -#. ``llvm/include/llvm/DerivedTypes.h``: +#. ``llvm/include/llvm/IR/DerivedTypes.h``: add new class to represent new class in the hierarchy; add forward declaration to the TypeMap value type -#. ``llvm/lib/VMCore/Type.cpp``: +#. ``llvm/lib/IR/Type.cpp`` and ``llvm/lib/IR/ValueTypes.cpp``: - add support for derived type to: + add support for derived type, notably `enum TypeID` and `is`, `get` methods. - .. code-block:: c++ +#. ``llvm/llvm/llvm-c/Core.cpp``: - std::string getTypeDescription(const Type &Ty, - std::vector &TypeStack) - bool TypesEqual(const Type *Ty, const Type *Ty2, - std::map &EqTypes) + add enum ``LLVMTypeKind`` and modify + `LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty)` for the new type - add necessary member functions for type, and factory methods +#. ``llvm/include/llvm/IR/TypeBuilder.h``: -#. ``llvm/lib/AsmReader/Lexer.l``: + add new class to represent new class in the hierarchy - add ability to parse in the type from text assembly +#. ``llvm/lib/AsmParser/LLLexer.cpp``: -#. ``llvm/lib/Bitcode/Writer/Writer.cpp``: + modify ``lltok::Kind LLLexer::LexIdentifier()`` to add ability to + parse in the type from text assembly - modify ``void BitcodeWriter::outputType(const Type *T)`` to serialize your - type +#. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp``: -#. ``llvm/lib/Bitcode/Reader/Reader.cpp``: + modify ``static void WriteTypeTable(const ValueEnumerator &VE, + BitstreamWriter &Stream)`` to serialize your type - modify ``const Type *BitcodeReader::ParseType()`` to read your data type +#. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp``: -#. ``llvm/lib/VMCore/AsmWriter.cpp``: + modify ``bool BitcodeReader::ParseTypeType()`` to read your data type - modify +#. ``include/llvm/Bitcode/LLVMBitCodes.h``: - .. code-block:: c++ + add enum ``TypeCodes`` for the new type - void calcTypeName(const Type *Ty, - std::vector &TypeStack, - std::map &TypeNames, - std::string &Result) +#. ``llvm/lib/IR/AsmWriter.cpp``: + modify ``void TypePrinting::print(Type *Ty, raw_ostream &OS)`` to output the new derived type diff --git a/docs/Extensions.rst b/docs/Extensions.rst index 271c08598b3..c8ff07c2b0c 100644 --- a/docs/Extensions.rst +++ b/docs/Extensions.rst @@ -165,6 +165,29 @@ and ``.bar`` is associated to ``.foo``. .section .foo,"bw",discard, "sym" .section .bar,"rd",associative, "sym" + +ELF-Dependent +------------- + +``.section`` Directive +^^^^^^^^^^^^^^^^^^^^^^ + +In order to support creating multiple sections with the same name and comdat, +it is possible to add an unique number at the end of the ``.seciton`` directive. +For example, the following code creates two sections named ``.text``. + +.. code-block:: gas + + .section .text,"ax",@progbits,unique,1 + nop + + .section .text,"ax",@progbits,unique,2 + nop + + +The unique number is not present in the resulting object at all. It is just used +in the assembler to differentiate the sections. + Target Specific Behaviour ========================= diff --git a/docs/FAQ.rst b/docs/FAQ.rst index 8db94c6250c..0559a1ff215 100644 --- a/docs/FAQ.rst +++ b/docs/FAQ.rst @@ -102,7 +102,7 @@ grabbing the wrong linker/assembler/etc, there are two ways to fix it: .. code-block:: console - % PATH=[the path without the bad program] ./configure ... + % PATH=[the path without the bad program] $LLVM_SRC_DIR/configure ... This is still somewhat inconvenient, but it allows ``configure`` to do its work without having to adjust your ``PATH`` permanently. diff --git a/docs/Frontend/PerformanceTips.rst b/docs/Frontend/PerformanceTips.rst new file mode 100644 index 00000000000..22b3fe45984 --- /dev/null +++ b/docs/Frontend/PerformanceTips.rst @@ -0,0 +1,183 @@ +===================================== +Performance Tips for Frontend Authors +===================================== + +.. contents:: + :local: + :depth: 2 + +Abstract +======== + +The intended audience of this document is developers of language frontends +targeting LLVM IR. This document is home to a collection of tips on how to +generate IR that optimizes well. As with any optimizer, LLVM has its strengths +and weaknesses. In some cases, surprisingly small changes in the source IR +can have a large effect on the generated code. + +Avoid loads and stores of large aggregate type +================================================ + +LLVM currently does not optimize well loads and stores of large :ref:`aggregate +types ` (i.e. structs and arrays). As an alternative, consider +loading individual fields from memory. + +Aggregates that are smaller than the largest (performant) load or store +instruction supported by the targeted hardware are well supported. These can +be an effective way to represent collections of small packed fields. + +Prefer zext over sext when legal +================================== + +On some architectures (X86_64 is one), sign extension can involve an extra +instruction whereas zero extension can be folded into a load. LLVM will try to +replace a sext with a zext when it can be proven safe, but if you have +information in your source language about the range of a integer value, it can +be profitable to use a zext rather than a sext. + +Alternatively, you can :ref:`specify the range of the value using metadata +` and LLVM can do the sext to zext conversion for you. + +Zext GEP indices to machine register width +============================================ + +Internally, LLVM often promotes the width of GEP indices to machine register +width. When it does so, it will default to using sign extension (sext) +operations for safety. If your source language provides information about +the range of the index, you may wish to manually extend indices to machine +register width using a zext instruction. + +Other things to consider +========================= + +#. Make sure that a DataLayout is provided (this will likely become required in + the near future, but is certainly important for optimization). + +#. Add nsw/nuw flags as appropriate. Reasoning about overflow is + generally hard for an optimizer so providing these facts from the frontend + can be very impactful. + +#. Use fast-math flags on floating point operations if legal. If you don't + need strict IEEE floating point semantics, there are a number of additional + optimizations that can be performed. This can be highly impactful for + floating point intensive computations. + +#. Use inbounds on geps. This can help to disambiguate some aliasing queries. + +#. Add noalias/align/dereferenceable/nonnull to function arguments and return + values as appropriate + +#. Mark functions as readnone/readonly or noreturn/nounwind when known. The + optimizer will try to infer these flags, but may not always be able to. + Manual annotations are particularly important for external functions that + the optimizer can not analyze. + +#. Use ptrtoint/inttoptr sparingly (they interfere with pointer aliasing + analysis), prefer GEPs + +#. Use the lifetime.start/lifetime.end and invariant.start/invariant.end + intrinsics where possible. Common profitable uses are for stack like data + structures (thus allowing dead store elimination) and for describing + life times of allocas (thus allowing smaller stack sizes). + +#. Use pointer aliasing metadata, especially tbaa metadata, to communicate + otherwise-non-deducible pointer aliasing facts + +#. Use the "most-private" possible linkage types for the functions being defined + (private, internal or linkonce_odr preferably) + +#. Mark invariant locations using !invariant.load and TBAA's constant flags + +#. Prefer globals over inttoptr of a constant address - this gives you + dereferencability information. In MCJIT, use getSymbolAddress to provide + actual address. + +#. Be wary of ordered and atomic memory operations. They are hard to optimize + and may not be well optimized by the current optimizer. Depending on your + source language, you may consider using fences instead. + +#. If calling a function which is known to throw an exception (unwind), use + an invoke with a normal destination which contains an unreachable + instruction. This form conveys to the optimizer that the call returns + abnormally. For an invoke which neither returns normally or requires unwind + code in the current function, you can use a noreturn call instruction if + desired. This is generally not required because the optimizer will convert + an invoke with an unreachable unwind destination to a call instruction. + +#. If you language uses range checks, consider using the IRCE pass. It is not + currently part of the standard pass order. + +#. For languages with numerous rarely executed guard conditions (e.g. null + checks, type checks, range checks) consider adding an extra execution or + two of LoopUnswith and LICM to your pass order. The standard pass order, + which is tuned for C and C++ applications, may not be sufficient to remove + all dischargeable checks from loops. + +#. Use profile metadata to indicate statically known cold paths, even if + dynamic profiling information is not available. This can make a large + difference in code placement and thus the performance of tight loops. + +#. When generating code for loops, try to avoid terminating the header block of + the loop earlier than necessary. If the terminator of the loop header + block is a loop exiting conditional branch, the effectiveness of LICM will + be limited for loads not in the header. (This is due to the fact that LLVM + may not know such a load is safe to speculatively execute and thus can't + lift an otherwise loop invariant load unless it can prove the exiting + condition is not taken.) It can be profitable, in some cases, to emit such + instructions into the header even if they are not used along a rarely + executed path that exits the loop. This guidance specifically does not + apply if the condition which terminates the loop header is itself invariant, + or can be easily discharged by inspecting the loop index variables. + +#. In hot loops, consider duplicating instructions from small basic blocks + which end in highly predictable terminators into their successor blocks. + If a hot successor block contains instructions which can be vectorized + with the duplicated ones, this can provide a noticeable throughput + improvement. Note that this is not always profitable and does involve a + potentially large increase in code size. + +#. Avoid high in-degree basic blocks (e.g. basic blocks with dozens or hundreds + of predecessors). Among other issues, the register allocator is known to + perform badly with confronted with such structures. The only exception to + this guidance is that a unified return block with high in-degree is fine. + +#. When checking a value against a constant, emit the check using a consistent + comparison type. The GVN pass *will* optimize redundant equalities even if + the type of comparison is inverted, but GVN only runs late in the pipeline. + As a result, you may miss the opportunity to run other important + optimizations. Improvements to EarlyCSE to remove this issue are tracked in + Bug 23333. + +#. Avoid using arithmetic intrinsics unless you are *required* by your source + language specification to emit a particular code sequence. The optimizer + is quite good at reasoning about general control flow and arithmetic, it is + not anywhere near as strong at reasoning about the various intrinsics. If + profitable for code generation purposes, the optimizer will likely form the + intrinsics itself late in the optimization pipeline. It is *very* rarely + profitable to emit these directly in the language frontend. This item + explicitly includes the use of the :ref:`overflow intrinsics `. + +#. Avoid using the :ref:`assume intrinsic ` until you've + established that a) there's no other way to express the given fact and b) + that fact is critical for optimization purposes. Assumes are a great + prototyping mechanism, but they can have negative effects on both compile + time and optimization effectiveness. The former is fixable with enough + effort, but the later is fairly fundamental to their designed purpose. + +p.s. If you want to help improve this document, patches expanding any of the +above items into standalone sections of their own with a more complete +discussion would be very welcome. + + +Adding to this document +======================= + +If you run across a case that you feel deserves to be covered here, please send +a patch to `llvm-commits +`_ for review. + +If you have questions on these items, please direct them to `llvmdev +`_. The more relevant +context you are able to give to your question, the more likely it is to be +answered. + diff --git a/docs/GarbageCollection.rst b/docs/GarbageCollection.rst index 49d3496748e..56b4b9f8f95 100644 --- a/docs/GarbageCollection.rst +++ b/docs/GarbageCollection.rst @@ -1,13 +1,82 @@ ===================================== -Accurate Garbage Collection with LLVM +Garbage Collection with LLVM ===================================== .. contents:: :local: +Abstract +======== + +This document covers how to integrate LLVM into a compiler for a language which +supports garbage collection. **Note that LLVM itself does not provide a +garbage collector.** You must provide your own. + +Quick Start +============ + +First, you should pick a collector strategy. LLVM includes a number of built +in ones, but you can also implement a loadable plugin with a custom definition. +Note that the collector strategy is a description of how LLVM should generate +code such that it interacts with your collector and runtime, not a description +of the collector itself. + +Next, mark your generated functions as using your chosen collector strategy. +From c++, you can call: + +.. code-block:: c++ + + F.setGC(); + + +This will produce IR like the following fragment: + +.. code-block:: llvm + + define void @foo() gc "" { ... } + + +When generating LLVM IR for your functions, you will need to: + +* Use ``@llvm.gcread`` and/or ``@llvm.gcwrite`` in place of standard load and + store instructions. These intrinsics are used to represent load and store + barriers. If you collector does not require such barriers, you can skip + this step. + +* Use the memory allocation routines provided by your garbage collector's + runtime library. + +* If your collector requires them, generate type maps according to your + runtime's binary interface. LLVM is not involved in the process. In + particular, the LLVM type system is not suitable for conveying such + information though the compiler. + +* Insert any coordination code required for interacting with your collector. + Many collectors require running application code to periodically check a + flag and conditionally call a runtime function. This is often referred to + as a safepoint poll. + +You will need to identify roots (i.e. references to heap objects your collector +needs to know about) in your generated IR, so that LLVM can encode them into +your final stack maps. Depending on the collector strategy chosen, this is +accomplished by using either the ``@llvm.gcroot`` intrinsics or an +``gc.statepoint`` relocation sequence. + +Don't forget to create a root for each intermediate value that is generated when +evaluating an expression. In ``h(f(), g())``, the result of ``f()`` could +easily be collected if evaluating ``g()`` triggers a collection. + +Finally, you need to link your runtime library with the generated program +executable (for a static compiler) or ensure the appropriate symbols are +available for the runtime linker (for a JIT compiler). + + Introduction ============ +What is Garbage Collection? +--------------------------- + Garbage collection is a widely used technique that frees the programmer from having to know the lifetimes of heap objects, making software easier to produce and maintain. Many programming languages rely on garbage collection for @@ -59,31 +128,34 @@ instance, the intrinsics permit: * generational collectors -* reference counting - * incremental collectors * concurrent collectors * cooperative collectors -We hope that the primitive support built into the LLVM IR is sufficient to -support a broad class of garbage collected languages including Scheme, ML, Java, -C#, Perl, Python, Lua, Ruby, other scripting languages, and more. +* reference counting -However, LLVM does not itself provide a garbage collector --- this should be -part of your language's runtime library. LLVM provides a framework for compile -time :ref:`code generation plugins `. The role of these plugins is to +We hope that the support built into the LLVM IR is sufficient to support a +broad class of garbage collected languages including Scheme, ML, Java, C#, +Perl, Python, Lua, Ruby, other scripting languages, and more. + +Note that LLVM **does not itself provide a garbage collector** --- this should +be part of your language's runtime library. LLVM provides a framework for +describing the garbage collectors requirements to the compiler. In particular, +LLVM provides support for generating stack maps at call sites, polling for a +safepoint, and emitting load and store barriers. You can also extend LLVM - +possibly through a loadable :ref:`code generation plugins ` - to generate code and data structures which conforms to the *binary interface* specified by the *runtime library*. This is similar to the relationship between LLVM and DWARF debugging info, for example. The difference primarily lies in the lack of an established standard in the domain of garbage collection --- thus -the plugins. +the need for a flexible extension mechanism. The aspects of the binary interface with which LLVM's GC support is concerned are: -* Creation of GC-safe points within code where collection is allowed to execute +* Creation of GC safepoints within code where collection is allowed to execute safely. * Computation of the stack map. For each safe point in the code, object @@ -111,205 +183,63 @@ There are additional areas that LLVM does not directly address: In general, LLVM's support for GC does not include features which can be adequately addressed with other features of the IR and does not specify a particular binary interface. On the plus side, this means that you should be -able to integrate LLVM with an existing runtime. On the other hand, it leaves a -lot of work for the developer of a novel language. However, it's easy to get -started quickly and scale up to a more sophisticated implementation as your -compiler matures. - -Getting started -=============== - -Using a GC with LLVM implies many things, for example: - -* Write a runtime library or find an existing one which implements a GC heap. - - #. Implement a memory allocator. - - #. Design a binary interface for the stack map, used to identify references - within a stack frame on the machine stack.\* - - #. Implement a stack crawler to discover functions on the call stack.\* - - #. Implement a registry for global roots. - - #. Design a binary interface for type maps, used to identify references - within heap objects. - - #. Implement a collection routine bringing together all of the above. - -* Emit compatible code from your compiler. - - * Initialization in the main function. - - * Use the ``gc "..."`` attribute to enable GC code generation (or - ``F.setGC("...")``). - - * Use ``@llvm.gcroot`` to mark stack roots. - - * Use ``@llvm.gcread`` and/or ``@llvm.gcwrite`` to manipulate GC references, - if necessary. - - * Allocate memory using the GC allocation routine provided by the runtime - library. - - * Generate type maps according to your runtime's binary interface. - -* Write a compiler plugin to interface LLVM with the runtime library.\* - - * Lower ``@llvm.gcread`` and ``@llvm.gcwrite`` to appropriate code - sequences.\* - - * Compile LLVM's stack map to the binary form expected by the runtime. - -* Load the plugin into the compiler. Use ``llc -load`` or link the plugin - statically with your language's compiler.\* - -* Link program executables with the runtime. - -To help with several of these tasks (those indicated with a \*), LLVM includes a -highly portable, built-in ShadowStack code generator. It is compiled into -``llc`` and works even with the interpreter and C backends. - -In your compiler ----------------- - -To turn the shadow stack on for your functions, first call: - -.. code-block:: c++ - - F.setGC("shadow-stack"); - -for each function your compiler emits. Since the shadow stack is built into -LLVM, you do not need to load a plugin. - -Your compiler must also use ``@llvm.gcroot`` as documented. Don't forget to -create a root for each intermediate value that is generated when evaluating an -expression. In ``h(f(), g())``, the result of ``f()`` could easily be collected -if evaluating ``g()`` triggers a collection. - -There's no need to use ``@llvm.gcread`` and ``@llvm.gcwrite`` over plain -``load`` and ``store`` for now. You will need them when switching to a more -advanced GC. - -In your runtime ---------------- - -The shadow stack doesn't imply a memory allocation algorithm. A semispace -collector or building atop ``malloc`` are great places to start, and can be -implemented with very little code. - -When it comes time to collect, however, your runtime needs to traverse the stack -roots, and for this it needs to integrate with the shadow stack. Luckily, doing -so is very simple. (This code is heavily commented to help you understand the -data structure, but there are only 20 lines of meaningful code.) - -.. code-block:: c++ - - /// @brief The map for a single function's stack frame. One of these is - /// compiled as constant data into the executable for each function. - /// - /// Storage of metadata values is elided if the %metadata parameter to - /// @llvm.gcroot is null. - struct FrameMap { - int32_t NumRoots; //< Number of roots in stack frame. - int32_t NumMeta; //< Number of metadata entries. May be < NumRoots. - const void *Meta[0]; //< Metadata for each root. - }; - - /// @brief A link in the dynamic shadow stack. One of these is embedded in - /// the stack frame of each function on the call stack. - struct StackEntry { - StackEntry *Next; //< Link to next stack entry (the caller's). - const FrameMap *Map; //< Pointer to constant FrameMap. - void *Roots[0]; //< Stack roots (in-place array). - }; - - /// @brief The head of the singly-linked list of StackEntries. Functions push - /// and pop onto this in their prologue and epilogue. - /// - /// Since there is only a global list, this technique is not threadsafe. - StackEntry *llvm_gc_root_chain; - - /// @brief Calls Visitor(root, meta) for each GC root on the stack. - /// root and meta are exactly the values passed to - /// @llvm.gcroot. - /// - /// Visitor could be a function to recursively mark live objects. Or it - /// might copy them to another heap or generation. - /// - /// @param Visitor A function to invoke for every GC root on the stack. - void visitGCRoots(void (*Visitor)(void **Root, const void *Meta)) { - for (StackEntry *R = llvm_gc_root_chain; R; R = R->Next) { - unsigned i = 0; - - // For roots [0, NumMeta), the metadata pointer is in the FrameMap. - for (unsigned e = R->Map->NumMeta; i != e; ++i) - Visitor(&R->Roots[i], R->Map->Meta[i]); - - // For roots [NumMeta, NumRoots), the metadata pointer is null. - for (unsigned e = R->Map->NumRoots; i != e; ++i) - Visitor(&R->Roots[i], NULL); - } - } - -About the shadow stack ----------------------- - -Unlike many GC algorithms which rely on a cooperative code generator to compile -stack maps, this algorithm carefully maintains a linked list of stack roots -[:ref:`Henderson2002 `]. This so-called "shadow stack" mirrors the -machine stack. Maintaining this data structure is slower than using a stack map -compiled into the executable as constant data, but has a significant portability -advantage because it requires no special support from the target code generator, -and does not require tricky platform-specific code to crawl the machine stack. - -The tradeoff for this simplicity and portability is: - -* High overhead per function call. - -* Not thread-safe. - -Still, it's an easy way to get started. After your compiler and runtime are up -and running, writing a :ref:`plugin ` will allow you to take advantage -of :ref:`more advanced GC features ` of LLVM in order to -improve performance. +able to integrate LLVM with an existing runtime. On the other hand, it can +have the effect of leaving a lot of work for the developer of a novel +language. We try to mitigate this by providing built in collector strategy +descriptions that can work with many common collector designs and easy +extension points. If you don't already have a specific binary interface +you need to support, we recommend trying to use one of these built in collector +strategies. .. _gc_intrinsics: -IR features -=========== +LLVM IR Features +================ This section describes the garbage collection facilities provided by the :doc:`LLVM intermediate representation `. The exact behavior of these -IR features is specified by the binary interface implemented by a :ref:`code -generation plugin `, not by this document. - -These facilities are limited to those strictly necessary; they are not intended -to be a complete interface to any garbage collector. A program will need to -interface with the GC library using the facilities provided by that program. +IR features is specified by the selected :ref:`GC strategy description +`. Specifying GC code generation: ``gc "..."`` ------------------------------------------- .. code-block:: llvm - define ty @name(...) gc "name" { ... + define @name(...) gc "name" { ... } -The ``gc`` function attribute is used to specify the desired GC style to the +The ``gc`` function attribute is used to specify the desired GC strategy to the compiler. Its programmatic equivalent is the ``setGC`` method of ``Function``. -Setting ``gc "name"`` on a function triggers a search for a matching code -generation plugin "*name*"; it is that plugin which defines the exact nature of -the code generated to support GC. If none is found, the compiler will raise an -error. +Setting ``gc "name"`` on a function triggers a search for a matching subclass +of GCStrategy. Some collector strategies are built in. You can add others +using either the loadable plugin mechanism, or by patching your copy of LLVM. +It is the selected GC strategy which defines the exact nature of the code +generated to support GC. If none is found, the compiler will raise an error. Specifying the GC style on a per-function basis allows LLVM to link together programs that use different garbage collection algorithms (or none at all). .. _gcroot: -Identifying GC roots on the stack: ``llvm.gcroot`` --------------------------------------------------- +Identifying GC roots on the stack +---------------------------------- + +LLVM currently supports two different mechanisms for describing references in +compiled code at safepoints. ``llvm.gcroot`` is the older mechanism; +``gc.statepoint`` has been added more recently. At the moment, you can choose +either implementation (on a per :ref:`GC strategy ` basis). Longer +term, we will probably either migrate away from ``llvm.gcroot`` entirely, or +substantially merge their implementations. Note that most new development +work is focused on ``gc.statepoint``. + +Using ``gc.statepoint`` +^^^^^^^^^^^^^^^^^^^^^^^^ +:doc:`This page ` contains detailed documentation for +``gc.statepoint``. + +Using ``llvm.gcwrite`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: llvm @@ -317,24 +247,27 @@ Identifying GC roots on the stack: ``llvm.gcroot`` The ``llvm.gcroot`` intrinsic is used to inform LLVM that a stack variable references an object on the heap and is to be tracked for garbage collection. -The exact impact on generated code is specified by a :ref:`compiler plugin -`. All calls to ``llvm.gcroot`` **must** reside inside the first basic -block. - -A compiler which uses mem2reg to raise imperative code using ``alloca`` into SSA -form need only add a call to ``@llvm.gcroot`` for those variables which a -pointers into the GC heap. - -It is also important to mark intermediate values with ``llvm.gcroot``. For -example, consider ``h(f(), g())``. Beware leaking the result of ``f()`` in the -case that ``g()`` triggers a collection. Note, that stack variables must be -initialized and marked with ``llvm.gcroot`` in function's prologue. +The exact impact on generated code is specified by the Function's selected +:ref:`GC strategy `. All calls to ``llvm.gcroot`` **must** reside +inside the first basic block. The first argument **must** be a value referring to an alloca instruction or a bitcast of an alloca. The second contains a pointer to metadata that should be associated with the pointer, and **must** be a constant or global value address. If your target collector uses tags, use a null pointer for metadata. +A compiler which performs manual SSA construction **must** ensure that SSA +values representing GC references are stored in to the alloca passed to the +respective ``gcroot`` before every call site and reloaded after every call. +A compiler which uses mem2reg to raise imperative code using ``alloca`` into +SSA form need only add a call to ``@llvm.gcroot`` for those variables which +are pointers into the GC heap. + +It is also important to mark intermediate values with ``llvm.gcroot``. For +example, consider ``h(f(), g())``. Beware leaking the result of ``f()`` in the +case that ``g()`` triggers a collection. Note, that stack variables must be +initialized and marked with ``llvm.gcroot`` in function's prologue. + The ``%metadata`` argument can be used to avoid requiring heap objects to have 'isa' pointers or tag bits. [Appel89_, Goldberg91_, Tolmach94_] If specified, its value will be tracked along with the location of the pointer in the stack @@ -407,12 +340,18 @@ pointer: %derived = getelementptr %object, i32 0, i32 2, i32 %n LLVM does not enforce this relationship between the object and derived pointer -(although a :ref:`plugin ` might). However, it would be an unusual -collector that violated it. +(although a particular :ref:`collector strategy ` might). However, it +would be an unusual collector that violated it. -The use of these intrinsics is naturally optional if the target GC does require -the corresponding barrier. Such a GC plugin will replace the intrinsic calls -with the corresponding ``load`` or ``store`` instruction if they are used. +The use of these intrinsics is naturally optional if the target GC does not +require the corresponding barrier. The GC strategy used with such a collector +should replace the intrinsic calls with the corresponding ``load`` or +``store`` instruction if they are used. + +One known deficiency with the current design is that the barrier intrinsics do +not include the size or alignment of the underlying operation performed. It is +currently assumed that the operation is of pointer size and the alignment is +assumed to be the target machine's default alignment. Write barrier: ``llvm.gcwrite`` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -423,8 +362,8 @@ Write barrier: ``llvm.gcwrite`` For write barriers, LLVM provides the ``llvm.gcwrite`` intrinsic function. It has exactly the same semantics as a non-volatile ``store`` to the derived -pointer (the third argument). The exact code generated is specified by a -compiler :ref:`plugin `. +pointer (the third argument). The exact code generated is specified by the +Function's selected :ref:`GC strategy `. Many important algorithms require write barriers, including generational and concurrent collectors. Additionally, write barriers could be used to implement @@ -439,16 +378,212 @@ Read barrier: ``llvm.gcread`` For read barriers, LLVM provides the ``llvm.gcread`` intrinsic function. It has exactly the same semantics as a non-volatile ``load`` from the derived pointer -(the second argument). The exact code generated is specified by a -:ref:`compiler plugin `. +(the second argument). The exact code generated is specified by the Function's +selected :ref:`GC strategy `. Read barriers are needed by fewer algorithms than write barriers, and may have a greater performance impact since pointer reads are more frequent than writes. .. _plugin: +.. _builtin-gc-strategies: + +Built In GC Strategies +====================== + +LLVM includes built in support for several varieties of garbage collectors. + +The Shadow Stack GC +---------------------- + +To use this collector strategy, mark your functions with: + +.. code-block:: c++ + + F.setGC("shadow-stack"); + +Unlike many GC algorithms which rely on a cooperative code generator to compile +stack maps, this algorithm carefully maintains a linked list of stack roots +[:ref:`Henderson2002 `]. This so-called "shadow stack" mirrors the +machine stack. Maintaining this data structure is slower than using a stack map +compiled into the executable as constant data, but has a significant portability +advantage because it requires no special support from the target code generator, +and does not require tricky platform-specific code to crawl the machine stack. + +The tradeoff for this simplicity and portability is: + +* High overhead per function call. + +* Not thread-safe. + +Still, it's an easy way to get started. After your compiler and runtime are up +and running, writing a :ref:`plugin ` will allow you to take advantage +of :ref:`more advanced GC features ` of LLVM in order to +improve performance. + + +The shadow stack doesn't imply a memory allocation algorithm. A semispace +collector or building atop ``malloc`` are great places to start, and can be +implemented with very little code. + +When it comes time to collect, however, your runtime needs to traverse the stack +roots, and for this it needs to integrate with the shadow stack. Luckily, doing +so is very simple. (This code is heavily commented to help you understand the +data structure, but there are only 20 lines of meaningful code.) + +.. code-block:: c++ + + /// @brief The map for a single function's stack frame. One of these is + /// compiled as constant data into the executable for each function. + /// + /// Storage of metadata values is elided if the %metadata parameter to + /// @llvm.gcroot is null. + struct FrameMap { + int32_t NumRoots; //< Number of roots in stack frame. + int32_t NumMeta; //< Number of metadata entries. May be < NumRoots. + const void *Meta[0]; //< Metadata for each root. + }; + + /// @brief A link in the dynamic shadow stack. One of these is embedded in + /// the stack frame of each function on the call stack. + struct StackEntry { + StackEntry *Next; //< Link to next stack entry (the caller's). + const FrameMap *Map; //< Pointer to constant FrameMap. + void *Roots[0]; //< Stack roots (in-place array). + }; + + /// @brief The head of the singly-linked list of StackEntries. Functions push + /// and pop onto this in their prologue and epilogue. + /// + /// Since there is only a global list, this technique is not threadsafe. + StackEntry *llvm_gc_root_chain; + + /// @brief Calls Visitor(root, meta) for each GC root on the stack. + /// root and meta are exactly the values passed to + /// @llvm.gcroot. + /// + /// Visitor could be a function to recursively mark live objects. Or it + /// might copy them to another heap or generation. + /// + /// @param Visitor A function to invoke for every GC root on the stack. + void visitGCRoots(void (*Visitor)(void **Root, const void *Meta)) { + for (StackEntry *R = llvm_gc_root_chain; R; R = R->Next) { + unsigned i = 0; + + // For roots [0, NumMeta), the metadata pointer is in the FrameMap. + for (unsigned e = R->Map->NumMeta; i != e; ++i) + Visitor(&R->Roots[i], R->Map->Meta[i]); + + // For roots [NumMeta, NumRoots), the metadata pointer is null. + for (unsigned e = R->Map->NumRoots; i != e; ++i) + Visitor(&R->Roots[i], NULL); + } + } + + +The 'Erlang' and 'Ocaml' GCs +----------------------------- + +LLVM ships with two example collectors which leverage the ``gcroot`` +mechanisms. To our knowledge, these are not actually used by any language +runtime, but they do provide a reasonable starting point for someone interested +in writing an ``gcroot`` compatible GC plugin. In particular, these are the +only in tree examples of how to produce a custom binary stack map format using +a ``gcroot`` strategy. + +As there names imply, the binary format produced is intended to model that +used by the Erlang and OCaml compilers respectively. + +.. _statepoint_example_gc: + +The Statepoint Example GC +------------------------- + +.. code-block:: c++ + + F.setGC("statepoint-example"); + +This GC provides an example of how one might use the infrastructure provided +by ``gc.statepoint``. This example GC is compatible with the +:ref:`PlaceSafepoints` and :ref:`RewriteStatepointsForGC` utility passes +which simplify ``gc.statepoint`` sequence insertion. If you need to build a +custom GC strategy around the ``gc.statepoints`` mechanisms, it is recommended +that you use this one as a starting point. + +This GC strategy does not support read or write barriers. As a result, these +intrinsics are lowered to normal loads and stores. + +The stack map format generated by this GC strategy can be found in the +:ref:`stackmap-section` using a format documented :ref:`here +`. This format is intended to be the standard +format supported by LLVM going forward. + +The CoreCLR GC +------------------------- + +.. code-block:: c++ + + F.setGC("coreclr"); + +This GC leverages the ``gc.statepoint`` mechanism to support the +`CoreCLR `__ runtime. + +Support for this GC strategy is a work in progress. This strategy will +differ from +:ref:`statepoint-example GC` strategy in +certain aspects like: + +* Base-pointers of interior pointers are not explicitly + tracked and reported. + +* A different format is used for encoding stack maps. + +* Safe-point polls are only needed before loop-back edges + and before tail-calls (not needed at function-entry). + +Custom GC Strategies +==================== + +If none of the built in GC strategy descriptions met your needs above, you will +need to define a custom GCStrategy and possibly, a custom LLVM pass to perform +lowering. Your best example of where to start defining a custom GCStrategy +would be to look at one of the built in strategies. + +You may be able to structure this additional code as a loadable plugin library. +Loadable plugins are sufficient if all you need is to enable a different +combination of built in functionality, but if you need to provide a custom +lowering pass, you will need to build a patched version of LLVM. If you think +you need a patched build, please ask for advice on llvm-dev. There may be an +easy way we can extend the support to make it work for your use case without +requiring a custom build. + +Collector Requirements +---------------------- + +You should be able to leverage any existing collector library that includes the following elements: + +#. A memory allocator which exposes an allocation function your compiled + code can call. + +#. A binary format for the stack map. A stack map describes the location + of references at a safepoint and is used by precise collectors to identify + references within a stack frame on the machine stack. Note that collectors + which conservatively scan the stack don't require such a structure. + +#. A stack crawler to discover functions on the call stack, and enumerate the + references listed in the stack map for each call site. + +#. A mechanism for identifying references in global locations (e.g. global + variables). + +#. If you collector requires them, an LLVM IR implementation of your collectors + load and store barriers. Note that since many collectors don't require + barriers at all, LLVM defaults to lowering such barriers to normal loads + and stores unless you arrange otherwise. + + Implementing a collector plugin -=============================== +------------------------------- User code specifies which GC code generation to use with the ``gc`` function attribute or, equivalently, with the ``setGC`` method of ``Function``. @@ -721,8 +856,9 @@ this feature should be used by all GC plugins. It is enabled by default. Custom lowering of intrinsics: ``CustomRoots``, ``CustomReadBarriers``, and ``CustomWriteBarriers`` --------------------------------------------------------------------------------------------------- -For GCs which use barriers or unusual treatment of stack roots, these flags -allow the collector to perform arbitrary transformations of the LLVM IR: +For GCs which use barriers or unusual treatment of stack roots, these +flags allow the collector to perform arbitrary transformations of the +LLVM IR: .. code-block:: c++ @@ -733,70 +869,18 @@ allow the collector to perform arbitrary transformations of the LLVM IR: CustomReadBarriers = true; CustomWriteBarriers = true; } - - virtual bool initializeCustomLowering(Module &M); - virtual bool performCustomLowering(Function &F); }; -If any of these flags are set, then LLVM suppresses its default lowering for the -corresponding intrinsics and instead calls ``performCustomLowering``. +If any of these flags are set, LLVM suppresses its default lowering for +the corresponding intrinsics. Instead, you must provide a custom Pass +which lowers the intrinsics as desired. If you have opted in to custom +lowering of a particular intrinsic your pass **must** eliminate all +instances of the corresponding intrinsic in functions which opt in to +your GC. The best example of such a pass is the ShadowStackGC and it's +ShadowStackGCLowering pass. -LLVM's default action for each intrinsic is as follows: - -* ``llvm.gcroot``: Leave it alone. The code generator must see it or the stack - map will not be computed. - -* ``llvm.gcread``: Substitute a ``load`` instruction. - -* ``llvm.gcwrite``: Substitute a ``store`` instruction. - -If ``CustomReadBarriers`` or ``CustomWriteBarriers`` are specified, then -``performCustomLowering`` **must** eliminate the corresponding barriers. - -``performCustomLowering`` must comply with the same restrictions as -:ref:`FunctionPass::runOnFunction ` -Likewise, ``initializeCustomLowering`` has the same semantics as -:ref:`Pass::doInitialization(Module&) -` - -The following can be used as a template: - -.. code-block:: c++ - - #include "llvm/IR/Module.h" - #include "llvm/IR/IntrinsicInst.h" - - bool MyGC::initializeCustomLowering(Module &M) { - return false; - } - - bool MyGC::performCustomLowering(Function &F) { - bool MadeChange = false; - - for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) - for (BasicBlock::iterator II = BB->begin(), E = BB->end(); II != E; ) - if (IntrinsicInst *CI = dyn_cast(II++)) - if (Function *F = CI->getCalledFunction()) - switch (F->getIntrinsicID()) { - case Intrinsic::gcwrite: - // Handle llvm.gcwrite. - CI->eraseFromParent(); - MadeChange = true; - break; - case Intrinsic::gcread: - // Handle llvm.gcread. - CI->eraseFromParent(); - MadeChange = true; - break; - case Intrinsic::gcroot: - // Handle llvm.gcroot. - CI->eraseFromParent(); - MadeChange = true; - break; - } - - return MadeChange; - } +There is currently no way to register such a custom lowering pass +without building a custom copy of LLVM. .. _safe-points: diff --git a/docs/GetElementPtr.rst b/docs/GetElementPtr.rst index 91025d883f2..c9cfae64ace 100644 --- a/docs/GetElementPtr.rst +++ b/docs/GetElementPtr.rst @@ -89,12 +89,12 @@ looks like: void %munge(%struct.munger_struct* %P) { entry: - %tmp = getelementptr %struct.munger_struct* %P, i32 1, i32 0 + %tmp = getelementptr %struct.munger_struct, %struct.munger_struct* %P, i32 1, i32 0 %tmp = load i32* %tmp - %tmp6 = getelementptr %struct.munger_struct* %P, i32 2, i32 1 + %tmp6 = getelementptr %struct.munger_struct, %struct.munger_struct* %P, i32 2, i32 1 %tmp7 = load i32* %tmp6 %tmp8 = add i32 %tmp7, %tmp - %tmp9 = getelementptr %struct.munger_struct* %P, i32 0, i32 0 + %tmp9 = getelementptr %struct.munger_struct, %struct.munger_struct* %P, i32 0, i32 0 store i32 %tmp8, i32* %tmp9 ret void } @@ -109,9 +109,9 @@ To make this clear, let's consider a more obtuse example: %MyVar = uninitialized global i32 ... - %idx1 = getelementptr i32* %MyVar, i64 0 - %idx2 = getelementptr i32* %MyVar, i64 1 - %idx3 = getelementptr i32* %MyVar, i64 2 + %idx1 = getelementptr i32, i32* %MyVar, i64 0 + %idx2 = getelementptr i32, i32* %MyVar, i64 1 + %idx3 = getelementptr i32, i32* %MyVar, i64 2 These GEP instructions are simply making address computations from the base address of ``MyVar``. They compute, as follows (using C syntax): @@ -146,7 +146,7 @@ variable which is always a pointer type. For example, consider this: %MyStruct = uninitialized global { float*, i32 } ... - %idx = getelementptr { float*, i32 }* %MyStruct, i64 0, i32 1 + %idx = getelementptr { float*, i32 }, { float*, i32 }* %MyStruct, i64 0, i32 1 The GEP above yields an ``i32*`` by indexing the ``i32`` typed field of the structure ``%MyStruct``. When people first look at it, they wonder why the ``i64 @@ -182,7 +182,7 @@ only involved in the computation of addresses. For example, consider this: %MyVar = uninitialized global { [40 x i32 ]* } ... - %idx = getelementptr { [40 x i32]* }* %MyVar, i64 0, i32 0, i64 0, i64 17 + %idx = getelementptr { [40 x i32]* }, { [40 x i32]* }* %MyVar, i64 0, i32 0, i64 0, i64 17 In this example, we have a global variable, ``%MyVar`` that is a pointer to a structure containing a pointer to an array of 40 ints. The GEP instruction seems @@ -197,9 +197,9 @@ following: .. code-block:: llvm - %idx = getelementptr { [40 x i32]* }* %, i64 0, i32 0 + %idx = getelementptr { [40 x i32]* }, { [40 x i32]* }* %, i64 0, i32 0 %arr = load [40 x i32]** %idx - %idx = getelementptr [40 x i32]* %arr, i64 0, i64 17 + %idx = getelementptr [40 x i32], [40 x i32]* %arr, i64 0, i64 17 In this case, we have to load the pointer in the structure with a load instruction before we can index into the array. If the example was changed to: @@ -208,7 +208,7 @@ instruction before we can index into the array. If the example was changed to: %MyVar = uninitialized global { [40 x i32 ] } ... - %idx = getelementptr { [40 x i32] }*, i64 0, i32 0, i64 17 + %idx = getelementptr { [40 x i32] }, { [40 x i32] }*, i64 0, i32 0, i64 17 then everything works fine. In this case, the structure does not contain a pointer and the GEP instruction can index through the global variable, into the @@ -225,9 +225,9 @@ index. Consider this example: .. code-block:: llvm - %MyVar = global { [10 x i32 ] } - %idx1 = getelementptr { [10 x i32 ] }* %MyVar, i64 0, i32 0, i64 1 - %idx2 = getelementptr { [10 x i32 ] }* %MyVar, i64 1 + %MyVar = global { [10 x i32] } + %idx1 = getelementptr { [10 x i32] }, { [10 x i32] }* %MyVar, i64 0, i32 0, i64 1 + %idx2 = getelementptr { [10 x i32] }, { [10 x i32] }* %MyVar, i64 1 In this example, ``idx1`` computes the address of the second integer in the array that is in the structure in ``%MyVar``, that is ``MyVar+4``. The type of @@ -248,9 +248,9 @@ type. Consider this example: .. code-block:: llvm - %MyVar = global { [10 x i32 ] } - %idx1 = getelementptr { [10 x i32 ] }* %MyVar, i64 1, i32 0, i64 0 - %idx2 = getelementptr { [10 x i32 ] }* %MyVar, i64 1 + %MyVar = global { [10 x i32] } + %idx1 = getelementptr { [10 x i32] }, { [10 x i32] }* %MyVar, i64 1, i32 0, i64 0 + %idx2 = getelementptr { [10 x i32] }, { [10 x i32] }* %MyVar, i64 1 In this example, the value of ``%idx1`` is ``%MyVar+40`` and its type is ``i32*``. The value of ``%idx2`` is also ``MyVar+40`` but its type is ``{ [10 x diff --git a/docs/GettingStarted.rst b/docs/GettingStarted.rst index 316f1f7380f..18b3c1d87cc 100644 --- a/docs/GettingStarted.rst +++ b/docs/GettingStarted.rst @@ -62,38 +62,50 @@ Here's the short story for getting up and running quickly with LLVM: * ``svn co http://llvm.org/svn/llvm-project/test-suite/trunk test-suite`` #. Configure and build LLVM and Clang: + + The usual build uses `CMake `_. If you would rather use + autotools, see `Building LLVM with autotools `_. - * ``cd where-you-want-to-build-llvm`` - * ``mkdir build`` (for building without polluting the source dir) + * ``cd where you want to build llvm`` + * ``mkdir build`` * ``cd build`` - * ``../llvm/configure [options]`` - Some common options: + * ``cmake -G [options] `` + + Some common generators are: - * ``--prefix=directory`` --- Specify for *directory* the full pathname of - where you want the LLVM tools and libraries to be installed (default - ``/usr/local``). + * ``Unix Makefiles`` --- for generating make-compatible parallel makefiles. + * ``Ninja`` --- for generating `Ninja ` + build files. + * ``Visual Studio`` --- for generating Visual Studio projects and + solutions. + * ``Xcode`` --- for generating Xcode projects. + + Some Common options: - * ``--enable-optimized`` --- Compile with optimizations enabled (default - is NO). + * ``-DCMAKE_INSTALL_PREFIX=directory`` --- Specify for *directory* the full + pathname of where you want the LLVM tools and libraries to be installed + (default ``/usr/local``). - * ``--enable-assertions`` --- Compile with assertion checks enabled - (default is YES). + * ``-DCMAKE_BUILD_TYPE=type`` --- Valid options for *type* are Debug, + Release, RelWithDebInfo, and MinSizeRel. Default is Debug. - * ``make [-j]`` --- The ``-j`` specifies the number of jobs (commands) to run - simultaneously. This builds both LLVM and Clang for Debug+Asserts mode. - The ``--enable-optimized`` configure option is used to specify a Release - build. + * ``-DLLVM_ENABLE_ASSERTIONS=On`` --- Compile with assertion checks enabled + (default is Yes for Debug builds, No for all other build types). - * ``make check-all`` --- This run the regression tests to ensure everything - is in working order. + * Run your build tool of choice! - * It is also possible to use `CMake `_ instead of the makefiles. - With CMake it is possible to generate project files for several IDEs: - Xcode, Eclipse CDT4, CodeBlocks, Qt-Creator (use the CodeBlocks - generator), KDevelop3. + * The default target (i.e. ``make``) will build all of LLVM + + * The ``check-all`` target (i.e. ``make check-all``) will run the + regression tests to ensure everything is in working order. + + * CMake will generate build targets for each tool and library, and most + LLVM sub-projects generate their own ``check-`` target. + + * For more information see `CMake `_ * If you get an "internal compiler error (ICE)" or test failures, see - `below`. + `below`_. Consult the `Getting Started with LLVM`_ section for detailed information on configuring and compiling LLVM. See `Setting Up Your Environment`_ for tips @@ -134,7 +146,8 @@ Windows x64 x86-64 Visual Studio #. Code generation supported for Pentium processors and up #. Code generation supported for 32-bit ABI only #. To use LLVM modules on Win32-based system, you may configure LLVM - with ``--enable-shared``. + with ``-DBUILD_SHARED_LIBS=On`` for CMake builds or ``--enable-shared`` + for configure builds. #. MCJIT not working well pre-v7, old JIT engine not supported any more. Note that you will need about 1-3 GB of space for a full LLVM build in Debug @@ -230,7 +243,7 @@ our build systems: * Clang 3.1 * GCC 4.7 -* Visual Studio 2012 +* Visual Studio 2013 Anything older than these toolchains *may* work, but will require forcing the build system with a special option and is not really a supported host platform. @@ -280,7 +293,7 @@ Getting a Modern Host C++ Toolchain This section mostly applies to Linux and older BSDs. On Mac OS X, you should have a sufficiently modern Xcode, or you will likely need to upgrade until you -do. On Windows, just use Visual Studio 2012 as the host compiler, it is +do. On Windows, just use Visual Studio 2013 as the host compiler, it is explicitly supported and widely available. FreeBSD 10.0 and newer have a modern Clang as the system compiler. @@ -435,7 +448,7 @@ follows: * ``cd where-you-want-llvm-to-live`` * Read-Only: ``svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm`` -* Read-Write:``svn co https://user@llvm.org/svn/llvm-project/llvm/trunk llvm`` +* Read-Write: ``svn co https://user@llvm.org/svn/llvm-project/llvm/trunk llvm`` This will create an '``llvm``' directory in the current directory and fully populate it with the LLVM source code, Makefiles, test directories, and local @@ -664,66 +677,61 @@ Local LLVM Configuration ------------------------ Once checked out from the Subversion repository, the LLVM suite source code must -be configured via the ``configure`` script. This script sets variables in the -various ``*.in`` files, most notably ``llvm/Makefile.config`` and -``llvm/include/Config/config.h``. It also populates *OBJ_ROOT* with the -Makefiles needed to begin building LLVM. +be configured before being built. For instructions using autotools please see +`Building LLVM With Autotools `_. The +recommended process uses CMake. Unlinke the normal ``configure`` script, CMake +generates the build files in whatever format you request as well as various +``*.inc`` files, and ``llvm/include/Config/config.h``. -The following environment variables are used by the ``configure`` script to -configure the build system: +Variables are passed to ``cmake`` on the command line using the format +``-D=``. The following variables are some common options +used by people developing LLVM. -+------------+-----------------------------------------------------------+ -| Variable | Purpose | -+============+===========================================================+ -| CC | Tells ``configure`` which C compiler to use. By default, | -| | ``configure`` will check ``PATH`` for ``clang`` and GCC C | -| | compilers (in this order). Use this variable to override | -| | ``configure``\'s default behavior. | -+------------+-----------------------------------------------------------+ -| CXX | Tells ``configure`` which C++ compiler to use. By | -| | default, ``configure`` will check ``PATH`` for | -| | ``clang++`` and GCC C++ compilers (in this order). Use | -| | this variable to override ``configure``'s default | -| | behavior. | -+------------+-----------------------------------------------------------+ - -The following options can be used to set or enable LLVM specific options: - -``--enable-optimized`` - - Enables optimized compilation (debugging symbols are removed and GCC - optimization flags are enabled). Note that this is the default setting if you - are using the LLVM distribution. The default behavior of a Subversion - checkout is to use an unoptimized build (also known as a debug build). - -``--enable-debug-runtime`` - - Enables debug symbols in the runtime libraries. The default is to strip debug - symbols from the runtime libraries. - -``--enable-jit`` - - Compile the Just In Time (JIT) compiler functionality. This is not available - on all platforms. The default is dependent on platform, so it is best to - explicitly enable it if you want it. - -``--enable-targets=target-option`` - - Controls which targets will be built and linked into llc. The default value - for ``target_options`` is "all" which builds and links all available targets. - The "host" target is selected as the target of the build host. You can also - specify a comma separated list of target names that you want available in llc. - The target names use all lower case. The current set of targets is: - - ``aarch64, arm, arm64, cpp, hexagon, mips, mipsel, mips64, mips64el, msp430, - powerpc, nvptx, r600, sparc, systemz, x86, x86_64, xcore``. - -``--enable-doxygen`` - - Look for the doxygen program and enable construction of doxygen based - documentation from the source code. This is disabled by default because - generating the documentation can take a long time and producess 100s of - megabytes of output. ++-------------------------+----------------------------------------------------+ +| Variable | Purpose | ++=========================+====================================================+ +| CMAKE_C_COMPILER | Tells ``cmake`` which C compiler to use. By | +| | default, this will be /usr/bin/cc. | ++-------------------------+----------------------------------------------------+ +| CMAKE_CXX_COMPILER | Tells ``cmake`` which C++ compiler to use. By | +| | default, this will be /usr/bin/c++. | ++-------------------------+----------------------------------------------------+ +| CMAKE_BUILD_TYPE | Tells ``cmake`` what type of build you are trying | +| | to generate files for. Valid options are Debug, | +| | Release, RelWithDebInfo, and MinSizeRel. Default | +| | is Debug. | ++-------------------------+----------------------------------------------------+ +| CMAKE_INSTALL_PREFIX | Specifies the install directory to target when | +| | running the install action of the build files. | ++-------------------------+----------------------------------------------------+ +| LLVM_TARGETS_TO_BUILD | A semicolon delimited list controlling which | +| | targets will be built and linked into llc. This is | +| | equivalent to the ``--enable-targets`` option in | +| | the configure script. The default list is defined | +| | as ``LLVM_ALL_TARGETS``, and can be set to include | +| | out-of-tree targets. The default value includes: | +| | ``AArch64, ARM, CppBackend, Hexagon, | +| | Mips, MSP430, NVPTX, PowerPC, R600, Sparc, | +| | SystemZ, X86, XCore``. | ++-------------------------+----------------------------------------------------+ +| LLVM_ENABLE_DOXYGEN | Build doxygen-based documentation from the source | +| | code This is disabled by default because it is | +| | slow and generates a lot of output. | ++-------------------------+----------------------------------------------------+ +| LLVM_ENABLE_SPHINX | Build sphinx-based documentation from the source | +| | code. This is disabled by default because it is | +| | slow and generates a lot of output. | ++-------------------------+----------------------------------------------------+ +| LLVM_BUILD_LLVM_DYLIB | Generate libLLVM.so. This library contains a | +| | default set of LLVM components that can be | +| | overridden with ``LLVM_DYLIB_COMPONENTS``. The | +| | default contains most of LLVM and is defined in | +| | ``tools/llvm-shlib/CMakelists.txt``. | ++-------------------------+----------------------------------------------------+ +| LLVM_OPTIMIZED_TABLEGEN | Builds a release tablegen that gets used during | +| | the LLVM build. This can dramatically speed up | +| | debug builds. | ++-------------------------+----------------------------------------------------+ To configure LLVM, follow these steps: @@ -733,47 +741,52 @@ To configure LLVM, follow these steps: % cd OBJ_ROOT -#. Run the ``configure`` script located in the LLVM source tree: +#. Run the ``cmake``: .. code-block:: console - % SRC_ROOT/configure --prefix=/install/path [other options] + % cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=prefix=/install/path + [other options] SRC_ROOT Compiling the LLVM Suite Source Code ------------------------------------ -Once you have configured LLVM, you can build it. There are three types of -builds: +Unlike with autotools, with CMake your build type is defined at configuration. +If you want to change your build type, you can re-run cmake with the following +invocation: -Debug Builds + .. code-block:: console - These builds are the default when one is using a Subversion checkout and - types ``gmake`` (unless the ``--enable-optimized`` option was used during - configuration). The build system will compile the tools and libraries with - debugging information. To get a Debug Build using the LLVM distribution the - ``--disable-optimized`` option must be passed to ``configure``. + % cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=type SRC_ROOT -Release (Optimized) Builds +Between runs, CMake preserves the values set for all options. CMake has the +following build types defined: - These builds are enabled with the ``--enable-optimized`` option to - ``configure`` or by specifying ``ENABLE_OPTIMIZED=1`` on the ``gmake`` command - line. For these builds, the build system will compile the tools and libraries - with GCC optimizations enabled and strip debugging information from the - libraries and executables it generates. Note that Release Builds are default - when using an LLVM distribution. +Debug -Profile Builds + These builds are the default. The build system will compile the tools and + libraries unoptimized, with debugging information, and asserts enabled. - These builds are for use with profiling. They compile profiling information - into the code for use with programs like ``gprof``. Profile builds must be - started by specifying ``ENABLE_PROFILING=1`` on the ``gmake`` command line. +Release + + For these builds, the build system will compile the tools and libraries + with optimizations enabled and not generate debug info. CMakes default + optimization level is -O3. This can be configured by setting the + ``CMAKE_CXX_FLAGS_RELEASE`` variable on the CMake command line. + +RelWithDebInfo + + These builds are useful when debugging. They generate optimized binaries with + debug information. CMakes default optimization level is -O2. This can be + configured by setting the ``CMAKE_CXX_FLAGS_RELWITHDEBINFO`` variable on the + CMake command line. Once you have LLVM configured, you can build it by entering the *OBJ_ROOT* directory and issuing the following command: .. code-block:: console - % gmake + % make If the build fails, please `check here`_ to see if you are using a version of GCC that is known not to compile LLVM. @@ -784,110 +797,51 @@ command: .. code-block:: console - % gmake -j2 + % make -j2 There are several special targets which are useful when working with the LLVM source code: -``gmake clean`` +``make clean`` Removes all files generated by the build. This includes object files, generated C/C++ files, libraries, and executables. -``gmake dist-clean`` - - Removes everything that ``gmake clean`` does, but also removes files generated - by ``configure``. It attempts to return the source tree to the original state - in which it was shipped. - -``gmake install`` +``make install`` Installs LLVM header files, libraries, tools, and documentation in a hierarchy - under ``$PREFIX``, specified with ``./configure --prefix=[dir]``, which + under ``$PREFIX``, specified with ``CMAKE_INSTALL_PREFIX``, which defaults to ``/usr/local``. -``gmake -C runtime install-bytecode`` +``make docs-llvm-html`` - Assuming you built LLVM into $OBJDIR, when this command is run, it will - install bitcode libraries into the GCC front end's bitcode library directory. - If you need to update your bitcode libraries, this is the target to use once - you've built them. - -Please see the `Makefile Guide `_ for further details on -these ``make`` targets and descriptions of other targets available. - -It is also possible to override default values from ``configure`` by declaring -variables on the command line. The following are some examples: - -``gmake ENABLE_OPTIMIZED=1`` - - Perform a Release (Optimized) build. - -``gmake ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1`` - - Perform a Release (Optimized) build without assertions enabled. - -``gmake ENABLE_OPTIMIZED=0`` - - Perform a Debug build. - -``gmake ENABLE_PROFILING=1`` - - Perform a Profiling build. - -``gmake VERBOSE=1`` - - Print what ``gmake`` is doing on standard output. - -``gmake TOOL_VERBOSE=1`` - - Ask each tool invoked by the makefiles to print out what it is doing on - the standard output. This also implies ``VERBOSE=1``. - -Every directory in the LLVM object tree includes a ``Makefile`` to build it and -any subdirectories that it contains. Entering any directory inside the LLVM -object tree and typing ``gmake`` should rebuild anything in or below that -directory that is out of date. - -This does not apply to building the documentation. -LLVM's (non-Doxygen) documentation is produced with the -`Sphinx `_ documentation generation system. -There are some HTML documents that have not yet been converted to the new -system (which uses the easy-to-read and easy-to-write -`reStructuredText `_ plaintext markup -language). -The generated documentation is built in the ``SRC_ROOT/docs`` directory using -a special makefile. -For instructions on how to install Sphinx, see -`Sphinx Introduction for LLVM Developers -`_. -After following the instructions there for installing Sphinx, build the LLVM -HTML documentation by doing the following: - -.. code-block:: console - - $ cd SRC_ROOT/docs - $ make -f Makefile.sphinx - -This creates a ``_build/html`` sub-directory with all of the HTML files, not -just the generated ones. -This directory corresponds to ``llvm.org/docs``. -For example, ``_build/html/SphinxQuickstartTemplate.html`` corresponds to -``llvm.org/docs/SphinxQuickstartTemplate.html``. -The :doc:`SphinxQuickstartTemplate` is useful when creating a new document. + If configured with ``-DLLVM_ENABLE_SPHINX=On``, this will generate a directory + at ``OBJ_ROOT/docs/html`` which contains the HTML formatted documentation. Cross-Compiling LLVM -------------------- It is possible to cross-compile LLVM itself. That is, you can create LLVM executables and libraries to be hosted on a platform different from the platform -where they are built (a Canadian Cross build). To configure a cross-compile, -supply the configure script with ``--build`` and ``--host`` options that are -different. The values of these options must be legal target triples that your -GCC compiler supports. +where they are built (a Canadian Cross build). To generate build files for +cross-compiling CMake provides a variable ``CMAKE_TOOLCHAIN_FILE`` which can +define compiler flags and variables used during the CMake test operations. The result of such a build is executables that are not runnable on on the build -host (--build option) but can be executed on the compile host (--host option). +host but can be executed on the target. As an example the following CMake +invocation can generate build files targeting iOS. This will work on Mac OS X +with the latest Xcode: + +.. code-block:: console + + % cmake -G "Ninja" -DCMAKE_OSX_ARCHITECTURES=“armv7;armv7s;arm64" + -DCMAKE_TOOLCHAIN_FILE=/cmake/platforms/iOS.cmake + -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_RUNTIME=Off -DLLVM_INCLUDE_TESTS=Off + -DLLVM_INCLUDE_EXAMPLES=Off -DLLVM_ENABLE_BACKTRACES=Off [options] + + +Note: There are some additional flags that need to be passed when building for +iOS due to limitations in the iOS SDK. Check :doc:`HowToCrossCompileLLVM` and `Clang docs on how to cross-compile in general `_ for more information @@ -908,44 +862,25 @@ This is accomplished in the typical autoconf manner: % cd OBJ_ROOT -* Run the ``configure`` script found in the LLVM source directory: +* Run ``cmake``: .. code-block:: console - % SRC_ROOT/configure + % cmake -G "Unix Makefiles" SRC_ROOT -The LLVM build will place files underneath *OBJ_ROOT* in directories named after -the build type: +The LLVM build will create a structure underneath *OBJ_ROOT* that matches the +LLVM source tree. At each level where source files are present in the source +tree there will be a corresponding ``CMakeFiles`` directory in the *OBJ_ROOT*. +Underneath that directory there is another directory with a name ending in +``.dir`` under which you'll find object files for each source. -Debug Builds with assertions enabled (the default) +For example: - Tools - - ``OBJ_ROOT/Debug+Asserts/bin`` - - Libraries - - ``OBJ_ROOT/Debug+Asserts/lib`` - -Release Builds - - Tools - - ``OBJ_ROOT/Release/bin`` - - Libraries - - ``OBJ_ROOT/Release/lib`` - -Profile Builds - - Tools - - ``OBJ_ROOT/Profile/bin`` - - Libraries - - ``OBJ_ROOT/Profile/lib`` + .. code-block:: console + + % cd llvm_build_dir + % find lib/Support/ -name APFloat* + lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o Optional Configuration Items ---------------------------- diff --git a/docs/GettingStartedVS.rst b/docs/GettingStartedVS.rst index fa20912be22..63e81f5165d 100644 --- a/docs/GettingStartedVS.rst +++ b/docs/GettingStartedVS.rst @@ -45,13 +45,13 @@ and software you will need. Hardware -------- -Any system that can adequately run Visual Studio 2012 is fine. The LLVM +Any system that can adequately run Visual Studio 2013 is fine. The LLVM source tree and object files, libraries and executables will consume approximately 3GB. Software -------- -You will need Visual Studio 2012 or higher. +You will need Visual Studio 2013 or higher. You will also need the `CMake `_ build system since it generates the project files you will use to build with. diff --git a/docs/HowToBuildOnARM.rst b/docs/HowToBuildOnARM.rst index f2edaef76cd..6579d36a72a 100644 --- a/docs/HowToBuildOnARM.rst +++ b/docs/HowToBuildOnARM.rst @@ -40,7 +40,7 @@ on the ARMv6 and ARMv7 architectures and may be inapplicable to older chips. .. code-block:: bash - ./configure --build=armv7l-unknown-linux-gnueabihf \ + ../$LLVM_SRC_DIR/configure --build=armv7l-unknown-linux-gnueabihf \ --host=armv7l-unknown-linux-gnueabihf \ --target=armv7l-unknown-linux-gnueabihf --with-cpu=cortex-a9 \ --with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \ diff --git a/docs/HowToSetUpLLVMStyleRTTI.rst b/docs/HowToSetUpLLVMStyleRTTI.rst index 96275e7dc23..38929948590 100644 --- a/docs/HowToSetUpLLVMStyleRTTI.rst +++ b/docs/HowToSetUpLLVMStyleRTTI.rst @@ -40,14 +40,14 @@ RTTI for this class hierarchy: double SideLength; public: Square(double S) : SideLength(S) {} - double computeArea() /* override */; + double computeArea() override; }; class Circle : public Shape { double Radius; public: Circle(double R) : Radius(R) {} - double computeArea() /* override */; + double computeArea() override; }; The most basic working setup for LLVM-style RTTI requires the following @@ -135,7 +135,7 @@ steps: public: - Square(double S) : SideLength(S) {} + Square(double S) : Shape(SK_Square), SideLength(S) {} - double computeArea() /* override */; + double computeArea() override; }; class Circle : public Shape { @@ -143,7 +143,7 @@ steps: public: - Circle(double R) : Radius(R) {} + Circle(double R) : Shape(SK_Circle), Radius(R) {} - double computeArea() /* override */; + double computeArea() override; }; #. Finally, you need to inform LLVM's RTTI templates how to dynamically @@ -175,7 +175,7 @@ steps: double SideLength; public: Square(double S) : Shape(SK_Square), SideLength(S) {} - double computeArea() /* override */; + double computeArea() override; + + static bool classof(const Shape *S) { + return S->getKind() == SK_Square; @@ -186,7 +186,7 @@ steps: double Radius; public: Circle(double R) : Shape(SK_Circle), Radius(R) {} - double computeArea() /* override */; + double computeArea() override; + + static bool classof(const Shape *S) { + return S->getKind() == SK_Circle; @@ -377,6 +377,20 @@ contract for ``classof`` is "return ``true`` if the dynamic type of the argument is-a ``C``". As long as your implementation fulfills this contract, you can tweak and optimize it as much as you want. +For example, LLVM-style RTTI can work fine in the presence of +multiple-inheritance by defining an appropriate ``classof``. +An example of this in practice is +`Decl `_ vs. +`DeclContext `_ +inside Clang. +The ``Decl`` hierarchy is done very similarly to the example setup +demonstrated in this tutorial. +The key part is how to then incorporate ``DeclContext``: all that is needed +is in ``bool DeclContext::classof(const Decl *)``, which asks the question +"Given a ``Decl``, how can I determine if it is-a ``DeclContext``?". +It answers this with a simple switch over the set of ``Decl`` "kinds", and +returning true for ones that are known to be ``DeclContext``'s. + .. TODO:: Touch on some of the more advanced features, like ``isa_impl`` and diff --git a/docs/LangRef.rst b/docs/LangRef.rst index b18474915e1..397d5fe3756 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -162,7 +162,7 @@ symbol table entries. Here is an example of the "hello world" module: ; Definition of main function define i32 @main() { ; i32()* ; Convert [13 x i8]* to i8 *... - %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0 + %cast210 = getelementptr [13 x i8], [13 x i8]* @.str, i64 0, i64 0 ; Call puts function to write out the string to stdout. call i32 @puts(i8* %cast210) @@ -348,13 +348,13 @@ added in the future: "``anyregcc``" - Dynamic calling convention for code patching This is a special convention that supports patching an arbitrary code sequence in place of a call site. This convention forces the call - arguments into registers but allows them to be dynamcially + arguments into registers but allows them to be dynamically allocated. This can currently only be used with calls to llvm.experimental.patchpoint because only this intrinsic records the location of its arguments in a side table. See :doc:`StackMaps`. "``preserve_mostcc``" - The `PreserveMost` calling convention - This calling convention attempts to make the code in the caller as little - intrusive as possible. This calling convention behaves identical to the `C` + This calling convention attempts to make the code in the caller as + unintrusive as possible. This convention behaves identically to the `C` calling convention on how arguments and return values are passed, but it uses a different set of caller/callee-saved registers. This alleviates the burden of saving and recovering a large register set before and after the @@ -368,7 +368,7 @@ added in the future: The idea behind this convention is to support calls to runtime functions that have a hot path and a cold path. The hot path is usually a small piece - of code that doesn't many registers. The cold path might need to call out to + of code that doesn't use many registers. The cold path might need to call out to another function and therefore only needs to preserve the caller-saved registers, which haven't already been saved by the caller. The `PreserveMost` calling convention is very similar to the `cold` calling @@ -521,7 +521,7 @@ Global Variables Global variables define regions of memory allocated at compilation time instead of run-time. -Global variables definitions must be initialized. +Global variable definitions must be initialized. Global variables in other translation units can also be declared, in which case they don't have an initializer. @@ -588,7 +588,7 @@ iteration. The maximum alignment is ``1 << 29``. Globals can also have a :ref:`DLL storage class `. -Variables and aliasaes can have a +Variables and aliases can have a :ref:`Thread Local Storage Model `. Syntax:: @@ -666,7 +666,7 @@ predecessors, it also cannot have any :ref:`PHI nodes `. LLVM allows an explicit section to be specified for functions. If the target supports it, it will emit functions to the section specified. -Additionally, the function can placed in a COMDAT. +Additionally, the function can be placed in a COMDAT. An explicit alignment may be specified for a function. If not present, or if the alignment is set to zero, the alignment of the function is set @@ -674,7 +674,7 @@ by the target to whatever it feels convenient. If an explicit alignment is specified, the function is forced to have at least that much alignment. All alignments must be a power of 2. -If the ``unnamed_addr`` attribute is given, the address is know to not +If the ``unnamed_addr`` attribute is given, the address is known to not be significant and two identical functions can be merged. Syntax:: @@ -716,7 +716,7 @@ The linkage must be one of ``private``, ``internal``, ``linkonce``, ``weak``, ``linkonce_odr``, ``weak_odr``, ``external``. Note that some system linkers might not correctly handle dropping a weak symbol that is aliased. -Alias that are not ``unnamed_addr`` are guaranteed to have the same address as +Aliases that are not ``unnamed_addr`` are guaranteed to have the same address as the aliasee expression. ``unnamed_addr`` ones are only guaranteed to point to the same content. @@ -998,7 +998,7 @@ Currently, only the following parameter attributes are defined: This indicates that the parameter or return pointer is not null. This attribute may only be applied to pointer typed parameters. This is not checked or enforced by LLVM, the caller must ensure that the pointer - passed in is non-null, or the callee must ensure that the returned pointer + passed in is non-null, or the callee must ensure that the returned pointer is non-null. ``dereferenceable()`` @@ -1012,21 +1012,37 @@ Currently, only the following parameter attributes are defined: array), however ``dereferenceable()`` does imply ``nonnull`` in ``addrspace(0)`` (which is the default address space). +``dereferenceable_or_null()`` + This indicates that the parameter or return value isn't both + non-null and non-dereferenceable (up to ```` bytes) at the same + time. All non-null pointers tagged with + ``dereferenceable_or_null()`` are ``dereferenceable()``. + For address space 0 ``dereferenceable_or_null()`` implies that + a pointer is exactly one of ``dereferenceable()`` or ``null``, + and in other address spaces ``dereferenceable_or_null()`` + implies that a pointer is at least one of ``dereferenceable()`` + or ``null`` (i.e. it may be both ``null`` and + ``dereferenceable()``). This attribute may only be applied to + pointer typed parameters. + .. _gc: -Garbage Collector Names ------------------------ +Garbage Collector Strategy Names +-------------------------------- -Each function may specify a garbage collector name, which is simply a +Each function may specify a garbage collector strategy name, which is simply a string: .. code-block:: llvm define void @f() gc "name" { ... } -The compiler declares the supported values of *name*. Specifying a -collector will cause the compiler to alter its output in order to -support the named garbage collection algorithm. +The supported values of *name* includes those :ref:`built in to LLVM +` and any provided by loaded plugins. Specifying a GC +strategy will cause the compiler to alter its output in order to support the +named garbage collection algorithm. Note that LLVM itself does not contain a +garbage collector, this functionality is restricted to generating machine code +which can interoperate with a collector provided externally. .. _prefixdata: @@ -1054,9 +1070,9 @@ The prefix data can be referenced as, .. code-block:: llvm - %0 = bitcast *void () @f to *i32 - %a = getelementptr inbounds *i32 %0, i32 -1 - %b = load i32* %a + %0 = bitcast void* () @f to i32* + %a = getelementptr inbounds i32, i32* %0, i32 -1 + %b = load i32, i32* %a Prefix data is laid out as if it were an initializer for a global variable of the prefix data's type. The function will be placed such that the @@ -1180,6 +1196,13 @@ example: computing edge weights, basic blocks post-dominated by a cold function call are also considered to be cold; and, thus, given low weight. +``convergent`` + This attribute indicates that the callee is dependent on a convergent + thread execution pattern under certain parallel execution models. + Transformations that are execution model agnostic may only move or + tranform this call if the final location is control equivalent to its + original position in the program, where control equivalence is defined as + A dominates B and B post-dominates A, or vice versa. ``inlinehint`` This attribute indicates that the source code contained a hint that inlining this function is desirable (such as the "inline" keyword in @@ -1236,9 +1259,12 @@ example: normally. This produces undefined behavior at runtime if the function ever does dynamically return. ``nounwind`` - This function attribute indicates that the function never returns - with an unwind or exceptional control flow. If the function does - unwind, its runtime behavior is undefined. + This function attribute indicates that the function never raises an + exception. If the function does raise an exception, its runtime + behavior is undefined. However, functions marked nounwind may still + trap or generate asynchronous exceptions. Exception handling schemes + that are recognized by LLVM to handle asynchronous exceptions, such + as SEH, will still provide their implementation defined semantics. ``optnone`` This function attribute indicates that the function is not optimized by any optimization or code generator passes with the @@ -1363,6 +1389,11 @@ example: If a function that has an ``sspstrong`` attribute is inlined into a function that doesn't have an ``sspstrong`` attribute, then the resulting function will have an ``sspstrong`` attribute. +``"thunk"`` + This attribute indicates that the function will delegate to some other + function with a tail call. The prototype of a thunk should not be used for + optimization purposes. The caller is expected to cast the thunk prototype to + match the thunk target prototype. ``uwtable`` This attribute indicates that the ABI being targeted requires that an unwind table entry be produce for this function even if we can @@ -1515,11 +1546,12 @@ the code generator should use. Instead, if specified, the target data layout is required to match what the ultimate *code generator* expects. This string is used by the mid-level optimizers to improve code, and this only works if it matches -what the ultimate code generator uses. If you would like to generate IR -that does not embed this target-specific detail into the IR, then you -don't have to specify the string. This will disable some optimizations -that require precise layout information, but this also prevents those -optimizations from introducing target specificity into the IR. +what the ultimate code generator uses. There is no way to generate IR +that does not embed this target-specific detail into the IR. If you +don't specify the string, the default specifications will be used to +generate a Data Layout and the optimization phases will operate +accordingly and introduce target specificity into the IR with respect to +these default specifications. .. _langref_triple: @@ -1573,7 +1605,7 @@ A pointer value is *based* on another pointer value according to the following rules: - A pointer value formed from a ``getelementptr`` operation is *based* - on the first operand of the ``getelementptr``. + on the first value operand of the ``getelementptr``. - The result value of a ``bitcast`` is *based* on the operand of the ``bitcast``. - A pointer value formed by an ``inttoptr`` is *based* on all pointer @@ -1779,7 +1811,7 @@ Fast-Math Flags LLVM IR floating-point binary ops (:ref:`fadd `, :ref:`fsub `, :ref:`fmul `, :ref:`fdiv `, -:ref:`frem `) have the following flags that can set to enable +:ref:`frem `) have the following flags that can be set to enable otherwise unsafe floating point operations ``nnan`` @@ -2556,18 +2588,18 @@ Here are some examples: entry: %poison = sub nuw i32 0, 1 ; Results in a poison value. %still_poison = and i32 %poison, 0 ; 0, but also poison. - %poison_yet_again = getelementptr i32* @h, i32 %still_poison + %poison_yet_again = getelementptr i32, i32* @h, i32 %still_poison store i32 0, i32* %poison_yet_again ; memory at @h[0] is poisoned store i32 %poison, i32* @g ; Poison value stored to memory. - %poison2 = load i32* @g ; Poison value loaded back from memory. + %poison2 = load i32, i32* @g ; Poison value loaded back from memory. store volatile i32 %poison, i32* @g ; External observation; undefined behavior. %narrowaddr = bitcast i32* @g to i16* %wideaddr = bitcast i32* @g to i64* - %poison3 = load i16* %narrowaddr ; Returns a poison value. - %poison4 = load i64* %wideaddr ; Returns a poison value. + %poison3 = load i16, i16* %narrowaddr ; Returns a poison value. + %poison4 = load i64, i64* %wideaddr ; Returns a poison value. %cmp = icmp slt i32 %poison, 0 ; Returns a poison value. br i1 %cmp, label %true, label %end ; Branch to either destination. @@ -2696,11 +2728,11 @@ The following is the syntax for constant expressions: Convert a constant pointer or constant vector of pointer, CST, to another TYPE in a different address space. The constraints of the operands are the same as those for the :ref:`addrspacecast instruction `. -``getelementptr (CSTPTR, IDX0, IDX1, ...)``, ``getelementptr inbounds (CSTPTR, IDX0, IDX1, ...)`` +``getelementptr (TY, CSTPTR, IDX0, IDX1, ...)``, ``getelementptr inbounds (TY, CSTPTR, IDX0, IDX1, ...)`` Perform the :ref:`getelementptr operation ` on constants. As with the :ref:`getelementptr ` instruction, the index list may have zero or more indexes, which are - required to make sense for the type of "CSTPTR". + required to make sense for the type of "pointer to TY". ``select (COND, VAL1, VAL2)`` Perform the :ref:`select operation ` on constants. ``icmp COND (VAL1, VAL2)`` @@ -2831,6 +2863,8 @@ Metadata does not have a type, and is not a value. If referenced from a All metadata are identified in syntax by a exclamation point ('``!``'). +.. _metadata-string: + Metadata Nodes and Metadata Strings ----------------------------------- @@ -2883,6 +2917,8 @@ attached to the ``add`` instruction using the ``!dbg`` identifier: More information about specific metadata nodes recognized by the optimizers and code generator is found below. +.. _specialized-metadata: + Specialized Metadata Nodes ^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -2890,15 +2926,389 @@ Specialized metadata nodes are custom data structures in metadata (as opposed to generic tuples). Their fields are labelled, and can be specified in any order. -MDLocation -"""""""""" +These aren't inherently debug info centric, but currently all the specialized +metadata nodes are related to debug info. -``MDLocation`` nodes represent source debug locations. The ``scope:`` field is -mandatory. +.. _DICompileUnit: + +DICompileUnit +""""""""""""" + +``DICompileUnit`` nodes represent a compile unit. The ``enums:``, +``retainedTypes:``, ``subprograms:``, ``globals:`` and ``imports:`` fields are +tuples containing the debug info to be emitted along with the compile unit, +regardless of code optimizations (some nodes are only emitted if there are +references to them from instructions). .. code-block:: llvm - !0 = !MDLocation(line: 2900, column: 42, scope: !1, inlinedAt: !2) + !0 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", + isOptimized: true, flags: "-O2", runtimeVersion: 2, + splitDebugFilename: "abc.debug", emissionKind: 1, + enums: !2, retainedTypes: !3, subprograms: !4, + globals: !5, imports: !6) + +Compile unit descriptors provide the root scope for objects declared in a +specific compilation unit. File descriptors are defined using this scope. +These descriptors are collected by a named metadata ``!llvm.dbg.cu``. They +keep track of subprograms, global variables, type information, and imported +entities (declarations and namespaces). + +.. _DIFile: + +DIFile +"""""" + +``DIFile`` nodes represent files. The ``filename:`` can include slashes. + +.. code-block:: llvm + + !0 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") + +Files are sometimes used in ``scope:`` fields, and are the only valid target +for ``file:`` fields. + +.. _DIBasicType: + +DIBasicType +""""""""""" + +``DIBasicType`` nodes represent primitive types, such as ``int``, ``bool`` and +``float``. ``tag:`` defaults to ``DW_TAG_base_type``. + +.. code-block:: llvm + + !0 = !DIBasicType(name: "unsigned char", size: 8, align: 8, + encoding: DW_ATE_unsigned_char) + !1 = !DIBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)") + +The ``encoding:`` describes the details of the type. Usually it's one of the +following: + +.. code-block:: llvm + + DW_ATE_address = 1 + DW_ATE_boolean = 2 + DW_ATE_float = 4 + DW_ATE_signed = 5 + DW_ATE_signed_char = 6 + DW_ATE_unsigned = 7 + DW_ATE_unsigned_char = 8 + +.. _DISubroutineType: + +DISubroutineType +"""""""""""""""" + +``DISubroutineType`` nodes represent subroutine types. Their ``types:`` field +refers to a tuple; the first operand is the return type, while the rest are the +types of the formal arguments in order. If the first operand is ``null``, that +represents a function with no return value (such as ``void foo() {}`` in C++). + +.. code-block:: llvm + + !0 = !BasicType(name: "int", size: 32, align: 32, DW_ATE_signed) + !1 = !BasicType(name: "char", size: 8, align: 8, DW_ATE_signed_char) + !2 = !DISubroutineType(types: !{null, !0, !1}) ; void (int, char) + +.. _DIDerivedType: + +DIDerivedType +""""""""""""" + +``DIDerivedType`` nodes represent types derived from other types, such as +qualified types. + +.. code-block:: llvm + + !0 = !DIBasicType(name: "unsigned char", size: 8, align: 8, + encoding: DW_ATE_unsigned_char) + !1 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !0, size: 32, + align: 32) + +The following ``tag:`` values are valid: + +.. code-block:: llvm + + DW_TAG_formal_parameter = 5 + DW_TAG_member = 13 + DW_TAG_pointer_type = 15 + DW_TAG_reference_type = 16 + DW_TAG_typedef = 22 + DW_TAG_ptr_to_member_type = 31 + DW_TAG_const_type = 38 + DW_TAG_volatile_type = 53 + DW_TAG_restrict_type = 55 + +``DW_TAG_member`` is used to define a member of a :ref:`composite type +` or :ref:`subprogram `. The type of the member +is the ``baseType:``. The ``offset:`` is the member's bit offset. +``DW_TAG_formal_parameter`` is used to define a member which is a formal +argument of a subprogram. + +``DW_TAG_typedef`` is used to provide a name for the ``baseType:``. + +``DW_TAG_pointer_type``, ``DW_TAG_reference_type``, ``DW_TAG_const_type``, +``DW_TAG_volatile_type`` and ``DW_TAG_restrict_type`` are used to qualify the +``baseType:``. + +Note that the ``void *`` type is expressed as a type derived from NULL. + +.. _DICompositeType: + +DICompositeType +""""""""""""""" + +``DICompositeType`` nodes represent types composed of other types, like +structures and unions. ``elements:`` points to a tuple of the composed types. + +If the source language supports ODR, the ``identifier:`` field gives the unique +identifier used for type merging between modules. When specified, other types +can refer to composite types indirectly via a :ref:`metadata string +` that matches their identifier. + +.. code-block:: llvm + + !0 = !DIEnumerator(name: "SixKind", value: 7) + !1 = !DIEnumerator(name: "SevenKind", value: 7) + !2 = !DIEnumerator(name: "NegEightKind", value: -8) + !3 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "Enum", file: !12, + line: 2, size: 32, align: 32, identifier: "_M4Enum", + elements: !{!0, !1, !2}) + +The following ``tag:`` values are valid: + +.. code-block:: llvm + + DW_TAG_array_type = 1 + DW_TAG_class_type = 2 + DW_TAG_enumeration_type = 4 + DW_TAG_structure_type = 19 + DW_TAG_union_type = 23 + DW_TAG_subroutine_type = 21 + DW_TAG_inheritance = 28 + + +For ``DW_TAG_array_type``, the ``elements:`` should be :ref:`subrange +descriptors `, each representing the range of subscripts at that +level of indexing. The ``DIFlagVector`` flag to ``flags:`` indicates that an +array type is a native packed vector. + +For ``DW_TAG_enumeration_type``, the ``elements:`` should be :ref:`enumerator +descriptors `, each representing the definition of an enumeration +value for the set. All enumeration type descriptors are collected in the +``enums:`` field of the :ref:`compile unit `. + +For ``DW_TAG_structure_type``, ``DW_TAG_class_type``, and +``DW_TAG_union_type``, the ``elements:`` should be :ref:`derived types +` with ``tag: DW_TAG_member`` or ``tag: DW_TAG_inheritance``. + +.. _DISubrange: + +DISubrange +"""""""""" + +``DISubrange`` nodes are the elements for ``DW_TAG_array_type`` variants of +:ref:`DICompositeType`. ``count: -1`` indicates an empty array. + +.. code-block:: llvm + + !0 = !DISubrange(count: 5, lowerBound: 0) ; array counting from 0 + !1 = !DISubrange(count: 5, lowerBound: 1) ; array counting from 1 + !2 = !DISubrange(count: -1) ; empty array. + +.. _DIEnumerator: + +DIEnumerator +"""""""""""" + +``DIEnumerator`` nodes are the elements for ``DW_TAG_enumeration_type`` +variants of :ref:`DICompositeType`. + +.. code-block:: llvm + + !0 = !DIEnumerator(name: "SixKind", value: 7) + !1 = !DIEnumerator(name: "SevenKind", value: 7) + !2 = !DIEnumerator(name: "NegEightKind", value: -8) + +DITemplateTypeParameter +""""""""""""""""""""""" + +``DITemplateTypeParameter`` nodes represent type parameters to generic source +language constructs. They are used (optionally) in :ref:`DICompositeType` and +:ref:`DISubprogram` ``templateParams:`` fields. + +.. code-block:: llvm + + !0 = !DITemplateTypeParameter(name: "Ty", type: !1) + +DITemplateValueParameter +"""""""""""""""""""""""" + +``DITemplateValueParameter`` nodes represent value parameters to generic source +language constructs. ``tag:`` defaults to ``DW_TAG_template_value_parameter``, +but if specified can also be set to ``DW_TAG_GNU_template_template_param`` or +``DW_TAG_GNU_template_param_pack``. They are used (optionally) in +:ref:`DICompositeType` and :ref:`DISubprogram` ``templateParams:`` fields. + +.. code-block:: llvm + + !0 = !DITemplateValueParameter(name: "Ty", type: !1, value: i32 7) + +DINamespace +""""""""""" + +``DINamespace`` nodes represent namespaces in the source language. + +.. code-block:: llvm + + !0 = !DINamespace(name: "myawesomeproject", scope: !1, file: !2, line: 7) + +DIGlobalVariable +"""""""""""""""" + +``DIGlobalVariable`` nodes represent global variables in the source language. + +.. code-block:: llvm + + !0 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !1, + file: !2, line: 7, type: !3, isLocal: true, + isDefinition: false, variable: i32* @foo, + declaration: !4) + +All global variables should be referenced by the `globals:` field of a +:ref:`compile unit `. + +.. _DISubprogram: + +DISubprogram +"""""""""""" + +``DISubprogram`` nodes represent functions from the source language. The +``variables:`` field points at :ref:`variables ` that must be +retained, even if their IR counterparts are optimized out of the IR. The +``type:`` field must point at an :ref:`DISubroutineType`. + +.. code-block:: llvm + + !0 = !DISubprogram(name: "foo", linkageName: "_Zfoov", scope: !1, + file: !2, line: 7, type: !3, isLocal: true, + isDefinition: false, scopeLine: 8, containingType: !4, + virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10, + flags: DIFlagPrototyped, isOptimized: true, + function: void ()* @_Z3foov, + templateParams: !5, declaration: !6, variables: !7) + +.. _DILexicalBlock: + +DILexicalBlock +"""""""""""""" + +``DILexicalBlock`` nodes describe nested blocks within a :ref:`subprogram +`. The line number and column numbers are used to dinstinguish +two lexical blocks at same depth. They are valid targets for ``scope:`` +fields. + +.. code-block:: llvm + + !0 = distinct !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) + +Usually lexical blocks are ``distinct`` to prevent node merging based on +operands. + +.. _DILexicalBlockFile: + +DILexicalBlockFile +"""""""""""""""""" + +``DILexicalBlockFile`` nodes are used to discriminate between sections of a +:ref:`lexical block `. The ``file:`` field can be changed to +indicate textual inclusion, or the ``discriminator:`` field can be used to +discriminate between control flow within a single block in the source language. + +.. code-block:: llvm + + !0 = !DILexicalBlock(scope: !3, file: !4, line: 7, column: 35) + !1 = !DILexicalBlockFile(scope: !0, file: !4, discriminator: 0) + !2 = !DILexicalBlockFile(scope: !0, file: !4, discriminator: 1) + +.. _DILocation: + +DILocation +"""""""""" + +``DILocation`` nodes represent source debug locations. The ``scope:`` field is +mandatory, and points at an :ref:`DILexicalBlockFile`, an +:ref:`DILexicalBlock`, or an :ref:`DISubprogram`. + +.. code-block:: llvm + + !0 = !DILocation(line: 2900, column: 42, scope: !1, inlinedAt: !2) + +.. _DILocalVariable: + +DILocalVariable +""""""""""""""" + +``DILocalVariable`` nodes represent local variables in the source language. +Instead of ``DW_TAG_variable``, they use LLVM-specific fake tags to +discriminate between local variables (``DW_TAG_auto_variable``) and subprogram +arguments (``DW_TAG_arg_variable``). In the latter case, the ``arg:`` field +specifies the argument position, and this variable will be included in the +``variables:`` field of its :ref:`DISubprogram`. + +.. code-block:: llvm + + !0 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "this", arg: 0, + scope: !3, file: !2, line: 7, type: !3, + flags: DIFlagArtificial) + !1 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "x", arg: 1, + scope: !4, file: !2, line: 7, type: !3) + !1 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "y", + scope: !5, file: !2, line: 7, type: !3) + +DIExpression +"""""""""""" + +``DIExpression`` nodes represent DWARF expression sequences. They are used in +:ref:`debug intrinsics` (such as ``llvm.dbg.declare``) to +describe how the referenced LLVM variable relates to the source language +variable. + +The current supported vocabulary is limited: + +- ``DW_OP_deref`` dereferences the working expression. +- ``DW_OP_plus, 93`` adds ``93`` to the working expression. +- ``DW_OP_bit_piece, 16, 8`` specifies the offset and size (``16`` and ``8`` + here, respectively) of the variable piece from the working expression. + +.. code-block:: llvm + + !0 = !DIExpression(DW_OP_deref) + !1 = !DIExpression(DW_OP_plus, 3) + !2 = !DIExpression(DW_OP_bit_piece, 3, 7) + !3 = !DIExpression(DW_OP_deref, DW_OP_plus, 3, DW_OP_bit_piece, 3, 7) + +DIObjCProperty +"""""""""""""" + +``DIObjCProperty`` nodes represent Objective-C property nodes. + +.. code-block:: llvm + + !3 = !DIObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", + getter: "getFoo", attributes: 7, type: !2) + +DIImportedEntity +"""""""""""""""" + +``DIImportedEntity`` nodes represent entities (such as modules) imported into a +compile unit. + +.. code-block:: llvm + + !2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, + entity: !1, line: 7) '``tbaa``' Metadata ^^^^^^^^^^^^^^^^^^^ @@ -2976,9 +3386,9 @@ instructions (loads, stores, memory-accessing calls, etc.) that carry ``noalias`` metadata can specifically be specified not to alias with some other collection of memory access instructions that carry ``alias.scope`` metadata. Each type of metadata specifies a list of scopes where each scope has an id and -a domain. When evaluating an aliasing query, if for some some domain, the set +a domain. When evaluating an aliasing query, if for some domain, the set of scopes with that domain in one instruction's ``alias.scope`` list is a -subset of (or qual to) the set of scopes for that domain in another +subset of (or equal to) the set of scopes for that domain in another instruction's ``noalias`` list, then the two memory accesses are assumed not to alias. @@ -3014,18 +3424,18 @@ For example, !7 = !{!3} ; These two instructions don't alias: - %0 = load float* %c, align 4, !alias.scope !5 + %0 = load float, float* %c, align 4, !alias.scope !5 store float %0, float* %arrayidx.i, align 4, !noalias !5 ; These two instructions also don't alias (for domain !1, the set of scopes ; in the !alias.scope equals that in the !noalias list): - %2 = load float* %c, align 4, !alias.scope !5 + %2 = load float, float* %c, align 4, !alias.scope !5 store float %2, float* %arrayidx.i2, align 4, !noalias !6 - ; These two instructions don't alias (for domain !0, the set of scopes in + ; These two instructions may alias (for domain !0, the set of scopes in ; the !noalias list is not a superset of, or equal to, the scopes in the ; !alias.scope list): - %2 = load float* %c, align 4, !alias.scope !6 + %2 = load float, float* %c, align 4, !alias.scope !6 store float %0, float* %arrayidx.i, align 4, !noalias !7 '``fpmath``' Metadata @@ -3050,6 +3460,8 @@ number representing the maximum relative error, for example: !0 = !{ float 2.5 } ; maximum acceptable inaccuracy is 2.5 ULPs +.. _range-metadata: + '``range``' Metadata ^^^^^^^^^^^^^^^^^^^^ @@ -3074,8 +3486,8 @@ Examples: .. code-block:: llvm - %a = load i8* %x, align 1, !range !0 ; Can only be 0 or 1 - %b = load i8* %y, align 1, !range !1 ; Can only be 255 (-1), 0 or 1 + %a = load i8, i8* %x, align 1, !range !0 ; Can only be 0 or 1 + %b = load i8, i8* %y, align 1, !range !1 ; Can only be 255 (-1), 0 or 1 %c = call i8 @foo(), !range !2 ; Can only be 0, 1, 3, 4 or 5 %d = invoke i8 @bar() to label %cont unwind label %lpad, !range !3 ; Can only be -2, -1, 3, 4 or 5 @@ -3211,6 +3623,16 @@ which is the string ``llvm.loop.unroll.disable``. For example: !0 = !{!"llvm.loop.unroll.disable"} +'``llvm.loop.unroll.runtime.disable``' Metadata +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This metadata either disables runtime loop unrolling. The metadata has a single +operand which is the string ``llvm.loop.unroll.runtime.disable``. For example: + +.. code-block:: llvm + + !0 = !{!"llvm.loop.unroll.runtime.disable"} + '``llvm.loop.unroll.full``' Metadata ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -3231,28 +3653,28 @@ for optimizations are prefixed with ``llvm.mem``. '``llvm.mem.parallel_loop_access``' Metadata ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``llvm.mem.parallel_loop_access`` metadata refers to a loop identifier, -or metadata containing a list of loop identifiers for nested loops. -The metadata is attached to memory accessing instructions and denotes that -no loop carried memory dependence exist between it and other instructions denoted +The ``llvm.mem.parallel_loop_access`` metadata refers to a loop identifier, +or metadata containing a list of loop identifiers for nested loops. +The metadata is attached to memory accessing instructions and denotes that +no loop carried memory dependence exist between it and other instructions denoted with the same loop identifier. -Precisely, given two instructions ``m1`` and ``m2`` that both have the -``llvm.mem.parallel_loop_access`` metadata, with ``L1`` and ``L2`` being the -set of loops associated with that metadata, respectively, then there is no loop -carried dependence between ``m1`` and ``m2`` for loops in both ``L1`` and +Precisely, given two instructions ``m1`` and ``m2`` that both have the +``llvm.mem.parallel_loop_access`` metadata, with ``L1`` and ``L2`` being the +set of loops associated with that metadata, respectively, then there is no loop +carried dependence between ``m1`` and ``m2`` for loops in both ``L1`` and ``L2``. -As a special case, if all memory accessing instructions in a loop have -``llvm.mem.parallel_loop_access`` metadata that refers to that loop, then the -loop has no loop carried memory dependences and is considered to be a parallel -loop. +As a special case, if all memory accessing instructions in a loop have +``llvm.mem.parallel_loop_access`` metadata that refers to that loop, then the +loop has no loop carried memory dependences and is considered to be a parallel +loop. -Note that if not all memory access instructions have such metadata referring to -the loop, then the loop is considered not being trivially parallel. Additional -memory dependence analysis is required to make that determination. As a fail -safe mechanism, this causes loops that were originally parallel to be considered -sequential (if optimization passes that are unaware of the parallel semantics +Note that if not all memory access instructions have such metadata referring to +the loop, then the loop is considered not being trivially parallel. Additional +memory dependence analysis is required to make that determination. As a fail +safe mechanism, this causes loops that were originally parallel to be considered +sequential (if optimization passes that are unaware of the parallel semantics insert new memory instructions into the loop body). Example of a loop that is considered parallel due to its correct use of @@ -3263,7 +3685,7 @@ metadata types that refer to the same loop identifier metadata. for.body: ... - %val0 = load i32* %arrayidx, !llvm.mem.parallel_loop_access !0 + %val0 = load i32, i32* %arrayidx, !llvm.mem.parallel_loop_access !0 ... store i32 %val0, i32* %arrayidx1, !llvm.mem.parallel_loop_access !0 ... @@ -3281,13 +3703,13 @@ the loop identifier metadata node directly: outer.for.body: ... - %val1 = load i32* %arrayidx3, !llvm.mem.parallel_loop_access !2 + %val1 = load i32, i32* %arrayidx3, !llvm.mem.parallel_loop_access !2 ... br label %inner.for.body inner.for.body: ... - %val0 = load i32* %arrayidx1, !llvm.mem.parallel_loop_access !0 + %val0 = load i32, i32* %arrayidx1, !llvm.mem.parallel_loop_access !0 ... store i32 %val0, i32* %arrayidx2, !llvm.mem.parallel_loop_access !0 ... @@ -3305,6 +3727,12 @@ the loop identifier metadata node directly: !1 = !{!1} ; an identifier for the inner loop !2 = !{!2} ; an identifier for the outer loop +'``llvm.bitsets``' +^^^^^^^^^^^^^^^^^^ + +The ``llvm.bitsets`` global metadata is used to implement +:doc:`bitsets `. + Module Flags Metadata ===================== @@ -4641,7 +5069,7 @@ Semantics: The value produced is ``op1`` \* 2\ :sup:`op2` mod 2\ :sup:`n`, where ``n`` is the width of the result. If ``op2`` is (statically or -dynamically) negative or equal to or larger than the number of bits in +dynamically) equal to or larger than the number of bits in ``op1``, the result is undefined. If the arguments are vectors, each vector element of ``op1`` is shifted by the corresponding shift amount in ``op2``. @@ -5237,7 +5665,7 @@ Syntax: :: - = load [volatile] * [, align ][, !nontemporal !][, !invariant.load !][, !nonnull !] + = load [volatile] , * [, align ][, !nontemporal !][, !invariant.load !][, !nonnull !][, !dereferenceable !][, !dereferenceable_or_null !] = load atomic [volatile] * [singlethread] , align ! = !{ i32 1 } @@ -5250,7 +5678,7 @@ Arguments: """""""""" The argument to the ``load`` instruction specifies the memory address -from which to load. The pointer must point to a :ref:`first +from which to load. The type specified must be a :ref:`first class ` type. If the ``load`` is marked as ``volatile``, then the optimizer is not allowed to modify the number or order of execution of this ``load`` with other :ref:`volatile @@ -5290,17 +5718,36 @@ metadata name ```` corresponding to a metadata node with no entries. The existence of the ``!invariant.load`` metadata on the instruction tells the optimizer and code generator that the address operand to this load points to memory which can be assumed unchanged. -Being invariant does not imply that a location is dereferenceable, -but it does imply that once the location is known dereferenceable -its value is henceforth unchanging. +Being invariant does not imply that a location is dereferenceable, +but it does imply that once the location is known dereferenceable +its value is henceforth unchanging. The optional ``!nonnull`` metadata must reference a single metadata name ```` corresponding to a metadata node with no entries. The existence of the ``!nonnull`` metadata on the instruction tells the optimizer that the value loaded is known to never be null. This is analogous to the ''nonnull'' attribute -on parameters and return values. This metadata can only be applied -to loads of a pointer type. +on parameters and return values. This metadata can only be applied +to loads of a pointer type. + +The optional ``!dereferenceable`` metadata must reference a single +metadata name ```` corresponding to a metadata node with one ``i64`` +entry. The existence of the ``!dereferenceable`` metadata on the instruction +tells the optimizer that the value loaded is known to be dereferenceable. +The number of bytes known to be dereferenceable is specified by the integer +value in the metadata node. This is analogous to the ''dereferenceable'' +attribute on parameters and return values. This metadata can only be applied +to loads of a pointer type. + +The optional ``!dereferenceable_or_null`` metadata must reference a single +metadata name ```` corresponding to a metadata node with one ``i64`` +entry. The existence of the ``!dereferenceable_or_null`` metadata on the +instruction tells the optimizer that the value loaded is known to be either +dereferenceable or null. +The number of bytes known to be dereferenceable is specified by the integer +value in the metadata node. This is analogous to the ''dereferenceable_or_null'' +attribute on parameters and return values. This metadata can only be applied +to loads of a pointer type. Semantics: """""""""" @@ -5320,7 +5767,7 @@ Examples: %ptr = alloca i32 ; yields i32*:ptr store i32 3, i32* %ptr ; yields void - %val = load i32* %ptr ; yields i32:val = i32 3 + %val = load i32, i32* %ptr ; yields i32:val = i32 3 .. _i_store: @@ -5529,7 +5976,7 @@ Example: .. code-block:: llvm entry: - %orig = atomic load i32* %ptr unordered ; yields i32 + %orig = atomic load i32, i32* %ptr unordered ; yields i32 br label %loop loop: @@ -5626,9 +6073,9 @@ Syntax: :: - = getelementptr * {, }* - = getelementptr inbounds * {, }* - = getelementptr ptrval, idx + = getelementptr , * {, }* + = getelementptr inbounds , * {, }* + = getelementptr , , Overview: """"""""" @@ -5640,8 +6087,9 @@ address calculation only and does not access memory. Arguments: """""""""" -The first argument is always a pointer or a vector of pointers, and -forms the basis of the calculation. The remaining arguments are indices +The first argument is always a type used as the basis for the calculations. +The second argument is always a pointer or a vector of pointers, and is the +base address to start from. The remaining arguments are indices that indicate which of the elements of the aggregate object are indexed. The interpretation of each index is dependent on the type being indexed into. The first index always indexes the pointer value given as the @@ -5689,7 +6137,7 @@ The LLVM code generated by Clang is: define i32* @foo(%struct.ST* %s) nounwind uwtable readnone optsize ssp { entry: - %arrayidx = getelementptr inbounds %struct.ST* %s, i64 1, i32 2, i32 1, i64 5, i64 13 + %arrayidx = getelementptr inbounds %struct.ST, %struct.ST* %s, i64 1, i32 2, i32 1, i64 5, i64 13 ret i32* %arrayidx } @@ -5714,11 +6162,11 @@ for the given testcase is equivalent to: .. code-block:: llvm define i32* @foo(%struct.ST* %s) { - %t1 = getelementptr %struct.ST* %s, i32 1 ; yields %struct.ST*:%t1 - %t2 = getelementptr %struct.ST* %t1, i32 0, i32 2 ; yields %struct.RT*:%t2 - %t3 = getelementptr %struct.RT* %t2, i32 0, i32 1 ; yields [10 x [20 x i32]]*:%t3 - %t4 = getelementptr [10 x [20 x i32]]* %t3, i32 0, i32 5 ; yields [20 x i32]*:%t4 - %t5 = getelementptr [20 x i32]* %t4, i32 0, i32 13 ; yields i32*:%t5 + %t1 = getelementptr %struct.ST, %struct.ST* %s, i32 1 ; yields %struct.ST*:%t1 + %t2 = getelementptr %struct.ST, %struct.ST* %t1, i32 0, i32 2 ; yields %struct.RT*:%t2 + %t3 = getelementptr %struct.RT, %struct.RT* %t2, i32 0, i32 1 ; yields [10 x [20 x i32]]*:%t3 + %t4 = getelementptr [10 x [20 x i32]], [10 x [20 x i32]]* %t3, i32 0, i32 5 ; yields [20 x i32]*:%t4 + %t5 = getelementptr [20 x i32], [20 x i32]* %t4, i32 0, i32 13 ; yields i32*:%t5 ret i32* %t5 } @@ -5752,20 +6200,20 @@ Example: .. code-block:: llvm ; yields [12 x i8]*:aptr - %aptr = getelementptr {i32, [12 x i8]}* %saptr, i64 0, i32 1 + %aptr = getelementptr {i32, [12 x i8]}, {i32, [12 x i8]}* %saptr, i64 0, i32 1 ; yields i8*:vptr - %vptr = getelementptr {i32, <2 x i8>}* %svptr, i64 0, i32 1, i32 1 + %vptr = getelementptr {i32, <2 x i8>}, {i32, <2 x i8>}* %svptr, i64 0, i32 1, i32 1 ; yields i8*:eptr - %eptr = getelementptr [12 x i8]* %aptr, i64 0, i32 1 + %eptr = getelementptr [12 x i8], [12 x i8]* %aptr, i64 0, i32 1 ; yields i32*:iptr - %iptr = getelementptr [10 x i32]* @arr, i16 0, i16 0 + %iptr = getelementptr [10 x i32], [10 x i32]* @arr, i16 0, i16 0 In cases where the pointer argument is a vector of pointers, each index must be a vector with the same number of elements. For example: .. code-block:: llvm - %A = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets, + %A = getelementptr i8, <4 x i8*> %ptrs, <4 x i64> %offsets, Conversion Operations --------------------- @@ -6164,7 +6612,7 @@ Arguments: """""""""" The '``ptrtoint``' instruction takes a ``value`` to cast, which must be -a a value of type :ref:`pointer ` or a vector of pointers, and a +a value of type :ref:`pointer ` or a vector of pointers, and a type to cast it to ``ty2``, which must be an :ref:`integer ` or a vector of integers type. @@ -6614,9 +7062,7 @@ Arguments: The '``select``' instruction requires an 'i1' value or a vector of 'i1' values indicating the condition, and two values of the same :ref:`first -class ` type. If the val1/val2 are vectors and the -condition is a scalar, then entire vectors are selected, not individual -elements. +class ` type. Semantics: """""""""" @@ -6628,6 +7074,9 @@ argument. If the condition is a vector of i1, then the value arguments must be vectors of the same size, and the selection is done element by element. +If the condition is an i1 and the value arguments are vectors of the +same size, then an entire vector is selected. + Example: """""""" @@ -7097,18 +7546,28 @@ arbitrarily complex and require, for example, memory allocation. Accurate Garbage Collection Intrinsics -------------------------------------- -LLVM support for `Accurate Garbage Collection `_ -(GC) requires the implementation and generation of these intrinsics. +LLVM's support for `Accurate Garbage Collection `_ +(GC) requires the frontend to generate code containing appropriate intrinsic +calls and select an appropriate GC strategy which knows how to lower these +intrinsics in a manner which is appropriate for the target collector. + These intrinsics allow identification of :ref:`GC roots on the stack `, as well as garbage collector implementations that require :ref:`read ` and :ref:`write ` barriers. -Front-ends for type-safe garbage collected languages should generate +Frontends for type-safe garbage collected languages should generate these intrinsics to make use of the LLVM garbage collectors. For more -details, see `Accurate Garbage Collection with -LLVM `_. +details, see `Garbage Collection with LLVM `_. -The garbage collection intrinsics only operate on objects in the generic -address space (address space zero). +Experimental Statepoint Intrinsics +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +LLVM provides an second experimental set of intrinsics for describing garbage +collection safepoints in compiled code. These intrinsics are an alternative +to the ``llvm.gcroot`` intrinsics, but are compatible with the ones for +:ref:`read ` and :ref:`write ` barriers. The +differences in approach are covered in the `Garbage Collection with LLVM +`_ documentation. The intrinsics themselves are +described in :doc:`Statepoints`. .. _int_gcroot: @@ -7298,7 +7757,7 @@ Note that calling this intrinsic does not prevent function inlining or other aggressive transformations, so the value returned may not be that of the obvious source-language caller. -'``llvm.frameallocate``' and '``llvm.framerecover``' Intrinsics +'``llvm.frameescape``' and '``llvm.framerecover``' Intrinsics ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax: @@ -7306,24 +7765,23 @@ Syntax: :: - declare i8* @llvm.frameallocate(i32 %size) - declare i8* @llvm.framerecover(i8* %func, i8* %fp) + declare void @llvm.frameescape(...) + declare i8* @llvm.framerecover(i8* %func, i8* %fp, i32 %idx) Overview: """"""""" -The '``llvm.frameallocate``' intrinsic allocates stack memory at some fixed -offset from the frame pointer, and the '``llvm.framerecover``' -intrinsic applies that offset to a live frame pointer to recover the address of -the allocation. The offset is computed during frame layout of the caller of -``llvm.frameallocate``. +The '``llvm.frameescape``' intrinsic escapes offsets of a collection of static +allocas, and the '``llvm.framerecover``' intrinsic applies those offsets to a +live frame pointer to recover the address of the allocation. The offset is +computed during frame layout of the caller of ``llvm.frameescape``. Arguments: """""""""" -The ``size`` argument to '``llvm.frameallocate``' must be a constant integer -indicating the amount of stack memory to allocate. As with allocas, allocating -zero bytes is legal, but the result is undefined. +All arguments to '``llvm.frameescape``' must be pointers to static allocas or +casts of static allocas. Each function can only call '``llvm.frameescape``' +once, and it can only do so from the entry block. The ``func`` argument to '``llvm.framerecover``' must be a constant bitcasted pointer to a function defined in the current module. The code @@ -7335,6 +7793,9 @@ pointer of a call frame that is currently live. The return value of '``llvm.frameaddress``' is one way to produce such a value, but most platforms also expose the frame pointer through stack unwinding mechanisms. +The ``idx`` argument to '``llvm.framerecover``' indicates which alloca passed to +'``llvm.frameescape``' to recover. It is zero-indexed. + Semantics: """""""""" @@ -8739,6 +9200,8 @@ then the result is the size in bits of the type of ``src`` if ``is_zero_undef == 0`` and ``undef`` otherwise. For example, ``llvm.cttz(2) = 1``. +.. _int_overflow: + Arithmetic with Overflow Intrinsics ----------------------------------- @@ -9190,9 +9653,11 @@ Examples: .. code-block:: llvm - %a = load i16* @x, align 2 + %a = load i16, i16* @x, align 2 %res = call float @llvm.convert.from.fp16(i16 %a) +.. _dbg_intrinsics: + Debugger Intrinsics ------------------- @@ -9229,7 +9694,7 @@ It can be created as follows: .. code-block:: llvm %tramp = alloca [10 x i8], align 4 ; size and alignment only correct for X86 - %tramp1 = getelementptr [10 x i8]* %tramp, i32 0, i32 0 + %tramp1 = getelementptr [10 x i8], [10 x i8]* %tramp, i32 0, i32 0 call i8* @llvm.init.trampoline(i8* %tramp1, i8* bitcast (i32 (i8*, i32, i32)* @f to i8*), i8* %nval) %p = call i8* @llvm.adjust.trampoline(i8* %tramp1) %fp = bitcast i8* %p to i32 (i32, i32)* @@ -9317,6 +9782,8 @@ intrinsic returns the executable address corresponding to ``tramp`` after performing the required machine specific adjustments. The pointer returned can then be :ref:`bitcast and executed `. +.. _int_mload_mstore: + Masked Vector Load and Store Intrinsics --------------------------------------- @@ -9339,13 +9806,13 @@ This is an overloaded intrinsic. The loaded data is a vector of any integer or f Overview: """"""""" -Reads a vector from memory according to the provided mask. The mask holds a bit for each vector lane, and is used to prevent memory accesses to the masked-off lanes. The masked-off lanes in the result vector are taken from the corresponding lanes in the passthru operand. +Reads a vector from memory according to the provided mask. The mask holds a bit for each vector lane, and is used to prevent memory accesses to the masked-off lanes. The masked-off lanes in the result vector are taken from the corresponding lanes of the '``passthru``' operand. Arguments: """""""""" -The first operand is the base pointer for the load. The second operand is the alignment of the source location. It must be a constant integer value. The third operand, mask, is a vector of boolean 'i1' values with the same number of elements as the return type. The fourth is a pass-through value that is used to fill the masked-off lanes of the result. The return type, underlying type of the base pointer and the type of passthru operand are the same vector types. +The first operand is the base pointer for the load. The second operand is the alignment of the source location. It must be a constant integer value. The third operand, mask, is a vector of boolean values with the same number of elements as the return type. The fourth is a pass-through value that is used to fill the masked-off lanes of the result. The return type, underlying type of the base pointer and the type of the '``passthru``' operand are the same vector types. Semantics: @@ -9358,9 +9825,9 @@ The result of this operation is equivalent to a regular vector load instruction :: %res = call <16 x float> @llvm.masked.load.v16f32 (<16 x float>* %ptr, i32 4, <16 x i1>%mask, <16 x float> %passthru) - + ;; The result of the two following instructions is identical aside from potential memory access exception - %loadlal = load <16 x float>* %ptr, align 4 + %loadlal = load <16 x float>, <16 x float>* %ptr, align 4 %res = select <16 x i1> %mask, <16 x float> %loadlal, <16 x float> %passthru .. _int_mstore: @@ -9397,13 +9864,122 @@ The result of this operation is equivalent to a load-modify-store sequence. Howe :: call void @llvm.masked.store.v16f32(<16 x float> %value, <16 x float>* %ptr, i32 4, <16 x i1> %mask) - + ;; The result of the following instructions is identical aside from potential data races and memory access exceptions - %oldval = load <16 x float>* %ptr, align 4 + %oldval = load <16 x float>, <16 x float>* %ptr, align 4 %res = select <16 x i1> %mask, <16 x float> %value, <16 x float> %oldval store <16 x float> %res, <16 x float>* %ptr, align 4 +Masked Vector Gather and Scatter Intrinsics +------------------------------------------- + +LLVM provides intrinsics for vector gather and scatter operations. They are similar to :ref:`Masked Vector Load and Store `, except they are designed for arbitrary memory accesses, rather than sequential memory accesses. Gather and scatter also employ a mask operand, which holds one bit per vector element, switching the associated vector lane on or off. The memory addresses corresponding to the "off" lanes are not accessed. When all bits are off, no memory is accessed. + +.. _int_mgather: + +'``llvm.masked.gather.*``' Intrinsics +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Syntax: +""""""" +This is an overloaded intrinsic. The loaded data are multiple scalar values of any integer or floating point data type gathered together into one vector. + +:: + + declare <16 x float> @llvm.masked.gather.v16f32 (<16 x float*> , i32 , <16 x i1> , <16 x float> ) + declare <2 x double> @llvm.masked.gather.v2f64 (<2 x double*> , i32 , <2 x i1> , <2 x double> ) + +Overview: +""""""""" + +Reads scalar values from arbitrary memory locations and gathers them into one vector. The memory locations are provided in the vector of pointers '``ptrs``'. The memory is accessed according to the provided mask. The mask holds a bit for each vector lane, and is used to prevent memory accesses to the masked-off lanes. The masked-off lanes in the result vector are taken from the corresponding lanes of the '``passthru``' operand. + + +Arguments: +"""""""""" + +The first operand is a vector of pointers which holds all memory addresses to read. The second operand is an alignment of the source addresses. It must be a constant integer value. The third operand, mask, is a vector of boolean values with the same number of elements as the return type. The fourth is a pass-through value that is used to fill the masked-off lanes of the result. The return type, underlying type of the vector of pointers and the type of the '``passthru``' operand are the same vector types. + + +Semantics: +"""""""""" + +The '``llvm.masked.gather``' intrinsic is designed for conditional reading of multiple scalar values from arbitrary memory locations in a single IR operation. It is useful for targets that support vector masked gathers and allows vectorizing basic blocks with data and control divergence. Other targets may support this intrinsic differently, for example by lowering it into a sequence of scalar load operations. +The semantics of this operation are equivalent to a sequence of conditional scalar loads with subsequent gathering all loaded values into a single vector. The mask restricts memory access to certain lanes and facilitates vectorization of predicated basic blocks. + + +:: + + %res = call <4 x double> @llvm.masked.gather.v4f64 (<4 x double*> %ptrs, i32 8, <4 x i1>%mask, <4 x double> ) + + ;; The gather with all-true mask is equivalent to the following instruction sequence + %ptr0 = extractelement <4 x double*> %ptrs, i32 0 + %ptr1 = extractelement <4 x double*> %ptrs, i32 1 + %ptr2 = extractelement <4 x double*> %ptrs, i32 2 + %ptr3 = extractelement <4 x double*> %ptrs, i32 3 + + %val0 = load double, double* %ptr0, align 8 + %val1 = load double, double* %ptr1, align 8 + %val2 = load double, double* %ptr2, align 8 + %val3 = load double, double* %ptr3, align 8 + + %vec0 = insertelement <4 x double>undef, %val0, 0 + %vec01 = insertelement <4 x double>%vec0, %val1, 1 + %vec012 = insertelement <4 x double>%vec01, %val2, 2 + %vec0123 = insertelement <4 x double>%vec012, %val3, 3 + +.. _int_mscatter: + +'``llvm.masked.scatter.*``' Intrinsics +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Syntax: +""""""" +This is an overloaded intrinsic. The data stored in memory is a vector of any integer or floating point data type. Each vector element is stored in an arbitrary memory addresses. Scatter with overlapping addresses is guaranteed to be ordered from least-significant to most-significant element. + +:: + + declare void @llvm.masked.scatter.v8i32 (<8 x i32> , <8 x i32*> , i32 , <8 x i1> ) + declare void @llvm.masked.scatter.v16f32(<16 x i32> , <16 x i32*> , i32 , <16 x i1> ) + +Overview: +""""""""" + +Writes each element from the value vector to the corresponding memory address. The memory addresses are represented as a vector of pointers. Writing is done according to the provided mask. The mask holds a bit for each vector lane, and is used to prevent memory accesses to the masked-off lanes. + +Arguments: +"""""""""" + +The first operand is a vector value to be written to memory. The second operand is a vector of pointers, pointing to where the value elements should be stored. It has the same underlying type as the value operand. The third operand is an alignment of the destination addresses. The fourth operand, mask, is a vector of boolean values. The types of the mask and the value operand must have the same number of vector elements. + + +Semantics: +"""""""""" + +The '``llvm.masked.scatter``' intrinsics is designed for writing selected vector elements to arbitrary memory addresses in a single IR operation. The operation may be conditional, when not all bits in the mask are switched on. It is useful for targets that support vector masked scatter and allows vectorizing basic blocks with data and control divergency. Other targets may support this intrinsic differently, for example by lowering it into a sequence of branches that guard scalar store operations. + +:: + + ;; This instruction unconditionaly stores data vector in multiple addresses + call @llvm.masked.scatter.v8i32 (<8 x i32> %value, <8 x i32*> %ptrs, i32 4, <8 x i1> ) + + ;; It is equivalent to a list of scalar stores + %val0 = extractelement <8 x i32> %value, i32 0 + %val1 = extractelement <8 x i32> %value, i32 1 + .. + %val7 = extractelement <8 x i32> %value, i32 7 + %ptr0 = extractelement <8 x i32*> %ptrs, i32 0 + %ptr1 = extractelement <8 x i32*> %ptrs, i32 1 + .. + %ptr7 = extractelement <8 x i32*> %ptrs, i32 7 + ;; Note: the order of the following stores is important when they overlap: + store i32 %val0, i32* %ptr0, align 4 + store i32 %val1, i32* %ptr1, align 4 + .. + store i32 %val7, i32* %ptr7, align 4 + + Memory Use Markers ------------------ @@ -9848,6 +10424,8 @@ Semantics: This intrinsic is lowered to the ``val``. +.. _int_assume: + '``llvm.assume``' Intrinsic ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -9888,6 +10466,31 @@ sufficient overall improvement in code quality. For this reason, that the optimizer can otherwise deduce or facts that are of little use to the optimizer. +.. _bitset.test: + +'``llvm.bitset.test``' Intrinsic +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Syntax: +""""""" + +:: + + declare i1 @llvm.bitset.test(i8* %ptr, metadata %bitset) nounwind readnone + + +Arguments: +"""""""""" + +The first argument is a pointer to be tested. The second argument is a +metadata string containing the name of a :doc:`bitset `. + +Overview: +""""""""" + +The ``llvm.bitset.test`` intrinsic tests whether the given pointer is a +member of the given bitset. + '``llvm.donothing``' Intrinsic ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/Lexicon.rst b/docs/Lexicon.rst index 9a599da1285..112eb7d79ec 100644 --- a/docs/Lexicon.rst +++ b/docs/Lexicon.rst @@ -46,6 +46,15 @@ B C - +**CFI** + Call Frame Information. Used in DWARF debug info and in C++ unwind info + to show how the function prolog lays out the stack frame. + +**CIE** + Common Information Entry. A kind of CFI used to reduce the size of FDEs. + The compiler creates a CIE which contains the information common across all + the FDEs. Each FDE then points to its CIE. + **CSE** Common Subexpression Elimination. An optimization that removes common subexpression compuation. For example ``(a+b)*(a+b)`` has two subexpressions @@ -82,6 +91,10 @@ F **FCA** First Class Aggregate +**FDE** + Frame Description Entry. A kind of CFI used to describe the stack frame of + one function. + G - @@ -121,6 +134,14 @@ L **LICM** Loop Invariant Code Motion +**LSDA** + Language Specific Data Area. C++ "zero cost" unwinding is built on top a + generic unwinding mechanism. As the unwinder walks each frame, it calls + a "personality" function to do language specific analysis. Each function's + FDE points to an optional LSDA which is passed to the personality function. + For C++, the LSDA contain info about the type and location of catch + statements in that function. + **Load-VN** Load Value Numbering diff --git a/docs/LibFuzzer.rst b/docs/LibFuzzer.rst new file mode 100644 index 00000000000..47bdfd3a27d --- /dev/null +++ b/docs/LibFuzzer.rst @@ -0,0 +1,418 @@ +======================================================== +LibFuzzer -- a library for coverage-guided fuzz testing. +======================================================== +.. contents:: + :local: + :depth: 4 + +Introduction +============ + +This library is intended primarily for in-process coverage-guided fuzz testing +(fuzzing) of other libraries. The typical workflow looks like this: + +* Build the Fuzzer library as a static archive (or just a set of .o files). + Note that the Fuzzer contains the main() function. + Preferably do *not* use sanitizers while building the Fuzzer. +* Build the library you are going to test with + `-fsanitize-coverage={bb,edge}[,indirect-calls,8bit-counters]` + and one of the sanitizers. We recommend to build the library in several + different modes (e.g. asan, msan, lsan, ubsan, etc) and even using different + optimizations options (e.g. -O0, -O1, -O2) to diversify testing. +* Build a test driver using the same options as the library. + The test driver is a C/C++ file containing interesting calls to the library + inside a single function ``extern "C" void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);`` +* Link the Fuzzer, the library and the driver together into an executable + using the same sanitizer options as for the library. +* Collect the initial corpus of inputs for the + fuzzer (a directory with test inputs, one file per input). + The better your inputs are the faster you will find something interesting. + Also try to keep your inputs small, otherwise the Fuzzer will run too slow. + By default, the Fuzzer limits the size of every input to 64 bytes + (use ``-max_len=N`` to override). +* Run the fuzzer with the test corpus. As new interesting test cases are + discovered they will be added to the corpus. If a bug is discovered by + the sanitizer (asan, etc) it will be reported as usual and the reproducer + will be written to disk. + Each Fuzzer process is single-threaded (unless the library starts its own + threads). You can run the Fuzzer on the same corpus in multiple processes + in parallel. + + +The Fuzzer is similar in concept to AFL_, +but uses in-process Fuzzing, which is more fragile, more restrictive, but +potentially much faster as it has no overhead for process start-up. +It uses LLVM's SanitizerCoverage_ instrumentation to get in-process +coverage-feedback + +The code resides in the LLVM repository, requires the fresh Clang compiler to build +and is used to fuzz various parts of LLVM, +but the Fuzzer itself does not (and should not) depend on any +part of LLVM and can be used for other projects w/o requiring the rest of LLVM. + +Flags +===== +The most important flags are:: + + seed 0 Random seed. If 0, seed is generated. + runs -1 Number of individual test runs (-1 for infinite runs). + max_len 64 Maximum length of the test input. + cross_over 1 If 1, cross over inputs. + mutate_depth 5 Apply this number of consecutive mutations to each input. + timeout 1200 Timeout in seconds (if positive). If one unit runs more than this number of seconds the process will abort. + help 0 Print help. + save_minimized_corpus 0 If 1, the minimized corpus is saved into the first input directory + jobs 0 Number of jobs to run. If jobs >= 1 we spawn this number of jobs in separate worker processes with stdout/stderr redirected to fuzz-JOB.log. + workers 0 Number of simultaneous worker processes to run the jobs. If zero, "min(jobs,NumberOfCpuCores()/2)" is used. + tokens 0 Use the file with tokens (one token per line) to fuzz a token based input language. + apply_tokens 0 Read the given input file, substitute bytes with tokens and write the result to stdout. + sync_command 0 Execute an external command " " to synchronize the test corpus. + sync_timeout 600 Minimum timeout between syncs. + +For the full list of flags run the fuzzer binary with ``-help=1``. + +Usage examples +============== + +Toy example +----------- + +A simple function that does something interesting if it receives the input "HI!":: + + cat << EOF >> test_fuzzer.cc + extern "C" void LLVMFuzzerTestOneInput(const unsigned char *data, unsigned long size) { + if (size > 0 && data[0] == 'H') + if (size > 1 && data[1] == 'I') + if (size > 2 && data[2] == '!') + __builtin_trap(); + } + EOF + # Get lib/Fuzzer. Assuming that you already have fresh clang in PATH. + svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer + # Build lib/Fuzzer files. + clang -c -g -O2 -std=c++11 Fuzzer/*.cpp -IFuzzer + # Build test_fuzzer.cc with asan and link against lib/Fuzzer. + clang++ -fsanitize=address -fsanitize-coverage=edge test_fuzzer.cc Fuzzer*.o + # Run the fuzzer with no corpus. + ./a.out + +You should get ``Illegal instruction (core dumped)`` pretty quickly. + +PCRE2 +----- + +Here we show how to use lib/Fuzzer on something real, yet simple: pcre2_:: + + COV_FLAGS=" -fsanitize-coverage=edge,indirect-calls,8bit-counters" + # Get PCRE2 + svn co svn://vcs.exim.org/pcre2/code/trunk pcre + # Get lib/Fuzzer. Assuming that you already have fresh clang in PATH. + svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer + # Build PCRE2 with AddressSanitizer and coverage. + (cd pcre; ./autogen.sh; CC="clang -fsanitize=address $COV_FLAGS" ./configure --prefix=`pwd`/../inst && make -j && make install) + # Build lib/Fuzzer files. + clang -c -g -O2 -std=c++11 Fuzzer/*.cpp -IFuzzer + # Build the the actual function that does something interesting with PCRE2. + cat << EOF > pcre_fuzzer.cc + #include + #include "pcre2posix.h" + extern "C" void LLVMFuzzerTestOneInput(const unsigned char *data, size_t size) { + if (size < 1) return; + char *str = new char[size+1]; + memcpy(str, data, size); + str[size] = 0; + regex_t preg; + if (0 == regcomp(&preg, str, 0)) { + regexec(&preg, str, 0, 0, 0); + regfree(&preg); + } + delete [] str; + } + EOF + clang++ -g -fsanitize=address $COV_FLAGS -c -std=c++11 -I inst/include/ pcre_fuzzer.cc + # Link. + clang++ -g -fsanitize=address -Wl,--whole-archive inst/lib/*.a -Wl,-no-whole-archive Fuzzer*.o pcre_fuzzer.o -o pcre_fuzzer + +This will give you a binary of the fuzzer, called ``pcre_fuzzer``. +Now, create a directory that will hold the test corpus:: + + mkdir -p CORPUS + +For simple input languages like regular expressions this is all you need. +For more complicated inputs populate the directory with some input samples. +Now run the fuzzer with the corpus dir as the only parameter:: + + ./pcre_fuzzer ./CORPUS + +You will see output like this:: + + Seed: 1876794929 + #0 READ cov 0 bits 0 units 1 exec/s 0 + #1 pulse cov 3 bits 0 units 1 exec/s 0 + #1 INITED cov 3 bits 0 units 1 exec/s 0 + #2 pulse cov 208 bits 0 units 1 exec/s 0 + #2 NEW cov 208 bits 0 units 2 exec/s 0 L: 64 + #3 NEW cov 217 bits 0 units 3 exec/s 0 L: 63 + #4 pulse cov 217 bits 0 units 3 exec/s 0 + +* The ``Seed:`` line shows you the current random seed (you can change it with ``-seed=N`` flag). +* The ``READ`` line shows you how many input files were read (since you passed an empty dir there were inputs, but one dummy input was synthesised). +* The ``INITED`` line shows you that how many inputs will be fuzzed. +* The ``NEW`` lines appear with the fuzzer finds a new interesting input, which is saved to the CORPUS dir. If multiple corpus dirs are given, the first one is used. +* The ``pulse`` lines appear periodically to show the current status. + +Now, interrupt the fuzzer and run it again the same way. You will see:: + + Seed: 1879995378 + #0 READ cov 0 bits 0 units 564 exec/s 0 + #1 pulse cov 502 bits 0 units 564 exec/s 0 + ... + #512 pulse cov 2933 bits 0 units 564 exec/s 512 + #564 INITED cov 2991 bits 0 units 344 exec/s 564 + #1024 pulse cov 2991 bits 0 units 344 exec/s 1024 + #1455 NEW cov 2995 bits 0 units 345 exec/s 1455 L: 49 + +This time you were running the fuzzer with a non-empty input corpus (564 items). +As the first step, the fuzzer minimized the set to produce 344 interesting items (the ``INITED`` line) + +It is quite convenient to store test corpuses in git. +As an example, here is a git repository with test inputs for the above PCRE2 fuzzer:: + + git clone https://github.com/kcc/fuzzing-with-sanitizers.git + ./pcre_fuzzer ./fuzzing-with-sanitizers/pcre2/C1/ + +You may run ``N`` independent fuzzer jobs in parallel on ``M`` CPUs:: + + N=100; M=4; ./pcre_fuzzer ./CORPUS -jobs=$N -workers=$M + +By default (``-reload=1``) the fuzzer processes will periodically scan the CORPUS directory +and reload any new tests. This way the test inputs found by one process will be picked up +by all others. + +If ``-workers=$M`` is not supplied, ``min($N,NumberOfCpuCore/2)`` will be used. + +Heartbleed +---------- +Remember Heartbleed_? +As it was recently `shown `_, +fuzzing with AddressSanitizer can find Heartbleed. Indeed, here are the step-by-step instructions +to find Heartbleed with LibFuzzer:: + + wget https://www.openssl.org/source/openssl-1.0.1f.tar.gz + tar xf openssl-1.0.1f.tar.gz + COV_FLAGS="-fsanitize-coverage=edge,indirect-calls" # -fsanitize-coverage=8bit-counters + (cd openssl-1.0.1f/ && ./config && + make -j 32 CC="clang -g -fsanitize=address $COV_FLAGS") + # Get and build LibFuzzer + svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer + clang -c -g -O2 -std=c++11 Fuzzer/*.cpp -IFuzzer + # Get examples of key/pem files. + git clone https://github.com/hannob/selftls + cp selftls/server* . -v + cat << EOF > handshake-fuzz.cc + #include + #include + #include + SSL_CTX *sctx; + int Init() { + SSL_library_init(); + SSL_load_error_strings(); + ERR_load_BIO_strings(); + OpenSSL_add_all_algorithms(); + assert (sctx = SSL_CTX_new(TLSv1_method())); + assert (SSL_CTX_use_certificate_file(sctx, "server.pem", SSL_FILETYPE_PEM)); + assert (SSL_CTX_use_PrivateKey_file(sctx, "server.key", SSL_FILETYPE_PEM)); + return 0; + } + extern "C" void LLVMFuzzerTestOneInput(unsigned char *Data, size_t Size) { + static int unused = Init(); + SSL *server = SSL_new(sctx); + BIO *sinbio = BIO_new(BIO_s_mem()); + BIO *soutbio = BIO_new(BIO_s_mem()); + SSL_set_bio(server, sinbio, soutbio); + SSL_set_accept_state(server); + BIO_write(sinbio, Data, Size); + SSL_do_handshake(server); + SSL_free(server); + } + EOF + # Build the fuzzer. + clang++ -g handshake-fuzz.cc -fsanitize=address \ + openssl-1.0.1f/libssl.a openssl-1.0.1f/libcrypto.a Fuzzer*.o + # Run 20 independent fuzzer jobs. + ./a.out -jobs=20 -workers=20 + +Voila:: + + #1048576 pulse cov 3424 bits 0 units 9 exec/s 24385 + ================================================================= + ==17488==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x629000004748 at pc 0x00000048c979 bp 0x7fffe3e864f0 sp 0x7fffe3e85ca8 + READ of size 60731 at 0x629000004748 thread T0 + #0 0x48c978 in __asan_memcpy + #1 0x4db504 in tls1_process_heartbeat openssl-1.0.1f/ssl/t1_lib.c:2586:3 + #2 0x580be3 in ssl3_read_bytes openssl-1.0.1f/ssl/s3_pkt.c:1092:4 + +Advanced features +================= + +Tokens +------ + +By default, the fuzzer is not aware of complexities of the input language +and when fuzzing e.g. a C++ parser it will mostly stress the lexer. +It is very hard for the fuzzer to come up with something like ``reinterpret_cast`` +from a test corpus that doesn't have it. +See a detailed discussion of this topic at +http://lcamtuf.blogspot.com/2015/01/afl-fuzz-making-up-grammar-with.html. + +lib/Fuzzer implements a simple technique that allows to fuzz input languages with +long tokens. All you need is to prepare a text file containing up to 253 tokens, one token per line, +and pass it to the fuzzer as ``-tokens=TOKENS_FILE.txt``. +Three implicit tokens are added: ``" "``, ``"\t"``, and ``"\n"``. +The fuzzer itself will still be mutating a string of bytes +but before passing this input to the target library it will replace every byte ``b`` with the ``b``-th token. +If there are less than ``b`` tokens, a space will be added instead. + +AFL compatibility +----------------- +LibFuzzer can be used in parallel with AFL_ on the same test corpus. +Both fuzzers expect the test corpus to reside in a directory, one file per input. +You can run both fuzzers on the same corpus in parallel:: + + ./afl-fuzz -i testcase_dir -o findings_dir /path/to/program -r @@ + ./llvm-fuzz testcase_dir findings_dir # Will write new tests to testcase_dir + +Periodically restart both fuzzers so that they can use each other's findings. + +How good is my fuzzer? +---------------------- + +Once you implement your target function ``LLVMFuzzerTestOneInput`` and fuzz it to death, +you will want to know whether the function or the corpus can be improved further. +One easy to use metric is, of course, code coverage. +You can get the coverage for your corpus like this:: + + ASAN_OPTIONS=coverage_pcs=1 ./fuzzer CORPUS_DIR -runs=0 + +This will run all the tests in the CORPUS_DIR but will not generate any new tests +and dump covered PCs to disk before exiting. +Then you can subtract the set of covered PCs from the set of all instrumented PCs in the binary, +see SanitizerCoverage_ for details. + +User-supplied mutators +---------------------- + +LibFuzzer allows to use custom (user-supplied) mutators, +see FuzzerInterface.h_ + +Fuzzing components of LLVM +========================== + +clang-format-fuzzer +------------------- +The inputs are random pieces of C++-like text. + +Build (make sure to use fresh clang as the host compiler):: + + cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=YES -DCMAKE_BUILD_TYPE=Release /path/to/llvm + ninja clang-format-fuzzer + mkdir CORPUS_DIR + ./bin/clang-format-fuzzer CORPUS_DIR + +Optionally build other kinds of binaries (asan+Debug, msan, ubsan, etc). + +TODO: commit the pre-fuzzed corpus to svn (?). + +Tracking bug: https://llvm.org/bugs/show_bug.cgi?id=23052 + +clang-fuzzer +------------ + +The default behavior is very similar to ``clang-format-fuzzer``. +Clang can also be fuzzed with Tokens_ using ``-tokens=$LLVM/lib/Fuzzer/cxx_fuzzer_tokens.txt`` option. + +Tracking bug: https://llvm.org/bugs/show_bug.cgi?id=23057 + +Buildbot +-------- + +We have a buildbot that runs the above fuzzers for LLVM components +24/7/365 at http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer . + +Pre-fuzzed test inputs in git +----------------------------- + +The buildbot occumulates large test corpuses over time. +The corpuses are stored in git on github and can be used like this:: + + git clone https://github.com/kcc/fuzzing-with-sanitizers.git + bin/clang-format-fuzzer fuzzing-with-sanitizers/llvm/clang-format/C1 + bin/clang-fuzzer fuzzing-with-sanitizers/llvm/clang/C1/ + bin/clang-fuzzer fuzzing-with-sanitizers/llvm/clang/TOK1 -tokens=$LLVM/llvm/lib/Fuzzer/cxx_fuzzer_tokens.txt + + +FAQ +========================= + +Q. Why Fuzzer does not use any of the LLVM support? +--------------------------------------------------- + +There are two reasons. + +First, we want this library to be used outside of the LLVM w/o users having to +build the rest of LLVM. This may sound unconvincing for many LLVM folks, +but in practice the need for building the whole LLVM frightens many potential +users -- and we want more users to use this code. + +Second, there is a subtle technical reason not to rely on the rest of LLVM, or +any other large body of code (maybe not even STL). When coverage instrumentation +is enabled, it will also instrument the LLVM support code which will blow up the +coverage set of the process (since the fuzzer is in-process). In other words, by +using more external dependencies we will slow down the fuzzer while the main +reason for it to exist is extreme speed. + +Q. What about Windows then? The Fuzzer contains code that does not build on Windows. +------------------------------------------------------------------------------------ + +The sanitizer coverage support does not work on Windows either as of 01/2015. +Once it's there, we'll need to re-implement OS-specific parts (I/O, signals). + +Q. When this Fuzzer is not a good solution for a problem? +--------------------------------------------------------- + +* If the test inputs are validated by the target library and the validator + asserts/crashes on invalid inputs, the in-process fuzzer is not applicable + (we could use fork() w/o exec, but it comes with extra overhead). +* Bugs in the target library may accumulate w/o being detected. E.g. a memory + corruption that goes undetected at first and then leads to a crash while + testing another input. This is why it is highly recommended to run this + in-process fuzzer with all sanitizers to detect most bugs on the spot. +* It is harder to protect the in-process fuzzer from excessive memory + consumption and infinite loops in the target library (still possible). +* The target library should not have significant global state that is not + reset between the runs. +* Many interesting target libs are not designed in a way that supports + the in-process fuzzer interface (e.g. require a file path instead of a + byte array). +* If a single test run takes a considerable fraction of a second (or + more) the speed benefit from the in-process fuzzer is negligible. +* If the target library runs persistent threads (that outlive + execution of one test) the fuzzing results will be unreliable. + +Q. So, what exactly this Fuzzer is good for? +-------------------------------------------- + +This Fuzzer might be a good choice for testing libraries that have relatively +small inputs, each input takes < 1ms to run, and the library code is not expected +to crash on invalid inputs. +Examples: regular expression matchers, text or binary format parsers. + +.. _pcre2: http://www.pcre.org/ + +.. _AFL: http://lcamtuf.coredump.cx/afl/ + +.. _SanitizerCoverage: http://clang.llvm.org/docs/SanitizerCoverage.html + +.. _Heartbleed: http://en.wikipedia.org/wiki/Heartbleed + +.. _FuzzerInterface.h: https://github.com/llvm-mirror/llvm/blob/master/lib/Fuzzer/FuzzerInterface.h diff --git a/docs/Makefile b/docs/Makefile index 690f7726b73..c9d2477c0af 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -16,24 +16,29 @@ DOXYGEN = doxygen $(PROJ_OBJ_DIR)/doxygen.cfg: doxygen.cfg.in cat $< | sed \ - -e 's/@abs_top_srcdir@/../g' \ -e 's/@DOT@/dot/g' \ -e 's/@PACKAGE_VERSION@/mainline/' \ -e 's/@abs_top_builddir@/../g' \ - -e 's/@enable_searchengine@/NO/g' \ - -e 's/@searchengine_url@//g' \ - -e 's/@enable_server_based_search@/NO/g' \ + -e 's/@abs_top_srcdir@/../g' \ -e 's/@enable_external_search@/NO/g' \ - -e 's/@extra_search_mappings@//g' > $@ + -e 's/@enable_searchengine@/NO/g' \ + -e 's/@enable_server_based_search@/NO/g' \ + -e 's/@extra_search_mappings@//g' \ + -e 's/@llvm_doxygen_generate_qhp@//g' \ + -e 's/@llvm_doxygen_qch_filename@//g' \ + -e 's/@llvm_doxygen_qhelpgenerator_path@//g' \ + -e 's/@llvm_doxygen_qhp_cust_filter_attrs@//g' \ + -e 's/@llvm_doxygen_qhp_cust_filter_name@//g' \ + -e 's/@llvm_doxygen_qhp_namespace@//g' \ + -e 's/@searchengine_url@//g' \ + > $@ endif include $(LEVEL)/Makefile.common HTML := $(wildcard $(PROJ_SRC_DIR)/*.html) \ $(wildcard $(PROJ_SRC_DIR)/*.css) -DOXYFILES := doxygen.cfg.in doxygen.css doxygen.footer doxygen.header \ - doxygen.intro -EXTRA_DIST := $(HTML) $(DOXYFILES) llvm.css CommandGuide +DOXYFILES := doxygen.cfg.in doxygen.intro .PHONY: install-html install-doxygen doxygen install-ocamldoc ocamldoc generated @@ -41,7 +46,7 @@ install_targets := install-html ifeq ($(ENABLE_DOXYGEN),1) install_targets += install-doxygen endif -ifdef OCAMLDOC +ifdef OCAMLFIND ifneq (,$(filter ocaml,$(BINDINGS_TO_BUILD))) install_targets += install-ocamldoc endif @@ -49,7 +54,7 @@ endif install-local:: $(install_targets) generated_targets := doxygen -ifdef OCAMLDOC +ifdef OCAMLFIND generated_targets += ocamldoc endif @@ -72,11 +77,14 @@ $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML) install-doxygen: doxygen $(Echo) Installing doxygen documentation - $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/doxygen $(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(DESTDIR)$(PROJ_docsdir) - $(Verb) cd $(PROJ_OBJ_DIR)/doxygen && \ - $(FIND) . -type f -exec \ - $(DataInstall) {} $(DESTDIR)$(PROJ_docsdir)/html/doxygen \; + $(Verb) cd $(PROJ_OBJ_DIR)/doxygen/html && \ + for DIR in $$($(FIND) . -type d); do \ + DESTSUB="$(DESTDIR)$(PROJ_docsdir)/html/doxygen/$$(echo $$DIR | cut -c 3-)"; \ + $(MKDIR) $$DESTSUB && \ + $(FIND) $$DIR -maxdepth 1 -type f -exec $(DataInstall) {} $$DESTSUB \; ; \ + if [ $$? != 0 ]; then exit 1; fi \ + done doxygen: regendoc $(PROJ_OBJ_DIR)/doxygen.tar.gz @@ -120,7 +128,7 @@ regen-ocamldoc: $(Verb) $(MAKE) -C $(LEVEL)/bindings/ocaml ocamldoc $(Verb) $(MKDIR) $(PROJ_OBJ_DIR)/ocamldoc/html $(Verb) \ - $(OCAMLDOC) -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize-code -html \ + $(OCAMLFIND) ocamldoc -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize-code -html \ `$(FIND) $(LEVEL)/bindings/ocaml -name "*.odoc" \ -path "*/$(BuildMode)/*.odoc" -exec echo -load '{}' ';'` diff --git a/docs/MergeFunctions.rst b/docs/MergeFunctions.rst index 6b8012e4b0c..b2f6030edc1 100644 --- a/docs/MergeFunctions.rst +++ b/docs/MergeFunctions.rst @@ -58,8 +58,8 @@ Especially it's important to understand chapter 3 of tutorial: :doc:`tutorial/LangImpl3` -Reader also should know how passes work in LLVM, he could use next article as a -reference and start point here: +Reader also should know how passes work in LLVM, they could use next article as +a reference and start point here: :doc:`WritingAnLLVMPass` @@ -88,7 +88,7 @@ part describes the merging process. In every part author also tried to put the contents into the top-down form. First, the top-level methods will be described, while the terminal ones will be at the end, in the tail of each part. If reader will see the reference to the -method that wasn't described yet, he will find its description a bit below. +method that wasn't described yet, they will find its description a bit below. Basics ====== diff --git a/docs/Passes.rst b/docs/Passes.rst index 3f9534182c7..cc0a853bc4d 100644 --- a/docs/Passes.rst +++ b/docs/Passes.rst @@ -1119,13 +1119,6 @@ useful when diffing the effect of an optimization because deleting an unnamed instruction can change all other instruction numbering, making the diff very noisy. -``-preverify``: Preliminary module verification ------------------------------------------------ - -Ensures that the module is in the form required by the :ref:`Module Verifier -` pass. Running the verifier runs this pass automatically, so -there should be no need to use it directly. - .. _passes-verify: ``-verify``: Module Verifier diff --git a/docs/Phabricator.rst b/docs/Phabricator.rst index 3f4f72ab753..f7238afafc7 100644 --- a/docs/Phabricator.rst +++ b/docs/Phabricator.rst @@ -64,7 +64,9 @@ To upload a new patch: * Paste the text diff or upload the patch file. Note that TODO * Leave the drop down on *Create a new Revision...* and click *Continue*. -* Enter a descriptive title and summary; add reviewers and mailing +* Enter a descriptive title and summary. The title and summary are usually + in the form of a :ref:`commit message `. +* Add reviewers and mailing lists that you want to be included in the review. If your patch is for LLVM, add llvm-commits as a subscriber; if your patch is for Clang, add cfe-commits. @@ -85,8 +87,11 @@ Reviewing code with Phabricator Phabricator allows you to add inline comments as well as overall comments to a revision. To add an inline comment, select the lines of code you want to comment on by clicking and dragging the line numbers in the diff pane. +When you have added all your comments, scroll to the bottom of the page and +click the Submit button. -You can add overall comments or submit your comments at the bottom of the page. +You can add overall comments in the text box at the bottom of the page. +When you're done, click the Submit button. Phabricator has many useful features, for example allowing you to select diffs between different versions of the patch as it was reviewed in the @@ -128,13 +133,33 @@ This allows people reading the version history to see the review for context. This also allows Phabricator to detect the commit, close the review, and add a link from the review to the commit. +Abandoning a change +------------------- + +If you decide you should not commit the patch, you should explicitly abandon +the review so that reviewers don't think it is still open. In the web UI, +scroll to the bottom of the page where normally you would enter an overall +comment. In the drop-down Action list, which defaults to "Comment," you should +select "Abandon Revision" and then enter a comment explaining why. Click the +Submit button to finish closing the review. + Status ------ -Please let us know whether you like it and what could be improved! +Please let us know whether you like it and what could be improved! We're still +working on setting up a bug tracker, but you can email klimek-at-google-dot-com +and chandlerc-at-gmail-dot-com and CC the llvmdev mailing list with questions +until then. We also could use help implementing improvements. This sadly is +really painful and hard because the Phabricator codebase is in PHP and not as +testable as you might like. However, we've put exactly what we're deploying up +on an `llvm-reviews GitHub project`_ where folks can hack on it and post pull +requests. We're looking into what the right long-term hosting for this is, but +note that it is a derivative of an existing open source project, and so not +trivially a good fit for an official LLVM project. .. _LLVM's Phabricator: http://reviews.llvm.org .. _`http://reviews.llvm.org`: http://reviews.llvm.org .. _Code Repository Browser: http://reviews.llvm.org/diffusion/ .. _Arcanist Quick Start: http://www.phabricator.com/docs/phabricator/article/Arcanist_Quick_Start.html .. _Arcanist User Guide: http://www.phabricator.com/docs/phabricator/article/Arcanist_User_Guide.html +.. _llvm-reviews GitHub project: https://github.com/r4nt/llvm-reviews/ diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index 85a4ad8e554..ceb39e18efd 100644 --- a/docs/ProgrammersManual.rst +++ b/docs/ProgrammersManual.rst @@ -488,6 +488,9 @@ gathered, use the '``-stats``' option: $ opt -stats -mypassname < program.bc > /dev/null ... statistics output ... +Note that in order to use the '``-stats``' option, LLVM must be +compiled with assertions enabled. + When running ``opt`` on a C file from the SPEC benchmark suite, it gives a report that looks like this: @@ -937,7 +940,7 @@ There are a variety of ways to pass around and use strings in C and C++, and LLVM adds a few new options to choose from. Pick the first option on this list that will do what you need, they are ordered according to their relative cost. -Note that is is generally preferred to *not* pass strings around as ``const +Note that it is generally preferred to *not* pass strings around as ``const char*``'s. These have a number of problems, including the fact that they cannot represent embedded nul ("\0") characters, and do not have a length available efficiently. The general replacement for '``const char*``' is @@ -1102,10 +1105,10 @@ If you have a set-like data structure that is usually small and whose elements are reasonably small, a ``SmallSet`` is a good choice. This set has space for N elements in place (thus, if the set is dynamically smaller than N, no malloc traffic is required) and accesses them with a simple linear search. -When the set grows beyond 'N' elements, it allocates a more expensive +When the set grows beyond N elements, it allocates a more expensive representation that guarantees efficient access (for most types, it falls back -to std::set, but for pointers it uses something far better, :ref:`SmallPtrSet -`. +to :ref:`std::set `, but for pointers it uses something far better, +:ref:`SmallPtrSet `. The magic of this class is that it handles small sets extremely efficiently, but gracefully handles extremely large sets without loss of efficiency. The @@ -1117,16 +1120,31 @@ and erasing, but does not support iteration. llvm/ADT/SmallPtrSet.h ^^^^^^^^^^^^^^^^^^^^^^ -SmallPtrSet has all the advantages of ``SmallSet`` (and a ``SmallSet`` of +``SmallPtrSet`` has all the advantages of ``SmallSet`` (and a ``SmallSet`` of pointers is transparently implemented with a ``SmallPtrSet``), but also supports -iterators. If more than 'N' insertions are performed, a single quadratically +iterators. If more than N insertions are performed, a single quadratically probed hash table is allocated and grows as needed, providing extremely efficient access (constant time insertion/deleting/queries with low constant factors) and is very stingy with malloc traffic. -Note that, unlike ``std::set``, the iterators of ``SmallPtrSet`` are invalidated -whenever an insertion occurs. Also, the values visited by the iterators are not -visited in sorted order. +Note that, unlike :ref:`std::set `, the iterators of ``SmallPtrSet`` +are invalidated whenever an insertion occurs. Also, the values visited by the +iterators are not visited in sorted order. + +.. _dss_stringset: + +llvm/ADT/StringSet.h +^^^^^^^^^^^^^^^^^^^^ + +``StringSet`` is a thin wrapper around :ref:`StringMap\ `, +and it allows efficient storage and retrieval of unique strings. + +Functionally analogous to ``SmallSet``, ``StringSet`` also suports +iteration. (The iterator dereferences to a ``StringMapEntry``, so you +need to call ``i->getKey()`` to access the item of the StringSet.) On the +other hand, ``StringSet`` doesn't support range-insertion and +copy-construction, which :ref:`SmallSet ` and :ref:`SmallPtrSet +` do support. .. _dss_denseset: @@ -1294,8 +1312,9 @@ never use hash_set and unordered_set because they are generally very expensive (each insertion requires a malloc) and very non-portable. std::multiset is useful if you're not interested in elimination of duplicates, -but has all the drawbacks of std::set. A sorted vector (where you don't delete -duplicate entries) or some other approach is almost always better. +but has all the drawbacks of :ref:`std::set `. A sorted vector +(where you don't delete duplicate entries) or some other approach is almost +always better. .. _ds_map: @@ -1408,7 +1427,7 @@ llvm/ADT/IntervalMap.h IntervalMap is a compact map for small keys and values. It maps key intervals instead of single keys, and it will automatically coalesce adjacent intervals. -When then map only contains a few intervals, they are stored in the map object +When the map only contains a few intervals, they are stored in the map object itself to avoid allocations. The IntervalMap iterators are quite big, so they should not be passed around as @@ -1684,8 +1703,8 @@ they will automatically convert to a ptr-to-instance type whenever they need to. Instead of derferencing the iterator and then taking the address of the result, you can simply assign the iterator to the proper pointer type and you get the dereference and address-of operation as a result of the assignment (behind the -scenes, this is a result of overloading casting mechanisms). Thus the last line -of the last example, +scenes, this is a result of overloading casting mechanisms). Thus the second +line of the last example, .. code-block:: c++ @@ -1813,7 +1832,7 @@ chain of ``F``: Function *F = ...; - for (User *U : GV->users()) { + for (User *U : F->users()) { if (Instruction *Inst = dyn_cast(U)) { errs() << "F is used in instruction:\n"; errs() << *Inst << "\n"; @@ -2480,6 +2499,92 @@ ensures that the first bytes of ``User`` (if interpreted as a pointer) never has the LSBit set. (Portability is relying on the fact that all known compilers place the ``vptr`` in the first word of the instances.) +.. _polymorphism: + +Designing Type Hiercharies and Polymorphic Interfaces +----------------------------------------------------- + +There are two different design patterns that tend to result in the use of +virtual dispatch for methods in a type hierarchy in C++ programs. The first is +a genuine type hierarchy where different types in the hierarchy model +a specific subset of the functionality and semantics, and these types nest +strictly within each other. Good examples of this can be seen in the ``Value`` +or ``Type`` type hierarchies. + +A second is the desire to dispatch dynamically across a collection of +polymorphic interface implementations. This latter use case can be modeled with +virtual dispatch and inheritance by defining an abstract interface base class +which all implementations derive from and override. However, this +implementation strategy forces an **"is-a"** relationship to exist that is not +actually meaningful. There is often not some nested hierarchy of useful +generalizations which code might interact with and move up and down. Instead, +there is a singular interface which is dispatched across a range of +implementations. + +The preferred implementation strategy for the second use case is that of +generic programming (sometimes called "compile-time duck typing" or "static +polymorphism"). For example, a template over some type parameter ``T`` can be +instantiated across any particular implementation that conforms to the +interface or *concept*. A good example here is the highly generic properties of +any type which models a node in a directed graph. LLVM models these primarily +through templates and generic programming. Such templates include the +``LoopInfoBase`` and ``DominatorTreeBase``. When this type of polymorphism +truly needs **dynamic** dispatch you can generalize it using a technique +called *concept-based polymorphism*. This pattern emulates the interfaces and +behaviors of templates using a very limited form of virtual dispatch for type +erasure inside its implementation. You can find examples of this technique in +the ``PassManager.h`` system, and there is a more detailed introduction to it +by Sean Parent in several of his talks and papers: + +#. `Inheritance Is The Base Class of Evil + `_ + - The GoingNative 2013 talk describing this technique, and probably the best + place to start. +#. `Value Semantics and Concepts-based Polymorphism + `_ - The C++Now! 2012 talk + describing this technique in more detail. +#. `Sean Parent's Papers and Presentations + `_ + - A Github project full of links to slides, video, and sometimes code. + +When deciding between creating a type hierarchy (with either tagged or virtual +dispatch) and using templates or concepts-based polymorphism, consider whether +there is some refinement of an abstract base class which is a semantically +meaningful type on an interface boundary. If anything more refined than the +root abstract interface is meaningless to talk about as a partial extension of +the semantic model, then your use case likely fits better with polymorphism and +you should avoid using virtual dispatch. However, there may be some exigent +circumstances that require one technique or the other to be used. + +If you do need to introduce a type hierarchy, we prefer to use explicitly +closed type hierarchies with manual tagged dispatch and/or RTTI rather than the +open inheritance model and virtual dispatch that is more common in C++ code. +This is because LLVM rarely encourages library consumers to extend its core +types, and leverages the closed and tag-dispatched nature of its hierarchies to +generate significantly more efficient code. We have also found that a large +amount of our usage of type hierarchies fits better with tag-based pattern +matching rather than dynamic dispatch across a common interface. Within LLVM we +have built custom helpers to facilitate this design. See this document's +section on :ref:`isa and dyn_cast ` and our :doc:`detailed document +` which describes how you can implement this +pattern for use with the LLVM helpers. + +.. _abi_breaking_checks: + +ABI Breaking Checks +------------------- + +Checks and asserts that alter the LLVM C++ ABI are predicated on the +preprocessor symbol `LLVM_ENABLE_ABI_BREAKING_CHECKS` -- LLVM +libraries built with `LLVM_ENABLE_ABI_BREAKING_CHECKS` are not ABI +compatible LLVM libraries built without it defined. By default, +turning on assertions also turns on `LLVM_ENABLE_ABI_BREAKING_CHECKS` +so a default +Asserts build is not ABI compatible with a +default -Asserts build. Clients that want ABI compatibility +between +Asserts and -Asserts builds should use the CMake or autoconf +build systems to set `LLVM_ENABLE_ABI_BREAKING_CHECKS` independently +of `LLVM_ENABLE_ASSERTIONS`. + .. _coreclasses: The Core LLVM Class Hierarchy Reference @@ -2493,8 +2598,9 @@ doxygen info: `Type Clases `_ The Core LLVM classes are the primary means of representing the program being inspected or transformed. The core LLVM classes are defined in header files in -the ``include/llvm/`` directory, and implemented in the ``lib/VMCore`` -directory. +the ``include/llvm/IR`` directory, and implemented in the ``lib/IR`` +directory. It's worth noting that, for historical reasons, this library is +called ``libLLVMCore.so``, not ``libLLVMIR.so`` as you might expect. .. _Type: @@ -2562,7 +2668,7 @@ Important Derived Types Subclass of SequentialType for vector types. A vector type is similar to an ArrayType but is distinguished because it is a first class type whereas ArrayType is not. Vector types are used for vector operations and are usually - small vectors of of an integer or floating point type. + small vectors of an integer or floating point type. ``StructType`` Subclass of DerivedTypes for struct types. diff --git a/docs/R600Usage.rst b/docs/R600Usage.rst index 48a30c8a8dd..093cdd762b4 100644 --- a/docs/R600Usage.rst +++ b/docs/R600Usage.rst @@ -6,22 +6,51 @@ Introduction ============ The R600 back-end provides ISA code generation for AMD GPUs, starting with -the R600 family up until the current Sea Islands (GCN Gen 2). +the R600 family up until the current Volcanic Islands (GCN Gen 3). Assembler ========= -The assembler is currently a work in progress and not yet complete. Below -are the currently supported features. +The assembler is currently considered experimental. + +For syntax examples look in test/MC/R600. + +Below some of the currently supported features (modulo bugs). These +all apply to the Southern Islands ISA, Sea Islands and Volcanic Islands +are also supported but may be missing some instructions and have more bugs: + +DS Instructions +--------------- +All DS instructions are supported. + +MUBUF Instructions +------------------ +All non-atomic MUBUF instructions are supported. + +SMRD Instructions +----------------- +Only the s_load_dword* SMRD instructions are supported. + +SOP1 Instructions +----------------- +All SOP1 instructions are supported. + +SOP2 Instructions +----------------- +All SOP2 instructions are supported. + +SOPC Instructions +----------------- +All SOPC instructions are supported. SOPP Instructions ----------------- -Unless otherwise mentioned, all SOPP instructions that with an operand -accept a integer operand(s) only. No verification is performed on the -operands, so it is up to the programmer to be familiar with the range -or acceptable values. +Unless otherwise mentioned, all SOPP instructions that have one or more +operands accept integer operands only. No verification is performed +on the operands, so it is up to the programmer to be familiar with the +range or acceptable values. s_waitcnt ^^^^^^^^^ @@ -41,3 +70,20 @@ wait for. // Wait for vmcnt counter to be 1. s_waitcnt vmcnt(1) +VOP1, VOP2, VOP3, VOPC Instructions +----------------------------------- + +All 32-bit and 64-bit encodings should work. + +The assembler will automatically detect which encoding size to use for +VOP1, VOP2, and VOPC instructions based on the operands. If you want to force +a specific encoding size, you can add an _e32 (for 32-bit encoding) or +_e64 (for 64-bit encoding) suffix to the instruction. Most, but not all +instructions support an explicit suffix. These are all valid assembly +strings: + +.. code-block:: nasm + + v_mul_i32_i24 v1, v2, v3 + v_mul_i32_i24_e32 v1, v2, v3 + v_mul_i32_i24_e64 v1, v2, v3 diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index a10f7e004ab..c0d2ea18981 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -1,16 +1,21 @@ ====================== -LLVM 3.6 Release Notes +LLVM 3.7 Release Notes ====================== .. contents:: :local: +.. warning:: + These are in-progress notes for the upcoming LLVM 3.7 release. You may + prefer the `LLVM 3.6 Release Notes `_. + Introduction ============ This document contains the release notes for the LLVM Compiler Infrastructure, -release 3.6. Here we describe the status of LLVM, including major improvements +release 3.7. Here we describe the status of LLVM, including major improvements from the previous release, improvements in various subprojects of LLVM, and some of the current users of the code. All LLVM releases may be downloaded from the `LLVM releases web site `_. @@ -21,35 +26,14 @@ have questions or comments, the `LLVM Developer's Mailing List `_ is a good place to send them. +Note that if you are reading this file from a Subversion checkout or the main +LLVM web page, this document applies to the *next* release, not the current +one. To see the release notes for a specific release, please see the `releases +page `_. Non-comprehensive list of changes in this release ================================================= -Changes to the MIPS Target --------------------------- - -* Added support for 128-bit integers on 64-bit targets. - -* Fixed some remaining N32/N64 calling convention bugs when using small - structures on big-endian targets. - -* Fixed missing sign-extensions that are required by the N32/N64 calling - convention when generating calls to library functions with 32-bit parameters. - -* ``-mno-odd-spreg`` is now honoured for vector insertion/extraction operations - when using ``-mmsa``. - -* Corrected the representation of member function pointers. This makes them - usable on microMIPS targets. - -* Fixed multiple segfaults and assertions in the disassembler when - disassembling instructions that have memory operands. - -* Fixed multiple cases of suboptimal code generation involving ``$zero``. - -Non-comprehensive list of changes in 3.6.0 -========================================== - .. NOTE For small 1-3 sentence descriptions, just add an entry at the end of this list. If your description won't fit comfortably in one bullet @@ -57,13 +41,19 @@ Non-comprehensive list of changes in 3.6.0 functionality, or simply have a lot to talk about), see the `NOTE` below for adding a new subsection. -* Support for AuroraUX has been removed. +* The minimum required Visual Studio version for building LLVM is now 2013 + Update 4. -* Added support for a `native object file-based bitcode wrapper format - `_. +* A new documentation page, :doc:`Frontend/PerformanceTips`, contains a + collection of tips for frontend authors on how to generate IR which LLVM is + able to effectively optimize. -* Added support for MSVC's ``__vectorcall`` calling convention as - ``x86_vectorcallcc``. +* The DataLayout is no longer optional. All the IR level optimizations expects + it to be present and the API has been changed to use a reference instead of + a pointer to make it explicit. The Module owns the datalayout and it has to + match the one attached to the TargetMachine for generating code. + +* ... next change ... .. NOTE If you would like to document a larger change, then you can add a @@ -75,585 +65,38 @@ Non-comprehensive list of changes in 3.6.0 Makes programs 10x faster by doing Special New Thing. -Prefix data rework ------------------- - -The semantics of the ``prefix`` attribute have been changed. Users -that want the previous ``prefix`` semantics should instead use -``prologue``. To motivate this change, let's examine the primary -usecases that these attributes aim to serve, - - 1. Code sanitization metadata (e.g. Clang's undefined behavior - sanitizer) - - 2. Function hot-patching: Enable the user to insert ``nop`` operations - at the beginning of the function which can later be safely replaced - with a call to some instrumentation facility. - - 3. Language runtime metadata: Allow a compiler to insert data for - use by the runtime during execution. GHC is one example of a - compiler that needs this functionality for its - tables-next-to-code functionality. - -Previously ``prefix`` served cases (1) and (2) quite well by allowing the user -to introduce arbitrary data at the entrypoint but before the function -body. Case (3), however, was poorly handled by this approach as it -required that prefix data was valid executable code. - -In this release the concept of prefix data has been redefined to be -data which occurs immediately before the function entrypoint (i.e. the -symbol address). Since prefix data now occurs before the function -entrypoint, there is no need for the data to be valid code. - -The previous notion of prefix data now goes under the name "prologue -data" to emphasize its duality with the function epilogue. - -The intention here is to handle cases (1) and (2) with prologue data and -case (3) with prefix data. See the language reference for further details -on the semantics of these attributes. - -This refactoring arose out of discussions_ with Reid Kleckner in -response to a proposal to introduce the notion of symbol offsets to -enable handling of case (3). - -.. _discussions: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-May/073235.html - - -Metadata is not a Value ------------------------ - -Metadata nodes (``!{...}``) and strings (``!"..."``) are no longer values. -They have no use-lists, no type, cannot RAUW, and cannot be function-local. - -Bridges between Value and Metadata -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -LLVM intrinsics can reference metadata using the ``metadata`` type, and -metadata nodes can reference constant values. - -Function-local metadata is limited to direct arguments to LLVM intrinsics. - -Metadata is typeless -^^^^^^^^^^^^^^^^^^^^ - -The following old IR: - -.. code-block:: llvm - - @g = global i32 0 - - define void @foo(i32 %v) { - entry: - call void @llvm.md(metadata !{i32 %v}) - call void @llvm.md(metadata !{i32* @global}) - call void @llvm.md(metadata !0) - call void @llvm.md(metadata !{metadata !"string"}) - call void @llvm.md(metadata !{metadata !{metadata !1, metadata !"string"}}) - ret void, !bar !1, !baz !2 - } - - declare void @llvm.md(metadata) - - !0 = metadata !{metadata !1, metadata !2, metadata !3, metadata !"some string"} - !1 = metadata !{metadata !2, null, metadata !"other", i32* @global, i32 7} - !2 = metadata !{} - -should now be written as: - -.. code-block:: llvm - - @g = global i32 0 - - define void @foo(i32 %v) { - entry: - call void @llvm.md(metadata i32 %v) ; The only legal place for function-local - ; metadata. - call void @llvm.md(metadata i32* @global) - call void @llvm.md(metadata !0) - call void @llvm.md(metadata !{!"string"}) - call void @llvm.md(metadata !{!{!1, !"string"}}) - ret void, !bar !1, !baz !2 - } - - declare void @llvm.md(metadata) - - !0 = !{!1, !2, !3, !"some string"} - !1 = !{!2, null, !"other", i32* @global, i32 7} - !2 = !{} - -Distinct metadata nodes -^^^^^^^^^^^^^^^^^^^^^^^ - -Metadata nodes can opt-out of uniquing, using the keyword ``distinct``. -Distinct nodes are still owned by the context, but are stored in a side table, -and not uniqued. - -In LLVM 3.5, metadata nodes would drop uniquing if an operand changed to -``null`` during optimizations. This is no longer true. However, if an operand -change causes a uniquing collision, they become ``distinct``. Unlike LLVM 3.5, -where serializing to assembly or bitcode would re-unique the nodes, they now -remain ``distinct``. - -The following IR: - -.. code-block:: llvm - - !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} - - !0 = !{} - !1 = !{} - !2 = distinct !{} - !3 = distinct !{} - !4 = !{!0} - !5 = distinct !{!0} - !6 = !{!4, !{}, !5} - !7 = !{!{!0}, !0, !5} - !8 = distinct !{!{!0}, !0, !5} - -is equivalent to the following: - -.. code-block:: llvm - - !named = !{!0, !0, !1, !2, !3, !4, !5, !5, !6} - - !0 = !{} - !1 = distinct !{} - !2 = distinct !{} - !3 = !{!0} - !4 = distinct !{!0} - !5 = !{!3, !0, !4} - !6 = distinct !{!3, !0, !4} - -Constructing cyclic graphs -^^^^^^^^^^^^^^^^^^^^^^^^^^ - -During graph construction, if a metadata node transitively references a forward -declaration, the node itself is considered "unresolved" until the forward -declaration resolves. An unresolved node can RAUW itself to support uniquing. -Nodes automatically resolve once all their operands have resolved. - -However, cyclic graphs prevent the nodes from resolving. An API client that -constructs a cyclic graph must call ``resolveCycles()`` to resolve nodes in the -cycle. - -To save self-references from that burden, self-referencing nodes are implicitly -``distinct``. So the following IR: - -.. code-block:: llvm - - !named = !{!0, !1, !2, !3, !4} - - !0 = !{!0} - !1 = !{!1} - !2 = !{!2, !1} - !3 = !{!2, !1} - !4 = !{!2, !1} - -is equivalent to: - -.. code-block:: llvm - - !named = !{!0, !1, !2, !3, !3} - - !0 = distinct !{!0} - !1 = distinct !{!1} - !2 = distinct !{!2, !1} - !3 = !{!2, !1} - -MDLocation (aka DebugLoc aka DILocation) -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -There's a new first-class metadata construct called ``MDLocation`` (to be -followed in subsequent releases by others). It's used for the locations -referenced by ``!dbg`` metadata attachments. - -For example, if an old ``!dbg`` attachment looked like this: - -.. code-block:: llvm - - define i32 @foo(i32 %a, i32 %b) { - entry: - %add = add i32 %a, %b, !dbg !0 - ret %add, !dbg !1 - } - - !0 = metadata !{i32 10, i32 3, metadata !2, metadata !1) - !1 = metadata !{i32 20, i32 7, metadata !3) - !2 = metadata !{...} - !3 = metadata !{...} - -the new attachment looks like this: - -.. code-block:: llvm - - define i32 @foo(i32 %a, i32 %b) { - entry: - %add = add i32 %a, %b, !dbg !0 - ret %add, !dbg !1 - } - - !0 = !MDLocation(line: 10, column: 3, scope: !2, inlinedAt: !1) - !1 = !MDLocation(line: 20, column: 7, scope: !3) - !2 = !{...} - !3 = !{...} - -The fields are named, can be reordered, and have sane defaults if left out -(although ``scope:`` is required). - - -Alias syntax change ------------------------ - -The syntax for aliases is now closer to what is used for global variables - -.. code-block:: llvm - - @a = weak global ... - @b = weak alias ... - -The order of the ``alias`` keyword and the linkage was swapped before. - -The old JIT has been removed ----------------------------- - -All users should transition to MCJIT. - - -object::Binary doesn't own the file buffer -------------------------------------------- - -It is now just a wrapper, which simplifies using object::Binary with other -users of the underlying file. - - -IR in object files is now supported ------------------------------------ - -Regular object files can contain IR in a section named ``.llvmbc``. - - -The gold plugin has been rewritten ----------------------------------- - -It is now implemented directly on top of lib/Linker instead of ``lib/LTO``. -The API of ``lib/LTO`` is sufficiently different from gold's view of the -linking process that some cases could not be conveniently implemented. - -The new implementation is also lazier and has a ``save-temps`` option. - - -Change in the representation of lazy loaded funcs -------------------------------------------------- - -Lazy loaded functions are now represented in a way that ``isDeclaration`` -returns the correct answer even before reading the body. - - -The opt option -std-compile-opts was removed --------------------------------------------- - -It was effectively an alias of -O3. - - -Python 2.7 is now required +Changes to the ARM Backend -------------------------- -This was done to simplify compatibility with python 3. - - -The leak detector has been removed ----------------------------------- - -In practice, tools like asan and valgrind were finding way more bugs than -the old leak detector, so it was removed. - - -New comdat syntax ------------------ - -The syntax of comdats was changed to - -.. code-block:: llvm - - $c = comdat any - @g = global i32 0, comdat($c) - @c = global i32 0, comdat - -The version without the parentheses is a syntactic sugar for a comdat with -the same name as the global. - - -Added support for Win64 unwind information ------------------------------------------- - -LLVM now obeys the `Win64 prologue and epilogue conventions -`_ documented by -Microsoft. Unwind information is also emitted into the .xdata section. - -As a result of the ABI-required prologue changes, it is now no longer possible -to unwind the stack using a standard frame pointer walk on Win64. Instead, -users should call ``CaptureStackBackTrace``, or implement equivalent -functionality by consulting the unwind tables present in the binary. - - -Diagnostic infrastructure used by lib/Linker and lib/Bitcode ------------------------------------------------------------- - -These libraries now use the diagnostic handler to print errors and warnings. -This provides better error messages and simpler error handling. - - -The PreserveSource linker mode was removed ------------------------------------------- - -It was fairly broken and was removed. - -The mode is currently still available in the C API for source -compatibility, but it doesn't have any effect. - - -Garbage Collection ------------------- -A new experimental mechanism for describing a garbage collection safepoint was -added to LLVM. The new mechanism was not complete at the point this release -was branched so it is recommended that anyone interested in using this -mechanism track the ongoing development work on tip of tree. The hope is that -these intrinsics will be ready for general use by 3.7. Documentation can be -found `here `_. - -The existing gc.root implementation is still supported and as fully featured -as it ever was. However, two features from GCStrategy will likely be removed -in the 3.7 release (performCustomLowering and findCustomSafePoints). If you -have a use case for either, please mention it on llvm-dev so that it can be -considered for future development. - -We are expecting to migrate away from gc.root in the 3.8 time frame, -but both mechanisms will be supported in 3.7. + During this release ... Changes to the MIPS Target -------------------------- -During this release the MIPS target has reached a few major milestones. The -compiler has gained support for MIPS-II and MIPS-III; become ABI-compatible -with GCC for big and little endian O32, N32, and N64; and is now able to -compile the Linux kernel for 32-bit targets. Additionally, LLD now supports -microMIPS for the O32 ABI on little endian targets, and code generation for -microMIPS is almost completely passing the test-suite. - - -ABI -^^^ - -A large number of bugs have been fixed for big-endian MIPS targets using the -N32 and N64 ABI's as well as a small number of bugs affecting other ABI's. -Please note that some of these bugs will still affect LLVM-IR generated by -LLVM 3.5 since correct code generation depends on appropriate usage of the -``inreg``, ``signext``, and ``zeroext`` attributes on all function arguments -and returns. - -There are far too many corrections to provide a complete list but here are a -few notable ones: - -* Big-endian N32 and N64 now interlinks successfully with GCC compiled code. - Previously this didn't work for the majority of cases. - -* The registers used to return a structure containing a single 128-bit floating - point member on the N32/N64 ABI's have been changed from those specified by - the ABI documentation to match those used by GCC. The documentation specifies - that ``$f0`` and ``$f2`` should be used but GCC has used ``$f0`` and ``$f1`` - for many years. - -* Returning a zero-byte struct no longer causes arguments to be read from the - wrong registers when using the O32 ABI. - -* The exception personality has been changed for 64-bit MIPS targets to - eliminate warnings about relocations in a read-only section. - -* Incorrect usage of odd-numbered single-precision floating point registers - has been fixed when the fastcc calling convention is used with 64-bit FPU's - and -mno-odd-spreg. - - -LLVMLinux -^^^^^^^^^ - -It is now possible to compile the Linux kernel. This currently requires a small -number of kernel patches. See the `LLVMLinux project -`_ for details. - -* Added -mabicalls and -mno-abicalls. The implementation may not be complete - but works sufficiently well for the Linux kernel. - -* Fixed multiple compatibility issues between LLVM's inline assembly support - and GCC's. - -* Added support for a number of directives used by Linux to the Integrated - Assembler. - - -Miscellaneous -^^^^^^^^^^^^^ - -* Attempting to disassemble l[wd]c[23], s[wd]c[23], cache, and pref no longer - triggers an assertion. - -* Added -muclibc and -mglibc to support toolchains that provide both uClibC and - GLibC. - -* __SIZEOF_INT128__ is no longer defined for 64-bit targets since 128-bit - integers do not work at this time for this target. - -* Using $t4-$t7 with the N32 and N64 ABI is deprecated when ``-fintegrated-as`` - is in use and will be removed in LLVM 3.7. These names have never been - supported by the GNU Assembler for these ABI's. + During this release ... Changes to the PowerPC Target ----------------------------- -There are numerous improvements to the PowerPC target in this release: - -* LLVM now generates the Vector-Scalar eXtension (VSX) instructions from - version 2.06 of the Power ISA, for both big- and little-endian targets. - -* LLVM now has a POWER8 instruction scheduling description. - -* AddressSanitizer (ASan) support is now fully functional. - -* Performance of simple atomic accesses has been greatly improved. - -* Atomic fences now use light-weight syncs where possible, again providing - significant performance benefit. - -* The PowerPC target now supports PIC levels (-fPIC vs. -fpic). - -* PPC32 SVR4 now supports small-model PIC. - -* Experimental support for the stackmap/patchpoint intrinsics has been added. - -* There have been many smaller bug fixes and performance improvements. + During this release ... Changes to the OCaml bindings ----------------------------- -* The bindings now require OCaml >=4.00.0, ocamlfind, - ctypes >=0.3.0 <0.4 and OUnit 2 if tests are enabled. - -* The bindings can now be built using cmake as well as autoconf. - -* LLVM 3.5 has, unfortunately, shipped a broken Llvm_executionengine - implementation. In LLVM 3.6, the bindings now fully support MCJIT, - however the interface is reworked from scratch using ctypes - and is not backwards compatible. - -* Llvm_linker.Mode was removed following the changes in LLVM. - This breaks the interface of Llvm_linker. - -* All combinations of ocamlc/ocamlc -custom/ocamlopt and shared/static - builds of LLVM are now supported. - -* Absolute paths are not embedded into the OCaml libraries anymore. - Either OCaml >=4.02.2 must be used, which includes an rpath-like $ORIGIN - mechanism, or META file must be updated for out-of-tree installations; - see r221139. - -* As usual, many more functions have been exposed to OCaml. + During this release ... -Go bindings ------------ - -* A set of Go bindings based on `gollvm `_ - was introduced in this release. - - -External Open Source Projects Using LLVM 3.6 +External Open Source Projects Using LLVM 3.7 ============================================ An exciting aspect of LLVM is that it is used as an enabling technology for a lot of other language and tools projects. This section lists some of the -projects that have already been updated to work with LLVM 3.6. +projects that have already been updated to work with LLVM 3.7. - -Portable Computing Language (pocl) ----------------------------------- - -In addition to producing an easily portable open source OpenCL -implementation, another major goal of `pocl `_ -is improving performance portability of OpenCL programs with -compiler optimizations, reducing the need for target-dependent manual -optimizations. An important part of pocl is a set of LLVM passes used to -statically parallelize multiple work-items with the kernel compiler, even in -the presence of work-group barriers. This enables static parallelization of -the fine-grained static concurrency in the work groups in multiple ways. - - -TTA-based Co-design Environment (TCE) -------------------------------------- - -`TCE `_ is a toolset for designing customized -exposed datapath processors based on the Transport triggered -architecture (TTA). - -The toolset provides a complete co-design flow from C/C++ -programs down to synthesizable VHDL/Verilog and parallel program binaries. -Processor customization points include the register files, function units, -supported operations, and the interconnection network. - -TCE uses Clang and LLVM for C/C++/OpenCL C language support, target independent -optimizations and also for parts of code generation. It generates -new LLVM-based code generators "on the fly" for the designed processors and -loads them in to the compiler backend as runtime libraries to avoid -per-target recompilation of larger parts of the compiler chain. - - -Likely ------- - -`Likely `_ is an embeddable just-in-time Lisp for -image recognition and heterogeneous computing. Algorithms are just-in-time -compiled using LLVM's MCJIT infrastructure to execute on single or -multi-threaded CPUs and potentially OpenCL SPIR or CUDA enabled GPUs. -Likely seeks to explore new optimizations for statistical learning -algorithms by moving them from an offline model generation step to the -compile-time evaluation of a function (the learning algorithm) with constant -arguments (the training data). - - -LDC - the LLVM-based D compiler -------------------------------- - -`D `_ is a language with C-like syntax and static typing. It -pragmatically combines efficiency, control, and modeling power, with safety and -programmer productivity. D supports powerful concepts like Compile-Time Function -Execution (CTFE) and Template Meta-Programming, provides an innovative approach -to concurrency and offers many classical paradigms. - -`LDC `_ uses the frontend from the reference compiler -combined with LLVM as backend to produce efficient native code. LDC targets -x86/x86_64 systems like Linux, OS X, FreeBSD and Windows and also Linux on -PowerPC (32/64 bit). Ports to other architectures like ARM, AArch64 and MIPS64 -are underway. - - -LLVMSharp & ClangSharp ----------------------- - -`LLVMSharp `_ and -`ClangSharp `_ are type-safe C# bindings for -Microsoft.NET and Mono that Platform Invoke into the native libraries. -ClangSharp is self-hosted and is used to generated LLVMSharp using the -LLVM-C API. - -`LLVMSharp Kaleidoscope Tutorials `_ -are instructive examples of writing a compiler in C#, with certain improvements -like using the visitor pattern to generate LLVM IR. - -`ClangSharp PInvoke Generator `_ is the -self-hosting mechanism for LLVM/ClangSharp and is demonstrative of using -LibClang to generate Platform Invoke (PInvoke) signatures for C APIs. +* A project Additional Information diff --git a/docs/SourceLevelDebugging.rst b/docs/SourceLevelDebugging.rst index 3a5fa6ef24b..99186f58188 100644 --- a/docs/SourceLevelDebugging.rst +++ b/docs/SourceLevelDebugging.rst @@ -153,487 +153,21 @@ debugger to interpret the information. To provide basic functionality, the LLVM debugger does have to make some assumptions about the source-level language being debugged, though it keeps these to a minimum. The only common features that the LLVM debugger assumes -exist are :ref:`source files `, and :ref:`program objects -`. These abstract objects are used by a debugger to -form stack traces, show information about local variables, etc. +exist are `source files `_, and `program objects +`_. These abstract objects are used by a +debugger to form stack traces, show information about local variables, etc. This section of the documentation first describes the representation aspects common to any source-language. :ref:`ccxx_frontend` describes the data layout conventions used by the C and C++ front-ends. -Debug information descriptors ------------------------------ - -In consideration of the complexity and volume of debug information, LLVM -provides a specification for well formed debug descriptors. - -Consumers of LLVM debug information expect the descriptors for program objects -to start in a canonical format, but the descriptors can include additional -information appended at the end that is source-language specific. All debugging -information objects start with a tag to indicate what type of object it is. -The source-language is allowed to define its own objects, by using unreserved -tag numbers. We recommend using with tags in the range 0x1000 through 0x2000 -(there is a defined ``enum DW_TAG_user_base = 0x1000``.) - -The fields of debug descriptors used internally by LLVM are restricted to only -the simple data types ``i32``, ``i1``, ``float``, ``double``, ``mdstring`` and -``mdnode``. - -.. code-block:: llvm - - !1 = metadata !{ - i32, ;; A tag - ... - } - -Most of the string and integer fields in descriptors are packed into a single, -null-separated ``mdstring``. The first field of the header is always an -``i32`` containing the DWARF tag value identifying the content of the -descriptor. - -For clarity of definition in this document, these header fields are described -below split inside an imaginary ``DIHeader`` construct. This is invalid -assembly syntax. In valid IR, these fields are stringified and concatenated, -separated by ``\00``. - -The details of the various descriptors follow. - -Compile unit descriptors -^^^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !0 = metadata !{ - DIHeader( - i32, ;; Tag = 17 (DW_TAG_compile_unit) - i32, ;; DWARF language identifier (ex. DW_LANG_C89) - mdstring, ;; Producer (ex. "4.0.1 LLVM (LLVM research group)") - i1, ;; True if this is optimized. - mdstring, ;; Flags - i32, ;; Runtime version - mdstring, ;; Split debug filename - i32 ;; Debug info emission kind (1 = Full Debug Info, 2 = Line Tables Only) - ), - metadata, ;; Source directory (including trailing slash) & file pair - metadata, ;; List of enums types - metadata, ;; List of retained types - metadata, ;; List of subprograms - metadata, ;; List of global variables - metadata ;; List of imported entities - } - -These descriptors contain a source language ID for the file (we use the DWARF -3.0 ID numbers, such as ``DW_LANG_C89``, ``DW_LANG_C_plus_plus``, -``DW_LANG_Cobol74``, etc), a reference to a metadata node containing a pair of -strings for the source file name and the working directory, as well as an -identifier string for the compiler that produced it. - -Compile unit descriptors provide the root context for objects declared in a -specific compilation unit. File descriptors are defined using this context. -These descriptors are collected by a named metadata ``!llvm.dbg.cu``. They -keep track of subprograms, global variables, type information, and imported -entities (declarations and namespaces). - -.. _format_files: - -File descriptors -^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !0 = metadata !{ - DIHeader( - i32 ;; Tag = 41 (DW_TAG_file_type) - ), - metadata ;; Source directory (including trailing slash) & file pair - } - -These descriptors contain information for a file. Global variables and top -level functions would be defined using this context. File descriptors also -provide context for source line correspondence. - -Each input file is encoded as a separate file descriptor in LLVM debugging -information output. - -.. _format_global_variables: - -Global variable descriptors -^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !1 = metadata !{ - DIHeader( - i32, ;; Tag = 52 (DW_TAG_variable) - mdstring, ;; Name - mdstring, ;; Display name (fully qualified C++ name) - mdstring, ;; MIPS linkage name (for C++) - i32, ;; Line number where defined - i1, ;; True if the global is local to compile unit (static) - i1 ;; True if the global is defined in the compile unit (not extern) - ), - metadata, ;; Reference to context descriptor - metadata, ;; Reference to file where defined - metadata, ;; Reference to type descriptor - {}*, ;; Reference to the global variable - metadata, ;; The static member declaration, if any - } - -These descriptors provide debug information about global variables. They -provide details such as name, type and where the variable is defined. All -global variables are collected inside the named metadata ``!llvm.dbg.cu``. - -.. _format_subprograms: - -Subprogram descriptors -^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !2 = metadata !{ - DIHeader( - i32, ;; Tag = 46 (DW_TAG_subprogram) - mdstring, ;; Name - mdstring, ;; Display name (fully qualified C++ name) - mdstring, ;; MIPS linkage name (for C++) - i32, ;; Line number where defined - i1, ;; True if the global is local to compile unit (static) - i1, ;; True if the global is defined in the compile unit (not extern) - i32, ;; Virtuality, e.g. dwarf::DW_VIRTUALITY__virtual - i32, ;; Index into a virtual function - i32, ;; Flags - Artificial, Private, Protected, Explicit, Prototyped. - i1, ;; isOptimized - i32 ;; Line number where the scope of the subprogram begins - ), - metadata, ;; Source directory (including trailing slash) & file pair - metadata, ;; Reference to context descriptor - metadata, ;; Reference to type descriptor - metadata, ;; indicates which base type contains the vtable pointer for the - ;; derived class - {}*, ;; Reference to the LLVM function - metadata, ;; Lists function template parameters - metadata, ;; Function declaration descriptor - metadata ;; List of function variables - } - -These descriptors provide debug information about functions, methods and -subprograms. They provide details such as name, return types and the source -location where the subprogram is defined. - -Block descriptors -^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !3 = metadata !{ - DIHeader( - i32, ;; Tag = 11 (DW_TAG_lexical_block) - i32, ;; Line number - i32, ;; Column number - i32 ;; Unique ID to identify blocks from a template function - ), - metadata, ;; Source directory (including trailing slash) & file pair - metadata ;; Reference to context descriptor - } - -This descriptor provides debug information about nested blocks within a -subprogram. The line number and column numbers are used to dinstinguish two -lexical blocks at same depth. - -.. code-block:: llvm - - !3 = metadata !{ - DIHeader( - i32, ;; Tag = 11 (DW_TAG_lexical_block) - i32 ;; DWARF path discriminator value - ), - metadata, ;; Source directory (including trailing slash) & file pair - metadata ;; Reference to the scope we're annotating with a file change - } - -This descriptor provides a wrapper around a lexical scope to handle file -changes in the middle of a lexical block. - -.. _format_basic_type: - -Basic type descriptors -^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !4 = metadata !{ - DIHeader( - i32, ;; Tag = 36 (DW_TAG_base_type) - mdstring, ;; Name (may be "" for anonymous types) - i32, ;; Line number where defined (may be 0) - i64, ;; Size in bits - i64, ;; Alignment in bits - i64, ;; Offset in bits - i32, ;; Flags - i32 ;; DWARF type encoding - ), - metadata, ;; Source directory (including trailing slash) & file pair (may be null) - metadata ;; Reference to context - } - -These descriptors define primitive types used in the code. Example ``int``, -``bool`` and ``float``. The context provides the scope of the type, which is -usually the top level. Since basic types are not usually user defined the -context and line number can be left as NULL and 0. The size, alignment and -offset are expressed in bits and can be 64 bit values. The alignment is used -to round the offset when embedded in a :ref:`composite type -` (example to keep float doubles on 64 bit boundaries). -The offset is the bit offset if embedded in a :ref:`composite type -`. - -The type encoding provides the details of the type. The values are typically -one of the following: - -.. code-block:: llvm - - DW_ATE_address = 1 - DW_ATE_boolean = 2 - DW_ATE_float = 4 - DW_ATE_signed = 5 - DW_ATE_signed_char = 6 - DW_ATE_unsigned = 7 - DW_ATE_unsigned_char = 8 - -.. _format_derived_type: - -Derived type descriptors -^^^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !5 = metadata !{ - DIHeader( - i32, ;; Tag (see below) - mdstring, ;; Name (may be "" for anonymous types) - i32, ;; Line number where defined (may be 0) - i64, ;; Size in bits - i64, ;; Alignment in bits - i64, ;; Offset in bits - i32 ;; Flags to encode attributes, e.g. private - ), - metadata, ;; Source directory (including trailing slash) & file pair (may be null) - metadata, ;; Reference to context - metadata, ;; Reference to type derived from - metadata ;; (optional) Objective C property node - } - -These descriptors are used to define types derived from other types. The value -of the tag varies depending on the meaning. The following are possible tag -values: - -.. code-block:: llvm - - DW_TAG_formal_parameter = 5 - DW_TAG_member = 13 - DW_TAG_pointer_type = 15 - DW_TAG_reference_type = 16 - DW_TAG_typedef = 22 - DW_TAG_ptr_to_member_type = 31 - DW_TAG_const_type = 38 - DW_TAG_volatile_type = 53 - DW_TAG_restrict_type = 55 - -``DW_TAG_member`` is used to define a member of a :ref:`composite type -` or :ref:`subprogram `. The type -of the member is the :ref:`derived type `. -``DW_TAG_formal_parameter`` is used to define a member which is a formal -argument of a subprogram. - -``DW_TAG_typedef`` is used to provide a name for the derived type. - -``DW_TAG_pointer_type``, ``DW_TAG_reference_type``, ``DW_TAG_const_type``, -``DW_TAG_volatile_type`` and ``DW_TAG_restrict_type`` are used to qualify the -:ref:`derived type `. - -:ref:`Derived type ` location can be determined from the -context and line number. The size, alignment and offset are expressed in bits -and can be 64 bit values. The alignment is used to round the offset when -embedded in a :ref:`composite type ` (example to keep -float doubles on 64 bit boundaries.) The offset is the bit offset if embedded -in a :ref:`composite type `. - -Note that the ``void *`` type is expressed as a type derived from NULL. - -.. _format_composite_type: - -Composite type descriptors -^^^^^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !6 = metadata !{ - DIHeader( - i32, ;; Tag (see below) - mdstring, ;; Name (may be "" for anonymous types) - i32, ;; Line number where defined (may be 0) - i64, ;; Size in bits - i64, ;; Alignment in bits - i64, ;; Offset in bits - i32, ;; Flags - i32 ;; Runtime languages - ), - metadata, ;; Source directory (including trailing slash) & file pair (may be null) - metadata, ;; Reference to context - metadata, ;; Reference to type derived from - metadata, ;; Reference to array of member descriptors - metadata, ;; Base type containing the vtable pointer for this type - metadata, ;; Template parameters - mdstring ;; A unique identifier for type uniquing purpose (may be null) - } - -These descriptors are used to define types that are composed of 0 or more -elements. The value of the tag varies depending on the meaning. The following -are possible tag values: - -.. code-block:: llvm - - DW_TAG_array_type = 1 - DW_TAG_enumeration_type = 4 - DW_TAG_structure_type = 19 - DW_TAG_union_type = 23 - DW_TAG_subroutine_type = 21 - DW_TAG_inheritance = 28 - -The vector flag indicates that an array type is a native packed vector. - -The members of array types (tag = ``DW_TAG_array_type``) are -:ref:`subrange descriptors `, each -representing the range of subscripts at that level of indexing. - -The members of enumeration types (tag = ``DW_TAG_enumeration_type``) are -:ref:`enumerator descriptors `, each representing the -definition of enumeration value for the set. All enumeration type descriptors -are collected inside the named metadata ``!llvm.dbg.cu``. - -The members of structure (tag = ``DW_TAG_structure_type``) or union (tag = -``DW_TAG_union_type``) types are any one of the :ref:`basic -`, :ref:`derived ` or :ref:`composite -` type descriptors, each representing a field member of -the structure or union. - -For C++ classes (tag = ``DW_TAG_structure_type``), member descriptors provide -information about base classes, static members and member functions. If a -member is a :ref:`derived type descriptor ` and has a tag -of ``DW_TAG_inheritance``, then the type represents a base class. If the member -of is a :ref:`global variable descriptor ` then it -represents a static member. And, if the member is a :ref:`subprogram -descriptor ` then it represents a member function. For -static members and member functions, ``getName()`` returns the members link or -the C++ mangled name. ``getDisplayName()`` the simplied version of the name. - -The first member of subroutine (tag = ``DW_TAG_subroutine_type``) type elements -is the return type for the subroutine. The remaining elements are the formal -arguments to the subroutine. - -:ref:`Composite type ` location can be determined from -the context and line number. The size, alignment and offset are expressed in -bits and can be 64 bit values. The alignment is used to round the offset when -embedded in a :ref:`composite type ` (as an example, to -keep float doubles on 64 bit boundaries). The offset is the bit offset if -embedded in a :ref:`composite type `. - -.. _format_subrange: - -Subrange descriptors -^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !42 = metadata !{ - DIHeader( - i32, ;; Tag = 33 (DW_TAG_subrange_type) - i64, ;; Low value - i64 ;; High value - ) - } - -These descriptors are used to define ranges of array subscripts for an array -:ref:`composite type `. The low value defines the lower -bounds typically zero for C/C++. The high value is the upper bounds. Values -are 64 bit. ``High - Low + 1`` is the size of the array. If ``Low > High`` -the array bounds are not included in generated debugging information. - -.. _format_enumerator: - -Enumerator descriptors -^^^^^^^^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !6 = metadata !{ - DIHeader( - i32, ;; Tag = 40 (DW_TAG_enumerator) - mdstring, ;; Name - i64 ;; Value - ) - } - -These descriptors are used to define members of an enumeration :ref:`composite -type `, it associates the name to the value. - -Local variables -^^^^^^^^^^^^^^^ - -.. code-block:: llvm - - !7 = metadata !{ - DIHeader( - i32, ;; Tag (see below) - mdstring, ;; Name - i32, ;; 24 bit - Line number where defined - ;; 8 bit - Argument number. 1 indicates 1st argument. - i32 ;; flags - ), - metadata, ;; Context - metadata, ;; Reference to file where defined - metadata, ;; Reference to the type descriptor - metadata ;; (optional) Reference to inline location - } - -These descriptors are used to define variables local to a sub program. The -value of the tag depends on the usage of the variable: - -.. code-block:: llvm - - DW_TAG_auto_variable = 256 - DW_TAG_arg_variable = 257 - -An auto variable is any variable declared in the body of the function. An -argument variable is any variable that appears as a formal argument to the -function. - -The context is either the subprogram or block where the variable is defined. -Name the source variable name. Context and line indicate where the variable -was defined. Type descriptor defines the declared type of the variable. - -Complex Expressions -^^^^^^^^^^^^^^^^^^^ -.. code-block:: llvm - - !8 = metadata !{ - i32, ;; DW_TAG_expression - ... - } - -Complex expressions describe variable storage locations in terms of -prefix-notated DWARF expressions. Currently the only supported -operators are ``DW_OP_plus``, ``DW_OP_deref``, and ``DW_OP_piece``. - -The ``DW_OP_piece`` operator is used for (typically larger aggregate) -variables that are fragmented across several locations. It takes two -i32 arguments, an offset and a size in bytes to describe which piece -of the variable is at this location. - +Debug information descriptors are `specialized metadata nodes +`_, first-class subclasses of ``Metadata``. .. _format_common_intrinsics: Debugger intrinsic functions -^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +---------------------------- LLVM uses several intrinsic functions (name prefixed with "``llvm.dbg``") to provide debug information at various points in generated code. @@ -643,24 +177,27 @@ provide debug information at various points in generated code. .. code-block:: llvm - void %llvm.dbg.declare(metadata, metadata) + void @llvm.dbg.declare(metadata, metadata, metadata) This intrinsic provides information about a local element (e.g., variable). The first argument is metadata holding the alloca for the variable. The second -argument is metadata containing a description of the variable. +argument is a `local variable `_ containing a +description of the variable. The third argument is a `complex expression +`_. ``llvm.dbg.value`` ^^^^^^^^^^^^^^^^^^ .. code-block:: llvm - void %llvm.dbg.value(metadata, i64, metadata) + void @llvm.dbg.value(metadata, i64, metadata, metadata) This intrinsic provides information when a user source variable is set to a new value. The first argument is the new value (wrapped as metadata). The second argument is the offset in the user source variable where the new value is -written. The third argument is metadata containing a description of the user -source variable. +written. The third argument is a `local variable +`_ containing a description of the variable. The +third argument is a `complex expression `_. Object lifetimes and scoping ============================ @@ -693,86 +230,61 @@ Compiled to LLVM, this function would be represented like this: .. code-block:: llvm + ; Function Attrs: nounwind ssp uwtable define void @foo() #0 { entry: - %X = alloca i32, align 4 + %X = alloca i32, align 4 %Y = alloca i32, align 4 %Z = alloca i32, align 4 - call void @llvm.dbg.declare(metadata !{i32* %X}, metadata !10), !dbg !12 - ; [debug line = 2:7] [debug variable = X] - store i32 21, i32* %X, align 4, !dbg !12 - call void @llvm.dbg.declare(metadata !{i32* %Y}, metadata !13), !dbg !14 - ; [debug line = 3:7] [debug variable = Y] - store i32 22, i32* %Y, align 4, !dbg !14 - call void @llvm.dbg.declare(metadata !{i32* %Z}, metadata !15), !dbg !17 - ; [debug line = 5:9] [debug variable = Z] - store i32 23, i32* %Z, align 4, !dbg !17 - %0 = load i32* %X, align 4, !dbg !18 - [debug line = 6:5] - store i32 %0, i32* %Z, align 4, !dbg !18 - %1 = load i32* %Y, align 4, !dbg !19 - [debug line = 8:3] - store i32 %1, i32* %X, align 4, !dbg !19 - ret void, !dbg !20 + call void @llvm.dbg.declare(metadata i32* %X, metadata !11, metadata !13), !dbg !14 + store i32 21, i32* %X, align 4, !dbg !14 + call void @llvm.dbg.declare(metadata i32* %Y, metadata !15, metadata !13), !dbg !16 + store i32 22, i32* %Y, align 4, !dbg !16 + call void @llvm.dbg.declare(metadata i32* %Z, metadata !17, metadata !13), !dbg !19 + store i32 23, i32* %Z, align 4, !dbg !19 + %0 = load i32, i32* %X, align 4, !dbg !20 + store i32 %0, i32* %Z, align 4, !dbg !21 + %1 = load i32, i32* %Y, align 4, !dbg !22 + store i32 %1, i32* %X, align 4, !dbg !23 + ret void, !dbg !24 } ; Function Attrs: nounwind readnone - declare void @llvm.dbg.declare(metadata, metadata) #1 + declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 - attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" - "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" - "no-infs-fp-math"="false" "no-nans-fp-math"="false" - "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" - "use-soft-float"="false" } + attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind readnone } !llvm.dbg.cu = !{!0} - !llvm.module.flags = !{!8} - !llvm.ident = !{!9} + !llvm.module.flags = !{!7, !8, !9} + !llvm.ident = !{!10} + + !0 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.7.0 (trunk 231150) (llvm/trunk 231154)", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) + !1 = !DIFile(filename: "/dev/stdin", directory: "/Users/dexonsmith/data/llvm/debug-info") + !2 = !{} + !3 = !{!4} + !4 = !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, function: void ()* @foo, variables: !2) + !5 = !DISubroutineType(types: !6) + !6 = !{null} + !7 = !{i32 2, !"Dwarf Version", i32 2} + !8 = !{i32 2, !"Debug Info Version", i32 3} + !9 = !{i32 1, !"PIC Level", i32 2} + !10 = !{!"clang version 3.7.0 (trunk 231150) (llvm/trunk 231154)"} + !11 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "X", scope: !4, file: !1, line: 2, type: !12) + !12 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) + !13 = !DIExpression() + !14 = !DILocation(line: 2, column: 9, scope: !4) + !15 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "Y", scope: !4, file: !1, line: 3, type: !12) + !16 = !DILocation(line: 3, column: 9, scope: !4) + !17 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "Z", scope: !18, file: !1, line: 5, type: !12) + !18 = distinct !DILexicalBlock(scope: !4, file: !1, line: 4, column: 5) + !19 = !DILocation(line: 5, column: 11, scope: !18) + !20 = !DILocation(line: 6, column: 11, scope: !18) + !21 = !DILocation(line: 6, column: 9, scope: !18) + !22 = !DILocation(line: 8, column: 9, scope: !4) + !23 = !DILocation(line: 8, column: 7, scope: !4) + !24 = !DILocation(line: 9, column: 3, scope: !4) - !0 = metadata !{i32 786449, metadata !1, i32 12, - metadata !"clang version 3.4 (trunk 193128) (llvm/trunk 193139)", - i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !3, - metadata !2, metadata !2, metadata !""} ; [ DW_TAG_compile_unit ] \ - [/private/tmp/foo.c] \ - [DW_LANG_C99] - !1 = metadata !{metadata !"t.c", metadata !"/private/tmp"} - !2 = metadata !{i32 0} - !3 = metadata !{metadata !4} - !4 = metadata !{i32 786478, metadata !1, metadata !5, metadata !"foo", - metadata !"foo", metadata !"", i32 1, metadata !6, - i1 false, i1 true, i32 0, i32 0, null, i32 0, i1 false, - void ()* @foo, null, null, metadata !2, i32 1} - ; [ DW_TAG_subprogram ] [line 1] [def] [foo] - !5 = metadata !{i32 786473, metadata !1} ; [ DW_TAG_file_type ] \ - [/private/tmp/t.c] - !6 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, - i64 0, i32 0, null, metadata !7, i32 0, null, null, null} - ; [ DW_TAG_subroutine_type ] \ - [line 0, size 0, align 0, offset 0] [from ] - !7 = metadata !{null} - !8 = metadata !{i32 2, metadata !"Dwarf Version", i32 2} - !9 = metadata !{metadata !"clang version 3.4 (trunk 193128) (llvm/trunk 193139)"} - !10 = metadata !{i32 786688, metadata !4, metadata !"X", metadata !5, i32 2, - metadata !11, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [X] \ - [line 2] - !11 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, - i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] \ - [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] - !12 = metadata !{i32 2, i32 0, metadata !4, null} - !13 = metadata !{i32 786688, metadata !4, metadata !"Y", metadata !5, i32 3, - metadata !11, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [Y] \ - [line 3] - !14 = metadata !{i32 3, i32 0, metadata !4, null} - !15 = metadata !{i32 786688, metadata !16, metadata !"Z", metadata !5, i32 5, - metadata !11, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [Z] \ - [line 5] - !16 = metadata !{i32 786443, metadata !1, metadata !4, i32 4, i32 0, i32 0} \ - ; [ DW_TAG_lexical_block ] [/private/tmp/t.c] - !17 = metadata !{i32 5, i32 0, metadata !16, null} - !18 = metadata !{i32 6, i32 0, metadata !16, null} - !19 = metadata !{i32 8, i32 0, metadata !4, null} ; [ DW_TAG_imported_declaration ] - !20 = metadata !{i32 9, i32 0, metadata !4, null} This example illustrates a few important details about LLVM debugging information. In particular, it shows how the ``llvm.dbg.declare`` intrinsic and @@ -782,27 +294,24 @@ variable definitions, and the code used to implement the function. .. code-block:: llvm - call void @llvm.dbg.declare(metadata !{i32* %X}, metadata !10), !dbg !12 + call void @llvm.dbg.declare(metadata i32* %X, metadata !11, metadata !13), !dbg !14 ; [debug line = 2:7] [debug variable = X] The first intrinsic ``%llvm.dbg.declare`` encodes debugging information for the -variable ``X``. The metadata ``!dbg !12`` attached to the intrinsic provides +variable ``X``. The metadata ``!dbg !14`` attached to the intrinsic provides scope information for the variable ``X``. .. code-block:: llvm - !12 = metadata !{i32 2, i32 0, metadata !4, null} - !4 = metadata !{i32 786478, metadata !1, metadata !5, metadata !"foo", - metadata !"foo", metadata !"", i32 1, metadata !6, - i1 false, i1 true, i32 0, i32 0, null, i32 0, i1 false, - void ()* @foo, null, null, metadata !2, i32 1} - ; [ DW_TAG_subprogram ] [line 1] [def] [foo] + !14 = !DILocation(line: 2, column: 9, scope: !4) + !4 = !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !5, + isLocal: false, isDefinition: true, scopeLine: 1, + isOptimized: false, function: void ()* @foo, + variables: !2) -Here ``!12`` is metadata providing location information. It has four fields: -line number, column number, scope, and original scope. The original scope -represents inline location if this instruction is inlined inside a caller, and -is null otherwise. In this example, scope is encoded by ``!4``, a -:ref:`subprogram descriptor `. This way the location +Here ``!14`` is metadata providing `location information +`_. In this example, scope is encoded by ``!4``, a +`subprogram descriptor `_. This way the location information attached to the intrinsics indicates that the variable ``X`` is declared at line number 2 at a function level scope in function ``foo``. @@ -810,22 +319,21 @@ Now lets take another example. .. code-block:: llvm - call void @llvm.dbg.declare(metadata !{i32* %Z}, metadata !15), !dbg !17 + call void @llvm.dbg.declare(metadata i32* %Z, metadata !17, metadata !13), !dbg !19 ; [debug line = 5:9] [debug variable = Z] The third intrinsic ``%llvm.dbg.declare`` encodes debugging information for -variable ``Z``. The metadata ``!dbg !17`` attached to the intrinsic provides +variable ``Z``. The metadata ``!dbg !19`` attached to the intrinsic provides scope information for the variable ``Z``. .. code-block:: llvm - !16 = metadata !{i32 786443, metadata !1, metadata !4, i32 4, i32 0, i32 0} \ - ; [ DW_TAG_lexical_block ] [/private/tmp/t.c] - !17 = metadata !{i32 5, i32 0, metadata !16, null} + !18 = distinct !DILexicalBlock(scope: !4, file: !1, line: 4, column: 5) + !19 = !DILocation(line: 5, column: 11, scope: !18) -Here ``!15`` indicates that ``Z`` is declared at line number 5 and -column number 0 inside of lexical scope ``!16``. The lexical scope itself -resides inside of subprogram ``!4`` described above. +Here ``!19`` indicates that ``Z`` is declared at line number 5 and column +number 0 inside of lexical scope ``!18``. The lexical scope itself resides +inside of subprogram ``!4`` described above. The scope information attached with each instruction provides a straightforward way to find instructions covered by a scope. @@ -888,98 +396,52 @@ a C/C++ front-end would generate the following descriptors: ;; Define the global itself. ;; @MyGlobal = global i32 100, align 4 - ... + ;; ;; List of debug info of globals ;; !llvm.dbg.cu = !{!0} + ;; Some unrelated metadata. + !llvm.module.flags = !{!6, !7} + ;; Define the compile unit. - !0 = metadata !{ - ; Header( - ; i32 17, ;; Tag - ; i32 0, ;; Context - ; i32 4, ;; Language - ; metadata !"clang version 3.6.0 ", ;; Producer - ; i1 false, ;; "isOptimized"? - ; metadata !"", ;; Flags - ; i32 0, ;; Runtime Version - ; "", ;; Split debug filename - ; 1 ;; Full debug info - ; ) - metadata !"0x11\0012\00clang version 3.6.0 \000\00\000\00\001", - metadata !1, ;; File - metadata !2, ;; Enum Types - metadata !2, ;; Retained Types - metadata !2, ;; Subprograms - metadata !3, ;; Global Variables - metadata !2 ;; Imported entities - } ; [ DW_TAG_compile_unit ] - - ;; The file/directory pair. - !1 = metadata !{ - metadata !"foo.c", ;; Filename - metadata !"/Users/dexonsmith/data/llvm/debug-info" ;; Directory - } - - ;; An empty array. - !2 = metadata !{} - - ;; The Array of Global Variables - !3 = metadata !{ - metadata !4 - } - - ;; - ;; Define the global variable itself. - ;; - !4 = metadata !{ - ; Header( - ; i32 52, ;; Tag - ; metadata !"MyGlobal", ;; Name - ; metadata !"MyGlobal", ;; Display Name - ; metadata !"", ;; Linkage Name - ; i32 1, ;; Line - ; i32 0, ;; IsLocalToUnit - ; i32 1 ;; IsDefinition - ; ) - metadata !"0x34\00MyGlobal\00MyGlobal\00\001\000\001", - null, ;; Unused - metadata !5, ;; File - metadata !6, ;; Type - i32* @MyGlobal, ;; LLVM-IR Value - null ;; Static member declaration - } ; [ DW_TAG_variable ] + !0 = !DICompileUnit(language: DW_LANG_C99, file: !1, + producer: + "clang version 3.7.0 (trunk 231150) (llvm/trunk 231154)", + isOptimized: false, runtimeVersion: 0, emissionKind: 1, + enums: !2, retainedTypes: !2, subprograms: !2, globals: + !3, imports: !2) ;; ;; Define the file ;; - !5 = metadata !{ - ; Header( - ; i32 41 ;; Tag - ; ) - metadata !"0x29", - metadata !1 ;; File/directory pair - } ; [ DW_TAG_file_type ] + !1 = !DIFile(filename: "/dev/stdin", + directory: "/Users/dexonsmith/data/llvm/debug-info") + + ;; An empty array. + !2 = !{} + + ;; The Array of Global Variables + !3 = !{!4} + + ;; + ;; Define the global variable itself. + ;; + !4 = !DIGlobalVariable(name: "MyGlobal", scope: !0, file: !1, line: 1, + type: !5, isLocal: false, isDefinition: true, + variable: i32* @MyGlobal) ;; ;; Define the type ;; - !6 = metadata !{ - ; Header( - ; i32 36, ;; Tag - ; metadata !"int", ;; Name - ; i32 0, ;; Line - ; i64 32, ;; Size in Bits - ; i64 32, ;; Align in Bits - ; i64 0, ;; Offset - ; i32 0, ;; Flags - ; i32 5 ;; Encoding - ; ) - metadata !"0x24\00int\000\0032\0032\000\000\005", - null, ;; Unused - null ;; Unused - } ; [ DW_TAG_base_type ] + !5 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) + + ;; Dwarf version to output. + !6 = !{i32 2, !"Dwarf Version", i32 2} + + ;; Debug info schema version. + !7 = !{i32 2, !"Debug Info Version", i32 3} C/C++ function information -------------------------- @@ -999,31 +461,10 @@ a C/C++ front-end would generate the following descriptors: ;; ;; Define the anchor for subprograms. ;; - !6 = metadata !{ - ; Header( - ; i32 46, ;; Tag - ; metadata !"main", ;; Name - ; metadata !"main", ;; Display name - ; metadata !"", ;; Linkage name - ; i32 1, ;; Line number - ; i1 false, ;; Is local - ; i1 true, ;; Is definition - ; i32 0, ;; Virtuality attribute, e.g. pure virtual function - ; i32 0, ;; Index into virtual table for C++ methods - ; i32 256, ;; Flags - ; i1 0, ;; True if this function is optimized - ; 1 ;; Line number of the opening '{' of the function - ; ) - metadata !"0x2e\00main\00main\00\001\000\001\000\000\00256\000\001", - metadata !1, ;; File - metadata !5, ;; Context - metadata !6, ;; Type - null, ;; Containing type - i32 (i32, i8**)* @main, ;; Pointer to llvm::Function - null, ;; Function template parameters - null, ;; Function declaration - metadata !2 ;; List of function variables (emitted when optimizing) - } + !4 = !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !5, + isLocal: false, isDefinition: true, scopeLine: 1, + flags: DIFlagPrototyped, isOptimized: false, + function: i32 (i32, i8**)* @main, variables: !2) ;; ;; Define the subprogram itself. @@ -1807,7 +1248,6 @@ tag is one of: * DW_TAG_subrange_type * DW_TAG_base_type * DW_TAG_const_type -* DW_TAG_constant * DW_TAG_file_type * DW_TAG_namelist * DW_TAG_packed_type diff --git a/docs/StackMaps.rst b/docs/StackMaps.rst index 5bb05540dec..43c60c9e785 100644 --- a/docs/StackMaps.rst +++ b/docs/StackMaps.rst @@ -221,11 +221,12 @@ lowered according to the calling convention specified at the intrinsic's callsite. Variants of the intrinsic with non-void return type also return a value according to calling convention. -On PowerPC, note that the ```` must be the actual intended target of -the indirect call, not the function-descriptor address normally used as the -C/C++ function-pointer representation. As a result, the call target must be -local because no adjustment or restoration of the TOC pointer (in register r2) -will be performed. +On PowerPC, note that ```` must be the actual intended target of +the indirect call. Specifically, even when compiling for the ELF V1 ABI, +```` is not the function-descriptor address normally used as the C/C++ +function-pointer representation. As a result, the call target must be local +because no adjustment or restoration of the TOC pointer (in register r2) will +be performed. Requesting zero patch point arguments is valid. In this case, all variable operands are handled just like diff --git a/docs/Statepoints.rst b/docs/Statepoints.rst index 53643b1c6d3..b1d1ed8dc10 100644 --- a/docs/Statepoints.rst +++ b/docs/Statepoints.rst @@ -14,8 +14,8 @@ with caution. Because the intrinsics have experimental status, compatibility across LLVM releases is not guaranteed. LLVM currently supports an alternate mechanism for conservative -garbage collection support using the gc_root intrinsic. The mechanism -described here shares little in common with the alternate +garbage collection support using the ``gcroot`` intrinsic. The mechanism +described here shares little in common with the alternate ``gcroot`` implementation and it is hoped that this mechanism will eventually replace the gc_root mechanism. @@ -111,25 +111,41 @@ garbage collected objects. collected values, transforming the IR to expose a pointer giving the base object for every such live pointer, and inserting all the intrinsics correctly is explicitly out of scope for this document. - The recommended approach is described in the section of Late - Safepoint Placement below. + The recommended approach is to use the :ref:`utility passes + ` described below. This abstract function call is concretely represented by a sequence of -intrinsic calls known as a 'statepoint sequence'. - +intrinsic calls known collectively as a "statepoint relocation sequence". Let's consider a simple call in LLVM IR: - todo -Depending on our language we may need to allow a safepoint during the -execution of the function called from this site. If so, we need to -let the collector update local values in the current frame. +.. code-block:: llvm -Let's say we need to relocate SSA values 'a', 'b', and 'c' at this -safepoint. To represent this, we would generate the statepoint -sequence: + define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj) + gc "statepoint-example" { + call void ()* @foo() + ret i8 addrspace(1)* %obj + } - todo +Depending on our language we may need to allow a safepoint during the execution +of ``foo``. If so, we need to let the collector update local values in the +current frame. If we don't, we'll be accessing a potential invalid reference +once we eventually return from the call. + +In this example, we need to relocate the SSA value ``%obj``. Since we can't +actually change the value in the SSA value ``%obj``, we need to introduce a new +SSA value ``%obj.relocated`` which represents the potentially changed value of +``%obj`` after the safepoint and update any following uses appropriately. The +resulting relocation sequence is: + +.. code-block:: llvm + + define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj) + gc "statepoint-example" { + %0 = call i32 (i64, i32, void ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 0, i32 0, void ()* @foo, i32 0, i32 0, i32 0, i32 0, i8 addrspace(1)* %obj) + %obj.relocated = call coldcc i8 addrspace(1)* @llvm.experimental.gc.relocate.p1i8(i32 %0, i32 7, i32 7) + ret i8 addrspace(1)* %obj.relocated + } Ideally, this sequence would have been represented as a M argument, N return value function (where M is the number of values being @@ -140,14 +156,24 @@ representation. Instead, the statepoint intrinsic marks the actual site of the safepoint or statepoint. The statepoint returns a token value (which exists only at compile time). To get back the original return value -of the call, we use the 'gc.result' intrinsic. To get the relocation -of each pointer in turn, we use the 'gc.relocate' intrinsic with the -appropriate index. Note that both the gc.relocate and gc.result are -tied to the statepoint. The combination forms a "statepoint sequence" -and represents the entitety of a parseable call or 'statepoint'. +of the call, we use the ``gc.result`` intrinsic. To get the relocation +of each pointer in turn, we use the ``gc.relocate`` intrinsic with the +appropriate index. Note that both the ``gc.relocate`` and ``gc.result`` are +tied to the statepoint. The combination forms a "statepoint relocation +sequence" and represents the entitety of a parseable call or 'statepoint'. -When lowered, this example would generate the following x86 assembly:: - put assembly here +When lowered, this example would generate the following x86 assembly: + +.. code-block:: gas + + .globl test1 + .align 16, 0x90 + pushq %rax + callq foo + .Ltmp1: + movq (%rsp), %rax # This load is redundant (oops!) + popq %rdx + retq Each of the potentially relocated values has been spilled to the stack, and a record of that location has been recorded to the @@ -155,11 +181,115 @@ stack, and a record of that location has been recorded to the needs to update any of these pointers during the call, it knows exactly what to change. +The relevant parts of the StackMap section for our example are: + +.. code-block:: gas + + # This describes the call site + # Stack Maps: callsite 2882400000 + .quad 2882400000 + .long .Ltmp1-test1 + .short 0 + # .. 8 entries skipped .. + # This entry describes the spill slot which is directly addressable + # off RSP with offset 0. Given the value was spilled with a pushq, + # that makes sense. + # Stack Maps: Loc 8: Direct RSP [encoding: .byte 2, .byte 8, .short 7, .int 0] + .byte 2 + .byte 8 + .short 7 + .long 0 + +This example was taken from the tests for the :ref:`RewriteStatepointsForGC` utility pass. As such, it's full StackMap can be easily examined with the following command. + +.. code-block:: bash + + opt -rewrite-statepoints-for-gc test/Transforms/RewriteStatepointsForGC/basics.ll -S | llc -debug-only=stackmaps + + +GC Transitions +^^^^^^^^^^^^^^^^^^ + +As a practical consideration, many garbage-collected systems allow code that is +collector-aware ("managed code") to call code that is not collector-aware +("unmanaged code"). It is common that such calls must also be safepoints, since +it is desirable to allow the collector to run during the execution of +unmanaged code. Futhermore, it is common that coordinating the transition from +managed to unmanaged code requires extra code generation at the call site to +inform the collector of the transition. In order to support these needs, a +statepoint may be marked as a GC transition, and data that is necessary to +perform the transition (if any) may be provided as additional arguments to the +statepoint. + + Note that although in many cases statepoints may be inferred to be GC + transitions based on the function symbols involved (e.g. a call from a + function with GC strategy "foo" to a function with GC strategy "bar"), + indirect calls that are also GC transitions must also be supported. This + requirement is the driving force behing the decision to require that GC + transitions are explicitly marked. + +Let's revisit the sample given above, this time treating the call to ``@foo`` +as a GC transition. Depending on our target, the transition code may need to +access some extra state in order to inform the collector of the transition. +Let's assume a hypothetical GC--somewhat unimaginatively named "hypothetical-gc" +--that requires that a TLS variable must be written to before and after a call +to unmanaged code. The resulting relocation sequence is: + +.. code-block:: llvm + + @flag = thread_local global i32 0, align 4 + + define i8 addrspace(1)* @test1(i8 addrspace(1) *%obj) + gc "hypothetical-gc" { + + %0 = call i32 (i64, i32, void ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 0, i32 0, void ()* @foo, i32 0, i32 1, i32* @Flag, i32 0, i8 addrspace(1)* %obj) + %obj.relocated = call coldcc i8 addrspace(1)* @llvm.experimental.gc.relocate.p1i8(i32 %0, i32 7, i32 7) + ret i8 addrspace(1)* %obj.relocated + } + +During lowering, this will result in a instruction selection DAG that looks +something like: + +:: + + CALLSEQ_START + ... + GC_TRANSITION_START (lowered i32 *@Flag), SRCVALUE i32* Flag + STATEPOINT + GC_TRANSITION_END (lowered i32 *@Flag), SRCVALUE i32 *Flag + ... + CALLSEQ_END + +In order to generate the necessary transition code, the backend for each target +supported by "hypothetical-gc" must be modified to lower ``GC_TRANSITION_START`` +and ``GC_TRANSITION_END`` nodes appropriately when the "hypothetical-gc" +strategy is in use for a particular function. Assuming that such lowering has +been added for X86, the generated assembly would be: + +.. code-block:: gas + + .globl test1 + .align 16, 0x90 + pushq %rax + movl $1, %fs:Flag@TPOFF + callq foo + movl $0, %fs:Flag@TPOFF + .Ltmp1: + movq (%rsp), %rax # This load is redundant (oops!) + popq %rdx + retq + +Note that the design as presented above is not fully implemented: in particular, +strategy-specific lowering is not present, and all GC transitions are emitted as +as single no-op before and after the call instruction. These no-ops are often +removed by the backend during dead machine instruction elimination. + + Intrinsics =========== -'''gc.statepoint''' Intrinsic -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +'llvm.experimental.gc.statepoint' Intrinsic +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax: """"""" @@ -167,8 +297,11 @@ Syntax: :: declare i32 - @gc.statepoint(func_type , i64 <#call args>. - i64 , ... (call parameters), + @llvm.experimental.gc.statepoint(i64 , i32 , + func_type , + i64 <#call args>, i64 , + ... (call parameters), + i64 <# transition args>, ... (transition parameters), i64 <# deopt args>, ... (deopt parameters), ... (gc parameters)) @@ -181,18 +314,49 @@ runtime. Operands: """"""""" +The 'id' operand is a constant integer that is reported as the ID +field in the generated stackmap. LLVM does not interpret this +parameter in any way and its meaning is up to the statepoint user to +decide. Note that LLVM is free to duplicate code containing +statepoint calls, and this may transform IR that had a unique 'id' per +lexical call to statepoint to IR that does not. + +If 'num patch bytes' is non-zero then the call instruction +corresponding to the statepoint is not emitted and LLVM emits 'num +patch bytes' bytes of nops in its place. LLVM will emit code to +prepare the function arguments and retrieve the function return value +in accordance to the calling convention; the former before the nop +sequence and the latter after the nop sequence. It is expected that +the user will patch over the 'num patch bytes' bytes of nops with a +calling sequence specific to their runtime before executing the +generated machine code. There are no guarantees with respect to the +alignment of the nop sequence. Unlike :doc:`StackMaps` statepoints do +not have a concept of shadow bytes. + The 'target' operand is the function actually being called. The target can be specified as either a symbolic LLVM function, or as an arbitrary Value of appropriate function type. Note that the function type must match the signature of the callee and the types of the 'call -parameters' arguments. +parameters' arguments. If 'num patch bytes' is non-zero then 'target' +has to be the constant pointer null of the appropriate function type. The '#call args' operand is the number of arguments to the actual call. It must exactly match the number of arguments passed in the 'call parameters' variable length section. -The 'unused' operand is unused and likely to be removed. Please do -not use. +The 'flags' operand is used to specify extra information about the +statepoint. This is currently only used to mark certain statepoints +as GC transitions. This operand is a 64-bit integer with the following +layout, where bit 0 is the least significant bit: + + +-------+---------------------------------------------------+ + | Bit # | Usage | + +=======+===================================================+ + | 0 | Set if the statepoint is a GC transition, cleared | + | | otherwise. | + +-------+---------------------------------------------------+ + | 1-63 | Reserved for future use; must be cleared. | + +-------+---------------------------------------------------+ The 'call parameters' arguments are simply the arguments which need to be passed to the call target. They will be lowered according to the @@ -201,6 +365,14 @@ instruction. The number of arguments must exactly match what is specified in '# call args'. The types must match the signature of 'target'. +The 'transition parameters' arguments contain an arbitrary list of +Values which need to be passed to GC transition code. They will be +lowered and passed as operands to the appropriate GC_TRANSITION nodes +in the selection DAG. It is assumed that these arguments must be +available before and after (but not necessarily during) the execution +of the callee. The '# transition args' field indicates how many operands +are to be interpreted as 'transition parameters'. + The 'deopt parameters' arguments contain an arbitrary list of Values which is meaningful to the runtime. The runtime may read any of these values, but is assumed not to modify them. If the garbage collector @@ -225,10 +397,10 @@ illegal to mark a statepoint as being either 'readonly' or 'readnone'. Note that legal IR can not perform any memory operation on a 'gc pointer' argument of the statepoint in a location statically reachable from the statepoint. Instead, the explicitly relocated value (from a -''gc.relocate'') must be used. +``gc.relocate``) must be used. -'''gc.result''' Intrinsic -^^^^^^^^^^^^^^^^^^^^^^^^^^ +'llvm.experimental.gc.result' Intrinsic +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax: """"""" @@ -236,19 +408,13 @@ Syntax: :: declare type* - @gc.result_ptr(i32 %statepoint_token) - - declare fX - @gc.result_float(i32 %statepoint_token) - - declare iX - @gc.result_int(i32 %statepoint_token) + @llvm.experimental.gc.result(i32 %statepoint_token) Overview: """"""""" -'''gc.result''' extracts the result of the original call instruction -which was replaced by the '''gc.statepoint'''. The '''gc.result''' +``gc.result`` extracts the result of the original call instruction +which was replaced by the ``gc.statepoint``. The ``gc.result`` intrinsic is actually a family of three intrinsics due to an implementation limitation. Other than the type of the return value, the semantics are the same. @@ -256,47 +422,49 @@ the semantics are the same. Operands: """"""""" -The first and only argument is the '''gc.statepoint''' which starts -the safepoint sequence of which this '''gc.result'' is a part. +The first and only argument is the ``gc.statepoint`` which starts +the safepoint sequence of which this ``gc.result`` is a part. Despite the typing of this as a generic i32, *only* the value defined -by a '''gc.statepoint''' is legal here. +by a ``gc.statepoint`` is legal here. Semantics: """""""""" -The ''gc.result'' represents the return value of the call target of -the ''statepoint''. The type of the ''gc.result'' must exactly match +The ``gc.result`` represents the return value of the call target of +the ``statepoint``. The type of the ``gc.result`` must exactly match the type of the target. If the call target returns void, there will -be no ''gc.result''. +be no ``gc.result``. -A ''gc.result'' is modeled as a 'readnone' pure function. It has no +A ``gc.result`` is modeled as a 'readnone' pure function. It has no side effects since it is just a projection of the return value of the -previous call represented by the ''gc.statepoint''. +previous call represented by the ``gc.statepoint``. -'''gc.relocate''' Intrinsic -^^^^^^^^^^^^^^^^^^^^^^^^^^^ +'llvm.experimental.gc.relocate' Intrinsic +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax: """"""" :: - declare addrspace(1)* - @gc.relocate(i32 %statepoint_token, i32 %base_offset, i32 %pointer_offset) + declare + @llvm.experimental.gc.relocate(i32 %statepoint_token, + i32 %base_offset, + i32 %pointer_offset) Overview: """"""""" -A ''gc.relocate'' returns the potentially relocated value of a pointer +A ``gc.relocate`` returns the potentially relocated value of a pointer at the safepoint. Operands: """"""""" -The first argument is the '''gc.statepoint''' which starts the -safepoint sequence of which this '''gc.relocation'' is a part. +The first argument is the ``gc.statepoint`` which starts the +safepoint sequence of which this ``gc.relocation`` is a part. Despite the typing of this as a generic i32, *only* the value defined -by a '''gc.statepoint''' is legal here. +by a ``gc.statepoint`` is legal here. The second argument is an index into the statepoints list of arguments which specifies the base pointer for the pointer being relocated. @@ -312,19 +480,20 @@ within the 'gc parameter' section of the statepoint's argument list. Semantics: """""""""" -The return value of ''gc.relocate'' is the potentially relocated value +The return value of ``gc.relocate`` is the potentially relocated value of the pointer specified by it's arguments. It is unspecified how the value of the returned pointer relates to the argument to the -''gc.statepoint'' other than that a) it points to the same source +``gc.statepoint`` other than that a) it points to the same source language object with the same offset, and b) the 'based-on' relationship of the newly relocated pointers is a projection of the unrelocated pointers. In particular, the integer value of the pointer returned is unspecified. -A ''gc.relocate'' is modeled as a 'readnone' pure function. It has no +A ``gc.relocate`` is modeled as a ``readnone`` pure function. It has no side effects since it is just a way to extract information about work -done during the actual call modeled by the ''gc.statepoint''. +done during the actual call modeled by the ``gc.statepoint``. +.. _statepoint-stackmap-format: Stack Map Format ================ @@ -335,6 +504,12 @@ the runtime or collector are provided via the :ref:`Stack Map format Each statepoint generates the following Locations: +* Constant which describes the calling convention of the call target. This + constant is a valid :ref:`calling convention identifier ` for + the version of LLVM used to generate the stackmap. No additional compatibility + guarantees are made for this constant over what LLVM provides elsewhere w.r.t. + these identifiers. +* Constant which describes the flags passed to the statepoint intrinsic * Constant which describes number of following deopt *Locations* (not operands) * Variable number of Locations, one for each deopt parameter listed in @@ -352,9 +527,6 @@ Note that the Locations used in each section may describe the same physical location. e.g. A stack slot may appear as a deopt location, a gc base pointer, and a gc derived pointer. -The ID field of the 'StkMapRecord' for a statepoint is meaningless and -it's value is explicitly unspecified. - The LiveOut section of the StkMapRecord will be empty for a statepoint record. @@ -396,6 +568,137 @@ key relocation invariant, but this is ongoing work on developing such a verifier. Please ask on llvmdev if you're interested in experimenting with the current version. +.. _statepoint-utilities: + +Utility Passes for Safepoint Insertion +====================================== + +.. _RewriteStatepointsForGC: + +RewriteStatepointsForGC +^^^^^^^^^^^^^^^^^^^^^^^^ + +The pass RewriteStatepointsForGC transforms a functions IR by replacing a +``gc.statepoint`` (with an optional ``gc.result``) with a full relocation +sequence, including all required ``gc.relocates``. To function, the pass +requires that the GC strategy specified for the function be able to reliably +distinguish between GC references and non-GC references in IR it is given. + +As an example, given this code: + +.. code-block:: llvm + + define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj) + gc "statepoint-example" { + call i32 (i64, i32, void ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @foo, i32 0, i32 0, i32 0, i32 5, i32 0, i32 -1, i32 0, i32 0, i32 0) + ret i8 addrspace(1)* %obj + } + +The pass would produce this IR: + +.. code-block:: llvm + + define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj) + gc "statepoint-example" { + %0 = call i32 (i64, i32, void ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @foo, i32 0, i32 0, i32 0, i32 5, i32 0, i32 -1, i32 0, i32 0, i32 0, i8 addrspace(1)* %obj) + %obj.relocated = call coldcc i8 addrspace(1)* @llvm.experimental.gc.relocate.p1i8(i32 %0, i32 12, i32 12) + ret i8 addrspace(1)* %obj.relocated + } + +In the above examples, the addrspace(1) marker on the pointers is the mechanism +that the ``statepoint-example`` GC strategy uses to distinguish references from +non references. Address space 1 is not globally reserved for this purpose. + +This pass can be used an utility function by a language frontend that doesn't +want to manually reason about liveness, base pointers, or relocation when +constructing IR. As currently implemented, RewriteStatepointsForGC must be +run after SSA construction (i.e. mem2ref). + + +In practice, RewriteStatepointsForGC can be run much later in the pass +pipeline, after most optimization is already done. This helps to improve +the quality of the generated code when compiled with garbage collection support. +In the long run, this is the intended usage model. At this time, a few details +have yet to be worked out about the semantic model required to guarantee this +is always correct. As such, please use with caution and report bugs. + +.. _PlaceSafepoints: + +PlaceSafepoints +^^^^^^^^^^^^^^^^ + +The pass PlaceSafepoints transforms a function's IR by replacing any call or +invoke instructions with appropriate ``gc.statepoint`` and ``gc.result`` pairs, +and inserting safepoint polls sufficient to ensure running code checks for a +safepoint request on a timely manner. This pass is expected to be run before +RewriteStatepointsForGC and thus does not produce full relocation sequences. + +As an example, given input IR of the following: + +.. code-block:: llvm + + define void @test() gc "statepoint-example" { + call void @foo() + ret void + } + + declare void @do_safepoint() + define void @gc.safepoint_poll() { + call void @do_safepoint() + ret void + } + + +This pass would produce the following IR: + +.. code-block:: llvm + + define void @test() gc "statepoint-example" { + %safepoint_token = call i32 (i64, i32, void ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @do_safepoint, i32 0, i32 0, i32 0, i32 0) + %safepoint_token1 = call i32 (i64, i32, void ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @foo, i32 0, i32 0, i32 0, i32 0) + ret void + } + +In this case, we've added an (unconditional) entry safepoint poll and converted the call into a ``gc.statepoint``. Note that despite appearances, the entry poll is not necessarily redundant. We'd have to know that ``foo`` and ``test`` were not mutually recursive for the poll to be redundant. In practice, you'd probably want to your poll definition to contain a conditional branch of some form. + + +At the moment, PlaceSafepoints can insert safepoint polls at method entry and +loop backedges locations. Extending this to work with return polls would be +straight forward if desired. + +PlaceSafepoints includes a number of optimizations to avoid placing safepoint +polls at particular sites unless needed to ensure timely execution of a poll +under normal conditions. PlaceSafepoints does not attempt to ensure timely +execution of a poll under worst case conditions such as heavy system paging. + +The implementation of a safepoint poll action is specified by looking up a +function of the name ``gc.safepoint_poll`` in the containing Module. The body +of this function is inserted at each poll site desired. While calls or invokes +inside this method are transformed to a ``gc.statepoints``, recursive poll +insertion is not performed. + +By default PlaceSafepoints passes in ``0xABCDEF00`` as the statepoint +ID and ``0`` as the number of patchable bytes to the newly constructed +``gc.statepoint``. These values can be configured on a per-callsite +basis using the attributes ``"statepoint-id"`` and +``"statepoint-num-patch-bytes"``. If a call site is marked with a +``"statepoint-id"`` function attribute and its value is a positive +integer (represented as a string), then that value is used as the ID +of the newly constructed ``gc.statepoint``. If a call site is marked +with a ``"statepoint-num-patch-bytes"`` function attribute and its +value is a positive integer, then that value is used as the 'num patch +bytes' parameter of the newly constructed ``gc.statepoint``. The +``"statepoint-id"`` and ``"statepoint-num-patch-bytes"`` attributes +are not propagated to the ``gc.statepoint`` call or invoke if they +could be successfully parsed. + +If you are scheduling the RewriteStatepointsForGC pass late in the pass order, +you should probably schedule this pass immediately before it. The exception +would be if you need to preserve abstract frame information (e.g. for +deoptimization or introspection) at safepoints. In that case, ask on the +llvmdev mailing list for suggestions. + + Bugs and Enhancements ===================== diff --git a/docs/TestingGuide.rst b/docs/TestingGuide.rst index 3463156495a..adf5f3d4cfb 100644 --- a/docs/TestingGuide.rst +++ b/docs/TestingGuide.rst @@ -473,6 +473,25 @@ RUN lines: To add more substituations, look at ``test/lit.cfg`` or ``lit.local.cfg``. +Options +------- + +The llvm lit configuration allows to customize some things with user options: + +``llc``, ``opt``, ... + Substitute the respective llvm tool name with a custom command line. This + allows to specify custom paths and default arguments for these tools. + Example: + + % llvm-lit "-Dllc=llc -verify-machineinstrs" + +``run_long_tests`` + Enable the execution of long running tests. + +``llvm_site_config`` + Load the specified lit configuration instead of the default one. + + Other Features -------------- diff --git a/docs/Vectorizers.rst b/docs/Vectorizers.rst index 2b702179bf2..65c19aa2bc0 100644 --- a/docs/Vectorizers.rst +++ b/docs/Vectorizers.rst @@ -366,7 +366,7 @@ The decision to unroll the loop depends on the register pressure and the generat Performance ----------- -This section shows the the execution time of Clang on a simple benchmark: +This section shows the execution time of Clang on a simple benchmark: `gcc-loops `_. This benchmarks is a collection of loops from the GCC autovectorization `page `_ by Dorit Nuzman. diff --git a/docs/WritingAnLLVMPass.rst b/docs/WritingAnLLVMPass.rst index ef2b9538f65..1d5a52f21b3 100644 --- a/docs/WritingAnLLVMPass.rst +++ b/docs/WritingAnLLVMPass.rst @@ -853,7 +853,7 @@ Example implementations of ``getAnalysisUsage`` // This example modifies the program, but does not modify the CFG void LICM::getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesCFG(); - AU.addRequired(); + AU.addRequired(); } .. _writing-an-llvm-pass-getAnalysis: @@ -870,7 +870,7 @@ you want, and returns a reference to that pass. For example: .. code-block:: c++ bool LICM::runOnFunction(Function &F) { - LoopInfo &LI = getAnalysis(); + LoopInfo &LI = getAnalysis().getLoopInfo(); //... } diff --git a/docs/YamlIO.rst b/docs/YamlIO.rst index 76dd021f82f..aa4bae35d1a 100644 --- a/docs/YamlIO.rst +++ b/docs/YamlIO.rst @@ -332,7 +332,7 @@ as a field type: } }; -When reading YAML, if the string found does not match any of the the strings +When reading YAML, if the string found does not match any of the strings specified by enumCase() methods, an error is automatically generated. When writing YAML, if the value being written does not match any of the values specified by the enumCase() methods, a runtime assertion is triggered. @@ -456,10 +456,10 @@ looks like: template <> struct ScalarTraits { - static void output(const T &value, llvm::raw_ostream &out) { + static void output(const T &value, void*, llvm::raw_ostream &out) { out << value; // do custom formatting here } - static StringRef input(StringRef scalar, T &value) { + static StringRef input(StringRef scalar, void*, T &value) { // do custom parsing here. Return the empty string on success, // or an error message on failure. return StringRef(); @@ -467,6 +467,56 @@ looks like: // Determine if this scalar needs quotes. static bool mustQuote(StringRef) { return true; } }; + +Block Scalars +------------- + +YAML block scalars are string literals that are represented in YAML using the +literal block notation, just like the example shown below: + +.. code-block:: yaml + + text: | + First line + Second line + +The YAML I/O library provides support for translating between YAML block scalars +and specific C++ types by allowing you to specialize BlockScalarTraits<> on +your data type. The library doesn't provide any built-in support for block +scalar I/O for types like std::string and llvm::StringRef as they are already +supported by YAML I/O and use the ordinary scalar notation by default. + +BlockScalarTraits specializations are very similar to the +ScalarTraits specialization - YAML I/O will provide the native type and your +specialization must create a temporary llvm::StringRef when writing, and +it will also provide an llvm::StringRef that has the value of that block scalar +and your specialization must convert that to your native data type when reading. +An example of a custom type with an appropriate specialization of +BlockScalarTraits is shown below: + +.. code-block:: c++ + + using llvm::yaml::BlockScalarTraits; + using llvm::yaml::IO; + + struct MyStringType { + std::string Str; + }; + + template <> + struct BlockScalarTraits { + static void output(const MyStringType &Value, void *Ctxt, + llvm::raw_ostream &OS) { + OS << Value.Str; + } + + static StringRef input(StringRef Scalar, void *Ctxt, + MyStringType &Value) { + Value.Str = Scalar.str(); + return StringRef(); + } + }; + Mappings @@ -723,6 +773,31 @@ because it is a programming error to have invalid struct values. } }; +Flow Mapping +------------ +A YAML "flow mapping" is a mapping that uses the inline notation +(e.g { x: 1, y: 0 } ) when written to YAML. To specify that a type should be +written in YAML using flow mapping, your MappingTraits specialization should +add "static const bool flow = true;". For instance: + +.. code-block:: c++ + + using llvm::yaml::MappingTraits; + using llvm::yaml::IO; + + struct Stuff { + ... + }; + + template <> + struct MappingTraits { + static void mapping(IO &io, Stuff &stuff) { + ... + } + + static const bool flow = true; + } + Sequence ======== @@ -767,7 +842,7 @@ add "static const bool flow = true;". For instance: }; With the above, if you used MyList as the data type in your native data -structures, then then when converted to YAML, a flow sequence of integers +structures, then when converted to YAML, a flow sequence of integers will be used (e.g. [ 10, -3, 4 ]). diff --git a/docs/conf.py b/docs/conf.py index 659c3e07fb6..18972824dbb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,9 +47,9 @@ copyright = u'2003-2014, LLVM Project' # built documents. # # The short X.Y version. -version = '3.6' +version = '3.7' # The full version, including alpha/beta/rc tags. -release = '3.6' +release = '3.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/doxygen.cfg.in b/docs/doxygen.cfg.in index 8c16b66ff0e..d8c4051e563 100644 --- a/docs/doxygen.cfg.in +++ b/docs/doxygen.cfg.in @@ -1,97 +1,121 @@ - -# Doxyfile 1.7.1 +# Doxyfile 1.8.6 # This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project +# doxygen (www.doxygen.org) for a project. # -# All text after a hash (#) is considered a comment and will be ignored +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. # The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" ") +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. +# that follow. The default is UTF-8 which is also the encoding used for all text +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv +# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv +# for the list of possible encodings. +# The default value is: UTF-8. DOXYFILE_ENCODING = UTF-8 -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded -# by quotes) that should identify the project. +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. PROJECT_NAME = LLVM -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. PROJECT_NUMBER = @PACKAGE_VERSION@ -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is included in +# the documentation. The maximum height of the logo should not exceed 55 pixels +# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo +# to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. OUTPUT_DIRECTORY = @abs_top_builddir@/docs/doxygen -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- +# directories (in 2 levels) under the output directory of each output format and +# will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. +# The default value is: NO. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, -# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, -# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, +# Ukrainian and Vietnamese. +# The default value is: English. OUTPUT_LANGUAGE = English -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. +# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. BRIEF_MEMBER_DESC = YES -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. +# The default value is: YES. REPEAT_BRIEF = YES -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief +# doxygen will generate a detailed section even if there is only a brief # description. +# The default value is: NO. ALWAYS_DETAILED_SEC = NO @@ -99,153 +123,204 @@ ALWAYS_DETAILED_SEC = NO # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. +# The default value is: NO. INLINE_INHERITED_MEMB = NO -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. +# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. FULL_PATH_NAMES = NO -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. STRIP_FROM_PATH = ../.. -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. STRIP_FROM_INC_PATH = -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful is your file systems -# doesn't support long names like on DOS, Mac, or CD-ROM. +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. SHORT_NAMES = NO -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. -JAVADOC_AUTOBRIEF = NO +JAVADOC_AUTOBRIEF = YES -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. -QT_AUTOBRIEF = NO +QT_AUTOBRIEF = YES -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. MULTILINE_CPP_IS_BRIEF = NO -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. INHERIT_DOCS = YES -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a +# new page for each member. If set to NO, the documentation of a member will be +# part of the file/class/namespace that contains it. +# The default value is: NO. SEPARATE_MEMBER_PAGES = NO -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. TAB_SIZE = 2 -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:\n" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". You can put \n's in the value part of an alias to insert +# newlines. ALIASES = -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding "class=itcl::class" +# will allow you to use the command class in the itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. OPTIMIZE_OUTPUT_FOR_C = NO -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given extension. -# Doxygen has a built-in mapping, but you can override or extend it using this -# tag. The format is ext=language, where ext is a file extension, and language -# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, -# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, Javascript, +# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make # doxygen treat .inc files as Fortran files (default is PHP), and .f files as C -# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions -# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. +# (default is Fortran), use: inc=Fortran f=C. +# +# Note For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. EXTENSION_MAPPING = +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by by putting a % sign in front of the word +# or globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also make the inheritance and collaboration +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. +# The default value is: NO. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. +# The default value is: NO. CPP_CLI_SUPPORT = NO -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. SIP_SUPPORT = NO -# For Microsoft's IDL there are propget and propput attributes to indicate getter -# and setter methods for a property. Setting this option to YES (the default) -# will make doxygen to replace the get and set methods by a property in the -# documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. IDL_PROPERTY_SUPPORT = YES @@ -253,379 +328,473 @@ IDL_PROPERTY_SUPPORT = YES # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. +# The default value is: NO. DISTRIBUTE_GROUP_DOC = NO -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. SUBGROUPING = YES -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. TYPEDEF_HIDES_STRUCT = NO -# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to -# determine which symbols to keep in memory and which to flush to disk. -# When the cache is full, less often used symbols will be written to disk. -# For small to medium size projects (<1000 input files) the default value is -# probably good enough. For larger projects a too small cache size can cause -# doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penalty. -# If the system has enough physical memory increasing the cache will improve the -# performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will roughly double the -# memory usage. The cache size is given by this formula: -# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. -SYMBOL_CACHE_SIZE = 0 +LOOKUP_CACHE_SIZE = 2 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. EXTRACT_ALL = YES -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will +# be included in the documentation. +# The default value is: NO. EXTRACT_PRIVATE = NO -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file will be +# included in the documentation. +# The default value is: NO. EXTRACT_STATIC = YES -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. EXTRACT_LOCAL_CLASSES = YES -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. +# This flag is only useful for Objective-C code. When set to YES local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO only methods in the interface are +# included. +# The default value is: NO. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespace are hidden. +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. EXTRACT_ANON_NSPACES = NO -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. HIDE_UNDOC_MEMBERS = NO -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO these classes will be included in the various overviews. This option has +# no effect if EXTRACT_ALL is enabled. +# The default value is: NO. HIDE_UNDOC_CLASSES = NO -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# (class|struct|union) declarations. If set to NO these declarations will be +# included in the documentation. +# The default value is: NO. HIDE_FRIEND_COMPOUNDS = NO -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. HIDE_IN_BODY_DOCS = NO -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. INTERNAL_DOCS = NO -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. +# The default value is: system dependent. CASE_SENSE_NAMES = YES -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES the +# scope will be hidden. +# The default value is: NO. HIDE_SCOPE_NAMES = NO -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. SHOW_INCLUDE_FILES = YES -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. FORCE_LOCAL_INCLUDES = NO -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. INLINE_INFO = YES -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. +# The default value is: YES. SORT_MEMBER_DOCS = YES -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. SORT_BRIEF_DOCS = NO -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen -# will sort the (brief and detailed) documentation of class members so that -# constructors and destructors are listed first. If set to NO (the default) -# the constructors will appear in the respective orders defined by -# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. -# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO -# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. SORT_MEMBERS_CTORS_1ST = NO -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. SORT_GROUP_NAMES = NO -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. SORT_BY_SCOPE_NAME = NO -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the +# todo list. This list is created by putting \todo commands in the +# documentation. +# The default value is: YES. GENERATE_TODOLIST = YES -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. +# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the +# test list. This list is created by putting \test commands in the +# documentation. +# The default value is: YES. GENERATE_TESTLIST = YES -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. +# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. GENERATE_BUGLIST = YES -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. +# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. GENERATE_DEPRECATEDLIST= YES -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if sectionname ... \endif. +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. ENABLED_SECTIONS = -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or define consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and defines in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. MAX_INITIALIZER_LINES = 30 -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES the list +# will mention the files that were used to generate the documentation. +# The default value is: YES. SHOW_USED_FILES = YES -# If the sources in your project are distributed over multiple directories -# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy -# in the documentation. The default is NO. - -SHOW_DIRECTORIES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. SHOW_FILES = YES -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. -# This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. The create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. -# You can optionally specify a file name after the option, if omitted -# DoxygenLayout.xml will be used as the name of the layout file. +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. LAYOUT_FILE = +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. Do not use file names with spaces, bibtex cannot handle them. See +# also \cite for info how to create references. + +CITE_BIB_FILES = + #--------------------------------------------------------------------------- -# configuration options related to warning and progress messages +# Configuration options related to warning and progress messages #--------------------------------------------------------------------------- -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. +# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. WARNINGS = NO -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. +# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. WARN_IF_UNDOCUMENTED = NO -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some parameters +# in a documented function, or documenting parameters that don't exist or using +# markup commands wrongly. +# The default value is: YES. WARN_IF_DOC_ERROR = YES -# This WARN_NO_PARAMDOC option can be abled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO doxygen will only warn about wrong or incomplete parameter +# documentation, but not about the absence of documentation. +# The default value is: NO. WARN_NO_PARAMDOC = NO -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# The default value is: $file:$line: $text. -WARN_FORMAT = +WARN_FORMAT = "$file:$line: $text" -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). WARN_LOGFILE = #--------------------------------------------------------------------------- -# configuration options related to the input files +# Configuration options related to the input files #--------------------------------------------------------------------------- -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. +# Note: If this tag is empty the current directory is searched. INPUT = @abs_top_srcdir@/include \ @abs_top_srcdir@/lib \ @abs_top_srcdir@/docs/doxygen.intro # This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: http://www.gnu.org/software/libiconv) for the list of +# possible encodings. +# The default value is: UTF-8. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx -# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank the +# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, +# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, +# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, +# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, +# *.qsf, *.as and *.js. FILE_PATTERNS = -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. RECURSIVE = YES -# The EXCLUDE tag can be used to specify files and/or directories that should +# The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. EXCLUDE = -# The EXCLUDE_SYMLINKS tag can be used select whether or not files or -# directories that are symbolic links (a Unix filesystem feature) are excluded +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded # from the input. +# The default value is: NO. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* EXCLUDE_PATTERNS = @@ -634,696 +803,1080 @@ EXCLUDE_PATTERNS = # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories use the pattern */test/* EXCLUDE_SYMBOLS = -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). EXAMPLE_PATH = @abs_top_srcdir@/examples # If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. EXAMPLE_RECURSIVE = YES -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). IMAGE_PATH = @abs_top_srcdir@/docs/img # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. -# If FILTER_PATTERNS is specified, this tag will be -# ignored. +# by executing (via popen()) the command: +# +# +# +# where is the value of the INPUT_FILTER tag, and is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. -# Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. -# The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER -# is applied to all files. +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). +# INPUT_FILTER ) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. FILTER_SOURCE_FILES = NO +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + #--------------------------------------------------------------------------- -# configuration options related to source browsing +# Configuration options related to source browsing #--------------------------------------------------------------------------- -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. SOURCE_BROWSER = YES -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# classes and enums directly into the documentation. +# The default value is: NO. INLINE_SOURCES = NO -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C and C++ comments will always remain visible. +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. STRIP_CODE_COMMENTS = NO -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# function all documented functions referencing it will be listed. +# The default value is: NO. REFERENCED_BY_RELATION = YES -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. REFERENCES_RELATION = YES -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. -# Otherwise they will link to the documentation. +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES, then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. REFERENCES_LINK_SOURCE = YES -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see http://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. USE_HTAGS = NO -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index +# Configuration options related to the alphabetical class index #--------------------------------------------------------------------------- -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. ALPHABETICAL_INDEX = YES -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in +# which the alphabetical index list will be split. +# Minimum value: 1, maximum value: 20, default value: 5. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. COLS_IN_ALPHA_INDEX = 4 -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. +# In case all classes in a project start with a common prefix, all classes will +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag +# can be used to specify a prefix (or a list of prefixes) that should be ignored +# while generating the index headers. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. IGNORE_PREFIX = llvm:: #--------------------------------------------------------------------------- -# configuration options related to the HTML output +# Configuration options related to the HTML output #--------------------------------------------------------------------------- -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. +# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output +# The default value is: YES. GENERATE_HTML = YES -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_OUTPUT = html -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_FILE_EXTENSION = .html -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a # standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. -HTML_HEADER = @abs_top_srcdir@/docs/doxygen.header +HTML_HEADER = -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. -HTML_FOOTER = @abs_top_srcdir@/docs/doxygen.footer +HTML_FOOTER = -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own -# stylesheet in the HTML output directory as well, or it will be erased! +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. -HTML_STYLESHEET = @abs_top_srcdir@/docs/doxygen.css +HTML_STYLESHEET = -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. -# Doxygen will adjust the colors in the stylesheet and background images -# according to this color. Hue is specified as an angle on a colorwheel, -# see http://en.wikipedia.org/wiki/Hue for more information. -# For instance the value 0 represents red, 60 is yellow, 120 is green, -# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. -# The allowed range is 0 to 359. +# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user- +# defined cascading style sheet that is included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefor more robust against future updates. +# Doxygen will copy the style sheet file to the output directory. For an example +# see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the stylesheet and background images according to +# this color. Hue is specified as an angle on a colorwheel, see +# http://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_HUE = 220 -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of -# the colors in the HTML output. For a value of 0 the output will use -# grayscales only. A value of 255 will produce the most vivid colors. +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_SAT = 100 -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to -# the luminance component of the colors in the HTML output. Values below -# 100 gradually make the output lighter, whereas values above 100 make -# the output darker. The value divided by 100 is the actual gamma applied, -# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, -# and 100 does not change the gamma. +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. +# page will contain the date and time when the page was generated. Setting this +# to NO can help when comparing the output of multiple runs. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_TIMESTAMP = YES -# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, -# files or namespaces will be aligned in HTML using tables. If set to -# NO a bullet list will be used. - -HTML_ALIGN_MEMBERS = YES - # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the -# page has loaded. For this to work a browser that supports -# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox -# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_SECTIONS = NO -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: http://developer.apple.com/tools/xcode/), introduced with +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a +# Makefile in the HTML output directory. Running make will produce the docset in +# that directory and running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_DOCSET = NO -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDNAME = "Doxygen generated docs" -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_BUNDLE_ID = org.doxygen.Project -# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_ID = org.doxygen.Publisher -# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_NAME = Publisher -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on +# Windows. +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_HTMLHELP = NO -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be # written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_FILE = -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler ( hhc.exe). If non-empty +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. HHC_LOCATION = -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). +# The GENERATE_CHI flag controls if a separate .chi index file is generated ( +# YES) or that it should be included in the master .chm file ( NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. GENERATE_CHI = NO -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_INDEX_ENCODING = -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. +# The BINARY_TOC flag controls whether a binary table of contents is generated ( +# YES) or a normal table of contents ( NO) in the .chm file. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. BINARY_TOC = NO -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. TOC_EXPAND = NO -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated -# that can be used as input for Qt's qhelpgenerator to generate a -# Qt Compressed Help (.qch) of the generated HTML documentation. +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_QHP = @llvm_doxygen_generate_qhp@ -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. QCH_FILE = @llvm_doxygen_qch_filename@ -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. QHP_NAMESPACE = @llvm_doxygen_qhp_namespace@ -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-folders +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- +# folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. QHP_VIRTUAL_FOLDER = doc -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to -# add. For more information please see -# http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-filters +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_NAME = @llvm_doxygen_qhp_cust_filter_name@ -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see -# -# Qt Help Project / Custom Filters. +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_ATTRS = @llvm_doxygen_qhp_cust_filter_attrs@ -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's -# filter section matches. -# -# Qt Help Project / Filter Attributes. +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. -QHP_SECT_FILTER_ATTRS = +QHP_SECT_FILTER_ATTRS = -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. +# The QHG_LOCATION tag can be used to specify the location of Qt's +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the +# generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. QHG_LOCATION = @llvm_doxygen_qhelpgenerator_path@ -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before -# the help appears. +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_ECLIPSEHELP = NO -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. ECLIPSE_DOC_ID = org.doxygen.Project -# The DISABLE_INDEX tag can be used to turn on/off the condensed index at -# top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. DISABLE_INDEX = NO -# This tag can be used to set the number of enum values (range [1..20]) -# that doxygen will group on one line in the generated HTML documentation. - -ENUM_VALUES_PER_LINE = 4 - # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can +# further fine-tune the look of the index. As an example, the default style +# sheet generated by doxygen has an example that shows how to put an image at +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has +# the same information as the tab index, you could consider setting +# DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_TREEVIEW = NO -# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, -# and Class Hierarchy pages using a tree view instead of an ordered list. +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. -USE_INLINE_TREES = NO +ENUM_VALUES_PER_LINE = 4 -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. TREEVIEW_WIDTH = 250 -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open -# links to external symbols imported via tag files in a separate window. +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. EXT_LINKS_IN_WINDOW = NO -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are -# not supported properly for IE 6.0, but are supported on all modern browsers. -# Note that when changing this option you need to delete any form_*.png files -# in the HTML output before the changes have effect. +# generated for formulas are transparent PNGs. Transparent PNGs are not +# supported properly for IE 6.0, but are supported on all modern browsers. +# +# Note that when changing this option you need to delete any form_*.png files in +# the HTML output directory before the changes have effect. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_TRANSPARENT = YES -# When the SEARCHENGINE tag is enabled doxygen will generate a search box -# for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using -# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets -# (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# http://www.mathjax.org) which uses client side Javascript for the rendering +# instead of using prerendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. See the MathJax site (see: +# http://docs.mathjax.org/en/latest/output.html) for more details. +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility), NativeMML (i.e. MathML) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from http://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use + S +# (what the is depends on the OS and browser, but it is typically +# , /