From 4c5e43da7792f75567b693105cc53e3f1992ad98 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Wed, 8 Apr 2015 08:55:49 -0700 Subject: Update aosp/master llvm for rebase to r233350 Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49 --- .gitignore | 2 +- Android.mk | 3 +- CMakeLists.txt | 34 +- CODE_OWNERS.TXT | 8 +- LICENSE.TXT | 2 +- Makefile.rules | 11 +- autoconf/configure.ac | 161 +- autoconf/m4/func_isinf.m4 | 42 - autoconf/m4/func_isnan.m4 | 27 - bindings/go/llvm/DIBuilderBindings.cpp | 12 + bindings/go/llvm/DIBuilderBindings.h | 5 + bindings/go/llvm/IRBindings.cpp | 5 +- bindings/go/llvm/dibuilder.go | 32 + bindings/go/llvm/linker.go | 2 +- cmake/config-ix.cmake | 19 +- cmake/modules/AddLLVM.cmake | 32 +- cmake/modules/CheckAtomic.cmake | 1 + cmake/modules/CrossCompile.cmake | 88 +- cmake/modules/HandleLLVMOptions.cmake | 43 +- cmake/modules/HandleLLVMStdlib.cmake | 26 +- cmake/modules/LLVM-Config.cmake | 4 +- cmake/modules/TableGen.cmake | 10 +- cmake/platforms/iOS.cmake | 32 +- configure | 1537 +- docs/BuildingLLVMWithAutotools.rst | 332 + docs/CMake.rst | 9 + docs/CodingStandards.rst | 35 +- docs/CommandGuide/FileCheck.rst | 27 +- docs/CommandGuide/llvm-cov.rst | 212 +- docs/CommandGuide/llvm-profdata.rst | 8 +- docs/DeveloperPolicy.rst | 58 +- docs/ExceptionHandling.rst | 65 +- docs/Frontend/PerformanceTips.rst | 161 + docs/GetElementPtr.rst | 34 +- docs/GettingStarted.rst | 377 +- docs/LangRef.rst | 606 +- docs/Makefile | 36 +- docs/MergeFunctions.rst | 6 +- docs/ProgrammersManual.rst | 18 +- docs/ReleaseNotes.rst | 11 +- docs/SourceLevelDebugging.rst | 775 +- docs/doxygen.cfg.in | 2374 +- docs/doxygen.css | 408 - docs/doxygen.footer | 13 - docs/doxygen.header | 9 - docs/index.rst | 11 + docs/tutorial/LangImpl3.rst | 2 +- docs/tutorial/OCamlLangImpl3.rst | 2 +- examples/ExceptionDemo/CMakeLists.txt | 2 +- examples/ExceptionDemo/ExceptionDemo.cpp | 4 +- examples/HowToUseJIT/HowToUseJIT.cpp | 1 + examples/Kaleidoscope/Chapter4/toy.cpp | 3 +- examples/Kaleidoscope/Chapter5/toy.cpp | 4 +- examples/Kaleidoscope/Chapter6/toy.cpp | 4 +- examples/Kaleidoscope/Chapter7/toy.cpp | 4 +- examples/Kaleidoscope/Chapter8/toy.cpp | 4 +- examples/Kaleidoscope/Orc/fully_lazy/toy.cpp | 25 +- examples/Kaleidoscope/Orc/initial/toy.cpp | 2 +- examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp | 2 +- examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp | 23 +- examples/ParallelJIT/ParallelJIT.cpp | 1 + include/llvm-c/Linker.h | 14 +- include/llvm/ADT/APFloat.h | 6 - include/llvm/ADT/APInt.h | 9 +- include/llvm/ADT/ArrayRef.h | 65 +- include/llvm/ADT/BitVector.h | 2 +- include/llvm/ADT/DeltaAlgorithm.h | 2 + include/llvm/ADT/DenseMap.h | 73 +- include/llvm/ADT/DepthFirstIterator.h | 38 +- include/llvm/ADT/EpochTracker.h | 99 + include/llvm/ADT/FoldingSet.h | 14 +- include/llvm/ADT/ImmutableMap.h | 58 +- include/llvm/ADT/ImmutableSet.h | 170 +- include/llvm/ADT/IndexedMap.h | 7 +- include/llvm/ADT/IntervalMap.h | 18 +- include/llvm/ADT/IntrusiveRefCntPtr.h | 7 +- include/llvm/ADT/MapVector.h | 5 + include/llvm/ADT/PostOrderIterator.h | 53 +- include/llvm/ADT/STLExtras.h | 78 +- include/llvm/ADT/SmallBitVector.h | 2 + include/llvm/ADT/SmallVector.h | 22 + include/llvm/ADT/StringRef.h | 9 +- include/llvm/ADT/Triple.h | 3 + include/llvm/ADT/Twine.h | 102 +- include/llvm/Analysis/AliasAnalysis.h | 7 +- include/llvm/Analysis/AliasSetTracker.h | 5 - include/llvm/Analysis/ConstantFolding.h | 30 +- include/llvm/Analysis/ConstantsScanner.h | 93 - include/llvm/Analysis/DependenceAnalysis.h | 9 +- include/llvm/Analysis/DominanceFrontierImpl.h | 2 - include/llvm/Analysis/IVUsers.h | 1 - include/llvm/Analysis/InstructionSimplify.h | 69 +- include/llvm/Analysis/IntervalIterator.h | 33 +- include/llvm/Analysis/LazyValueInfo.h | 1 - include/llvm/Analysis/LibCallAliasAnalysis.h | 8 +- include/llvm/Analysis/LibCallSemantics.h | 26 +- include/llvm/Analysis/Loads.h | 3 +- include/llvm/Analysis/LoopAccessAnalysis.h | 254 +- include/llvm/Analysis/LoopInfoImpl.h | 2 - include/llvm/Analysis/MemoryBuiltins.h | 21 +- include/llvm/Analysis/MemoryDependenceAnalysis.h | 5 +- include/llvm/Analysis/PHITransAddr.h | 8 +- include/llvm/Analysis/Passes.h | 4 - include/llvm/Analysis/RegionIterator.h | 20 - include/llvm/Analysis/ScalarEvolution.h | 59 +- include/llvm/Analysis/ScalarEvolutionExpander.h | 10 +- include/llvm/Analysis/TargetFolder.h | 4 +- include/llvm/Analysis/TargetLibraryInfo.def | 1029 + include/llvm/Analysis/TargetLibraryInfo.h | 746 +- include/llvm/Analysis/TargetTransformInfo.h | 18 + include/llvm/Analysis/TargetTransformInfoImpl.h | 6 + include/llvm/Analysis/ValueTracking.h | 53 +- include/llvm/Bitcode/BitstreamReader.h | 3 - include/llvm/Bitcode/ReaderWriter.h | 6 +- include/llvm/CodeGen/AsmPrinter.h | 68 +- include/llvm/CodeGen/BasicTTIImpl.h | 58 +- include/llvm/CodeGen/DIE.h | 53 +- include/llvm/CodeGen/ForwardControlFlowIntegrity.h | 122 - include/llvm/CodeGen/ISDOpcodes.h | 2 - include/llvm/CodeGen/JumpInstrTables.h | 105 - include/llvm/CodeGen/LatencyPriorityQueue.h | 2 - include/llvm/CodeGen/LiveInterval.h | 16 +- include/llvm/CodeGen/LivePhysRegs.h | 6 +- include/llvm/CodeGen/LiveStackAnalysis.h | 3 +- include/llvm/CodeGen/MachineDominators.h | 74 +- include/llvm/CodeGen/MachineInstr.h | 13 +- include/llvm/CodeGen/MachineInstrBuilder.h | 4 +- include/llvm/CodeGen/MachineMemOperand.h | 18 + include/llvm/CodeGen/MachineOperand.h | 2 +- include/llvm/CodeGen/MachineRegisterInfo.h | 15 +- include/llvm/CodeGen/MachineValueType.h | 4 +- include/llvm/CodeGen/Passes.h | 23 +- include/llvm/CodeGen/RegAllocPBQP.h | 6 +- include/llvm/CodeGen/ResourcePriorityQueue.h | 8 +- include/llvm/CodeGen/RuntimeLibcalls.h | 4 + include/llvm/CodeGen/ScheduleDAG.h | 6 - include/llvm/CodeGen/SelectionDAGISel.h | 4 +- include/llvm/CodeGen/SelectionDAGNodes.h | 379 +- include/llvm/CodeGen/StackMapLivenessAnalysis.h | 64 - include/llvm/CodeGen/StackMaps.h | 6 +- .../llvm/CodeGen/TargetLoweringObjectFileImpl.h | 15 + include/llvm/CodeGen/ValueTypes.h | 7 +- include/llvm/Config/config.h.cmake | 60 - include/llvm/Config/config.h.in | 72 +- include/llvm/Config/llvm-config.h.cmake | 4 + include/llvm/Config/llvm-config.h.in | 3 + .../DebugInfo/DWARF/DWARFAbbreviationDeclaration.h | 14 +- .../llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | 5 + include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h | 2 + include/llvm/DebugInfo/DWARF/DWARFFormValue.h | 3 +- include/llvm/DebugInfo/DWARF/DWARFUnit.h | 1 + include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h | 2 +- include/llvm/DebugInfo/PDB/DIA/DIASession.h | 3 +- include/llvm/DebugInfo/PDB/PDB.h | 4 +- include/llvm/DebugInfo/PDB/PDBExtras.h | 3 +- include/llvm/DebugInfo/PDB/PDBSymDumper.h | 86 +- include/llvm/DebugInfo/PDB/PDBSymbol.h | 3 +- include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolBlock.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolCustom.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolData.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolExe.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolFunc.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolLabel.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolThunk.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h | 5 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h | 2 +- include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h | 2 +- .../llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h | 2 +- include/llvm/DebugInfo/PDB/PDBTypes.h | 36 +- include/llvm/ExecutionEngine/ExecutionEngine.h | 3 - include/llvm/ExecutionEngine/JITSymbolFlags.h | 81 + .../ExecutionEngine/Orc/CompileOnDemandLayer.h | 17 +- .../llvm/ExecutionEngine/Orc/IndirectionUtils.h | 109 +- include/llvm/ExecutionEngine/Orc/JITSymbol.h | 19 +- .../llvm/ExecutionEngine/Orc/LazyEmittingLayer.h | 116 +- .../llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h | 50 +- .../llvm/ExecutionEngine/Orc/OrcTargetSupport.h | 7 +- include/llvm/ExecutionEngine/RuntimeDyld.h | 27 +- include/llvm/ExecutionEngine/RuntimeDyldChecker.h | 6 +- include/llvm/IR/BasicBlock.h | 6 +- include/llvm/IR/CFG.h | 10 +- include/llvm/IR/CallSite.h | 2 +- include/llvm/IR/ConstantRange.h | 33 +- include/llvm/IR/DataLayout.h | 47 +- include/llvm/IR/DebugInfo.h | 714 +- include/llvm/IR/DebugInfoMetadata.h | 273 +- include/llvm/IR/DebugLoc.h | 1 - include/llvm/IR/DiagnosticInfo.h | 1 + include/llvm/IR/GVMaterializer.h | 2 + include/llvm/IR/GlobalValue.h | 2 - include/llvm/IR/IRBuilder.h | 44 +- include/llvm/IR/InlineAsm.h | 53 + include/llvm/IR/InstIterator.h | 17 +- include/llvm/IR/InstrTypes.h | 13 +- include/llvm/IR/Instruction.h | 7 +- include/llvm/IR/Instructions.h | 95 +- include/llvm/IR/IntrinsicInst.h | 34 +- include/llvm/IR/Intrinsics.td | 19 +- include/llvm/IR/IntrinsicsHexagon.td | 144 +- include/llvm/IR/IntrinsicsPowerPC.td | 144 +- include/llvm/IR/IntrinsicsX86.td | 59 - include/llvm/IR/Metadata.def | 3 +- include/llvm/IR/Metadata.h | 42 +- include/llvm/IR/Module.h | 24 +- include/llvm/IR/NoFolder.h | 4 +- include/llvm/IR/Operator.h | 5 + include/llvm/IR/PassManager.h | 7 + include/llvm/IR/PassManagerInternal.h | 1 + include/llvm/IR/Value.h | 2 +- include/llvm/IR/Verifier.h | 13 +- include/llvm/InitializePasses.h | 4 +- include/llvm/LTO/LTOCodeGenerator.h | 7 +- include/llvm/LinkAllPasses.h | 3 +- include/llvm/Linker/Linker.h | 1 + include/llvm/MC/MCAsmInfo.h | 9 + include/llvm/MC/MCAsmLayout.h | 2 +- include/llvm/MC/MCAssembler.h | 48 +- include/llvm/MC/MCContext.h | 93 +- include/llvm/MC/MCELFObjectWriter.h | 2 + include/llvm/MC/MCExpr.h | 26 +- include/llvm/MC/MCMachObjectWriter.h | 7 +- include/llvm/MC/MCObjectFileInfo.h | 4 - include/llvm/MC/MCObjectStreamer.h | 10 +- include/llvm/MC/MCObjectWriter.h | 18 +- include/llvm/MC/MCParser/MCAsmLexer.h | 8 +- include/llvm/MC/MCSection.h | 101 +- include/llvm/MC/MCSectionCOFF.h | 11 +- include/llvm/MC/MCSectionELF.h | 23 +- include/llvm/MC/MCSectionMachO.h | 12 +- include/llvm/MC/MCStreamer.h | 41 +- include/llvm/Object/Archive.h | 8 +- include/llvm/Object/ELF.h | 24 +- include/llvm/Object/ELFTypes.h | 8 + include/llvm/Object/MachOUniversal.h | 10 +- include/llvm/Object/SymbolicFile.h | 4 +- include/llvm/Option/Arg.h | 4 +- include/llvm/Option/ArgList.h | 31 +- include/llvm/Option/OptSpecifier.h | 2 +- include/llvm/Option/OptTable.h | 5 +- include/llvm/Option/Option.h | 1 - include/llvm/Passes/PassBuilder.h | 105 + include/llvm/ProfileData/CoverageMapping.h | 5 +- include/llvm/ProfileData/CoverageMappingReader.h | 4 +- include/llvm/Support/ARMBuildAttributes.h | 7 +- include/llvm/Support/CommandLine.h | 62 +- include/llvm/Support/Compression.h | 4 +- include/llvm/Support/CrashRecoveryContext.h | 2 - include/llvm/Support/DataExtractor.h | 1 - include/llvm/Support/Debug.h | 3 +- include/llvm/Support/Dwarf.def | 1 - include/llvm/Support/ELF.h | 1 + include/llvm/Support/Endian.h | 23 +- include/llvm/Support/FileUtilities.h | 4 +- include/llvm/Support/Format.h | 3 +- include/llvm/Support/GraphWriter.h | 3 +- include/llvm/Support/MathExtras.h | 15 - include/llvm/Support/MemoryBuffer.h | 2 - include/llvm/Support/Program.h | 3 +- include/llvm/Support/Regex.h | 1 - include/llvm/Support/Signals.h | 10 +- include/llvm/Support/StreamingMemoryObject.h | 1 - include/llvm/Support/StringPool.h | 2 - include/llvm/Support/SystemUtils.h | 2 - include/llvm/Support/TargetRegistry.h | 201 +- include/llvm/Support/Timer.h | 1 - include/llvm/Support/UnicodeCharRanges.h | 4 + include/llvm/Support/YAMLParser.h | 5 +- include/llvm/Support/raw_ostream.h | 6 +- include/llvm/TableGen/Record.h | 6 +- include/llvm/Target/Target.td | 3 +- include/llvm/Target/TargetInstrInfo.h | 34 +- include/llvm/Target/TargetLowering.h | 101 +- include/llvm/Target/TargetLoweringObjectFile.h | 23 +- include/llvm/Target/TargetMachine.h | 40 +- include/llvm/Target/TargetRegisterInfo.h | 35 +- include/llvm/Target/TargetSelectionDAG.td | 24 +- include/llvm/Target/TargetSubtargetInfo.h | 16 +- include/llvm/Transforms/IPO/LowerBitSets.h | 71 +- include/llvm/Transforms/IPO/PassManagerBuilder.h | 2 +- include/llvm/Transforms/Instrumentation.h | 4 + include/llvm/Transforms/Scalar.h | 8 +- include/llvm/Transforms/Utils/BuildLibCalls.h | 32 +- include/llvm/Transforms/Utils/Cloning.h | 10 +- include/llvm/Transforms/Utils/Local.h | 32 +- include/llvm/Transforms/Utils/LoopUtils.h | 17 +- include/llvm/Transforms/Utils/SimplifyLibCalls.h | 9 +- include/llvm/module.modulemap | 5 + lib/Analysis/AliasAnalysis.cpp | 10 +- lib/Analysis/AliasAnalysisCounter.cpp | 3 +- lib/Analysis/AliasDebugger.cpp | 2 +- lib/Analysis/Analysis.cpp | 1 - lib/Analysis/Android.mk | 1 - lib/Analysis/BasicAliasAnalysis.cpp | 62 +- lib/Analysis/BranchProbabilityInfo.cpp | 1 + lib/Analysis/CFLAliasAnalysis.cpp | 239 +- lib/Analysis/CMakeLists.txt | 1 - lib/Analysis/CodeMetrics.cpp | 1 + lib/Analysis/ConstantFolding.cpp | 259 +- lib/Analysis/DependenceAnalysis.cpp | 62 +- lib/Analysis/IPA/CallGraphSCCPass.cpp | 41 +- lib/Analysis/IPA/GlobalsModRef.cpp | 12 +- lib/Analysis/IPA/InlineCost.cpp | 61 +- lib/Analysis/IVUsers.cpp | 9 +- lib/Analysis/InstructionSimplify.cpp | 120 +- lib/Analysis/JumpInstrTableInfo.cpp | 55 - lib/Analysis/LazyValueInfo.cpp | 110 +- lib/Analysis/LibCallAliasAnalysis.cpp | 6 +- lib/Analysis/LibCallSemantics.cpp | 12 - lib/Analysis/Lint.cpp | 378 +- lib/Analysis/Loads.cpp | 28 +- lib/Analysis/LoopAccessAnalysis.cpp | 417 +- lib/Analysis/LoopInfo.cpp | 1 + lib/Analysis/LoopPass.cpp | 1 + lib/Analysis/MemDerefPrinter.cpp | 5 +- lib/Analysis/MemoryBuiltins.cpp | 63 +- lib/Analysis/MemoryDependenceAnalysis.cpp | 67 +- lib/Analysis/ModuleDebugInfoPrinter.cpp | 62 +- lib/Analysis/NoAliasAnalysis.cpp | 7 +- lib/Analysis/PHITransAddr.cpp | 7 +- lib/Analysis/RegionPass.cpp | 25 +- lib/Analysis/ScalarEvolution.cpp | 629 +- lib/Analysis/ScalarEvolutionAliasAnalysis.cpp | 3 +- lib/Analysis/ScalarEvolutionExpander.cpp | 121 +- lib/Analysis/ScopedNoAliasAA.cpp | 7 +- lib/Analysis/TargetLibraryInfo.cpp | 487 +- lib/Analysis/TargetTransformInfo.cpp | 11 +- lib/Analysis/TypeBasedAliasAnalysis.cpp | 22 +- lib/Analysis/ValueTracking.cpp | 741 +- lib/AsmParser/LLParser.cpp | 101 +- lib/AsmParser/Parser.cpp | 1 + lib/Bitcode/Reader/BitcodeReader.cpp | 447 +- lib/Bitcode/Reader/BitcodeReader.h | 369 - lib/Bitcode/Reader/BitstreamReader.cpp | 2 +- lib/Bitcode/Writer/BitcodeWriter.cpp | 9 +- lib/CMakeLists.txt | 1 + lib/CodeGen/Analysis.cpp | 9 +- lib/CodeGen/Android.mk | 4 +- lib/CodeGen/AsmPrinter/ARMException.cpp | 17 +- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 199 +- lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp | 121 +- lib/CodeGen/AsmPrinter/AsmPrinterHandler.h | 4 + lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp | 37 +- lib/CodeGen/AsmPrinter/ByteStreamer.h | 29 + lib/CodeGen/AsmPrinter/DIE.cpp | 85 +- lib/CodeGen/AsmPrinter/DIEHash.cpp | 6 +- .../AsmPrinter/DbgValueHistoryCalculator.cpp | 1 + lib/CodeGen/AsmPrinter/DebugLocEntry.h | 39 +- lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp | 63 +- lib/CodeGen/AsmPrinter/DwarfAccelTable.h | 6 +- lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 51 +- lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 43 +- lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 24 +- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 466 +- lib/CodeGen/AsmPrinter/DwarfDebug.h | 56 +- lib/CodeGen/AsmPrinter/DwarfException.h | 45 +- lib/CodeGen/AsmPrinter/DwarfExpression.cpp | 78 +- lib/CodeGen/AsmPrinter/DwarfExpression.h | 31 +- lib/CodeGen/AsmPrinter/DwarfFile.cpp | 25 +- lib/CodeGen/AsmPrinter/DwarfFile.h | 7 +- lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 2 +- lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 48 +- lib/CodeGen/AsmPrinter/DwarfUnit.h | 11 +- lib/CodeGen/AsmPrinter/EHStreamer.cpp | 29 +- lib/CodeGen/AsmPrinter/EHStreamer.h | 10 - lib/CodeGen/AsmPrinter/Win64Exception.cpp | 14 +- lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp | 12 +- lib/CodeGen/AtomicExpandPass.cpp | 33 +- lib/CodeGen/BranchFolding.cpp | 61 +- lib/CodeGen/CMakeLists.txt | 2 - lib/CodeGen/CodeGen.cpp | 20 +- lib/CodeGen/CodeGenPrepare.cpp | 231 +- lib/CodeGen/DwarfEHPrepare.cpp | 109 +- lib/CodeGen/ExecutionDepsFix.cpp | 35 +- lib/CodeGen/ForwardControlFlowIntegrity.cpp | 374 - lib/CodeGen/IfConversion.cpp | 18 +- lib/CodeGen/InterferenceCache.cpp | 3 +- lib/CodeGen/InterferenceCache.h | 4 +- lib/CodeGen/JumpInstrTables.cpp | 296 - lib/CodeGen/LLVMTargetMachine.cpp | 79 +- lib/CodeGen/LatencyPriorityQueue.cpp | 13 - lib/CodeGen/LiveDebugVariables.cpp | 11 +- lib/CodeGen/LiveInterval.cpp | 13 +- lib/CodeGen/LiveIntervalAnalysis.cpp | 8 +- lib/CodeGen/LivePhysRegs.cpp | 1 + lib/CodeGen/LiveRangeCalc.cpp | 4 +- lib/CodeGen/LiveRangeCalc.h | 2 +- lib/CodeGen/LiveStackAnalysis.cpp | 6 +- lib/CodeGen/LiveVariables.cpp | 1 + lib/CodeGen/LocalStackSlotAllocation.cpp | 12 +- lib/CodeGen/MachineBasicBlock.cpp | 2 +- lib/CodeGen/MachineBlockPlacement.cpp | 431 +- lib/CodeGen/MachineCSE.cpp | 1 + lib/CodeGen/MachineCopyPropagation.cpp | 7 +- lib/CodeGen/MachineDominators.cpp | 66 + lib/CodeGen/MachineFunction.cpp | 18 +- lib/CodeGen/MachineInstr.cpp | 67 +- lib/CodeGen/MachineLICM.cpp | 61 + lib/CodeGen/MachineLoopInfo.cpp | 1 + lib/CodeGen/MachineRegisterInfo.cpp | 2 +- lib/CodeGen/MachineScheduler.cpp | 11 + lib/CodeGen/MachineVerifier.cpp | 64 +- lib/CodeGen/PHIElimination.cpp | 21 +- lib/CodeGen/Passes.cpp | 50 +- lib/CodeGen/PeepholeOptimizer.cpp | 6 +- lib/CodeGen/PrologEpilogInserter.cpp | 60 +- lib/CodeGen/PrologEpilogInserter.h | 78 - lib/CodeGen/RegAllocBase.cpp | 1 + lib/CodeGen/RegAllocGreedy.cpp | 3 +- lib/CodeGen/RegAllocPBQP.cpp | 83 +- lib/CodeGen/RegisterClassInfo.cpp | 7 +- lib/CodeGen/RegisterCoalescer.cpp | 170 +- lib/CodeGen/RegisterPressure.cpp | 2 + lib/CodeGen/ScheduleDAGInstrs.cpp | 107 +- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 991 +- lib/CodeGen/SelectionDAG/FastISel.cpp | 10 +- lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 1 + lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 154 +- lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 101 +- lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 10 + lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp | 16 +- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 76 +- lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 735 +- lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 45 +- lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 1 + lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 79 +- lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 67 +- lib/CodeGen/SelectionDAG/TargetLowering.cpp | 9 +- lib/CodeGen/ShadowStackGCLowering.cpp | 35 +- lib/CodeGen/SjLjEHPrepare.cpp | 3 +- lib/CodeGen/SlotIndexes.cpp | 2 +- lib/CodeGen/StackColoring.cpp | 2 +- lib/CodeGen/StackMapLivenessAnalysis.cpp | 64 +- lib/CodeGen/StackMaps.cpp | 186 +- lib/CodeGen/StackSlotColoring.cpp | 12 +- lib/CodeGen/TargetInstrInfo.cpp | 45 +- lib/CodeGen/TargetLoweringBase.cpp | 120 +- lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 155 +- lib/CodeGen/TwoAddressInstructionPass.cpp | 63 + lib/CodeGen/VirtRegMap.cpp | 2 +- lib/CodeGen/WinEHPrepare.cpp | 1629 +- lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 1 + lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | 3 +- lib/DebugInfo/DWARF/DWARFFormValue.cpp | 19 + lib/DebugInfo/PDB/CMakeLists.txt | 2 +- lib/DebugInfo/PDB/DIA/DIASession.cpp | 45 +- lib/DebugInfo/PDB/PDB.cpp | 8 +- lib/DebugInfo/PDB/PDBExtras.cpp | 39 +- lib/DebugInfo/PDB/PDBSymDumper.cpp | 93 +- lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolBlock.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolCompiland.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolCustom.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolData.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolExe.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolFunc.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolLabel.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolThunk.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp | 15 +- lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolUnknown.cpp | 5 +- lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp | 5 +- lib/ExecutionEngine/ExecutionEngine.cpp | 38 +- lib/ExecutionEngine/Interpreter/CMakeLists.txt | 2 +- lib/ExecutionEngine/Interpreter/Execution.cpp | 17 +- lib/ExecutionEngine/MCJIT/MCJIT.cpp | 7 +- lib/ExecutionEngine/Orc/IndirectionUtils.cpp | 1 + lib/ExecutionEngine/Orc/OrcMCJITReplacement.h | 4 +- lib/ExecutionEngine/Orc/OrcTargetSupport.cpp | 6 +- lib/ExecutionEngine/RuntimeDyld/Android.mk | 1 + lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt | 1 + lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 81 +- .../RuntimeDyld/RuntimeDyldCOFF.cpp | 85 + lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h | 46 + .../RuntimeDyld/RuntimeDyldChecker.cpp | 18 +- .../RuntimeDyld/RuntimeDyldCheckerImpl.h | 2 +- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 2 +- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h | 10 - lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h | 49 +- .../RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h | 214 + lib/Fuzzer/FuzzerDriver.cpp | 1 + lib/Fuzzer/FuzzerFlags.def | 1 + lib/Fuzzer/FuzzerInternal.h | 10 + lib/Fuzzer/FuzzerLoop.cpp | 14 +- lib/Fuzzer/test/CMakeLists.txt | 1 + lib/Fuzzer/test/CounterTest.cpp | 14 + lib/Fuzzer/test/fuzzer.test | 3 + lib/IR/AsmWriter.cpp | 975 +- lib/IR/AsmWriter.h | 129 - lib/IR/AutoUpgrade.cpp | 152 +- lib/IR/BasicBlock.cpp | 24 +- lib/IR/ConstantFold.cpp | 59 +- lib/IR/ConstantRange.cpp | 45 +- lib/IR/Constants.cpp | 25 +- lib/IR/Core.cpp | 2 +- lib/IR/DIBuilder.cpp | 707 +- lib/IR/DataLayout.cpp | 134 +- lib/IR/DebugInfo.cpp | 833 +- lib/IR/DiagnosticInfo.cpp | 2 +- lib/IR/GCOV.cpp | 7 +- lib/IR/Globals.cpp | 4 - lib/IR/InlineAsm.cpp | 2 +- lib/IR/Instruction.cpp | 8 +- lib/IR/Instructions.cpp | 253 +- lib/IR/LLVMContextImpl.h | 6 +- lib/IR/LegacyPassManager.cpp | 2 +- lib/IR/Mangler.cpp | 6 +- lib/IR/Module.cpp | 30 +- lib/IR/TypeFinder.cpp | 2 +- lib/IR/Value.cpp | 46 +- lib/IR/Verifier.cpp | 2012 +- lib/LLVMBuild.txt | 2 +- lib/LTO/LTOCodeGenerator.cpp | 38 +- lib/LTO/LTOModule.cpp | 5 +- lib/Linker/LinkModules.cpp | 66 +- lib/MC/ELFObjectWriter.cpp | 39 +- lib/MC/MCAsmInfo.cpp | 2 + lib/MC/MCAsmInfoDarwin.cpp | 1 - lib/MC/MCAsmStreamer.cpp | 2 +- lib/MC/MCAssembler.cpp | 65 +- lib/MC/MCContext.cpp | 155 +- lib/MC/MCDwarf.cpp | 44 +- lib/MC/MCELFStreamer.cpp | 10 +- lib/MC/MCExpr.cpp | 119 +- lib/MC/MCLinkerOptimizationHint.cpp | 2 +- lib/MC/MCMachOStreamer.cpp | 50 +- lib/MC/MCObjectFileInfo.cpp | 521 +- lib/MC/MCObjectStreamer.cpp | 14 +- lib/MC/MCObjectWriter.cpp | 10 +- lib/MC/MCParser/AsmLexer.cpp | 2 +- lib/MC/MCParser/AsmParser.cpp | 44 +- lib/MC/MCParser/DarwinAsmParser.cpp | 2 +- lib/MC/MCSection.cpp | 9 + lib/MC/MCSectionMachO.cpp | 6 +- lib/MC/MCStreamer.cpp | 28 + lib/MC/MCWinEH.cpp | 1 + lib/MC/MachObjectWriter.cpp | 1 + lib/MC/SubtargetFeature.cpp | 20 +- lib/MC/WinCOFFObjectWriter.cpp | 8 + lib/MC/WinCOFFStreamer.cpp | 4 +- lib/Makefile | 2 +- lib/Object/Archive.cpp | 61 +- lib/Object/COFFObjectFile.cpp | 13 +- lib/Object/ELFYAML.cpp | 1 + lib/Object/IRObjectFile.cpp | 14 +- lib/Option/Arg.cpp | 25 +- lib/Option/ArgList.cpp | 34 +- lib/Option/OptTable.cpp | 14 +- lib/Option/Option.cpp | 3 - lib/Passes/Android.mk | 30 + lib/Passes/CMakeLists.txt | 8 + lib/Passes/LLVMBuild.txt | 22 + lib/Passes/Makefile | 14 + lib/Passes/PassBuilder.cpp | 412 + lib/Passes/PassRegistry.def | 77 + lib/ProfileData/CoverageMapping.cpp | 6 +- lib/ProfileData/CoverageMappingReader.cpp | 161 +- lib/ProfileData/InstrProfReader.cpp | 3 +- lib/Support/APFloat.cpp | 6 +- lib/Support/APInt.cpp | 70 +- lib/Support/Allocator.cpp | 5 - lib/Support/Android.mk | 2 - lib/Support/CMakeLists.txt | 2 - lib/Support/CommandLine.cpp | 29 +- lib/Support/Compression.cpp | 1 + lib/Support/CrashRecoveryContext.cpp | 2 - lib/Support/DAGDeltaAlgorithm.cpp | 26 +- lib/Support/DataStream.cpp | 2 - lib/Support/Debug.cpp | 1 + lib/Support/FileOutputBuffer.cpp | 14 +- lib/Support/FoldingSet.cpp | 7 +- lib/Support/FormattedStream.cpp | 1 + lib/Support/GraphWriter.cpp | 3 +- lib/Support/Host.cpp | 8 +- lib/Support/IsInf.cpp | 49 - lib/Support/IsNAN.cpp | 33 - lib/Support/LockFileManager.cpp | 27 +- lib/Support/MemoryBuffer.cpp | 1 - lib/Support/Path.cpp | 15 +- lib/Support/Process.cpp | 2 +- lib/Support/Program.cpp | 1 + lib/Support/RandomNumberGenerator.cpp | 6 +- lib/Support/Regex.cpp | 3 +- lib/Support/ScaledNumber.cpp | 1 + lib/Support/SourceMgr.cpp | 2 - lib/Support/SpecialCaseList.cpp | 2 - lib/Support/StreamingMemoryObject.cpp | 3 - lib/Support/StringExtras.cpp | 1 - lib/Support/SystemUtils.cpp | 2 - lib/Support/TargetRegistry.cpp | 1 - lib/Support/Timer.cpp | 2 - lib/Support/Triple.cpp | 46 +- lib/Support/Twine.cpp | 14 +- lib/Support/Unix/Program.inc | 3 +- lib/Support/Unix/Signals.inc | 44 +- lib/Support/Windows/Path.inc | 4 +- lib/Support/Windows/Process.inc | 13 + lib/Support/Windows/Signals.inc | 222 +- lib/Support/YAMLParser.cpp | 1 + lib/Support/YAMLTraits.cpp | 22 +- lib/TableGen/TGParser.cpp | 1 + lib/Target/AArch64/AArch64.td | 7 + lib/Target/AArch64/AArch64A53Fix835769.cpp | 1 + lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp | 26 +- lib/Target/AArch64/AArch64AddressTypePromotion.cpp | 1 + lib/Target/AArch64/AArch64AsmPrinter.cpp | 77 +- .../AArch64/AArch64CleanupLocalDynamicTLSPass.cpp | 6 +- lib/Target/AArch64/AArch64CollectLOH.cpp | 14 +- lib/Target/AArch64/AArch64FastISel.cpp | 4 +- lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 47 +- lib/Target/AArch64/AArch64ISelLowering.cpp | 302 +- lib/Target/AArch64/AArch64ISelLowering.h | 35 +- lib/Target/AArch64/AArch64InstrInfo.cpp | 10 +- lib/Target/AArch64/AArch64InstrInfo.h | 7 +- lib/Target/AArch64/AArch64InstrInfo.td | 297 +- lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | 127 +- lib/Target/AArch64/AArch64MCInstLower.cpp | 11 + lib/Target/AArch64/AArch64PBQPRegAlloc.cpp | 2 +- lib/Target/AArch64/AArch64PromoteConstant.cpp | 7 +- lib/Target/AArch64/AArch64RegisterInfo.cpp | 47 +- lib/Target/AArch64/AArch64RegisterInfo.h | 19 +- lib/Target/AArch64/AArch64Subtarget.cpp | 2 +- lib/Target/AArch64/AArch64Subtarget.h | 3 + lib/Target/AArch64/AArch64TargetMachine.cpp | 31 +- lib/Target/AArch64/AArch64TargetMachine.h | 7 - lib/Target/AArch64/AArch64TargetObjectFile.cpp | 21 + lib/Target/AArch64/AArch64TargetObjectFile.h | 7 + lib/Target/AArch64/AArch64TargetTransformInfo.cpp | 12 +- lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp | 125 +- .../AArch64/MCTargetDesc/AArch64AsmBackend.cpp | 21 +- .../AArch64/MCTargetDesc/AArch64ELFStreamer.cpp | 23 +- .../AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp | 7 +- lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp | 1 + .../AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp | 129 +- .../AArch64/MCTargetDesc/AArch64MCTargetDesc.h | 20 +- lib/Target/AArch64/Utils/AArch64BaseInfo.cpp | 96 +- lib/Target/AArch64/Utils/AArch64BaseInfo.h | 51 +- lib/Target/ARM/A15SDOptimizer.cpp | 12 +- lib/Target/ARM/ARM.td | 30 +- lib/Target/ARM/ARMAsmPrinter.cpp | 72 +- lib/Target/ARM/ARMAsmPrinter.h | 9 +- lib/Target/ARM/ARMBaseInstrInfo.cpp | 34 +- lib/Target/ARM/ARMBaseRegisterInfo.cpp | 83 +- lib/Target/ARM/ARMBaseRegisterInfo.h | 27 +- lib/Target/ARM/ARMFastISel.cpp | 4 +- lib/Target/ARM/ARMFrameLowering.cpp | 5 +- lib/Target/ARM/ARMISelDAGToDAG.cpp | 9 +- lib/Target/ARM/ARMISelLowering.cpp | 457 +- lib/Target/ARM/ARMISelLowering.h | 33 +- lib/Target/ARM/ARMInstrFormats.td | 7 +- lib/Target/ARM/ARMInstrInfo.cpp | 7 +- lib/Target/ARM/ARMInstrInfo.td | 15 +- lib/Target/ARM/ARMInstrNEON.td | 215 +- lib/Target/ARM/ARMInstrVFP.td | 107 +- lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 3 +- lib/Target/ARM/ARMMachineFunctionInfo.h | 6 +- lib/Target/ARM/ARMRegisterInfo.cpp | 4 +- lib/Target/ARM/ARMRegisterInfo.h | 2 +- lib/Target/ARM/ARMSubtarget.cpp | 2 + lib/Target/ARM/ARMSubtarget.h | 8 +- lib/Target/ARM/ARMTargetMachine.cpp | 66 +- lib/Target/ARM/ARMTargetMachine.h | 4 +- lib/Target/ARM/Android.mk | 4 +- lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 9 +- lib/Target/ARM/CMakeLists.txt | 3 +- lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 4 +- lib/Target/ARM/MCTargetDesc/ARMArchName.def | 3 + lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 29 +- lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp | 1 + lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp | 2 - lib/Target/ARM/MCTargetDesc/ARMMCExpr.cpp | 1 + lib/Target/ARM/MCTargetDesc/ARMMCExpr.h | 4 +- lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp | 183 +- lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h | 21 +- lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp | 72 +- lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp | 10 +- lib/Target/ARM/MLxExpansionPass.cpp | 3 + lib/Target/ARM/README-Thumb.txt | 2 +- lib/Target/ARM/Thumb1FrameLowering.cpp | 22 +- lib/Target/ARM/Thumb1FrameLowering.h | 2 +- lib/Target/ARM/Thumb1InstrInfo.cpp | 3 +- lib/Target/ARM/Thumb1InstrInfo.h | 6 +- lib/Target/ARM/Thumb1RegisterInfo.cpp | 577 - lib/Target/ARM/Thumb1RegisterInfo.h | 63 - lib/Target/ARM/Thumb2ITBlockPass.cpp | 2 + lib/Target/ARM/Thumb2InstrInfo.cpp | 3 +- lib/Target/ARM/Thumb2InstrInfo.h | 6 +- lib/Target/ARM/Thumb2RegisterInfo.cpp | 53 - lib/Target/ARM/Thumb2RegisterInfo.h | 38 - lib/Target/ARM/Thumb2SizeReduction.cpp | 4 + lib/Target/ARM/ThumbRegisterInfo.cpp | 623 + lib/Target/ARM/ThumbRegisterInfo.h | 65 + lib/Target/BPF/BPFISelDAGToDAG.cpp | 6 +- lib/Target/BPF/BPFISelLowering.h | 1 + lib/Target/BPF/BPFRegisterInfo.h | 3 +- lib/Target/BPF/BPFTargetMachine.cpp | 4 +- lib/Target/BPF/BPFTargetMachine.h | 7 +- lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp | 1 - lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp | 10 +- lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.h | 1 - lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp | 2 +- lib/Target/CppBackend/CPPBackend.cpp | 3 +- lib/Target/CppBackend/CPPTargetMachine.h | 15 +- lib/Target/Hexagon/CMakeLists.txt | 1 - lib/Target/Hexagon/Hexagon.h | 1 - lib/Target/Hexagon/Hexagon.td | 16 +- lib/Target/Hexagon/HexagonCopyToCombine.cpp | 17 +- lib/Target/Hexagon/HexagonExpandPredSpillCode.cpp | 161 +- lib/Target/Hexagon/HexagonFrameLowering.cpp | 2 +- lib/Target/Hexagon/HexagonHardwareLoops.cpp | 2 +- lib/Target/Hexagon/HexagonISelDAGToDAG.cpp | 1555 +- lib/Target/Hexagon/HexagonISelLowering.cpp | 896 +- lib/Target/Hexagon/HexagonISelLowering.h | 81 +- lib/Target/Hexagon/HexagonInstrFormats.td | 63 +- lib/Target/Hexagon/HexagonInstrFormatsV4.td | 94 +- lib/Target/Hexagon/HexagonInstrInfo.cpp | 179 +- lib/Target/Hexagon/HexagonInstrInfo.h | 22 +- lib/Target/Hexagon/HexagonInstrInfo.td | 473 +- lib/Target/Hexagon/HexagonInstrInfoV4.td | 465 +- lib/Target/Hexagon/HexagonInstrInfoV5.td | 8 +- lib/Target/Hexagon/HexagonInstrInfoVector.td | 418 + lib/Target/Hexagon/HexagonIntrinsics.td | 49 +- lib/Target/Hexagon/HexagonIntrinsicsV4.td | 10 +- lib/Target/Hexagon/HexagonNewValueJump.cpp | 6 +- lib/Target/Hexagon/HexagonOperands.td | 388 +- lib/Target/Hexagon/HexagonPeephole.cpp | 7 - lib/Target/Hexagon/HexagonRegisterInfo.cpp | 15 +- lib/Target/Hexagon/HexagonRegisterInfo.h | 12 +- .../Hexagon/HexagonSplitConst32AndConst64.cpp | 85 +- lib/Target/Hexagon/HexagonSplitTFRCondSets.cpp | 172 - lib/Target/Hexagon/HexagonSubtarget.cpp | 10 + lib/Target/Hexagon/HexagonSubtarget.h | 5 + lib/Target/Hexagon/HexagonTargetMachine.cpp | 23 +- lib/Target/Hexagon/HexagonTargetMachine.h | 4 +- lib/Target/Hexagon/HexagonVLIWPacketizer.cpp | 9 +- .../MCTargetDesc/HexagonELFObjectWriter.cpp | 1 + .../Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp | 10 +- .../Hexagon/MCTargetDesc/HexagonMCCodeEmitter.h | 4 +- .../Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp | 22 - .../Hexagon/MCTargetDesc/HexagonMCTargetDesc.h | 1 - .../MSP430/MCTargetDesc/MSP430MCTargetDesc.h | 2 + lib/Target/MSP430/MSP430ISelDAGToDAG.cpp | 8 +- lib/Target/MSP430/MSP430ISelLowering.h | 6 + lib/Target/MSP430/MSP430RegisterInfo.h | 3 +- lib/Target/MSP430/MSP430Subtarget.cpp | 3 +- lib/Target/MSP430/MSP430TargetMachine.cpp | 5 +- lib/Target/MSP430/MSP430TargetMachine.h | 4 +- lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 99 +- lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h | 7 +- .../Mips/MCTargetDesc/MipsELFObjectWriter.cpp | 16 +- lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp | 12 +- lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h | 4 +- lib/Target/Mips/MCTargetDesc/MipsFixupKinds.h | 2 +- lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp | 7 +- lib/Target/Mips/MCTargetDesc/MipsMCNaCl.h | 1 - lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp | 148 +- lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.h | 2 - .../Mips/MCTargetDesc/MipsNaClELFStreamer.cpp | 8 +- .../Mips/MCTargetDesc/MipsTargetStreamer.cpp | 36 +- lib/Target/Mips/MicroMipsInstrInfo.td | 8 +- lib/Target/Mips/Mips.h | 5 + lib/Target/Mips/Mips.td | 12 +- lib/Target/Mips/Mips16HardFloat.cpp | 185 +- lib/Target/Mips/Mips16HardFloat.h | 43 - lib/Target/Mips/Mips16InstrInfo.cpp | 4 +- lib/Target/Mips/Mips16InstrInfo.h | 2 +- lib/Target/Mips/Mips16RegisterInfo.cpp | 9 +- lib/Target/Mips/Mips16RegisterInfo.h | 2 +- lib/Target/Mips/Mips64InstrInfo.td | 4 +- lib/Target/Mips/MipsAsmPrinter.cpp | 27 +- lib/Target/Mips/MipsCallingConv.td | 2 +- lib/Target/Mips/MipsDelaySlotFiller.cpp | 36 +- lib/Target/Mips/MipsFastISel.cpp | 92 +- lib/Target/Mips/MipsISelDAGToDAG.cpp | 17 +- lib/Target/Mips/MipsISelDAGToDAG.h | 2 +- lib/Target/Mips/MipsISelLowering.cpp | 46 +- lib/Target/Mips/MipsISelLowering.h | 11 + lib/Target/Mips/MipsInstrInfo.h | 2 +- lib/Target/Mips/MipsInstrInfo.td | 24 +- lib/Target/Mips/MipsMCInstLower.cpp | 1 + lib/Target/Mips/MipsMachineFunction.cpp | 17 +- lib/Target/Mips/MipsModuleISelDAGToDAG.cpp | 38 +- lib/Target/Mips/MipsModuleISelDAGToDAG.h | 58 - lib/Target/Mips/MipsOs16.cpp | 129 +- lib/Target/Mips/MipsOs16.h | 47 - lib/Target/Mips/MipsRegisterInfo.cpp | 15 +- lib/Target/Mips/MipsRegisterInfo.h | 14 +- lib/Target/Mips/MipsSEISelDAGToDAG.cpp | 84 +- lib/Target/Mips/MipsSEISelDAGToDAG.h | 10 + lib/Target/Mips/MipsSEInstrInfo.cpp | 2 +- lib/Target/Mips/MipsSERegisterInfo.cpp | 14 +- lib/Target/Mips/MipsSERegisterInfo.h | 2 +- lib/Target/Mips/MipsSchedule.td | 4 + lib/Target/Mips/MipsTargetMachine.cpp | 22 +- lib/Target/Mips/MipsTargetMachine.h | 4 +- lib/Target/Mips/MipsTargetObjectFile.cpp | 14 +- lib/Target/Mips/MipsTargetObjectFile.h | 4 +- lib/Target/Mips/MipsTargetStreamer.h | 7 +- lib/Target/NVPTX/CMakeLists.txt | 1 - lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp | 2 + .../NVPTX/MCTargetDesc/NVPTXMCTargetDesc.cpp | 50 +- lib/Target/NVPTX/MCTargetDesc/NVPTXMCTargetDesc.h | 2 + lib/Target/NVPTX/NVPTXAllocaHoisting.cpp | 40 +- lib/Target/NVPTX/NVPTXAllocaHoisting.h | 28 - lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 34 +- lib/Target/NVPTX/NVPTXAsmPrinter.h | 4 +- .../NVPTX/NVPTXFavorNonGenericAddrSpaces.cpp | 7 +- lib/Target/NVPTX/NVPTXGenericToNVVM.cpp | 1 + lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp | 11 +- lib/Target/NVPTX/NVPTXISelDAGToDAG.h | 2 +- lib/Target/NVPTX/NVPTXISelLowering.cpp | 15 +- lib/Target/NVPTX/NVPTXISelLowering.h | 6 + lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp | 35 +- lib/Target/NVPTX/NVPTXLowerAggrCopies.h | 29 +- lib/Target/NVPTX/NVPTXLowerStructArgs.cpp | 4 +- lib/Target/NVPTX/NVPTXMCExpr.h | 4 +- lib/Target/NVPTX/NVPTXRegisterInfo.cpp | 2 +- lib/Target/NVPTX/NVPTXRegisterInfo.h | 3 +- lib/Target/NVPTX/NVPTXSection.h | 5 +- lib/Target/NVPTX/NVPTXTargetMachine.cpp | 12 +- lib/Target/NVPTX/NVPTXTargetMachine.h | 7 +- lib/Target/NVPTX/NVPTXTargetObjectFile.h | 3 - lib/Target/NVPTX/NVPTXUtilities.cpp | 9 +- lib/Target/NVPTX/NVPTXutil.cpp | 90 - lib/Target/NVPTX/NVPTXutil.h | 25 - lib/Target/NVPTX/NVVMReflect.cpp | 38 +- lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp | 8 +- .../PowerPC/Disassembler/PPCDisassembler.cpp | 6 + lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 14 + lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h | 2 + lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp | 4 + .../PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp | 16 +- lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h | 5 +- .../PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp | 122 +- lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h | 3 +- lib/Target/PowerPC/PPC.td | 19 +- lib/Target/PowerPC/PPCAsmPrinter.cpp | 23 +- lib/Target/PowerPC/PPCCTRLoops.cpp | 5 +- lib/Target/PowerPC/PPCFastISel.cpp | 16 +- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 48 +- lib/Target/PowerPC/PPCISelLowering.cpp | 297 +- lib/Target/PowerPC/PPCISelLowering.h | 26 +- lib/Target/PowerPC/PPCInstr64Bit.td | 28 +- lib/Target/PowerPC/PPCInstrAltivec.td | 94 +- lib/Target/PowerPC/PPCInstrFormats.td | 87 + lib/Target/PowerPC/PPCInstrHTM.td | 172 + lib/Target/PowerPC/PPCInstrInfo.cpp | 58 +- lib/Target/PowerPC/PPCInstrInfo.h | 2 +- lib/Target/PowerPC/PPCInstrInfo.td | 82 +- lib/Target/PowerPC/PPCInstrQPX.td | 2 +- lib/Target/PowerPC/PPCInstrVSX.td | 2 +- lib/Target/PowerPC/PPCLoopDataPrefetch.cpp | 6 +- lib/Target/PowerPC/PPCLoopPreIncPrep.cpp | 21 +- lib/Target/PowerPC/PPCMCInstLower.cpp | 3 + lib/Target/PowerPC/PPCRegisterInfo.cpp | 170 +- lib/Target/PowerPC/PPCRegisterInfo.h | 52 +- lib/Target/PowerPC/PPCRegisterInfo.td | 2 + lib/Target/PowerPC/PPCSchedule.td | 398 - lib/Target/PowerPC/PPCSubtarget.cpp | 3 + lib/Target/PowerPC/PPCSubtarget.h | 6 + lib/Target/PowerPC/PPCTargetMachine.cpp | 17 +- lib/Target/PowerPC/PPCTargetMachine.h | 6 - lib/Target/PowerPC/PPCTargetTransformInfo.cpp | 4 + lib/Target/PowerPC/PPCTargetTransformInfo.h | 1 + lib/Target/PowerPC/README.txt | 7 + lib/Target/PowerPC/README_ALTIVEC.txt | 104 + lib/Target/R600/AMDGPU.td | 5 + lib/Target/R600/AMDGPUAsmPrinter.cpp | 10 +- lib/Target/R600/AMDGPUISelDAGToDAG.cpp | 127 +- lib/Target/R600/AMDGPUISelLowering.cpp | 3 - lib/Target/R600/AMDGPUInstrInfo.cpp | 30 +- lib/Target/R600/AMDGPUInstrInfo.h | 13 +- lib/Target/R600/AMDGPUInstructions.td | 22 +- lib/Target/R600/AMDGPUIntrinsics.td | 1 + lib/Target/R600/AMDGPUPromoteAlloca.cpp | 13 +- lib/Target/R600/AMDGPURegisterInfo.cpp | 5 +- lib/Target/R600/AMDGPURegisterInfo.h | 3 +- lib/Target/R600/AMDGPUSubtarget.cpp | 2 +- lib/Target/R600/AMDGPUSubtarget.h | 9 + lib/Target/R600/AMDGPUTargetMachine.cpp | 30 +- lib/Target/R600/AMDGPUTargetMachine.h | 10 +- lib/Target/R600/AMDGPUTargetTransformInfo.cpp | 5 +- lib/Target/R600/AMDILCFGStructurizer.cpp | 26 +- lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp | 7 +- lib/Target/R600/EvergreenInstructions.td | 5 +- lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp | 16 + lib/Target/R600/InstPrinter/AMDGPUInstPrinter.h | 2 + .../R600/MCTargetDesc/AMDGPUMCTargetDesc.cpp | 58 +- lib/Target/R600/MCTargetDesc/AMDGPUMCTargetDesc.h | 4 +- lib/Target/R600/MCTargetDesc/R600MCCodeEmitter.cpp | 4 +- lib/Target/R600/MCTargetDesc/SIMCCodeEmitter.cpp | 1 - lib/Target/R600/Processors.td | 8 +- lib/Target/R600/R600ClauseMergePass.cpp | 2 +- lib/Target/R600/R600ISelLowering.cpp | 10 +- lib/Target/R600/R600InstrInfo.cpp | 14 +- lib/Target/R600/R600OptimizeVectorRegisters.cpp | 4 +- lib/Target/R600/R600RegisterInfo.cpp | 10 +- lib/Target/R600/R600RegisterInfo.h | 2 +- lib/Target/R600/SIFixSGPRLiveRanges.cpp | 1 + lib/Target/R600/SIFoldOperands.cpp | 3 +- lib/Target/R600/SIISelLowering.cpp | 53 +- lib/Target/R600/SIInsertWaits.cpp | 6 +- lib/Target/R600/SIInstrFormats.td | 11 +- lib/Target/R600/SIInstrInfo.cpp | 112 +- lib/Target/R600/SIInstrInfo.h | 6 +- lib/Target/R600/SIInstrInfo.td | 569 +- lib/Target/R600/SIInstructions.td | 486 +- lib/Target/R600/SILoadStoreOptimizer.cpp | 5 +- lib/Target/R600/SIRegisterInfo.cpp | 84 +- lib/Target/R600/SIRegisterInfo.h | 9 +- lib/Target/R600/SIRegisterInfo.td | 7 - lib/Target/R600/SIShrinkInstructions.cpp | 8 +- lib/Target/README.txt | 41 +- .../Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp | 1 - lib/Target/Sparc/MCTargetDesc/SparcMCExpr.h | 4 +- .../Sparc/MCTargetDesc/SparcMCTargetDesc.cpp | 96 +- lib/Target/Sparc/MCTargetDesc/SparcMCTargetDesc.h | 1 - lib/Target/Sparc/SparcISelDAGToDAG.cpp | 9 +- lib/Target/Sparc/SparcISelLowering.cpp | 14 +- lib/Target/Sparc/SparcInstrInfo.cpp | 5 +- lib/Target/Sparc/SparcInstrInfo.h | 2 + lib/Target/Sparc/SparcRegisterInfo.cpp | 16 +- lib/Target/Sparc/SparcRegisterInfo.h | 15 +- lib/Target/Sparc/SparcTargetMachine.cpp | 11 +- lib/Target/Sparc/SparcTargetMachine.h | 6 +- .../SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp | 1 - .../SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp | 12 - .../SystemZ/MCTargetDesc/SystemZMCTargetDesc.h | 1 - lib/Target/SystemZ/SystemZISelDAGToDAG.cpp | 39 +- lib/Target/SystemZ/SystemZISelLowering.cpp | 5 +- lib/Target/SystemZ/SystemZISelLowering.h | 20 + lib/Target/SystemZ/SystemZInstrInfo.cpp | 15 +- lib/Target/SystemZ/SystemZInstrInfo.h | 8 +- lib/Target/SystemZ/SystemZRegisterInfo.cpp | 3 +- lib/Target/SystemZ/SystemZRegisterInfo.h | 6 +- lib/Target/SystemZ/SystemZTargetMachine.cpp | 10 +- lib/Target/SystemZ/SystemZTargetMachine.h | 6 +- lib/Target/Target.cpp | 4 - lib/Target/TargetLoweringObjectFile.cpp | 6 + lib/Target/TargetMachine.cpp | 17 +- lib/Target/TargetMachineC.cpp | 3 +- lib/Target/TargetSubtargetInfo.cpp | 20 +- lib/Target/X86/Android.mk | 2 + lib/Target/X86/AsmParser/X86AsmParser.cpp | 42 + lib/Target/X86/AsmParser/X86Operand.h | 8 +- lib/Target/X86/Disassembler/X86Disassembler.cpp | 42 +- .../X86/Disassembler/X86DisassemblerDecoder.cpp | 9 +- .../Disassembler/X86DisassemblerDecoderCommon.h | 12 - lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp | 8 +- lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp | 417 +- .../X86/MCTargetDesc/X86ELFRelocationInfo.cpp | 2 +- lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | 2 - lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp | 238 +- lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h | 19 +- .../X86/MCTargetDesc/X86MachORelocationInfo.cpp | 4 +- lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp | 8 +- lib/Target/X86/README-SSE.txt | 78 - lib/Target/X86/X86AsmPrinter.cpp | 3 - lib/Target/X86/X86FastISel.cpp | 152 +- lib/Target/X86/X86FloatingPoint.cpp | 6 +- lib/Target/X86/X86FrameLowering.cpp | 2 +- lib/Target/X86/X86ISelDAGToDAG.cpp | 21 +- lib/Target/X86/X86ISelLowering.cpp | 1258 +- lib/Target/X86/X86ISelLowering.h | 147 +- lib/Target/X86/X86InstrAVX512.td | 773 +- lib/Target/X86/X86InstrFragmentsSIMD.td | 108 +- lib/Target/X86/X86InstrInfo.cpp | 55 +- lib/Target/X86/X86InstrInfo.h | 21 +- lib/Target/X86/X86InstrInfo.td | 18 +- lib/Target/X86/X86InstrSSE.td | 163 +- lib/Target/X86/X86IntrinsicsInfo.h | 2 - lib/Target/X86/X86MCInstLower.cpp | 4 +- lib/Target/X86/X86RegisterInfo.cpp | 81 +- lib/Target/X86/X86RegisterInfo.h | 17 +- lib/Target/X86/X86SchedHaswell.td | 4 +- lib/Target/X86/X86SelectionDAGInfo.cpp | 8 +- lib/Target/X86/X86TargetMachine.cpp | 10 +- lib/Target/X86/X86TargetMachine.h | 4 - lib/Target/X86/X86TargetObjectFile.cpp | 42 +- lib/Target/X86/X86TargetObjectFile.h | 23 +- .../XCore/MCTargetDesc/XCoreMCTargetDesc.cpp | 17 +- lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.h | 2 + lib/Target/XCore/XCoreISelDAGToDAG.cpp | 8 +- lib/Target/XCore/XCoreISelLowering.h | 6 + lib/Target/XCore/XCoreRegisterInfo.cpp | 4 +- lib/Target/XCore/XCoreRegisterInfo.h | 3 +- lib/Target/XCore/XCoreTargetMachine.cpp | 5 +- lib/Target/XCore/XCoreTargetMachine.h | 7 +- lib/Transforms/IPO/ArgumentPromotion.cpp | 80 +- lib/Transforms/IPO/ConstantMerge.cpp | 25 +- lib/Transforms/IPO/GlobalDCE.cpp | 26 +- lib/Transforms/IPO/GlobalOpt.cpp | 106 +- lib/Transforms/IPO/Inliner.cpp | 40 +- lib/Transforms/IPO/LowerBitSets.cpp | 276 +- lib/Transforms/IPO/MergeFunctions.cpp | 54 +- lib/Transforms/IPO/PassManagerBuilder.cpp | 48 +- lib/Transforms/InstCombine/InstCombineAddSub.cpp | 88 +- lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 18 +- lib/Transforms/InstCombine/InstCombineCalls.cpp | 142 +- lib/Transforms/InstCombine/InstCombineCasts.cpp | 148 +- lib/Transforms/InstCombine/InstCombineCompares.cpp | 63 +- lib/Transforms/InstCombine/InstCombineInternal.h | 24 +- .../InstCombine/InstCombineLoadStoreAlloca.cpp | 203 +- .../InstCombine/InstCombineMulDivRem.cpp | 30 +- lib/Transforms/InstCombine/InstCombinePHI.cpp | 8 +- lib/Transforms/InstCombine/InstCombineSelect.cpp | 98 +- lib/Transforms/InstCombine/InstCombineShifts.cpp | 25 +- .../InstCombine/InstCombineSimplifyDemanded.cpp | 148 +- .../InstCombine/InstCombineVectorOps.cpp | 7 +- .../InstCombine/InstructionCombining.cpp | 258 +- .../Instrumentation/AddressSanitizer.cpp | 818 +- lib/Transforms/Instrumentation/BoundsChecking.cpp | 26 +- .../Instrumentation/DataFlowSanitizer.cpp | 24 +- lib/Transforms/Instrumentation/GCOVProfiling.cpp | 39 +- lib/Transforms/Instrumentation/MemorySanitizer.cpp | 57 +- .../Instrumentation/SanitizerCoverage.cpp | 157 +- lib/Transforms/Instrumentation/ThreadSanitizer.cpp | 62 +- lib/Transforms/ObjCARC/ARCInstKind.cpp | 96 +- lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h | 48 +- lib/Transforms/ObjCARC/Android.mk | 1 + lib/Transforms/ObjCARC/BlotMapVector.h | 108 + lib/Transforms/ObjCARC/CMakeLists.txt | 1 + lib/Transforms/ObjCARC/DependencyAnalysis.cpp | 16 +- lib/Transforms/ObjCARC/ObjCARC.h | 55 +- lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp | 11 +- lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h | 4 +- lib/Transforms/ObjCARC/ObjCARCContract.cpp | 11 +- lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 1308 +- lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp | 28 +- lib/Transforms/ObjCARC/ProvenanceAnalysis.h | 5 +- .../ObjCARC/ProvenanceAnalysisEvaluator.cpp | 4 +- lib/Transforms/ObjCARC/PtrState.cpp | 404 + lib/Transforms/ObjCARC/PtrState.h | 210 + lib/Transforms/Scalar/AlignmentFromAssumptions.cpp | 13 +- lib/Transforms/Scalar/Android.mk | 1 + lib/Transforms/Scalar/BDCE.cpp | 31 +- lib/Transforms/Scalar/CMakeLists.txt | 1 + lib/Transforms/Scalar/ConstantHoisting.cpp | 1 + lib/Transforms/Scalar/ConstantProp.cpp | 4 +- .../Scalar/CorrelatedValuePropagation.cpp | 6 +- lib/Transforms/Scalar/DeadStoreElimination.cpp | 60 +- lib/Transforms/Scalar/EarlyCSE.cpp | 18 +- lib/Transforms/Scalar/GVN.cpp | 134 +- lib/Transforms/Scalar/IndVarSimplify.cpp | 85 +- .../Scalar/InductiveRangeCheckElimination.cpp | 401 +- lib/Transforms/Scalar/JumpThreading.cpp | 15 +- lib/Transforms/Scalar/LICM.cpp | 79 +- lib/Transforms/Scalar/LoadCombine.cpp | 37 +- lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 37 +- lib/Transforms/Scalar/LoopInstSimplify.cpp | 3 +- lib/Transforms/Scalar/LoopInterchange.cpp | 1154 + lib/Transforms/Scalar/LoopRerollPass.cpp | 30 +- lib/Transforms/Scalar/LoopRotation.cpp | 8 +- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 11 +- lib/Transforms/Scalar/LoopUnrollPass.cpp | 19 +- lib/Transforms/Scalar/LoopUnswitch.cpp | 4 +- lib/Transforms/Scalar/MemCpyOptimizer.cpp | 86 +- lib/Transforms/Scalar/MergedLoadStoreMotion.cpp | 3 +- lib/Transforms/Scalar/Reassociate.cpp | 34 +- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 314 +- lib/Transforms/Scalar/SCCP.cpp | 14 +- lib/Transforms/Scalar/SROA.cpp | 89 +- lib/Transforms/Scalar/SampleProfile.cpp | 3 + lib/Transforms/Scalar/Scalar.cpp | 2 +- lib/Transforms/Scalar/ScalarReplAggregates.cpp | 190 +- lib/Transforms/Scalar/Scalarizer.cpp | 26 +- .../Scalar/SeparateConstOffsetFromGEP.cpp | 71 +- lib/Transforms/Scalar/SimplifyCFGPass.cpp | 18 +- lib/Transforms/Scalar/Sink.cpp | 6 +- .../Scalar/StraightLineStrengthReduce.cpp | 395 +- lib/Transforms/Scalar/StructurizeCFG.cpp | 3 +- lib/Transforms/Scalar/TailRecursionElimination.cpp | 70 +- lib/Transforms/Utils/BuildLibCalls.cpp | 127 +- lib/Transforms/Utils/CloneFunction.cpp | 77 +- lib/Transforms/Utils/CodeExtractor.cpp | 30 +- lib/Transforms/Utils/CtorUtils.cpp | 3 +- lib/Transforms/Utils/InlineFunction.cpp | 132 +- lib/Transforms/Utils/Local.cpp | 22 +- lib/Transforms/Utils/LoopSimplify.cpp | 23 +- lib/Transforms/Utils/LoopUnroll.cpp | 9 +- lib/Transforms/Utils/LoopUnrollRuntime.cpp | 4 +- lib/Transforms/Utils/LowerSwitch.cpp | 11 +- lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 5 +- lib/Transforms/Utils/SSAUpdater.cpp | 4 +- lib/Transforms/Utils/SimplifyCFG.cpp | 353 +- lib/Transforms/Utils/SimplifyIndVar.cpp | 118 +- lib/Transforms/Utils/SimplifyInstructions.cpp | 3 +- lib/Transforms/Utils/SimplifyLibCalls.cpp | 264 +- lib/Transforms/Utils/SymbolRewriter.cpp | 13 +- lib/Transforms/Utils/ValueMapper.cpp | 6 +- lib/Transforms/Vectorize/BBVectorize.cpp | 35 +- lib/Transforms/Vectorize/LoopVectorize.cpp | 412 +- lib/Transforms/Vectorize/SLPVectorizer.cpp | 114 +- projects/CMakeLists.txt | 4 +- test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll | 8 +- test/Analysis/BasicAA/2003-03-04-GEPCrash.ll | 4 +- test/Analysis/BasicAA/2003-04-22-GEPProblem.ll | 8 +- test/Analysis/BasicAA/2003-04-25-GEPCrash.ll | 4 +- test/Analysis/BasicAA/2003-05-21-GEP-Problem.ll | 6 +- test/Analysis/BasicAA/2003-06-01-AliasCrash.ll | 12 +- test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll | 4 +- test/Analysis/BasicAA/2003-09-19-LocalArgument.ll | 4 +- test/Analysis/BasicAA/2003-11-04-SimpleCases.ll | 10 +- test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll | 8 +- test/Analysis/BasicAA/2004-07-28-MustAliasbug.ll | 6 +- .../BasicAA/2006-03-03-BadArraySubscript.ll | 12 +- .../BasicAA/2006-11-03-BasicAAVectorCrash.ll | 4 +- .../BasicAA/2007-01-13-BasePointerBadNoAlias.ll | 8 +- test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll | 8 +- .../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 | 4 +- test/Analysis/BasicAA/2008-06-02-GEPTailCrash.ll | 4 +- test/Analysis/BasicAA/2008-11-23-NoaliasRet.ll | 2 +- test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll | 6 +- test/Analysis/BasicAA/2009-10-13-AtomicModRef.ll | 8 +- .../Analysis/BasicAA/2009-10-13-GEP-BaseNoAlias.ll | 6 +- .../BasicAA/2010-09-15-GEP-SignedArithmetic.ll | 6 +- .../BasicAA/2014-03-18-Maxlookup-reached.ll | 22 +- test/Analysis/BasicAA/aligned-overread.ll | 8 +- test/Analysis/BasicAA/args-rets-allocas-loads.ll | 4 +- test/Analysis/BasicAA/byval.ll | 4 +- test/Analysis/BasicAA/cas.ll | 4 +- test/Analysis/BasicAA/constant-over-index.ll | 4 +- test/Analysis/BasicAA/cs-cs.ll | 10 +- test/Analysis/BasicAA/dag.ll | 2 +- test/Analysis/BasicAA/featuretest.ll | 50 +- test/Analysis/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 | 50 +- 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/basic.ll | 4 +- test/Analysis/BranchProbabilityInfo/basic.ll | 12 +- test/Analysis/BranchProbabilityInfo/loop.ll | 20 +- test/Analysis/BranchProbabilityInfo/pr18705.ll | 18 +- .../Analysis/CFLAliasAnalysis/asm-global-bugfix.ll | 4 +- test/Analysis/CFLAliasAnalysis/branch-alias.ll | 73 + test/Analysis/CFLAliasAnalysis/const-expr-gep.ll | 48 +- .../CFLAliasAnalysis/constant-over-index.ll | 4 +- .../CFLAliasAnalysis/full-store-partial-alias.ll | 8 +- .../CFLAliasAnalysis/gep-signed-arithmetic.ll | 6 +- .../CFLAliasAnalysis/multilevel-combine.ll | 2 +- test/Analysis/CFLAliasAnalysis/multilevel.ll | 4 +- test/Analysis/CFLAliasAnalysis/must-and-partial.ll | 16 +- test/Analysis/CFLAliasAnalysis/simple.ll | 10 +- .../CFLAliasAnalysis/stratified-attrs-indexing.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 +- test/Analysis/CostModel/X86/testshiftlshr.ll | 16 +- test/Analysis/CostModel/X86/testshiftshl.ll | 16 +- test/Analysis/CostModel/X86/vectorized-loop.ll | 16 +- test/Analysis/Delinearization/a.ll | 4 +- test/Analysis/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 +- .../Delinearization/multidim_only_ivs_2d_nested.ll | 2 +- .../Delinearization/multidim_only_ivs_3d.ll | 4 +- .../Delinearization/multidim_only_ivs_3d_cast.ll | 2 +- ...tidim_two_accesses_different_delinearization.ll | 4 +- test/Analysis/Delinearization/undef.ll | 4 +- test/Analysis/DependenceAnalysis/Banerjee.ll | 130 +- test/Analysis/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/Preliminary.ll | 86 +- test/Analysis/DependenceAnalysis/Propagating.ll | 102 +- test/Analysis/DependenceAnalysis/Separability.ll | 56 +- test/Analysis/DependenceAnalysis/StrongSIV.ll | 88 +- test/Analysis/DependenceAnalysis/SymbolicRDIV.ll | 58 +- test/Analysis/DependenceAnalysis/SymbolicSIV.ll | 72 +- test/Analysis/DependenceAnalysis/UsefulGEP.ll | 51 + .../Analysis/DependenceAnalysis/WeakCrossingSIV.ll | 56 +- test/Analysis/DependenceAnalysis/WeakZeroDstSIV.ll | 56 +- test/Analysis/DependenceAnalysis/WeakZeroSrcSIV.ll | 56 +- test/Analysis/DependenceAnalysis/ZIV.ll | 18 +- test/Analysis/Dominators/invoke.ll | 2 +- .../GlobalsModRef/2008-09-03-ReadGlobals.ll | 2 +- test/Analysis/GlobalsModRef/aliastest.ll | 2 +- test/Analysis/GlobalsModRef/chaining-analysis.ll | 2 +- test/Analysis/GlobalsModRef/indirect-global.ll | 8 +- test/Analysis/GlobalsModRef/modreftest.ll | 2 +- test/Analysis/GlobalsModRef/pr12351.ll | 6 +- test/Analysis/GlobalsModRef/volatile-instrs.ll | 4 +- test/Analysis/LazyCallGraph/basic.ll | 8 +- test/Analysis/Lint/cppeh-catch-intrinsics-clean.ll | 6 +- test/Analysis/Lint/cppeh-catch-intrinsics.ll | 28 +- .../backward-dep-different-types.ll | 14 +- .../unsafe-and-rt-checks-no-dbg.ll | 60 - .../LoopAccessAnalysis/unsafe-and-rt-checks.ll | 38 +- .../memdep_requires_dominator_tree.ll | 6 +- .../ScalarEvolution/2007-07-15-NegativeStride.ll | 2 +- .../ScalarEvolution/2008-07-12-UnneededSelect1.ll | 6 +- .../ScalarEvolution/2008-12-08-FiniteSGE.ll | 6 +- .../2009-01-02-SignedNegativeStride.ll | 4 +- .../ScalarEvolution/2009-05-09-PointerEdgeCount.ll | 8 +- .../2009-07-04-GroupConstantsWidthMismatch.ll | 4 +- .../ScalarEvolution/2012-03-26-LoadConstant.ll | 8 +- .../ScalarEvolution/SolveQuadraticEquation.ll | 2 +- .../ScalarEvolution/avoid-infinite-recursion-0.ll | 2 +- test/Analysis/ScalarEvolution/avoid-smax-0.ll | 8 +- test/Analysis/ScalarEvolution/avoid-smax-1.ll | 30 +- test/Analysis/ScalarEvolution/ext-antecedent.ll | 45 + test/Analysis/ScalarEvolution/fold.ll | 14 +- .../ScalarEvolution/infer-prestart-no-wrap.ll | 6 +- test/Analysis/ScalarEvolution/infer-via-ranges.ll | 30 + .../ScalarEvolution/load-with-range-metadata.ll | 4 +- test/Analysis/ScalarEvolution/load.ll | 28 +- .../max-trip-count-address-space.ll | 6 +- test/Analysis/ScalarEvolution/max-trip-count.ll | 22 +- test/Analysis/ScalarEvolution/min-max-exprs.ll | 6 +- .../ScalarEvolution/nowrap-preinc-limits.ll | 44 + test/Analysis/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/pr22674.ll | 14 +- test/Analysis/ScalarEvolution/pr22856.ll | 33 + test/Analysis/ScalarEvolution/range-signedness.ll | 39 + test/Analysis/ScalarEvolution/scev-aa.ll | 52 +- .../ScalarEvolution/scev-prestart-nowrap.ll | 2 +- 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 +- .../Analysis/ScalarEvolution/zext-signed-addrec.ll | 8 +- test/Analysis/ScalarEvolution/zext-wrap.ll | 2 +- test/Analysis/ScopedNoAliasAA/basic-domains.ll | 30 +- test/Analysis/ScopedNoAliasAA/basic.ll | 16 +- test/Analysis/ScopedNoAliasAA/basic2.ll | 22 +- test/Analysis/TypeBasedAliasAnalysis/PR17620.ll | 8 +- test/Analysis/TypeBasedAliasAnalysis/aliastest.ll | 16 +- .../TypeBasedAliasAnalysis/argument-promotion.ll | 4 +- test/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 +- test/Analysis/TypeBasedAliasAnalysis/precedence.ll | 6 +- test/Analysis/TypeBasedAliasAnalysis/sink.ll | 4 +- test/Analysis/TypeBasedAliasAnalysis/tbaa-path.ll | 198 +- .../ValueTracking/memory-dereferenceable.ll | 14 +- test/Analysis/ValueTracking/pr23011.ll | 15 + test/Assembler/2002-04-29-NameBinding.ll | 2 +- test/Assembler/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-08-20-ConstantExprGEP-Fold.ll | 2 +- test/Assembler/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/2009-07-24-ZeroArgGEP.ll | 2 +- .../2010-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-size-one.ll | 11 + test/Assembler/atomic.ll | 8 +- test/Assembler/auto_upgrade_intrinsics.ll | 2 +- test/Assembler/debug-info.ll | 18 +- test/Assembler/drop-debug-info.ll | 12 +- test/Assembler/fast-math-flags.ll | 48 +- test/Assembler/flags.ll | 16 +- test/Assembler/functionlocal-metadata.ll | 55 - test/Assembler/getelementptr.ll | 26 +- 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 | 2 +- test/Assembler/getelementptr_vec_struct.ll | 2 +- test/Assembler/half-constprop.ll | 4 +- test/Assembler/half-conv.ll | 2 +- test/Assembler/insertextractvalue.ll | 2 +- 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 + .../invalid-generic-debug-node-tag-overflow.ll | 2 +- .../invalid-gep-mismatched-explicit-type.ll | 6 + .../Assembler/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 + test/Assembler/invalid-mdbasictype-missing-tag.ll | 4 - .../invalid-mdcompileunit-language-overflow.ll | 2 +- test/Assembler/invalid-mdexpression-large.ll | 2 +- .../invalid-mdglobalvariable-missing-name.ll | 4 - .../invalid-mdlocation-overflow-column.ll | 2 +- test/Assembler/invalid-mdlocation-overflow-line.ll | 2 +- .../invalid-mdobjcproperty-missing-name.ll | 4 - .../Assembler/invalid-mdsubprogram-missing-name.ll | 4 - test/Assembler/invalid-mdsubrange-count-large.ll | 2 +- .../Assembler/invalid-mdsubrange-count-negative.ll | 2 +- ...invalid-mdtemplatevalueparameter-missing-tag.ll | 4 - ...nvalid-mdtemplatevalueparameter-missing-type.ll | 5 - test/Assembler/mdfile-escaped-chars.ll | 9 + test/Assembler/mdglobalvariable.ll | 8 +- test/Assembler/mdimportedentity.ll | 12 +- test/Assembler/mdlocalvariable.ll | 14 +- test/Assembler/mdlocation.ll | 4 +- test/Assembler/mdnamespace.ll | 6 +- test/Assembler/mdobjcproperty.ll | 6 +- test/Assembler/mdsubprogram.ll | 8 +- test/Assembler/mdtemplateparameter.ll | 18 +- test/Assembler/mdtype-large-values.ll | 2 +- test/Assembler/metadata-function-local.ll | 20 + test/Assembler/metadata.ll | 2 +- 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 | 2 +- .../Inputs/invalid-gep-mismatched-explicit-type.bc | Bin 0 -> 448 bytes ...nvalid-gep-operator-mismatched-explicit-type.bc | Bin 0 -> 492 bytes .../invalid-load-mismatched-explicit-type.bc | Bin 0 -> 432 bytes test/Bitcode/arm32_neon_vcnt_upgrade.ll | 4 +- test/Bitcode/case-ranges-3.3.ll | 4 +- test/Bitcode/constantsTest.3.2.ll | 8 +- test/Bitcode/function-encoding-rel-operands.ll | 4 +- test/Bitcode/highLevelStructure.3.2.ll | 2 +- test/Bitcode/invalid.test | 9 + test/Bitcode/memInstructions.3.2.ll | 142 +- test/Bitcode/metadata-2.ll | 6 +- test/Bitcode/old-aliases.ll | 4 +- test/Bitcode/upgrade-loop-metadata.ll | 4 +- test/Bitcode/use-list-order.ll | 14 +- test/BugPoint/compile-custom.ll | 0 test/BugPoint/metadata.ll | 26 +- test/CMakeLists.txt | 12 +- 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 | 79 +- .../AArch64/aarch64-2014-12-02-combine-soften.ll | 2 +- .../AArch64/aarch64-a57-fp-load-balancing.ll | 168 +- .../aarch64-address-type-promotion-assertion.ll | 12 +- .../AArch64/aarch64-address-type-promotion.ll | 10 +- test/CodeGen/AArch64/aarch64-be-bv.ll | 64 +- .../AArch64/aarch64-fix-cortex-a53-835769.ll | 58 +- test/CodeGen/AArch64/aarch64-gep-opt.ll | 40 +- test/CodeGen/AArch64/aarch64-smull.ll | 96 +- test/CodeGen/AArch64/addsub-shifted.ll | 20 +- test/CodeGen/AArch64/addsub.ll | 18 +- test/CodeGen/AArch64/addsub_ext.ll | 16 +- test/CodeGen/AArch64/alloca.ll | 2 +- test/CodeGen/AArch64/and-mask-removal.ll | 8 +- .../AArch64/arm64-2011-03-17-AsmPrinterCrash.ll | 34 +- .../arm64-2011-03-21-Unaligned-Frame-Index.ll | 2 +- test/CodeGen/AArch64/arm64-2011-04-21-CPSRBug.ll | 2 +- .../CodeGen/AArch64/arm64-2011-10-18-LdStOptBug.ll | 2 +- .../AArch64/arm64-2012-01-11-ComparisonDAGCrash.ll | 2 +- .../CodeGen/AArch64/arm64-2012-05-22-LdStOptBug.ll | 18 +- test/CodeGen/AArch64/arm64-2012-06-06-FPToUI.ll | 24 +- .../AArch64/arm64-2012-07-11-InstrEmitterBug.ll | 2 +- test/CodeGen/AArch64/arm64-abi-varargs.ll | 42 +- test/CodeGen/AArch64/arm64-abi.ll | 12 +- test/CodeGen/AArch64/arm64-abi_align.ll | 68 +- test/CodeGen/AArch64/arm64-addr-mode-folding.ll | 64 +- test/CodeGen/AArch64/arm64-addr-type-promotion.ll | 26 +- test/CodeGen/AArch64/arm64-addrmode.ll | 48 +- .../AArch64/arm64-alloc-no-stack-realign.ll | 4 +- .../AArch64/arm64-alloca-frame-pointer-offset.ll | 10 +- test/CodeGen/AArch64/arm64-andCmpBrToTBZ.ll | 4 +- test/CodeGen/AArch64/arm64-atomic-128.ll | 4 +- test/CodeGen/AArch64/arm64-atomic.ll | 102 +- test/CodeGen/AArch64/arm64-basic-pic.ll | 8 +- test/CodeGen/AArch64/arm64-bcc.ll | 8 +- .../AArch64/arm64-big-endian-bitconverts.ll | 168 +- test/CodeGen/AArch64/arm64-big-endian-varargs.ll | 18 +- .../AArch64/arm64-big-endian-vector-caller.ll | 168 +- test/CodeGen/AArch64/arm64-big-stack.ll | 2 +- test/CodeGen/AArch64/arm64-bitfield-extract.ll | 52 +- test/CodeGen/AArch64/arm64-blockaddress.ll | 2 +- test/CodeGen/AArch64/arm64-call-tailcalls.ll | 2 +- test/CodeGen/AArch64/arm64-cast-opt.ll | 10 +- test/CodeGen/AArch64/arm64-ccmp-heuristics.ll | 108 +- test/CodeGen/AArch64/arm64-ccmp.ll | 6 +- test/CodeGen/AArch64/arm64-code-model-large-abs.ll | 8 +- .../AArch64/arm64-collect-loh-garbage-crash.ll | 8 +- test/CodeGen/AArch64/arm64-collect-loh-str.ll | 4 +- test/CodeGen/AArch64/arm64-collect-loh.ll | 10 +- test/CodeGen/AArch64/arm64-complex-copy-noneon.ll | 12 +- test/CodeGen/AArch64/arm64-const-addr.ll | 12 +- test/CodeGen/AArch64/arm64-convert-v4f64.ll | 4 +- test/CodeGen/AArch64/arm64-cse.ll | 8 +- .../AArch64/arm64-dagcombiner-dead-indexed-load.ll | 4 +- .../AArch64/arm64-dagcombiner-load-slicing.ll | 42 +- test/CodeGen/AArch64/arm64-dup.ll | 16 +- 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 +- test/CodeGen/AArch64/arm64-extload-knownzero.ll | 2 +- .../CodeGen/AArch64/arm64-fast-isel-addr-offset.ll | 12 +- test/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 +- test/CodeGen/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 +- test/CodeGen/AArch64/arm64-fast-isel-indirectbr.ll | 10 +- test/CodeGen/AArch64/arm64-fast-isel-intrinsic.ll | 20 +- .../CodeGen/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 | 20 +- .../arm64-fastisel-gep-promote-before-add.ll | 6 +- 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 +- test/CodeGen/AArch64/arm64-i16-subreg-extract.ll | 2 +- test/CodeGen/AArch64/arm64-indexed-memory.ll | 126 +- .../CodeGen/AArch64/arm64-indexed-vector-ldst-2.ll | 6 +- test/CodeGen/AArch64/arm64-indexed-vector-ldst.ll | 1344 +- test/CodeGen/AArch64/arm64-inline-asm.ll | 14 +- test/CodeGen/AArch64/arm64-large-frame.ll | 6 +- test/CodeGen/AArch64/arm64-ld1.ll | 360 +- test/CodeGen/AArch64/arm64-ldp.ll | 220 +- test/CodeGen/AArch64/arm64-ldur.ll | 28 +- test/CodeGen/AArch64/arm64-memcpy-inline.ll | 14 +- test/CodeGen/AArch64/arm64-memset-inline.ll | 2 +- test/CodeGen/AArch64/arm64-misched-basic-A53.ll | 30 +- test/CodeGen/AArch64/arm64-misched-basic-A57.ll | 32 +- test/CodeGen/AArch64/arm64-neon-simd-ldst-one.ll | 52 +- .../AArch64/arm64-patchpoint-scratch-regs.ll | 2 +- test/CodeGen/AArch64/arm64-patchpoint.ll | 8 +- test/CodeGen/AArch64/arm64-pic-local-symbol.ll | 4 +- test/CodeGen/AArch64/arm64-platform-reg.ll | 2 +- test/CodeGen/AArch64/arm64-prefetch.ll | 50 +- test/CodeGen/AArch64/arm64-redzone.ll | 6 +- .../AArch64/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 | 10 +- test/CodeGen/AArch64/arm64-scvt.ll | 176 +- .../CodeGen/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.ll | 2 +- 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 +- test/CodeGen/AArch64/arm64-tls-dynamic-together.ll | 2 +- test/CodeGen/AArch64/arm64-tls-dynamics.ll | 136 +- test/CodeGen/AArch64/arm64-tls-execs.ll | 29 +- .../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-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 +- test/CodeGen/AArch64/arm64-zextload-unscaled.ll | 12 +- test/CodeGen/AArch64/arm64-zip.ll | 32 +- test/CodeGen/AArch64/assertion-rc-mismatch.ll | 4 +- test/CodeGen/AArch64/atomic-ops-not-barriers.ll | 2 +- test/CodeGen/AArch64/atomic-ops.ll | 14 +- test/CodeGen/AArch64/basic-pic.ll | 8 +- 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 +- test/CodeGen/AArch64/combine-comparisons-by-cse.ll | 88 +- 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-truncate-combine.ll | 41 + test/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 | 52 +- test/CodeGen/AArch64/fast-isel-addressing-modes.ll | 92 +- .../CodeGen/AArch64/fast-isel-branch-cond-split.ll | 2 +- test/CodeGen/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-logic-op.ll | 2 +- test/CodeGen/AArch64/fast-isel-memcpy.ll | 2 +- test/CodeGen/AArch64/fast-isel-mul.ll | 2 +- test/CodeGen/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 +- .../CodeGen/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/fp128-folding.ll | 2 +- test/CodeGen/AArch64/fp16-instructions.ll | 2 +- test/CodeGen/AArch64/fp16-v4-instructions.ll | 11 +- test/CodeGen/AArch64/fp16-v8-instructions.ll | 2 +- test/CodeGen/AArch64/fp16-vector-load-store.ll | 12 +- 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 +- .../CodeGen/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 +- test/CodeGen/AArch64/half.ll | 8 +- test/CodeGen/AArch64/i1-contents.ll | 4 +- test/CodeGen/AArch64/i128-align.ll | 4 +- test/CodeGen/AArch64/inline-asm-globaladdress.ll | 20 + test/CodeGen/AArch64/intrinsics-memory-barrier.ll | 6 +- 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/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 | 101 + test/CodeGen/AArch64/machine_cse.ll | 10 +- test/CodeGen/AArch64/mul_pow2.ll | 3 +- test/CodeGen/AArch64/neon-fpround_f128.ll | 4 +- test/CodeGen/AArch64/neon-truncStore-extLoad.ll | 6 +- test/CodeGen/AArch64/nzcv-save.ll | 4 +- test/CodeGen/AArch64/paired-load.ll | 8 +- test/CodeGen/AArch64/pic-eh-stubs.ll | 2 +- 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/rm_redundant_cmp.ll | 64 +- test/CodeGen/AArch64/sibling-call.ll | 2 +- test/CodeGen/AArch64/stack-guard-remat-bitcast.ll | 2 +- test/CodeGen/AArch64/stack_guard_remat.ll | 2 +- test/CodeGen/AArch64/tbz-tbnz.ll | 2 +- test/CodeGen/AArch64/tst-br.ll | 4 +- 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 +- test/CodeGen/ARM/2007-03-21-JoinIntervalsCrash.ll | 8 +- test/CodeGen/ARM/2007-03-27-RegScavengerAssert.ll | 6 +- test/CodeGen/ARM/2007-04-02-RegScavengerAssert.ll | 6 +- test/CodeGen/ARM/2007-04-03-UndefinedSymbol.ll | 48 +- test/CodeGen/ARM/2007-04-30-CombinerCrash.ll | 10 +- test/CodeGen/ARM/2007-05-03-BadPostIndexedLd.ll | 12 +- test/CodeGen/ARM/2007-05-07-tailmerge-1.ll | 6 +- test/CodeGen/ARM/2007-05-09-tailmerge-2.ll | 8 +- test/CodeGen/ARM/2007-05-22-tailmerge-3.ll | 8 +- test/CodeGen/ARM/2007-05-23-BadPreIndexedStore.ll | 6 +- test/CodeGen/ARM/2007-08-15-ReuseBug.ll | 18 +- test/CodeGen/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 +- test/CodeGen/ARM/2008-03-07-RegScavengerAssert.ll | 4 +- test/CodeGen/ARM/2008-04-04-ScavengerAssert.ll | 2 +- test/CodeGen/ARM/2008-04-10-ScavengerAssert.ll | 36 +- test/CodeGen/ARM/2008-05-19-LiveIntervalsBug.ll | 6 +- test/CodeGen/ARM/2008-05-19-ScavengerAssert.ll | 2 +- test/CodeGen/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 +- test/CodeGen/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-FloatUndef.ll | 2 +- test/CodeGen/ARM/2009-04-09-RegScavengerAsm.ll | 2 +- test/CodeGen/ARM/2009-05-07-RegAllocLocal.ll | 2 +- test/CodeGen/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 +- test/CodeGen/ARM/2009-06-30-RegScavengerAssert.ll | 18 +- test/CodeGen/ARM/2009-06-30-RegScavengerAssert2.ll | 14 +- test/CodeGen/ARM/2009-06-30-RegScavengerAssert3.ll | 14 +- test/CodeGen/ARM/2009-06-30-RegScavengerAssert4.ll | 18 +- test/CodeGen/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 +- test/CodeGen/ARM/2009-07-22-ScavengerAssert.ll | 2 +- test/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 +- .../ARM/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 +- test/CodeGen/ARM/2009-09-13-InvalidSuperReg.ll | 14 +- test/CodeGen/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 | 16 +- 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 +- test/CodeGen/ARM/2009-11-07-SubRegAsmPrinting.ll | 8 +- test/CodeGen/ARM/2009-11-13-ScavengerAssert.ll | 6 +- test/CodeGen/ARM/2009-11-13-ScavengerAssert2.ll | 46 +- test/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 +- test/CodeGen/ARM/2010-04-15-ScavengerDebugValue.ll | 24 +- test/CodeGen/ARM/2010-05-17-FastAllocCrash.ll | 8 +- test/CodeGen/ARM/2010-05-18-LocalAllocCrash.ll | 4 +- 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 +- test/CodeGen/ARM/2010-06-11-vmovdrr-bitcast.ll | 2 +- test/CodeGen/ARM/2010-06-21-LdStMultipleBug.ll | 36 +- test/CodeGen/ARM/2010-06-21-nondarwin-tc.ll | 40 +- .../ARM/2010-06-25-Thumb2ITInvalidIterator.ll | 44 +- 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 | 102 +- test/CodeGen/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 | 10 +- test/CodeGen/ARM/2010-12-17-LocalStackSlotCrash.ll | 2 +- test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll | 94 +- test/CodeGen/ARM/2011-02-04-AntidepMultidef.ll | 2 +- test/CodeGen/ARM/2011-02-07-AntidepClobber.ll | 12 +- test/CodeGen/ARM/2011-03-10-DAGCombineCrash.ll | 6 +- test/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 +- test/CodeGen/ARM/2011-04-26-SchedTweak.ll | 10 +- test/CodeGen/ARM/2011-06-29-MergeGlobalsAlign.ll | 2 +- test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll | 88 +- test/CodeGen/ARM/2011-08-29-SchedCycle.ll | 2 +- test/CodeGen/ARM/2011-08-29-ldr_pre_imm.ll | 6 +- test/CodeGen/ARM/2011-09-09-OddVectorDivision.ll | 8 +- test/CodeGen/ARM/2011-09-28-CMovCombineBug.ll | 2 +- .../ARM/2011-10-26-ExpandUnalignedLoadCrash.ll | 8 +- .../ARM/2011-11-07-PromoteVectorLoadStore.ll | 8 +- test/CodeGen/ARM/2011-11-09-BitcastVectorDouble.ll | 2 +- .../ARM/2011-11-09-IllegalVectorFPIntConvert.ll | 8 +- test/CodeGen/ARM/2011-11-14-EarlyClobber.ll | 24 +- test/CodeGen/ARM/2011-11-28-DAGCombineBug.ll | 16 +- test/CodeGen/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 +- .../CodeGen/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 +- test/CodeGen/ARM/2012-06-12-SchedMemLatency.ll | 4 +- test/CodeGen/ARM/2012-08-04-DtripleSpillReload.ll | 2 +- test/CodeGen/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 +- test/CodeGen/ARM/2012-08-27-CopyPhysRegCrash.ll | 6 +- test/CodeGen/ARM/2012-10-04-AAPCS-byval-align8.ll | 8 +- test/CodeGen/ARM/2012-10-04-FixedFrame-vs-byval.ll | 6 +- .../ARM/2012-10-18-PR14099-ByvalFrameAddress.ll | 3 +- test/CodeGen/ARM/2013-01-21-PR14992.ll | 12 +- .../ARM/2013-04-05-Small-ByVal-Structs-PR15293.ll | 16 +- .../CodeGen/ARM/2013-04-18-load-overlap-PR14824.ll | 20 +- test/CodeGen/ARM/2013-04-21-AAPCS-VA-C.1.cp.ll | 2 +- .../2013-05-02-AAPCS-ByVal-Structs-C4-C5-VFP.ll | 9 +- test/CodeGen/ARM/2013-05-07-ByteLoadSameAddress.ll | 38 +- test/CodeGen/ARM/2013-05-13-AAPCS-byval-padding.ll | 8 +- test/CodeGen/ARM/2013-05-31-char-shift-crash.ll | 2 +- test/CodeGen/ARM/2013-07-29-vector-or-combine.ll | 2 +- .../ARM/2014-01-09-pseudo_expand_implicit_reg.ll | 8 +- .../ARM/2014-02-21-byval-reg-split-alignment.ll | 5 +- .../ARM/2014-07-18-earlyclobber-str-post.ll | 6 +- test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll | 32 +- test/CodeGen/ARM/MergeConsecutiveStores.ll | 48 +- test/CodeGen/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 +- test/CodeGen/ARM/Windows/movw-movt-relocations.ll | 4 +- test/CodeGen/ARM/Windows/pic.ll | 2 +- test/CodeGen/ARM/Windows/read-only-data.ll | 2 +- .../CodeGen/ARM/Windows/stack-probe-non-default.ll | 6 +- test/CodeGen/ARM/Windows/vla.ll | 4 +- test/CodeGen/ARM/a15-partial-update.ll | 8 +- test/CodeGen/ARM/addrmode.ll | 4 +- test/CodeGen/ARM/aliases.ll | 6 +- test/CodeGen/ARM/alloc-no-stack-realign.ll | 8 +- test/CodeGen/ARM/arm-and-tst-peephole.ll | 18 +- 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 | 16 +- 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 | 24 +- test/CodeGen/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 | 41 + test/CodeGen/ARM/bx_fold.ll | 2 +- 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 | 46 +- test/CodeGen/ARM/coalesce-subregs.ll | 42 +- test/CodeGen/ARM/code-placement.ll | 8 +- test/CodeGen/ARM/commute-movcc.ll | 4 +- test/CodeGen/ARM/compare-call.ll | 6 +- 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 +- test/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 | 100 +- test/CodeGen/ARM/debug-frame.ll | 40 +- test/CodeGen/ARM/debug-info-arg.ll | 54 +- test/CodeGen/ARM/debug-info-blocks.ll | 330 +- test/CodeGen/ARM/debug-info-branch-folding.ll | 94 +- test/CodeGen/ARM/debug-info-d16-reg.ll | 90 +- test/CodeGen/ARM/debug-info-qreg.ll | 98 +- test/CodeGen/ARM/debug-info-s16-reg.ll | 90 +- test/CodeGen/ARM/debug-info-sreg2.ll | 26 +- test/CodeGen/ARM/debug-segmented-stacks.ll | 38 +- test/CodeGen/ARM/divmod.ll | 10 +- test/CodeGen/ARM/dwarf-eh.ll | 14 +- test/CodeGen/ARM/dyn-stackalloc.ll | 10 +- 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 +- .../CodeGen/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 +- test/CodeGen/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 +- test/CodeGen/ARM/fast-isel-ret.ll | 6 +- test/CodeGen/ARM/fast-isel-select.ll | 8 +- test/CodeGen/ARM/fast-isel-shifter.ll | 4 +- test/CodeGen/ARM/fast-isel-static.ll | 18 +- test/CodeGen/ARM/fast-isel-vararg.ll | 18 +- test/CodeGen/ARM/fast-isel.ll | 18 +- .../CodeGen/ARM/fastisel-gep-promote-before-add.ll | 6 +- test/CodeGen/ARM/flag-crash.ll | 12 +- test/CodeGen/ARM/fnegs.ll | 4 +- test/CodeGen/ARM/fold-stack-adjust.ll | 6 +- test/CodeGen/ARM/fp.ll | 2 +- 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 | 6 +- test/CodeGen/ARM/fusedMAC.ll | 2 +- test/CodeGen/ARM/ghc-tcreturn-lowered.ll | 2 +- test/CodeGen/ARM/global-merge-1.ll | 41 +- test/CodeGen/ARM/global-merge-addrspace.ll | 2 +- test/CodeGen/ARM/global-merge.ll | 2 +- test/CodeGen/ARM/globals.ll | 2 +- test/CodeGen/ARM/gv-stubs-crash.ll | 2 +- test/CodeGen/ARM/half.ll | 8 +- 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-iter-indbr.ll | 56 + test/CodeGen/ARM/ifcvt11.ll | 12 +- test/CodeGen/ARM/ifcvt5.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 | 8 +- 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 | 6 +- 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/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 | 14 +- test/CodeGen/ARM/memfunc.ll | 293 +- 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/nop_concat_vectors.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/private.ll | 2 +- test/CodeGen/ARM/reg_sequence.ll | 26 +- test/CodeGen/ARM/saxpy10-a9.ll | 78 +- test/CodeGen/ARM/segmented-stacks.ll | 2 +- test/CodeGen/ARM/select_xform.ll | 2 +- test/CodeGen/ARM/shifter_operand.ll | 8 +- test/CodeGen/ARM/sjlj-prepare-critical-edge.ll | 4 +- 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 +- test/CodeGen/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 | 56 +- 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/tail-dup.ll | 16 +- test/CodeGen/ARM/test-sharedidx.ll | 40 +- test/CodeGen/ARM/this-return.ll | 10 +- test/CodeGen/ARM/thumb1-varalloc.ll | 4 +- test/CodeGen/ARM/thumb1_return_sequence.ll | 24 +- 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 +- test/CodeGen/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 +- test/CodeGen/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 | 36 +- test/CodeGen/ARM/vcvt_combine.ll | 12 +- test/CodeGen/ARM/vdiv_combine.ll | 12 +- test/CodeGen/ARM/vdup.ll | 16 +- test/CodeGen/ARM/vector-DAGCombine.ll | 32 +- test/CodeGen/ARM/vector-extend-narrow.ll | 10 +- test/CodeGen/ARM/vector-load.ll | 134 +- test/CodeGen/ARM/vector-promotion.ll | 76 +- test/CodeGen/ARM/vector-spilling.ll | 16 +- test/CodeGen/ARM/vector-store.ll | 82 +- test/CodeGen/ARM/vext.ll | 50 +- test/CodeGen/ARM/vfcmp.ll | 44 +- test/CodeGen/ARM/vfp-regs-dwarf.ll | 12 +- test/CodeGen/ARM/vfp.ll | 38 +- 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 | 16 +- 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/wrong-t2stmia-size-opt.ll | 4 +- test/CodeGen/ARM/zextload_demandedbits.ll | 6 +- test/CodeGen/BPF/basictest.ll | 4 +- test/CodeGen/BPF/byval.ll | 8 +- test/CodeGen/BPF/ex1.ll | 14 +- test/CodeGen/BPF/intrinsics.ll | 4 +- test/CodeGen/BPF/load.ll | 12 +- test/CodeGen/BPF/loops.ll | 20 +- test/CodeGen/BPF/sanity.ll | 4 +- test/CodeGen/BPF/struct_ret1.ll | 4 +- test/CodeGen/CPP/2009-05-01-Long-Double.ll | 2 +- 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 +- test/CodeGen/Generic/2003-07-07-BadLongConst.ll | 2 +- test/CodeGen/Generic/2003-07-08-BadCastToBool.ll | 2 +- test/CodeGen/Generic/2003-07-29-BadConstSbyte.ll | 8 +- .../Generic/2004-05-09-LiveVarPartialRegister.ll | 4 +- test/CodeGen/Generic/2005-04-09-GlobalInPHI.ll | 2 +- test/CodeGen/Generic/2005-12-01-Crash.ll | 2 +- test/CodeGen/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 | 2 +- .../Generic/2006-06-13-ComputeMaskedBitsCrash.ll | 8 +- .../Generic/2006-06-28-SimplifySetCCCrash.ll | 8 +- test/CodeGen/Generic/2006-09-02-LocalAllocCrash.ll | 24 +- test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll | 4 +- test/CodeGen/Generic/2007-01-15-LoadSelectCycle.ll | 4 +- test/CodeGen/Generic/2007-05-03-EHTypeInfo.ll | 4 +- test/CodeGen/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 +- test/CodeGen/Generic/2008-02-20-MatchingMem.ll | 3 +- test/CodeGen/Generic/2008-02-25-NegateZero.ll | 4 +- .../Generic/2008-08-07-PtrToInt-SmallerInt.ll | 2 +- .../Generic/2009-03-29-SoftFloatVectorExtract.ll | 2 +- test/CodeGen/Generic/2009-04-28-i128-cmp-crash.ll | 4 +- .../CodeGen/Generic/2011-07-07-ScheduleDAGCrash.ll | 4 +- test/CodeGen/Generic/2012-06-08-APIntCrash.ll | 2 +- test/CodeGen/Generic/2014-02-05-OpaqueConstants.ll | 4 +- test/CodeGen/Generic/APIntLoadStore.ll | 512 +- test/CodeGen/Generic/ConstantExprLowering.ll | 2 +- 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 | 34 +- test/CodeGen/Generic/cast-fp.ll | 14 +- test/CodeGen/Generic/constindices.ll | 28 +- 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 | 2 +- test/CodeGen/Generic/inline-asm-mem-clobber.ll | 6 +- test/CodeGen/Generic/invalid-memcpy.ll | 2 +- test/CodeGen/Generic/negintconst.ll | 4 +- test/CodeGen/Generic/pr2625.ll | 4 +- test/CodeGen/Generic/print-add.ll | 2 +- test/CodeGen/Generic/print-arith-fp.ll | 30 +- test/CodeGen/Generic/print-arith-int.ll | 40 +- test/CodeGen/Generic/print-int.ll | 2 +- test/CodeGen/Generic/print-mul-exp.ll | 6 +- test/CodeGen/Generic/print-mul.ll | 10 +- test/CodeGen/Generic/print-shift.ll | 10 +- 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 +- test/CodeGen/Generic/vector-identity-shuffle.ll | 2 +- test/CodeGen/Generic/vector.ll | 45 +- test/CodeGen/Hexagon/BranchPredict.ll | 2 +- test/CodeGen/Hexagon/absaddr-store.ll | 6 +- test/CodeGen/Hexagon/absimm.ll | 2 +- test/CodeGen/Hexagon/always-ext.ll | 6 +- test/CodeGen/Hexagon/block-addr.ll | 14 +- test/CodeGen/Hexagon/brev_ld.ll | 140 + test/CodeGen/Hexagon/brev_st.ll | 112 + 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_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/dadd.ll | 4 +- test/CodeGen/Hexagon/dmul.ll | 4 +- test/CodeGen/Hexagon/double.ll | 10 +- .../CodeGen/Hexagon/doubleconvert-ieee-rnd-near.ll | 8 +- test/CodeGen/Hexagon/dsub.ll | 4 +- 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 +- test/CodeGen/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-dbg.ll | 44 +- test/CodeGen/Hexagon/hwloop-le.ll | 60 +- test/CodeGen/Hexagon/hwloop-lt.ll | 60 +- test/CodeGen/Hexagon/hwloop-lt1.ll | 8 +- test/CodeGen/Hexagon/hwloop-ne.ll | 60 +- test/CodeGen/Hexagon/i16_VarArg.ll | 16 +- test/CodeGen/Hexagon/i1_VarArg.ll | 16 +- test/CodeGen/Hexagon/i8_VarArg.ll | 16 +- test/CodeGen/Hexagon/idxload-with-zero-offset.ll | 24 +- test/CodeGen/Hexagon/macint.ll | 2 +- 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 | 4 +- 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_lsr.ll | 26 +- test/CodeGen/Hexagon/static.ll | 6 +- test/CodeGen/Hexagon/struct_args.ll | 2 +- test/CodeGen/Hexagon/struct_args_large.ll | 3 +- test/CodeGen/Hexagon/tfr-to-combine.ll | 2 +- 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 + test/CodeGen/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 + test/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 | 20 +- 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 +- .../CodeGen/MSP430/2009-08-25-DynamicStackAlloc.ll | 4 +- test/CodeGen/MSP430/2009-09-18-AbsoluteAddr.ll | 8 +- test/CodeGen/MSP430/2009-10-10-OrImpDef.ll | 2 +- test/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 +- test/CodeGen/MSP430/mult-alt-generic-msp430.ll | 46 +- test/CodeGen/MSP430/postinc.ll | 20 +- test/CodeGen/Mips/2008-07-03-SRet.ll | 6 +- test/CodeGen/Mips/2008-07-15-InternalConstant.ll | 4 +- test/CodeGen/Mips/2008-07-15-SmallSection.ll | 6 +- test/CodeGen/Mips/2008-08-01-AsmInline.ll | 10 +- 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 | 22 +- 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 | 20 +- 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 | 605 + test/CodeGen/Mips/Fast-ISel/nullvoid.ll | 4 +- test/CodeGen/Mips/Fast-ISel/overflt.ll | 16 +- test/CodeGen/Mips/Fast-ISel/retabi.ll | 12 +- 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/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/and1.ll | 6 +- test/CodeGen/Mips/atomic.ll | 6 +- test/CodeGen/Mips/atomicops.ll | 12 +- test/CodeGen/Mips/beqzc.ll | 2 +- test/CodeGen/Mips/beqzc1.ll | 2 +- test/CodeGen/Mips/biggot.ll | 2 +- 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/cache-intrinsic.ll | 8 +- test/CodeGen/Mips/cconv/arguments-float.ll | 46 +- test/CodeGen/Mips/cconv/arguments-fp128.ll | 10 +- .../Mips/cconv/arguments-hard-float-varargs.ll | 8 +- test/CodeGen/Mips/cconv/arguments-hard-float.ll | 44 +- test/CodeGen/Mips/cconv/arguments-hard-fp128.ll | 10 +- ...rguments-small-structures-bigger-than-32bits.ll | 80 + test/CodeGen/Mips/cconv/arguments-struct.ll | 2 +- .../cconv/arguments-varargs-small-structs-byte.ll | 76 +- ...arguments-varargs-small-structs-combinations.ll | 40 +- ...rguments-varargs-small-structs-multiple-args.ll | 56 +- test/CodeGen/Mips/cconv/arguments-varargs.ll | 36 +- test/CodeGen/Mips/cconv/arguments.ll | 38 +- test/CodeGen/Mips/cconv/return-float.ll | 4 +- test/CodeGen/Mips/cconv/return-hard-float.ll | 6 +- test/CodeGen/Mips/cconv/return-hard-fp128.ll | 2 +- test/CodeGen/Mips/cconv/return-hard-struct-f128.ll | 2 +- test/CodeGen/Mips/cconv/return-struct.ll | 10 +- test/CodeGen/Mips/cconv/return.ll | 6 +- test/CodeGen/Mips/cfi_offset.ll | 4 +- test/CodeGen/Mips/check-adde-redundant-moves.ll | 35 + test/CodeGen/Mips/ci2.ll | 2 +- test/CodeGen/Mips/cmov.ll | 8 +- test/CodeGen/Mips/cmplarge.ll | 6 +- test/CodeGen/Mips/const4a.ll | 2 +- test/CodeGen/Mips/ctlz.ll | 2 +- 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.ll | 3 +- 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/fcmp.ll | 302 +- test/CodeGen/Mips/fixdfsf.ll | 2 +- test/CodeGen/Mips/fp-indexed-ls.ll | 36 +- test/CodeGen/Mips/fp-spill-reload.ll | 30 +- test/CodeGen/Mips/fp16instrinsmc.ll | 60 +- test/CodeGen/Mips/fp16static.ll | 4 +- test/CodeGen/Mips/fpneeded.ll | 6 +- test/CodeGen/Mips/fpnotneeded.ll | 2 +- test/CodeGen/Mips/global-address.ll | 4 +- test/CodeGen/Mips/gpreg-lazy-binding.ll | 2 +- test/CodeGen/Mips/gprestore.ll | 6 +- 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 +- .../CodeGen/Mips/inlineasm-assembler-directives.ll | 2 +- test/CodeGen/Mips/inlineasm-operand-code.ll | 6 +- test/CodeGen/Mips/inlineasm64.ll | 4 +- test/CodeGen/Mips/inlineasm_constraint_ZC.ll | 167 + test/CodeGen/Mips/inlineasm_constraint_m.ll | 61 + test/CodeGen/Mips/inlineasmmemop.ll | 15 +- test/CodeGen/Mips/internalfunc.ll | 8 +- test/CodeGen/Mips/jtstat.ll | 2 +- test/CodeGen/Mips/l3mc.ll | 32 +- test/CodeGen/Mips/largeimm1.ll | 2 +- test/CodeGen/Mips/largeimmprinting.ll | 4 +- test/CodeGen/Mips/lb1.ll | 6 +- test/CodeGen/Mips/lbu1.ll | 6 +- test/CodeGen/Mips/lcb2.ll | 16 +- test/CodeGen/Mips/lcb3c.ll | 4 +- test/CodeGen/Mips/lcb4a.ll | 4 +- test/CodeGen/Mips/lcb5.ll | 32 +- test/CodeGen/Mips/lh1.ll | 6 +- test/CodeGen/Mips/lhu1.ll | 6 +- test/CodeGen/Mips/llcarry.ll | 10 +- test/CodeGen/Mips/load-store-left-right.ll | 26 +- test/CodeGen/Mips/machineverifier.ll | 2 +- test/CodeGen/Mips/mbrsize4a.ll | 4 +- test/CodeGen/Mips/memcpy.ll | 6 +- test/CodeGen/Mips/micromips-addiu.ll | 12 +- test/CodeGen/Mips/micromips-addu16.ll | 18 + test/CodeGen/Mips/micromips-and16.ll | 4 +- test/CodeGen/Mips/micromips-andi.ll | 8 +- test/CodeGen/Mips/micromips-compact-branches.ll | 2 +- test/CodeGen/Mips/micromips-delay-slot-jr.ll | 10 +- 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 | 4 +- test/CodeGen/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 | 16 +- test/CodeGen/Mips/micromips-xor16.ll | 4 +- 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 | 74 +- test/CodeGen/Mips/mips64directive.ll | 2 +- test/CodeGen/Mips/mips64fpldst.ll | 8 +- test/CodeGen/Mips/mips64instrs.ll | 8 +- test/CodeGen/Mips/mips64intldst.ll | 22 +- test/CodeGen/Mips/mips64signextendsesf.ll | 214 + test/CodeGen/Mips/mips64sinttofpsf.ll | 2 +- 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 | 72 +- test/CodeGen/Mips/msa/basic_operations_float.ll | 34 +- 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 +- test/CodeGen/Mips/msa/llvm-stress-s1704963983.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s1935737938.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s2704903805.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s3861334421.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s3926023935.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s3997499501.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s525530439.ll | 22 +- test/CodeGen/Mips/msa/llvm-stress-s997348632.ll | 22 +- test/CodeGen/Mips/msa/shuffle.ll | 166 +- 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/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/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/remu.ll | 4 +- test/CodeGen/Mips/s2rem.ll | 4 +- test/CodeGen/Mips/sb1.ll | 8 +- test/CodeGen/Mips/sel1c.ll | 4 +- test/CodeGen/Mips/sel2c.ll | 4 +- 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 | 2 +- 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/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/tailcall.ll | 20 +- 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.ll | 16 +- test/CodeGen/NVPTX/bug21465.ll | 4 +- test/CodeGen/NVPTX/bug22322.ll | 8 +- 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 | 6 +- 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/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/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 +- test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll | 2 +- test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll | 4 +- test/CodeGen/PowerPC/2006-04-05-splat-ish.ll | 2 +- test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll | 28 +- .../PowerPC/2006-07-07-ComputeMaskedBits.ll | 12 +- test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll | 2 +- test/CodeGen/PowerPC/2006-08-15-SelectionCrash.ll | 2 +- test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll | 2 +- test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll | 2 +- test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll | 10 +- .../PowerPC/2007-01-31-InlineAsmAddrMode.ll | 4 +- test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll | 2 +- test/CodeGen/PowerPC/2007-03-24-cntlzd.ll | 2 +- test/CodeGen/PowerPC/2007-03-30-SpillerCrash.ll | 1594 +- .../PowerPC/2007-04-30-InlineAsmEarlyClobber.ll | 2 +- .../PowerPC/2007-05-03-InlineAsm-S-Constraint.ll | 2 +- .../PowerPC/2007-05-14-InlineAsmSelectCrash.ll | 2 +- test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll | 8 +- test/CodeGen/PowerPC/2007-06-28-BCCISelBug.ll | 2 +- test/CodeGen/PowerPC/2007-08-04-CoalescerAssert.ll | 2 +- .../PowerPC/2007-09-07-LoadStoreIdxForms.ll | 2 +- test/CodeGen/PowerPC/2007-09-08-unaligned.ll | 26 +- test/CodeGen/PowerPC/2007-10-18-PtrArithmetic.ll | 4 +- .../PowerPC/2007-10-21-LocalRegAllocAssert.ll | 4 +- .../PowerPC/2007-10-21-LocalRegAllocAssert2.ll | 8 +- .../CodeGen/PowerPC/2007-11-16-landingpad-split.ll | 4 +- test/CodeGen/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 +- test/CodeGen/PowerPC/2008-03-24-AddressRegImm.ll | 4 +- test/CodeGen/PowerPC/2008-03-26-CoalescerBug.ll | 2 +- test/CodeGen/PowerPC/2008-04-23-CoalescerCrash.ll | 14 +- test/CodeGen/PowerPC/2008-06-21-F128LoadStore.ll | 2 +- .../PowerPC/2008-06-23-LiveVariablesCrash.ll | 2 +- test/CodeGen/PowerPC/2008-07-15-Bswap.ll | 98 +- test/CodeGen/PowerPC/2008-07-15-SignExtendInreg.ll | 2 +- test/CodeGen/PowerPC/2008-07-24-PPC64-CCBug.ll | 2 +- test/CodeGen/PowerPC/2008-09-12-CoalescerBug.ll | 86 +- test/CodeGen/PowerPC/2008-10-28-UnprocessedNode.ll | 2 +- test/CodeGen/PowerPC/2008-10-31-PPCF128Libcalls.ll | 10 +- test/CodeGen/PowerPC/2009-01-16-DeclareISelBug.ll | 2 +- test/CodeGen/PowerPC/2009-03-17-LSRBug.ll | 6 +- .../2009-08-17-inline-asm-addr-mode-breakage.ll | 4 +- test/CodeGen/PowerPC/2009-11-15-ProcImpDefsBug.ll | 2 +- test/CodeGen/PowerPC/2010-03-09-indirect-call.ll | 2 +- test/CodeGen/PowerPC/2010-12-18-PPCStackRefs.ll | 4 +- test/CodeGen/PowerPC/2011-12-05-NoSpillDupCR.ll | 70 +- .../PowerPC/2011-12-06-SpillAndRestoreCR.ll | 72 +- .../PowerPC/2011-12-08-DemandedBitsMiscompile.ll | 2 +- test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll | 8 +- test/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 +- test/CodeGen/PowerPC/a2-fp-basic.ll | 28 +- test/CodeGen/PowerPC/add-fi.ll | 4 +- test/CodeGen/PowerPC/addi-licm.ll | 8 +- test/CodeGen/PowerPC/addi-reassoc.ll | 8 +- test/CodeGen/PowerPC/alias.ll | 12 +- test/CodeGen/PowerPC/and-elim.ll | 2 +- test/CodeGen/PowerPC/anon_aggr.ll | 18 +- test/CodeGen/PowerPC/asm-constraints.ll | 2 +- test/CodeGen/PowerPC/atomic-2.ll | 56 +- test/CodeGen/PowerPC/atomics-indexed.ll | 24 +- test/CodeGen/PowerPC/atomics.ll | 8 +- test/CodeGen/PowerPC/bdzlr.ll | 6 +- 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/code-align.ll | 12 +- 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/crbits.ll | 2 +- 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/dbg.ll | 30 +- test/CodeGen/PowerPC/dcbt-sched.ll | 4 +- test/CodeGen/PowerPC/delete-node.ll | 6 +- test/CodeGen/PowerPC/dyn-alloca-aligned.ll | 10 +- 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/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 | 4 +- test/CodeGen/PowerPC/fast-isel-const.ll | 2 +- test/CodeGen/PowerPC/fast-isel-conversion-p5.ll | 2 +- test/CodeGen/PowerPC/fast-isel-conversion.ll | 8 +- test/CodeGen/PowerPC/fast-isel-crash.ll | 2 +- test/CodeGen/PowerPC/fast-isel-ext.ll | 2 +- test/CodeGen/PowerPC/fast-isel-fold.ll | 28 +- test/CodeGen/PowerPC/fast-isel-indirectbr.ll | 2 +- test/CodeGen/PowerPC/fast-isel-load-store-vsx.ll | 33 + test/CodeGen/PowerPC/fast-isel-load-store.ll | 26 +- test/CodeGen/PowerPC/fast-isel-redefinition.ll | 6 +- test/CodeGen/PowerPC/fast-isel-ret.ll | 4 +- test/CodeGen/PowerPC/fast-isel-shifter.ll | 2 +- .../PowerPC/fastisel-gep-promote-before-add.ll | 6 +- test/CodeGen/PowerPC/floatPSA.ll | 30 +- test/CodeGen/PowerPC/flt-preinc.ll | 16 +- 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/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 | 6 +- 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/loop-data-prefetch.ll | 6 +- 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 | 12 +- 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 | 4 +- test/CodeGen/PowerPC/mcm-obj.ll | 22 +- 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/misched-inorder-latency.ll | 6 +- test/CodeGen/PowerPC/misched.ll | 2 +- test/CodeGen/PowerPC/mult-alt-generic-powerpc.ll | 46 +- test/CodeGen/PowerPC/mult-alt-generic-powerpc64.ll | 46 +- test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll | 4 +- test/CodeGen/PowerPC/novrsave.ll | 2 +- test/CodeGen/PowerPC/or-addressing-mode.ll | 4 +- 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-lshrti3.ll | 2 +- test/CodeGen/PowerPC/ppc32-pic-large.ll | 2 +- test/CodeGen/PowerPC/ppc32-pic.ll | 2 +- test/CodeGen/PowerPC/ppc440-fp-basic.ll | 28 +- test/CodeGen/PowerPC/ppc64-abi-extend.ll | 8 +- test/CodeGen/PowerPC/ppc64-align-long-double.ll | 4 +- test/CodeGen/PowerPC/ppc64-anyregcc.ll | 41 +- test/CodeGen/PowerPC/ppc64-byval-align.ll | 12 +- test/CodeGen/PowerPC/ppc64-calls.ll | 2 +- test/CodeGen/PowerPC/ppc64-fastcc-fast-isel.ll | 2 +- test/CodeGen/PowerPC/ppc64-gep-opt.ll | 40 +- test/CodeGen/PowerPC/ppc64-linux-func-size.ll | 6 +- test/CodeGen/PowerPC/ppc64-patchpoint.ll | 10 +- test/CodeGen/PowerPC/ppc64-smallarg.ll | 4 +- test/CodeGen/PowerPC/ppc64-stackmap.ll | 56 +- test/CodeGen/PowerPC/ppc64-toc.ll | 11 +- test/CodeGen/PowerPC/ppc64le-aggregates.ll | 14 +- test/CodeGen/PowerPC/ppc64le-localentry.ll | 5 +- test/CodeGen/PowerPC/ppc64le-smallarg.ll | 4 +- test/CodeGen/PowerPC/ppcf128-1.ll | 32 +- 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 | 806 +- 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/preincprep-invoke.ll | 4 +- test/CodeGen/PowerPC/private.ll | 2 +- test/CodeGen/PowerPC/pwr7-gt-nop.ll | 6 +- test/CodeGen/PowerPC/qpx-load.ll | 4 +- test/CodeGen/PowerPC/qpx-s-load.ll | 4 +- test/CodeGen/PowerPC/qpx-s-sel.ll | 2 +- test/CodeGen/PowerPC/qpx-sel.ll | 2 +- test/CodeGen/PowerPC/qpx-split-vsetcc.ll | 40 + test/CodeGen/PowerPC/qpx-unalperm.ll | 36 +- 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 | 346 +- test/CodeGen/PowerPC/resolvefi-disp.ll | 16 +- test/CodeGen/PowerPC/return-val-i128.ll | 10 +- test/CodeGen/PowerPC/rlwimi-and.ll | 4 +- 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/rs-undef-use.ll | 6 +- test/CodeGen/PowerPC/s000-alias-misched.ll | 30 +- 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 | 38 +- 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 | 6 +- test/CodeGen/PowerPC/subreg-postra.ll | 10 +- test/CodeGen/PowerPC/subsumes-pred-regs.ll | 2 +- test/CodeGen/PowerPC/tls-cse.ll | 12 +- test/CodeGen/PowerPC/tls-pic.ll | 4 +- test/CodeGen/PowerPC/tls.ll | 2 +- test/CodeGen/PowerPC/toc-load-sched-bug.ll | 152 +- test/CodeGen/PowerPC/trampoline.ll | 92 +- 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 | 12 +- test/CodeGen/PowerPC/vaddsplat.ll | 24 +- test/CodeGen/PowerPC/varargs-struct-float.ll | 6 +- test/CodeGen/PowerPC/vcmp-fold.ll | 8 +- test/CodeGen/PowerPC/vec-abi-align.ll | 16 +- test/CodeGen/PowerPC/vec_add_sub_doubleword.ll | 62 + test/CodeGen/PowerPC/vec_auto_constant.ll | 4 +- test/CodeGen/PowerPC/vec_br_cmp.ll | 4 +- test/CodeGen/PowerPC/vec_buildvector_loadstore.ll | 2 +- test/CodeGen/PowerPC/vec_cmpd.ll | 258 + test/CodeGen/PowerPC/vec_constants.ll | 6 +- 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_rotate_shift.ll | 36 + test/CodeGen/PowerPC/vec_shuffle.ll | 56 +- test/CodeGen/PowerPC/vec_shuffle_le.ll | 54 +- test/CodeGen/PowerPC/vec_splat.ll | 10 +- test/CodeGen/PowerPC/vec_splat_constant.ll | 4 +- test/CodeGen/PowerPC/vec_zero.ll | 2 +- test/CodeGen/PowerPC/vector-identity-shuffle.ll | 2 +- test/CodeGen/PowerPC/vector.ll | 46 +- test/CodeGen/PowerPC/vsx-div.ll | 4 +- test/CodeGen/PowerPC/vsx-fma-m.ll | 36 +- test/CodeGen/PowerPC/vsx-infl-copy1.ll | 68 +- test/CodeGen/PowerPC/vsx-infl-copy2.ll | 34 +- test/CodeGen/PowerPC/vsx-ldst-builtin-le.ll | 96 +- test/CodeGen/PowerPC/vsx-ldst.ll | 12 +- test/CodeGen/PowerPC/vsx-minmax.ll | 22 +- test/CodeGen/PowerPC/vsx-p8.ll | 4 +- test/CodeGen/PowerPC/vsx-spill-norwstore.ll | 2 +- test/CodeGen/PowerPC/vsx.ll | 14 +- test/CodeGen/PowerPC/vsx_insert_extract_le.ll | 12 +- test/CodeGen/PowerPC/vsx_shuffle_le.ll | 64 +- test/CodeGen/PowerPC/weak_def_can_be_hidden.ll | 4 +- test/CodeGen/PowerPC/zero-not-run.ll | 2 +- test/CodeGen/PowerPC/zext-free.ll | 10 +- test/CodeGen/R600/32-bit-local-address-space.ll | 28 +- test/CodeGen/R600/add-debug.ll | 2 +- test/CodeGen/R600/add.ll | 22 +- test/CodeGen/R600/add_i64.ll | 20 +- test/CodeGen/R600/address-space.ll | 8 +- test/CodeGen/R600/and.ll | 34 +- 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 | 10 +- 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/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/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 | 36 +- test/CodeGen/R600/ctpop64.ll | 10 +- test/CodeGen/R600/cttz_zero_undef.ll | 6 +- test/CodeGen/R600/cvt_f32_ubyte.ll | 24 +- .../R600/dagcombiner-bug-illegal-vec4-int-to-fp.ll | 8 +- .../CodeGen/R600/disconnected-predset-break-bug.ll | 2 +- test/CodeGen/R600/dot4-folding.ll | 4 +- .../ds-negative-offset-addressing-mode-loop.ll | 22 +- test/CodeGen/R600/ds_read2.ll | 250 +- test/CodeGen/R600/ds_read2_offset_order.ll | 28 +- test/CodeGen/R600/ds_read2st64.ll | 130 +- test/CodeGen/R600/ds_write2.ll | 206 +- test/CodeGen/R600/ds_write2st64.ll | 52 +- test/CodeGen/R600/elf.ll | 16 +- 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 | 8 +- test/CodeGen/R600/extract_vector_elt_i16.ll | 4 +- test/CodeGen/R600/fabs.f64.ll | 4 +- test/CodeGen/R600/fadd.ll | 6 +- test/CodeGen/R600/fadd64.ll | 4 +- test/CodeGen/R600/fceil64.ll | 6 +- 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/fdiv.f64.ll | 22 +- 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 | 63 +- test/CodeGen/R600/flat-address-space.ll | 20 +- test/CodeGen/R600/fma-combine.ll | 228 +- test/CodeGen/R600/fma.f64.ll | 18 +- test/CodeGen/R600/fma.ll | 38 +- test/CodeGen/R600/fmax3.f64.ll | 24 + test/CodeGen/R600/fmax3.ll | 12 +- test/CodeGen/R600/fmax_legacy.f64.ll | 32 +- test/CodeGen/R600/fmax_legacy.ll | 40 +- test/CodeGen/R600/fmin3.ll | 12 +- test/CodeGen/R600/fmin_legacy.f64.ll | 32 +- test/CodeGen/R600/fmin_legacy.ll | 40 +- 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 | 4 +- test/CodeGen/R600/fneg-fabs.ll | 2 +- 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/frem.ll | 38 +- test/CodeGen/R600/fsqrt.ll | 4 +- test/CodeGen/R600/fsub.ll | 12 +- test/CodeGen/R600/fsub64.ll | 18 +- test/CodeGen/R600/ftrunc.f64.ll | 6 +- test/CodeGen/R600/gep-address-space.ll | 8 +- test/CodeGen/R600/global-directive.ll | 6 +- test/CodeGen/R600/global-extload-i1.ll | 64 +- test/CodeGen/R600/global-extload-i16.ll | 64 +- test/CodeGen/R600/global-extload-i32.ll | 28 +- test/CodeGen/R600/global-extload-i8.ll | 64 +- 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 | 20 +- test/CodeGen/R600/half.ll | 12 +- test/CodeGen/R600/hsa.ll | 2 +- test/CodeGen/R600/i1-copy-phi.ll | 2 +- test/CodeGen/R600/i8-to-double-to-float.ll | 2 +- test/CodeGen/R600/icmp-select-sete-reverse-args.ll | 6 +- test/CodeGen/R600/imm.ll | 4 +- test/CodeGen/R600/indirect-addressing-si.ll | 8 +- test/CodeGen/R600/indirect-private-64.ll | 24 +- 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/large-alloca.ll | 6 +- test/CodeGen/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 +- test/CodeGen/R600/legalizedag-bug-expand-setcc.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.abs.ll | 4 +- test/CodeGen/R600/llvm.AMDGPU.barrier.global.ll | 6 +- test/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 | 72 +- test/CodeGen/R600/llvm.AMDGPU.cube.ll | 8 +- test/CodeGen/R600/llvm.AMDGPU.cvt_f32_ubyte.ll | 8 +- test/CodeGen/R600/llvm.AMDGPU.div_fmas.ll | 48 +- test/CodeGen/R600/llvm.AMDGPU.div_scale.ll | 88 +- test/CodeGen/R600/llvm.AMDGPU.flbit.i32.ll | 28 + test/CodeGen/R600/llvm.AMDGPU.fract.f64.ll | 60 + test/CodeGen/R600/llvm.AMDGPU.fract.ll | 51 +- test/CodeGen/R600/llvm.AMDGPU.imax.ll | 2 +- test/CodeGen/R600/llvm.AMDGPU.imin.ll | 2 +- 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.imageload.ll | 20 +- test/CodeGen/R600/llvm.SI.load.dword.ll | 4 +- test/CodeGen/R600/llvm.amdgpu.dp4.ll | 4 +- test/CodeGen/R600/llvm.round.f64.ll | 8 +- test/CodeGen/R600/llvm.round.ll | 2 +- test/CodeGen/R600/load-i1.ll | 14 +- test/CodeGen/R600/load-input-fold.ll | 38 +- test/CodeGen/R600/load.ll | 102 +- test/CodeGen/R600/load.vec.ll | 4 +- test/CodeGen/R600/load64.ll | 6 +- test/CodeGen/R600/local-64.ll | 34 +- test/CodeGen/R600/local-atomics.ll | 56 +- test/CodeGen/R600/local-atomics64.ll | 48 +- test/CodeGen/R600/local-memory-two-objects.ll | 19 +- 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 | 276 +- test/CodeGen/R600/mad-sub.ll | 118 +- test/CodeGen/R600/madak.ll | 78 +- test/CodeGen/R600/madmk.ll | 78 +- test/CodeGen/R600/max.ll | 58 +- test/CodeGen/R600/max3.ll | 28 +- test/CodeGen/R600/min.ll | 70 +- test/CodeGen/R600/min3.ll | 76 +- test/CodeGen/R600/missing-store.ll | 6 +- test/CodeGen/R600/mubuf.ll | 44 +- test/CodeGen/R600/mul.ll | 34 +- .../R600/no-initializer-constant-addrspace.ll | 4 +- test/CodeGen/R600/no-shrink-extloads.ll | 48 +- test/CodeGen/R600/operand-folding.ll | 2 +- test/CodeGen/R600/or.ll | 40 +- 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 | 152 +- 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 +- test/CodeGen/R600/schedule-kernel-arg-loads.ll | 35 +- .../R600/schedule-vs-if-nested-loop-failure.ll | 32 +- test/CodeGen/R600/schedule-vs-if-nested-loop.ll | 32 +- test/CodeGen/R600/scratch-buffer.ll | 30 +- test/CodeGen/R600/sdiv.ll | 26 +- test/CodeGen/R600/sdivrem24.ll | 72 +- test/CodeGen/R600/select64.ll | 8 +- test/CodeGen/R600/selectcc-cnd.ll | 2 +- test/CodeGen/R600/selectcc-cnde-int.ll | 2 +- test/CodeGen/R600/selectcc-icmp-select-float.ll | 2 +- test/CodeGen/R600/selectcc-opt.ll | 4 +- test/CodeGen/R600/setcc-opt.ll | 20 +- test/CodeGen/R600/setcc.ll | 26 +- test/CodeGen/R600/sext-in-reg.ll | 89 +- test/CodeGen/R600/sgpr-control-flow.ll | 14 +- test/CodeGen/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 | 50 +- test/CodeGen/R600/si-lod-bias.ll | 12 +- test/CodeGen/R600/si-sgpr-spill.ll | 184 +- test/CodeGen/R600/si-triv-disjoint-mem-access.ll | 100 +- test/CodeGen/R600/si-vector-hang.ll | 74 +- test/CodeGen/R600/sign_extend.ll | 2 +- .../R600/simplify-demanded-bits-build-pair.ll | 12 +- test/CodeGen/R600/sint_to_fp.f64.ll | 4 +- test/CodeGen/R600/sint_to_fp.ll | 2 +- test/CodeGen/R600/smrd.ll | 28 +- test/CodeGen/R600/split-scalar-i64-add.ll | 4 +- test/CodeGen/R600/sra.ll | 30 +- test/CodeGen/R600/srem.ll | 50 +- test/CodeGen/R600/srl.ll | 36 +- test/CodeGen/R600/ssubo.ll | 8 +- test/CodeGen/R600/store-barrier.ll | 24 +- test/CodeGen/R600/store-vector-ptrs.ll | 2 +- test/CodeGen/R600/store.ll | 96 +- test/CodeGen/R600/store.r600.ll | 4 +- test/CodeGen/R600/sub.ll | 42 +- test/CodeGen/R600/swizzle-export.ll | 42 +- test/CodeGen/R600/trunc-cmp-constant.ll | 40 +- test/CodeGen/R600/trunc.ll | 16 +- test/CodeGen/R600/tti-unroll-prefs.ll | 2 +- test/CodeGen/R600/uaddo.ll | 8 +- test/CodeGen/R600/udiv.ll | 18 +- test/CodeGen/R600/udivrem24.ll | 72 +- test/CodeGen/R600/uint_to_fp.f64.ll | 4 +- test/CodeGen/R600/uint_to_fp.ll | 4 +- test/CodeGen/R600/unaligned-load-store.ll | 32 +- .../R600/unhandled-loop-condition-assertion.ll | 60 +- test/CodeGen/R600/unroll.ll | 6 +- test/CodeGen/R600/urem.ll | 38 +- test/CodeGen/R600/usubo.ll | 8 +- test/CodeGen/R600/v_cndmask.ll | 4 +- test/CodeGen/R600/valu-i1.ll | 44 +- 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 | 10 +- test/CodeGen/R600/wrong-transalu-pos-fix.ll | 2 +- test/CodeGen/R600/xor.ll | 38 +- .../SPARC/2008-10-10-InlineAsmMemoryOperand.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-22-SRet.ll | 18 +- test/CodeGen/SPARC/64abi.ll | 18 +- test/CodeGen/SPARC/64bit.ll | 30 +- test/CodeGen/SPARC/atomics.ll | 8 +- test/CodeGen/SPARC/basictest.ll | 2 +- test/CodeGen/SPARC/empty-functions.ll | 2 +- test/CodeGen/SPARC/exception.ll | 4 +- test/CodeGen/SPARC/fp128.ll | 34 +- test/CodeGen/SPARC/globals.ll | 2 +- test/CodeGen/SPARC/leafproc.ll | 8 +- test/CodeGen/SPARC/mult-alt-generic-sparc.ll | 46 +- 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 | 4 +- test/CodeGen/SPARC/varargs.ll | 4 +- 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 | 74 +- 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/fp-abs-01.ll | 4 +- test/CodeGen/SystemZ/fp-abs-02.ll | 4 +- test/CodeGen/SystemZ/fp-add-01.ll | 62 +- test/CodeGen/SystemZ/fp-add-02.ll | 62 +- test/CodeGen/SystemZ/fp-add-03.ll | 2 +- test/CodeGen/SystemZ/fp-cmp-01.ll | 86 +- test/CodeGen/SystemZ/fp-cmp-02.ll | 64 +- test/CodeGen/SystemZ/fp-cmp-03.ll | 4 +- test/CodeGen/SystemZ/fp-cmp-04.ll | 6 +- test/CodeGen/SystemZ/fp-conv-01.ll | 8 +- test/CodeGen/SystemZ/fp-conv-02.ll | 54 +- 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 | 62 +- test/CodeGen/SystemZ/fp-div-03.ll | 2 +- test/CodeGen/SystemZ/fp-move-01.ll | 2 +- test/CodeGen/SystemZ/fp-move-02.ll | 48 +- test/CodeGen/SystemZ/fp-move-03.ll | 34 +- test/CodeGen/SystemZ/fp-move-04.ll | 34 +- test/CodeGen/SystemZ/fp-move-05.ll | 22 +- test/CodeGen/SystemZ/fp-move-06.ll | 14 +- test/CodeGen/SystemZ/fp-move-07.ll | 14 +- test/CodeGen/SystemZ/fp-move-09.ll | 6 +- test/CodeGen/SystemZ/fp-mul-01.ll | 62 +- test/CodeGen/SystemZ/fp-mul-02.ll | 64 +- test/CodeGen/SystemZ/fp-mul-03.ll | 62 +- test/CodeGen/SystemZ/fp-mul-04.ll | 64 +- test/CodeGen/SystemZ/fp-mul-05.ll | 2 +- test/CodeGen/SystemZ/fp-mul-06.ll | 26 +- test/CodeGen/SystemZ/fp-mul-07.ll | 26 +- test/CodeGen/SystemZ/fp-mul-08.ll | 26 +- test/CodeGen/SystemZ/fp-mul-09.ll | 26 +- test/CodeGen/SystemZ/fp-neg-01.ll | 4 +- test/CodeGen/SystemZ/fp-round-01.ll | 2 +- test/CodeGen/SystemZ/fp-round-02.ll | 12 +- test/CodeGen/SystemZ/fp-sqrt-01.ll | 54 +- test/CodeGen/SystemZ/fp-sqrt-02.ll | 54 +- test/CodeGen/SystemZ/fp-sqrt-03.ll | 2 +- test/CodeGen/SystemZ/fp-sub-01.ll | 62 +- test/CodeGen/SystemZ/fp-sub-02.ll | 62 +- 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 | 96 +- 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 | 68 +- 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 | 86 +- test/CodeGen/SystemZ/frame-18.ll | 60 +- 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 | 74 +- test/CodeGen/SystemZ/int-add-03.ll | 64 +- test/CodeGen/SystemZ/int-add-04.ll | 64 +- 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-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-48.ll | 46 +- 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 | 72 +- test/CodeGen/SystemZ/int-div-02.ll | 68 +- test/CodeGen/SystemZ/int-div-03.ll | 30 +- test/CodeGen/SystemZ/int-div-04.ll | 72 +- test/CodeGen/SystemZ/int-div-05.ll | 72 +- 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 | 74 +- test/CodeGen/SystemZ/int-mul-03.ll | 64 +- test/CodeGen/SystemZ/int-mul-04.ll | 62 +- test/CodeGen/SystemZ/int-mul-08.ll | 62 +- test/CodeGen/SystemZ/int-sub-01.ll | 74 +- test/CodeGen/SystemZ/int-sub-02.ll | 64 +- test/CodeGen/SystemZ/int-sub-03.ll | 64 +- 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 | 74 +- 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/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 | 338 +- test/CodeGen/SystemZ/strcpy-01.ll | 2 +- test/CodeGen/SystemZ/tls-05.ll | 2 +- test/CodeGen/SystemZ/tls-06.ll | 4 +- test/CodeGen/SystemZ/tls-07.ll | 4 +- test/CodeGen/SystemZ/unaligned-01.ll | 16 +- test/CodeGen/SystemZ/xor-01.ll | 74 +- 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 +- test/CodeGen/Thumb/2007-01-31-RegInfoAssert.ll | 2 +- test/CodeGen/Thumb/2007-05-05-InvalidPushPop.ll | 14 +- test/CodeGen/Thumb/2009-07-20-TwoAddrBug.ll | 2 +- test/CodeGen/Thumb/2009-08-12-ConstIslandAssert.ll | 592 +- test/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 +- test/CodeGen/Thumb/2010-07-15-debugOrdering.ll | 164 +- test/CodeGen/Thumb/2011-05-11-DAGLegalizer.ll | 28 +- 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 +- test/CodeGen/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 +- test/CodeGen/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 | 65 +- test/CodeGen/Thumb/stack_guard_remat.ll | 2 +- test/CodeGen/Thumb/stm-merge.ll | 2 +- test/CodeGen/Thumb/thumb-ldm.ll | 16 +- test/CodeGen/Thumb/vargs.ll | 8 +- .../CodeGen/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 +- test/CodeGen/Thumb2/2009-08-01-WrongLDRBOpc.ll | 14 +- test/CodeGen/Thumb2/2009-08-02-CoalescerBug.ll | 10 +- test/CodeGen/Thumb2/2009-08-04-CoalescerAssert.ll | 2 +- test/CodeGen/Thumb2/2009-08-04-CoalescerBug.ll | 28 +- test/CodeGen/Thumb2/2009-08-04-ScavengerAssert.ll | 156 +- .../Thumb2/2009-08-04-SubregLoweringBug3.ll | 2 +- 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 | 6 +- test/CodeGen/Thumb2/2009-09-01-PostRAProlog.ll | 26 +- test/CodeGen/Thumb2/2009-09-28-ITBlockBug.ll | 24 +- test/CodeGen/Thumb2/2009-11-11-ScavengerAssert.ll | 18 +- test/CodeGen/Thumb2/2009-12-01-LoopIVUsers.ll | 44 +- .../Thumb2/2010-01-06-TailDuplicateLabels.ll | 22 +- test/CodeGen/Thumb2/2010-01-19-RemovePredicates.ll | 2 +- test/CodeGen/Thumb2/2010-03-08-addi12-ccout.ll | 18 +- test/CodeGen/Thumb2/2010-03-15-AsmCCClobber.ll | 26 +- test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll | 4 +- test/CodeGen/Thumb2/2010-06-19-ITBlockCrash.ll | 2 +- test/CodeGen/Thumb2/2010-06-21-TailMergeBug.ll | 6 +- .../CodeGen/Thumb2/2010-08-10-VarSizedAllocaBug.ll | 8 +- .../Thumb2/2011-06-07-TwoAddrEarlyClobber.ll | 8 +- .../Thumb2/2011-12-16-T2SizeReduceAssert.ll | 10 +- test/CodeGen/Thumb2/2012-01-13-CBNZBug.ll | 24 +- .../Thumb2/2013-02-19-tail-call-register-hint.ll | 12 +- ...2013-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 +- .../Thumb2/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/float-ops.ll | 4 +- test/CodeGen/Thumb2/frameless2.ll | 4 +- test/CodeGen/Thumb2/ifcvt-neon.ll | 4 +- test/CodeGen/Thumb2/inflate-regs.ll | 4 +- test/CodeGen/Thumb2/large-call.ll | 4 +- test/CodeGen/Thumb2/large-stack.ll | 2 +- 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 | 6 +- 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-tbh.ll | 4 +- test/CodeGen/Thumb2/tls1.ll | 2 +- test/CodeGen/Thumb2/tls2.ll | 2 +- test/CodeGen/Thumb2/tpsoft.ll | 2 +- test/CodeGen/Thumb2/v8_IT_2.ll | 6 +- test/CodeGen/Thumb2/v8_IT_3.ll | 10 +- test/CodeGen/WinEH/cppeh-catch-all.ll | 97 + test/CodeGen/WinEH/cppeh-catch-scalar.ll | 126 + test/CodeGen/WinEH/cppeh-catch-unwind.ll | 244 + test/CodeGen/WinEH/cppeh-frame-vars.ll | 272 + test/CodeGen/WinEH/cppeh-inalloca.ll | 199 + test/CodeGen/WinEH/cppeh-min-unwind.ll | 99 + test/CodeGen/WinEH/cppeh-nested-1.ll | 199 + test/CodeGen/WinEH/cppeh-nested-2.ll | 324 + test/CodeGen/WinEH/cppeh-nested-3.ll | 273 + test/CodeGen/WinEH/cppeh-nonalloca-frame-values.ll | 273 + test/CodeGen/WinEH/lit.local.cfg | 12 + test/CodeGen/WinEH/seh-simple.ll | 138 + test/CodeGen/X86/2005-01-17-CycleInDAG.ll | 4 +- test/CodeGen/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 +- test/CodeGen/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 +- test/CodeGen/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-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 +- 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 +- .../X86/2006-10-19-SwitchUnnecessaryBranching.ll | 4 +- test/CodeGen/X86/2006-11-12-CSRetCC.ll | 50 +- test/CodeGen/X86/2006-11-17-IllegalMove.ll | 6 +- test/CodeGen/X86/2006-12-16-InlineAsmCrash.ll | 4 +- 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 +- test/CodeGen/X86/2007-02-19-LiveIntervalAssert.ll | 4 +- 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 +- test/CodeGen/X86/2007-04-17-LiveIntervalAssert.ll | 4 +- test/CodeGen/X86/2007-05-05-VecCastExpand.ll | 6 +- test/CodeGen/X86/2007-06-04-X86-64-CtorAsmBugs.ll | 2 +- test/CodeGen/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 +- test/CodeGen/X86/2007-08-09-IllegalX86-64Asm.ll | 118 +- test/CodeGen/X86/2007-08-13-AppendingLinkage.ll | 2 +- test/CodeGen/X86/2007-09-05-InvalidAsm.ll | 22 +- test/CodeGen/X86/2007-10-04-AvoidEFLAGSCopy.ll | 2 +- test/CodeGen/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 +- test/CodeGen/X86/2007-10-31-extractelement-i64.ll | 24 +- test/CodeGen/X86/2007-11-04-LiveIntervalCrash.ll | 2 +- .../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 +- test/CodeGen/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 +- test/CodeGen/X86/2008-02-20-InlineAsmClobber.ll | 4 +- test/CodeGen/X86/2008-02-22-LocalRegAllocBug.ll | 44 +- test/CodeGen/X86/2008-02-25-InlineAsmBug.ll | 14 +- test/CodeGen/X86/2008-02-25-X86-64-CoalescerBug.ll | 10 +- test/CodeGen/X86/2008-02-27-DeadSlotElimBug.ll | 16 +- test/CodeGen/X86/2008-03-07-APIntBug.ll | 68 +- test/CodeGen/X86/2008-03-10-RegAllocInfLoop.ll | 2 +- test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll | 12 +- test/CodeGen/X86/2008-03-14-SpillerCrash.ll | 8 +- test/CodeGen/X86/2008-03-23-DarwinAsmComments.ll | 22 +- test/CodeGen/X86/2008-03-31-SpillerFoldingBug.ll | 14 +- test/CodeGen/X86/2008-04-09-BranchFolding.ll | 2 +- test/CodeGen/X86/2008-04-15-LiveVariableBug.ll | 4 +- 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 | 8 +- test/CodeGen/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 +- test/CodeGen/X86/2008-05-09-ShuffleLoweringBug.ll | 2 +- test/CodeGen/X86/2008-05-12-tailmerge-5.ll | 42 +- test/CodeGen/X86/2008-05-21-CoalescerBug.ll | 6 +- test/CodeGen/X86/2008-05-22-FoldUnalignedLoad.ll | 2 +- test/CodeGen/X86/2008-05-28-LocalRegAllocBug.ll | 2 +- .../CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll | 4 +- test/CodeGen/X86/2008-06-13-VolatileLoadStore.ll | 4 +- test/CodeGen/X86/2008-06-16-SubregsBug.ll | 2 +- test/CodeGen/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 | 2 +- test/CodeGen/X86/2008-09-09-LinearScanBug.ll | 2 +- test/CodeGen/X86/2008-09-11-CoalescerBug.ll | 4 +- test/CodeGen/X86/2008-09-11-CoalescerBug2.ll | 4 +- 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-x87ld-nan-2.ll | 2 +- test/CodeGen/X86/2008-10-07-SSEISelBug.ll | 6 +- test/CodeGen/X86/2008-10-11-CallCrash.ll | 2 +- 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 | 4 +- test/CodeGen/X86/2008-12-01-SpillerAssert.ll | 2 +- .../X86/2008-12-01-loop-iv-used-outside-loop.ll | 6 +- test/CodeGen/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 +- test/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 +- test/CodeGen/X86/2009-01-18-ConstantExprCrash.ll | 2 +- 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 +- test/CodeGen/X86/2009-02-09-ivs-different-sizes.ll | 2 +- .../CodeGen/X86/2009-02-11-codegenprepare-reuse.ll | 10 +- test/CodeGen/X86/2009-02-12-DebugInfoVLA.ll | 58 +- test/CodeGen/X86/2009-02-26-MachineLICMBug.ll | 10 +- test/CodeGen/X86/2009-03-03-BTHang.ll | 10 +- test/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-14-IllegalRegs.ll | 20 +- 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 +- test/CodeGen/X86/2009-04-27-CoalescerAssert.ll | 310 +- .../CodeGen/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 +- test/CodeGen/X86/2009-05-08-InlineAsmIOffset.ll | 2 +- test/CodeGen/X86/2009-05-11-tailmerge-crash.ll | 2 +- test/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 +- test/CodeGen/X86/2009-06-03-Win64DisableRedZone.ll | 3 +- test/CodeGen/X86/2009-06-04-VirtualLiveIn.ll | 4 +- test/CodeGen/X86/2009-06-05-VZextByteShort.ll | 8 +- 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 +- test/CodeGen/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 +- test/CodeGen/X86/2009-08-23-SubRegReuseUndo.ll | 6 +- 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 +- test/CodeGen/X86/2009-09-21-NoSpillLoopCount.ll | 8 +- test/CodeGen/X86/2009-09-22-CoalescerBug.ll | 2 +- test/CodeGen/X86/2009-10-16-Scope.ll | 16 +- test/CodeGen/X86/2009-10-19-EmergencySpill.ll | 20 +- test/CodeGen/X86/2009-10-19-atomic-cmp-eflags.ll | 10 +- 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 +- test/CodeGen/X86/2009-11-17-UpdateTerminator.ll | 4 +- test/CodeGen/X86/2009-11-25-ImpDefBug.ll | 2 +- test/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-13-OptExtBug.ll | 22 +- test/CodeGen/X86/2010-01-15-SelectionDAGCycle.ll | 6 +- test/CodeGen/X86/2010-01-18-DbgValue.ll | 42 +- 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 +- test/CodeGen/X86/2010-02-12-CoalescerBug-Impdef.ll | 2 +- test/CodeGen/X86/2010-02-19-TailCallRetAddrBug.ll | 36 +- test/CodeGen/X86/2010-02-23-RematImplicitSubreg.ll | 4 +- test/CodeGen/X86/2010-03-05-ConstantFoldCFG.ll | 2 +- test/CodeGen/X86/2010-03-17-ISelBug.ll | 16 +- test/CodeGen/X86/2010-04-06-SSEDomainFixCrash.ll | 2 +- test/CodeGen/X86/2010-04-08-CoalescerBug.ll | 6 +- test/CodeGen/X86/2010-04-13-AnalyzeBranchCrash.ll | 2 +- .../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 +- test/CodeGen/X86/2010-05-16-nosseconversion.ll | 2 +- test/CodeGen/X86/2010-05-25-DotDebugLoc.ll | 86 +- test/CodeGen/X86/2010-05-26-DotDebugLoc.ll | 60 +- test/CodeGen/X86/2010-05-26-FP_TO_INT-crash.ll | 2 +- test/CodeGen/X86/2010-05-28-Crash.ll | 30 +- test/CodeGen/X86/2010-06-01-DeadArg-DbgInfo.ll | 62 +- test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll | 2 +- .../X86/2010-06-15-FastAllocEarlyCLobber.ll | 8 +- test/CodeGen/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 +- .../CodeGen/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 | 28 +- test/CodeGen/X86/2010-07-11-FPStackLoneUse.ll | 2 +- test/CodeGen/X86/2010-07-15-Crash.ll | 4 +- test/CodeGen/X86/2010-08-04-MaskedSignedCompare.ll | 6 +- test/CodeGen/X86/2010-08-04-StackVariable.ll | 102 +- .../X86/2010-09-01-RemoveCopyByCommutingDef.ll | 2 +- test/CodeGen/X86/2010-09-16-EmptyFilename.ll | 26 +- test/CodeGen/X86/2010-09-16-asmcrash.ll | 2 +- test/CodeGen/X86/2010-09-17-SideEffectsInChain.ll | 8 +- test/CodeGen/X86/2010-09-30-CMOV-JumpTable-PHI.ll | 4 +- test/CodeGen/X86/2010-11-02-DbgParameter.ll | 28 +- test/CodeGen/X86/2010-11-09-MOVLPS.ll | 24 +- test/CodeGen/X86/2010-11-18-SelectOfExtload.ll | 4 +- test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll | 52 +- test/CodeGen/X86/2011-02-12-shuffle.ll | 2 +- .../X86/2011-02-21-VirtRegRewriter-KillSubReg.ll | 4 +- test/CodeGen/X86/2011-03-02-DAGCombiner.ll | 18 +- test/CodeGen/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 +- .../CodeGen/X86/2011-05-26-UnreachableBlockElim.ll | 4 +- .../CodeGen/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 +- .../X86/2011-07-13-BadFrameIndexDisplacement.ll | 4 +- test/CodeGen/X86/2011-09-14-valcoalesce.ll | 2 +- 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 | 90 +- .../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 | 4 +- test/CodeGen/X86/2011-10-27-tstore.ll | 2 +- test/CodeGen/X86/2011-11-22-AVX2-Domains.ll | 18 +- .../X86/2011-12-06-AVXVectorExtractCombine.ll | 3 +- test/CodeGen/X86/2011-12-08-AVXISelBugs.ll | 8 +- .../2011-12-26-extractelement-duplicate-load.ll | 2 +- test/CodeGen/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 | 2 +- test/CodeGen/X86/2012-01-16-mfence-nosse-flags.ll | 2 +- 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 | 4 +- test/CodeGen/X86/2012-07-15-broadcastfold.ll | 2 +- test/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 | 3 +- 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 +- test/CodeGen/X86/2012-11-28-merge-store-alias.ll | 24 +- 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 +- test/CodeGen/X86/2012-12-06-python27-miscompile.ll | 6 +- test/CodeGen/X86/2012-12-1-merge-multiple.ll | 16 +- test/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 | 4 +- 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/inline.ll | 4 +- test/CodeGen/X86/GC/inline2.ll | 4 +- test/CodeGen/X86/MachineBranchProb.ll | 2 +- test/CodeGen/X86/MachineSink-DbgValue.ll | 34 +- test/CodeGen/X86/MachineSink-eflags.ll | 28 +- test/CodeGen/X86/MergeConsecutiveStores.ll | 240 +- test/CodeGen/X86/StackColoring-dbg.ll | 16 +- test/CodeGen/X86/StackColoring.ll | 4 +- test/CodeGen/X86/SwitchLowering.ll | 6 +- test/CodeGen/X86/SwizzleShuff.ll | 20 +- test/CodeGen/X86/abi-isel.ll | 436 +- test/CodeGen/X86/add32ri8.ll | 10 + test/CodeGen/X86/addr-mode-matcher.ll | 10 +- .../X86/address-type-promotion-constantexpr.ll | 2 +- test/CodeGen/X86/aliases.ll | 8 +- test/CodeGen/X86/aligned-variadic.ll | 8 +- test/CodeGen/X86/alignment-2.ll | 2 +- test/CodeGen/X86/and-load-fold.ll | 15 + test/CodeGen/X86/and-su.ll | 2 +- test/CodeGen/X86/asm-global-imm.ll | 2 +- .../X86/atom-call-reg-indirect-foldedreload32.ll | 28 +- .../X86/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 | 2 +- test/CodeGen/X86/atomic-load-store.ll | 2 +- test/CodeGen/X86/atomic-or.ll | 4 +- test/CodeGen/X86/atomic-pointer.ll | 2 +- test/CodeGen/X86/atomic128.ll | 4 +- test/CodeGen/X86/atomic32.ll | 275 +- 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 | 6 +- test/CodeGen/X86/avoid_complex_am.ll | 10 +- test/CodeGen/X86/avx-arith.ll | 6 +- test/CodeGen/X86/avx-basic.ll | 15 +- test/CodeGen/X86/avx-bitcast.ll | 2 +- test/CodeGen/X86/avx-cast.ll | 75 +- test/CodeGen/X86/avx-cvt.ll | 10 +- test/CodeGen/X86/avx-insertelt.ll | 83 + test/CodeGen/X86/avx-intel-ocl.ll | 12 +- test/CodeGen/X86/avx-intrinsics-x86-upgrade.ll | 115 +- test/CodeGen/X86/avx-intrinsics-x86.ll | 1943 +- test/CodeGen/X86/avx-load-store.ll | 22 +- test/CodeGen/X86/avx-logic.ll | 114 +- test/CodeGen/X86/avx-splat.ll | 4 +- test/CodeGen/X86/avx-unpack.ll | 16 +- test/CodeGen/X86/avx-varargs-x86_64.ll | 2 +- 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 | 171 +- test/CodeGen/X86/avx-vzeroupper.ll | 6 +- test/CodeGen/X86/avx.ll | 18 +- test/CodeGen/X86/avx1-logical-load-folding.ll | 8 +- test/CodeGen/X86/avx2-conversions.ll | 10 +- test/CodeGen/X86/avx2-intrinsics-x86-upgrade.ll | 23 +- test/CodeGen/X86/avx2-intrinsics-x86.ll | 35 +- test/CodeGen/X86/avx2-pmovxrm-intrinsics.ll | 24 +- test/CodeGen/X86/avx2-shift.ll | 20 +- test/CodeGen/X86/avx2-vbroadcast.ll | 50 +- test/CodeGen/X86/avx512-arith.ll | 28 +- test/CodeGen/X86/avx512-build-vector.ll | 2 +- test/CodeGen/X86/avx512-cvt.ll | 12 +- test/CodeGen/X86/avx512-gather-scatter-intrin.ll | 8 +- test/CodeGen/X86/avx512-i1test.ll | 2 +- test/CodeGen/X86/avx512-insert-extract.ll | 10 +- test/CodeGen/X86/avx512-intel-ocl.ll | 4 +- test/CodeGen/X86/avx512-intrinsics.ll | 4 +- test/CodeGen/X86/avx512-logic.ll | 4 +- test/CodeGen/X86/avx512-mask-op.ll | 6 +- test/CodeGen/X86/avx512-mov.ll | 60 +- test/CodeGen/X86/avx512-round.ll | 2 +- test/CodeGen/X86/avx512-scalar.ll | 92 + test/CodeGen/X86/avx512-shift.ll | 8 +- test/CodeGen/X86/avx512-vbroadcast.ll | 12 +- test/CodeGen/X86/avx512-vec-cmp.ll | 20 +- test/CodeGen/X86/avx512bw-arith.ll | 8 +- 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 | 28 +- 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/avx512er-intrinsics.ll | 6 +- test/CodeGen/X86/avx512vl-arith.ll | 40 +- test/CodeGen/X86/avx512vl-intrinsics.ll | 4 +- test/CodeGen/X86/avx512vl-mov.ll | 96 +- test/CodeGen/X86/avx512vl-vec-cmp.ll | 40 +- test/CodeGen/X86/bitcast-mmx.ll | 4 +- test/CodeGen/X86/block-placement.ll | 236 +- test/CodeGen/X86/bmi.ll | 52 +- test/CodeGen/X86/break-anti-dependencies.ll | 4 +- test/CodeGen/X86/break-false-dep.ll | 34 +- 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/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 | 10 +- 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/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 +- .../code_placement_outline_optional_branches.ll | 77 + test/CodeGen/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/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 | 8 +- test/CodeGen/X86/commute-fcmp.ll | 48 +- test/CodeGen/X86/commute-intrinsic.ll | 2 +- test/CodeGen/X86/commute-xop.ll | 40 +- test/CodeGen/X86/compact-unwind.ll | 18 +- test/CodeGen/X86/complex-asm.ll | 8 +- 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 | 4 +- .../X86/constant-hoisting-shift-immediate.ll | 4 +- test/CodeGen/X86/constructor.ll | 8 + test/CodeGen/X86/convert-2-addr-3-addr-inc64.ll | 4 +- test/CodeGen/X86/cppeh-catch-all.ll | 83 - test/CodeGen/X86/cppeh-catch-scalar.ll | 123 - test/CodeGen/X86/cppeh-frame-vars.ll | 261 - test/CodeGen/X86/crash-O0.ll | 4 +- test/CodeGen/X86/crash-nosse.ll | 2 +- test/CodeGen/X86/crash.ll | 56 +- 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 | 4 +- 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 | 152 +- test/CodeGen/X86/dbg-changes-codegen.ll | 20 +- test/CodeGen/X86/dbg-combine.ll | 46 +- test/CodeGen/X86/discontiguous-loops.ll | 6 +- test/CodeGen/X86/div8.ll | 6 +- test/CodeGen/X86/dllimport-x86_64.ll | 6 +- test/CodeGen/X86/dllimport.ll | 6 +- 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 | 115 +- test/CodeGen/X86/dynamic-alloca-lifetime.ll | 4 +- test/CodeGen/X86/dynamic-allocas-VLAs.ll | 22 +- test/CodeGen/X86/early-ifcvt.ll | 6 +- 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/expand-opaque-const.ll | 6 +- test/CodeGen/X86/extend.ll | 4 +- test/CodeGen/X86/extract-extract.ll | 6 +- .../extractelement-legalization-store-ordering.ll | 57 + test/CodeGen/X86/extractelement-load.ll | 8 +- test/CodeGen/X86/extractps.ll | 4 +- test/CodeGen/X86/f16c-intrinsics.ll | 4 +- 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 +- .../X86/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 +- 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 | 2 +- test/CodeGen/X86/fast-isel-extract.ll | 2 +- .../CodeGen/X86/fast-isel-float-half-convertion.ll | 2 +- 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 | 8 +- test/CodeGen/X86/fast-isel-gep.ll | 34 +- test/CodeGen/X86/fast-isel-gv.ll | 6 +- test/CodeGen/X86/fast-isel-i1.ll | 6 +- test/CodeGen/X86/fast-isel-int-float-conversion.ll | 8 +- test/CodeGen/X86/fast-isel-mem.ll | 6 +- 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 +- test/CodeGen/X86/fast-isel-select-pseudo-cmov.ll | 4 +- test/CodeGen/X86/fast-isel-select-sse.ll | 100 +- 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 +- test/CodeGen/X86/fast-isel-vecload.ll | 185 + test/CodeGen/X86/fast-isel-x32.ll | 4 +- test/CodeGen/X86/fast-isel-x86-64.ll | 12 +- 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 +- .../CodeGen/X86/fastisel-gep-promote-before-add.ll | 14 +- test/CodeGen/X86/fastmath-optnone.ll | 35 - test/CodeGen/X86/fltused.ll | 2 +- test/CodeGen/X86/fltused_function_pointer.ll | 2 +- test/CodeGen/X86/fma-do-not-commute.ll | 4 +- .../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 | 8 +- 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-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 | 2 +- test/CodeGen/X86/fp-load-trunc.ll | 8 +- test/CodeGen/X86/fp-stack-O0-crash.ll | 8 +- test/CodeGen/X86/fp-stack-compare-cmov.ll | 2 +- test/CodeGen/X86/fp-stack-compare.ll | 2 +- test/CodeGen/X86/fp-stack-ret.ll | 2 +- test/CodeGen/X86/fp-stack.ll | 6 +- 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 | 8 +- test/CodeGen/X86/frameallocate.ll | 43 - test/CodeGen/X86/frameescape.ll | 118 + test/CodeGen/X86/full-lsr.ll | 20 +- test/CodeGen/X86/function-subtarget-features-2.ll | 26 + test/CodeGen/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 | 1 + test/CodeGen/X86/gcc_except_table_functions.ll | 1 + test/CodeGen/X86/getelementptr.ll | 80 + test/CodeGen/X86/ghc-cc.ll | 8 +- test/CodeGen/X86/ghc-cc64.ll | 32 +- test/CodeGen/X86/global-sections.ll | 28 +- 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/haddsub-2.ll | 4 +- test/CodeGen/X86/haddsub-undef.ll | 6 +- test/CodeGen/X86/half.ll | 8 +- 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-invariant-load.ll | 6 +- test/CodeGen/X86/huge-stack-offset.ll | 6 +- test/CodeGen/X86/i128-mul.ll | 6 +- test/CodeGen/X86/i128-ret.ll | 2 +- test/CodeGen/X86/i1narrowfail.ll | 2 +- test/CodeGen/X86/i256-add.ll | 8 +- test/CodeGen/X86/i2k.ll | 4 +- test/CodeGen/X86/i486-fence-loop.ll | 4 +- test/CodeGen/X86/i64-mem-copy.ll | 2 +- test/CodeGen/X86/inalloca-ctor.ll | 6 +- test/CodeGen/X86/inalloca-invoke.ll | 4 +- test/CodeGen/X86/inalloca-stdcall.ll | 4 +- test/CodeGen/X86/inalloca.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 | 4 +- test/CodeGen/X86/invalid-shift-immediate.ll | 2 +- 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 | 24 +- 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 | 50536 +++++++++---------- 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-symbol.ll | 4 +- test/CodeGen/X86/liveness-local-regalloc.ll | 4 +- test/CodeGen/X86/load-slice.ll | 22 +- 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-shuffle-bug.ll | 41 + 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 | 8 +- test/CodeGen/X86/masked-iv-safe.ll | 96 +- test/CodeGen/X86/masked-iv-unsafe.ll | 156 +- test/CodeGen/X86/masked_memop.ll | 47 +- 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 | 6 +- 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 +- 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 | 40 +- 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 | 8 +- test/CodeGen/X86/mmx-arith.ll | 70 +- test/CodeGen/X86/mmx-bitcast.ll | 8 +- test/CodeGen/X86/mmx-copy-gprs.ll | 2 +- test/CodeGen/X86/mmx-fold-load.ll | 50 +- 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 | 6 +- 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 | 4 +- test/CodeGen/X86/musttail-indirect.ll | 44 +- test/CodeGen/X86/musttail-thiscall.ll | 8 +- test/CodeGen/X86/musttail-varargs.ll | 12 +- test/CodeGen/X86/nancvt.ll | 106 +- 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/norex-subreg.ll | 6 +- test/CodeGen/X86/nosse-error1.ll | 8 +- test/CodeGen/X86/nosse-error2.ll | 8 +- test/CodeGen/X86/nosse-varargs.ll | 18 +- test/CodeGen/X86/null-streamer.ll | 15 +- test/CodeGen/X86/object-size.ll | 20 +- 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/packed_struct.ll | 10 +- test/CodeGen/X86/palignr-2.ll | 28 - test/CodeGen/X86/patchpoint-invoke.ll | 2 +- test/CodeGen/X86/patchpoint-webkit_jscc.ll | 2 +- test/CodeGen/X86/patchpoint.ll | 8 +- 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 | 8 +- test/CodeGen/X86/pic_jumptable.ll | 2 +- test/CodeGen/X86/pmovext.ll | 2 +- test/CodeGen/X86/pmovsx-inreg.ll | 24 +- test/CodeGen/X86/pmulld.ll | 2 +- test/CodeGen/X86/pointer-vector.ll | 24 +- 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 | 8 +- 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/pr2177.ll | 6 +- test/CodeGen/X86/pr21792.ll | 12 +- test/CodeGen/X86/pr2182.ll | 8 +- test/CodeGen/X86/pr22774.ll | 17 + test/CodeGen/X86/pr2326.ll | 8 +- test/CodeGen/X86/pr2656.ll | 10 +- test/CodeGen/X86/pr2849.ll | 14 +- test/CodeGen/X86/pr2924.ll | 8 +- test/CodeGen/X86/pr2982.ll | 6 +- test/CodeGen/X86/pr3154.ll | 26 +- test/CodeGen/X86/pr3216.ll | 2 +- test/CodeGen/X86/pr3241.ll | 2 +- test/CodeGen/X86/pr3244.ll | 4 +- test/CodeGen/X86/pr3317.ll | 16 +- test/CodeGen/X86/pr3366.ll | 2 +- test/CodeGen/X86/pr3522.ll | 2 +- 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 | 48 +- test/CodeGen/X86/ptrtoint-constexpr.ll | 2 +- test/CodeGen/X86/ragreedy-bug.ll | 106 +- test/CodeGen/X86/ragreedy-hoist-spill.ll | 24 +- .../CodeGen/X86/ragreedy-last-chance-recoloring.ll | 52 +- test/CodeGen/X86/rd-mod-wr-eflags.ll | 54 +- test/CodeGen/X86/rdrand.ll | 2 +- .../CodeGen/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_widen_div.ll | 30 +- test/CodeGen/X86/scalarize-bitcast.ll | 2 +- test/CodeGen/X86/scev-interchange.ll | 2 +- test/CodeGen/X86/segmented-stacks.ll | 2 +- test/CodeGen/X86/seh-catch-all.ll | 2 +- test/CodeGen/X86/seh-finally.ll | 4 +- test/CodeGen/X86/seh-safe-div.ll | 24 +- test/CodeGen/X86/select-with-and-or.ll | 2 +- test/CodeGen/X86/select.ll | 12 +- test/CodeGen/X86/selectiondag-cse.ll | 8 +- test/CodeGen/X86/setcc-combine.ll | 166 + test/CodeGen/X86/setcc-narrowing.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-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-one.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.ll | 8 +- test/CodeGen/X86/simple-zext.ll | 2 +- test/CodeGen/X86/sink-cheap-instructions.ll | 62 + test/CodeGen/X86/sink-hoist.ll | 16 +- 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 | 2 +- test/CodeGen/X86/split-vector-bitcast.ll | 2 +- test/CodeGen/X86/sqrt.ll | 4 +- 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-intel-ocl.ll | 4 +- test/CodeGen/X86/sse-load-ret.ll | 2 +- test/CodeGen/X86/sse-unaligned-mem-feature.ll | 2 +- test/CodeGen/X86/sse2.ll | 40 +- test/CodeGen/X86/sse3-avx-addsub.ll | 8 +- test/CodeGen/X86/sse3.ll | 18 +- test/CodeGen/X86/sse41-pmovxrm-intrinsics.ll | 24 +- test/CodeGen/X86/sse41.ll | 77 +- test/CodeGen/X86/sse42-intrinsics-x86.ll | 12 +- test/CodeGen/X86/ssp-data-layout.ll | 156 +- test/CodeGen/X86/stack-align.ll | 6 +- test/CodeGen/X86/stack-folding-int-avx1.ll | 36 +- test/CodeGen/X86/stack-folding-int-avx2.ll | 13 +- test/CodeGen/X86/stack-folding-int-sse42.ll | 36 +- test/CodeGen/X86/stack-protector-dbginfo.ll | 96 +- .../X86/stack-protector-vreg-to-vreg-copy.ll | 4 +- test/CodeGen/X86/stack-protector-weight.ll | 6 +- test/CodeGen/X86/stack-protector.ll | 502 +- test/CodeGen/X86/stack-update-frame-opcode.ll | 2 +- test/CodeGen/X86/stack_guard_remat.ll | 2 +- test/CodeGen/X86/stackmap-fast-isel.ll | 2 +- test/CodeGen/X86/stackmap.ll | 2 +- test/CodeGen/X86/statepoint-call-lowering.ll | 2 +- test/CodeGen/X86/statepoint-forward.ll | 12 +- test/CodeGen/X86/statepoint-invoke.ll | 38 + 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 | 4 +- test/CodeGen/X86/switch-crit-edge-constant.ll | 2 +- test/CodeGen/X86/switch-zextload.ll | 2 +- test/CodeGen/X86/tail-call-win64.ll | 2 +- test/CodeGen/X86/tail-dup-addr.ll | 2 +- test/CodeGen/X86/tail-opts.ll | 44 +- test/CodeGen/X86/tailcall-64.ll | 10 +- test/CodeGen/X86/tailcall-fastisel.ll | 2 +- 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/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 +- test/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 | 18 +- test/CodeGen/X86/tlv-1.ll | 6 +- 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/umul-with-carry.ll | 4 +- test/CodeGen/X86/unaligned-32-byte-memops.ll | 110 +- test/CodeGen/X86/unaligned-load.ll | 4 +- test/CodeGen/X86/unaligned-spill-folding.ll | 4 +- test/CodeGen/X86/unknown-location.ll | 20 +- test/CodeGen/X86/unwindraise.ll | 70 +- test/CodeGen/X86/use-add-flags.ll | 2 +- test/CodeGen/X86/utf16-cfstrings.ll | 2 +- test/CodeGen/X86/v4i32load-crash.ll | 8 +- test/CodeGen/X86/v8i1-masks.ll | 10 +- test/CodeGen/X86/vaargs.ll | 10 +- test/CodeGen/X86/vararg_tailcall.ll | 32 +- 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_extract-mmx.ll | 6 +- test/CodeGen/X86/vec_extract-sse4.ll | 8 +- test/CodeGen/X86/vec_extract.ll | 6 +- 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 | 6 +- test/CodeGen/X86/vec_insert-mmx.ll | 4 +- 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_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_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-gep.ll | 20 +- test/CodeGen/X86/vector-idiv.ll | 278 +- test/CodeGen/X86/vector-intrinsics.ll | 8 +- test/CodeGen/X86/vector-sext.ll | 18 +- test/CodeGen/X86/vector-shuffle-128-v16.ll | 19 + test/CodeGen/X86/vector-shuffle-128-v2.ll | 35 +- test/CodeGen/X86/vector-shuffle-128-v4.ll | 31 +- test/CodeGen/X86/vector-shuffle-256-v16.ll | 1711 +- test/CodeGen/X86/vector-shuffle-256-v32.ll | 6 +- test/CodeGen/X86/vector-shuffle-256-v4.ll | 29 +- test/CodeGen/X86/vector-shuffle-256-v8.ll | 24 +- test/CodeGen/X86/vector-shuffle-512-v8.ll | 13 +- test/CodeGen/X86/vector-shuffle-combining.ll | 20 +- test/CodeGen/X86/vector-shuffle-mmx.ll | 15 +- test/CodeGen/X86/vector-shuffle-sse1.ll | 8 +- test/CodeGen/X86/vector-trunc.ll | 17 + test/CodeGen/X86/vector-variable-idx2.ll | 8 +- test/CodeGen/X86/vector-zext.ll | 6 +- test/CodeGen/X86/vector-zmov.ll | 4 +- test/CodeGen/X86/vector.ll | 42 +- test/CodeGen/X86/viabs.ll | 2 +- test/CodeGen/X86/visibility2.ll | 2 +- test/CodeGen/X86/volatile.ll | 6 +- test/CodeGen/X86/vortex-bug.ll | 2 +- test/CodeGen/X86/vselect-avx.ll | 4 +- test/CodeGen/X86/vselect-minmax.ll | 1536 +- test/CodeGen/X86/vselect.ll | 2 +- test/CodeGen/X86/vshift-4.ll | 9 +- test/CodeGen/X86/vshift-5.ll | 4 +- test/CodeGen/X86/vshift-6.ll | 2 +- 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 | 18 +- test/CodeGen/X86/widen_cast-2.ll | 18 +- test/CodeGen/X86/widen_cast-4.ll | 32 +- test/CodeGen/X86/widen_conversions.ll | 2 +- test/CodeGen/X86/widen_load-0.ll | 4 +- test/CodeGen/X86/widen_load-1.ll | 6 +- test/CodeGen/X86/widen_load-2.ll | 44 +- test/CodeGen/X86/win32_sret.ll | 12 +- test/CodeGen/X86/win64_eh.ll | 16 +- test/CodeGen/X86/win64_frame.ll | 6 +- test/CodeGen/X86/win64_nonvol.ll | 28 + test/CodeGen/X86/win_eh_prepare.ll | 4 +- test/CodeGen/X86/x32-function_pointer-1.ll | 4 +- test/CodeGen/X86/x32-lea-1.ll | 2 +- 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-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-varargs.ll | 2 +- test/CodeGen/X86/x86-mixed-alignment-dagcombine.ll | 8 +- test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll | 15 + test/CodeGen/X86/x86-shifts.ll | 16 +- test/CodeGen/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 | 40 +- test/CodeGen/X86/xor.ll | 12 + 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 +- test/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 | 21 +- 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 | 2 +- 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 +- test/DebugInfo/2009-11-03-InsertExtractValue.ll | 14 +- test/DebugInfo/2009-11-05-DeadGlobalVariable.ll | 18 +- .../DebugInfo/2009-11-06-NamelessGlobalVariable.ll | 12 +- test/DebugInfo/2009-11-10-CurrentFn.ll | 18 +- test/DebugInfo/2010-01-05-DbgScope.ll | 16 +- test/DebugInfo/2010-03-12-llc-crash.ll | 20 +- test/DebugInfo/2010-03-19-DbgDeclare.ll | 13 +- test/DebugInfo/2010-03-24-MemberFn.ll | 50 +- test/DebugInfo/2010-03-30-InvalidDbgInfoCrash.ll | 36 - test/DebugInfo/2010-04-06-NestedFnDbgInfo.ll | 70 +- test/DebugInfo/2010-04-19-FramePtr.ll | 20 +- test/DebugInfo/2010-05-03-DisableFramePtr.ll | 30 +- test/DebugInfo/2010-05-03-OriginDIE.ll | 92 +- test/DebugInfo/2010-05-10-MultipleCU.ll | 30 +- test/DebugInfo/2010-06-29-InlinedFnLocalVar.ll | 43 +- test/DebugInfo/2010-07-19-Crash.ll | 24 +- test/DebugInfo/2010-10-01-crash.ll | 16 +- test/DebugInfo/AArch64/big-endian.ll | 12 +- test/DebugInfo/AArch64/cfi-eof-prologue.ll | 68 +- test/DebugInfo/AArch64/coalescing.ll | 20 +- test/DebugInfo/AArch64/dwarfdump.ll | 14 +- test/DebugInfo/AArch64/frameindices.ll | 104 +- test/DebugInfo/AArch64/struct_by_value.ll | 35 +- test/DebugInfo/ARM/PR16736.ll | 40 +- test/DebugInfo/ARM/cfi-eof-prologue.ll | 68 +- test/DebugInfo/ARM/header.ll | 30 + test/DebugInfo/ARM/lowerbdgdeclare_vla.ll | 48 +- test/DebugInfo/ARM/s-super-register.ll | 26 +- test/DebugInfo/ARM/sectionorder.ll | 18 - test/DebugInfo/ARM/selectiondag-deadcode.ll | 16 +- test/DebugInfo/ARM/tls.ll | 12 +- test/DebugInfo/COFF/asan-module-ctor.ll | 13 +- .../COFF/asan-module-without-functions.ll | 6 +- test/DebugInfo/COFF/asm.ll | 15 +- test/DebugInfo/COFF/cpp-mangling.ll | 16 +- test/DebugInfo/COFF/multifile.ll | 23 +- test/DebugInfo/COFF/multifunction.ll | 21 +- test/DebugInfo/COFF/simple.ll | 15 +- .../COFF/tail-call-without-lexical-scopes.ll | 15 +- test/DebugInfo/Inputs/gmlt.ll | 18 +- test/DebugInfo/Inputs/line.ll | 16 +- test/DebugInfo/Mips/InlinedFnLocalVar.ll | 57 + test/DebugInfo/Mips/delay-slot.ll | 20 +- test/DebugInfo/Mips/fn-call-line.ll | 12 +- test/DebugInfo/PDB/Inputs/symbolformat.cpp | 24 +- test/DebugInfo/PDB/Inputs/symbolformat.pdb | Bin 143360 -> 35840 bytes test/DebugInfo/PDB/pdbdump-flags.test | 34 +- test/DebugInfo/PDB/pdbdump-symbol-format.test | 74 +- test/DebugInfo/PR20038.ll | 68 +- test/DebugInfo/PowerPC/tls-fission.ll | 13 +- test/DebugInfo/PowerPC/tls.ll | 12 +- test/DebugInfo/Sparc/gnu-window-save.ll | 16 +- test/DebugInfo/SystemZ/variable-loc.ll | 46 +- test/DebugInfo/X86/2010-04-13-PubType.ll | 38 +- test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll | 26 +- test/DebugInfo/X86/2011-12-16-BadStructRef.ll | 134 +- test/DebugInfo/X86/DW_AT_byte_size.ll | 32 +- test/DebugInfo/X86/DW_AT_linkage_name.ll | 48 +- test/DebugInfo/X86/DW_AT_location-reference.ll | 26 +- test/DebugInfo/X86/DW_AT_object_pointer.ll | 62 +- test/DebugInfo/X86/DW_AT_specification.ll | 30 +- test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll | 14 +- test/DebugInfo/X86/DW_TAG_friend.ll | 40 +- test/DebugInfo/X86/InlinedFnLocalVar.ll | 57 + test/DebugInfo/X86/aligned_stack_var.ll | 20 +- test/DebugInfo/X86/arange.ll | 18 +- test/DebugInfo/X86/arguments.ll | 42 +- test/DebugInfo/X86/array.ll | 54 +- test/DebugInfo/X86/array2.ll | 60 +- test/DebugInfo/X86/block-capture.ll | 100 +- test/DebugInfo/X86/byvalstruct.ll | 72 +- test/DebugInfo/X86/c-type-units.ll | 12 +- test/DebugInfo/X86/coff_debug_info_type.ll | 14 +- test/DebugInfo/X86/coff_relative_names.ll | 14 +- test/DebugInfo/X86/concrete_out_of_line.ll | 70 +- test/DebugInfo/X86/constant-aggregate.ll | 46 +- test/DebugInfo/X86/cu-ranges-odr.ll | 48 +- test/DebugInfo/X86/cu-ranges.ll | 28 +- test/DebugInfo/X86/data_member_location.ll | 20 +- test/DebugInfo/X86/dbg-at-specficiation.ll | 16 +- test/DebugInfo/X86/dbg-byval-parameter.ll | 42 +- test/DebugInfo/X86/dbg-const-int.ll | 20 +- test/DebugInfo/X86/dbg-const.ll | 22 +- test/DebugInfo/X86/dbg-declare-arg.ll | 90 +- test/DebugInfo/X86/dbg-declare.ll | 40 +- test/DebugInfo/X86/dbg-file-name.ll | 14 +- test/DebugInfo/X86/dbg-i128-const.ll | 27 +- test/DebugInfo/X86/dbg-merge-loc-entry.ll | 46 +- test/DebugInfo/X86/dbg-prolog-end.ll | 36 +- test/DebugInfo/X86/dbg-subrange.ll | 24 +- test/DebugInfo/X86/dbg-value-const-byref.ll | 24 +- test/DebugInfo/X86/dbg-value-dag-combine.ll | 36 +- test/DebugInfo/X86/dbg-value-inlined-parameter.ll | 58 +- test/DebugInfo/X86/dbg-value-isel.ll | 36 +- test/DebugInfo/X86/dbg-value-location.ll | 40 +- test/DebugInfo/X86/dbg-value-range.ll | 34 +- test/DebugInfo/X86/dbg-value-terminator.ll | 30 +- test/DebugInfo/X86/dbg_value_direct.ll | 44 +- test/DebugInfo/X86/debug-dead-local-var.ll | 26 +- test/DebugInfo/X86/debug-info-access.ll | 56 +- .../X86/debug-info-block-captured-self.ll | 44 +- test/DebugInfo/X86/debug-info-blocks.ll | 264 +- test/DebugInfo/X86/debug-info-static-member.ll | 56 +- test/DebugInfo/X86/debug-loc-asan.ll | 28 +- test/DebugInfo/X86/debug-loc-offset.ll | 56 +- test/DebugInfo/X86/debug-ranges-offset.ll | 72 +- test/DebugInfo/X86/debug_frame.ll | 12 +- test/DebugInfo/X86/decl-derived-member.ll | 72 +- test/DebugInfo/X86/discriminator.ll | 22 +- .../DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll | 32 +- test/DebugInfo/X86/dwarf-aranges.ll | 46 +- test/DebugInfo/X86/dwarf-public-names.ll | 66 +- test/DebugInfo/X86/dwarf-pubnames-split.ll | 16 +- test/DebugInfo/X86/earlydup-crash.ll | 92 +- test/DebugInfo/X86/elf-names.ll | 94 +- test/DebugInfo/X86/empty-and-one-elem-array.ll | 56 +- test/DebugInfo/X86/empty-array.ll | 28 +- test/DebugInfo/X86/empty.ll | 26 + test/DebugInfo/X86/ending-run.ll | 30 +- 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 | 30 +- test/DebugInfo/X86/fission-ranges.ll | 70 +- test/DebugInfo/X86/float_const.ll | 24 +- test/DebugInfo/X86/formal_parameter.ll | 22 +- test/DebugInfo/X86/frame-register.ll | 60 + test/DebugInfo/X86/generate-odr-hash.ll | 80 +- test/DebugInfo/X86/ghost-sdnode-dbgvalues.ll | 34 +- test/DebugInfo/X86/gnu-public-names-empty.ll | 6 +- test/DebugInfo/X86/gnu-public-names.ll | 100 +- test/DebugInfo/X86/header.ll | 29 + test/DebugInfo/X86/inline-member-function.ll | 42 +- test/DebugInfo/X86/inline-seldag-test.ll | 32 +- test/DebugInfo/X86/instcombine-instrinsics.ll | 32 +- test/DebugInfo/X86/lexical_block.ll | 22 +- test/DebugInfo/X86/line-info.ll | 30 +- test/DebugInfo/X86/linkage-name.ll | 40 +- test/DebugInfo/X86/low-pc-cu.ll | 12 +- test/DebugInfo/X86/memberfnptr.ll | 20 +- test/DebugInfo/X86/misched-dbg-value.ll | 140 +- 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 | 46 +- test/DebugInfo/X86/nondefault-subrange-array.ll | 28 +- test/DebugInfo/X86/nophysreg.ll | 52 +- test/DebugInfo/X86/objc-fwd-decl.ll | 14 +- test/DebugInfo/X86/objc-property-void.ll | 48 +- test/DebugInfo/X86/op_deref.ll | 56 +- test/DebugInfo/X86/parameters.ll | 48 +- test/DebugInfo/X86/pieces-1.ll | 34 +- test/DebugInfo/X86/pieces-2.ll | 48 +- test/DebugInfo/X86/pieces-3.ll | 52 +- test/DebugInfo/X86/pointer-type-size.ll | 20 +- test/DebugInfo/X86/pr11300.ll | 46 +- test/DebugInfo/X86/pr12831.ll | 224 +- test/DebugInfo/X86/pr13303.ll | 16 +- test/DebugInfo/X86/pr19307.ll | 100 +- test/DebugInfo/X86/processes-relocations.ll | 6 +- test/DebugInfo/X86/prologue-stack.ll | 16 +- test/DebugInfo/X86/recursive_inlining.ll | 86 +- test/DebugInfo/X86/ref_addr_relocation.ll | 29 +- test/DebugInfo/X86/reference-argument.ll | 90 +- test/DebugInfo/X86/rvalue-ref.ll | 28 +- test/DebugInfo/X86/sret.ll | 240 +- test/DebugInfo/X86/sroasplit-1.ll | 54 +- test/DebugInfo/X86/sroasplit-2.ll | 60 +- test/DebugInfo/X86/sroasplit-3.ll | 34 +- test/DebugInfo/X86/sroasplit-4.ll | 72 +- test/DebugInfo/X86/sroasplit-5.ll | 40 +- .../X86/stmt-list-multiple-compile-units.ll | 42 +- test/DebugInfo/X86/stmt-list.ll | 18 +- test/DebugInfo/X86/stringpool.ll | 12 +- test/DebugInfo/X86/struct-loc.ll | 16 +- test/DebugInfo/X86/subrange-type.ll | 24 +- test/DebugInfo/X86/subreg.ll | 20 +- test/DebugInfo/X86/subregisters.ll | 44 +- test/DebugInfo/X86/template.ll | 50 +- test/DebugInfo/X86/tls.ll | 50 +- test/DebugInfo/X86/type_units_with_addresses.ll | 54 +- test/DebugInfo/X86/union-const.ll | 26 +- test/DebugInfo/X86/union-template.ll | 40 +- test/DebugInfo/X86/vector.ll | 18 +- test/DebugInfo/X86/vla.ll | 58 +- test/DebugInfo/accel-table-hash-collisions.ll | 92 + test/DebugInfo/array.ll | 25 +- test/DebugInfo/block-asan.ll | 50 +- test/DebugInfo/bug_null_debuginfo.ll | 6 +- test/DebugInfo/constant-pointers.ll | 24 +- test/DebugInfo/cross-cu-inlining.ll | 36 +- test/DebugInfo/cross-cu-linkonce-distinct.ll | 34 +- test/DebugInfo/cross-cu-linkonce.ll | 32 +- test/DebugInfo/cu-range-hole.ll | 30 +- test/DebugInfo/cu-ranges.ll | 28 +- test/DebugInfo/dead-argument-order.ll | 26 +- test/DebugInfo/debug-info-always-inline.ll | 6 +- test/DebugInfo/debug-info-qualifiers.ll | 50 +- test/DebugInfo/debuginfofinder-multiple-cu.ll | 28 +- test/DebugInfo/dwarf-public-names.ll | 56 +- test/DebugInfo/empty.ll | 8 +- test/DebugInfo/enum-types.ll | 34 +- test/DebugInfo/enum.ll | 32 +- test/DebugInfo/global.ll | 16 +- test/DebugInfo/incorrect-variable-debugloc.ll | 70 +- test/DebugInfo/incorrect-variable-debugloc1.ll | 22 +- test/DebugInfo/inheritance.ll | 98 +- test/DebugInfo/inline-debug-info-multiret.ll | 58 +- test/DebugInfo/inline-debug-info.ll | 56 +- test/DebugInfo/inline-no-debug-info.ll | 14 +- test/DebugInfo/inline-scopes.ll | 46 +- test/DebugInfo/inlined-arguments.ll | 34 +- test/DebugInfo/inlined-vars.ll | 30 +- test/DebugInfo/location-verifier.ll | 16 +- test/DebugInfo/lto-comp-dir.ll | 24 +- test/DebugInfo/member-order.ll | 26 +- test/DebugInfo/member-pointers.ll | 24 +- test/DebugInfo/missing-abstract-variable.ll | 48 +- test/DebugInfo/multiline.ll | 12 +- test/DebugInfo/namespace.ll | 120 +- test/DebugInfo/namespace_function_definition.ll | 14 +- .../namespace_inline_function_definition.ll | 34 +- test/DebugInfo/nodebug.ll | 12 +- test/DebugInfo/piece-verifier.ll | 42 +- test/DebugInfo/restrict.ll | 20 +- test/DebugInfo/sugared-constants.ll | 34 +- test/DebugInfo/template-recursive-void.ll | 46 +- test/DebugInfo/tu-composite.ll | 94 +- test/DebugInfo/tu-member-pointer.ll | 16 +- test/DebugInfo/two-cus-from-same-file.ll | 42 +- test/DebugInfo/typedef.ll | 14 +- test/DebugInfo/unconditional-branch.ll | 22 +- test/DebugInfo/varargs.ll | 36 +- test/DebugInfo/version.ll | 14 +- test/ExecutionEngine/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 | 12 +- .../MCJIT/2013-04-04-RelocAddend.ll | 6 +- test/ExecutionEngine/MCJIT/fpbitcast.ll | 2 +- test/ExecutionEngine/MCJIT/hello-sm-pic.ll | 2 +- test/ExecutionEngine/MCJIT/hello.ll | 2 +- test/ExecutionEngine/MCJIT/pr13727.ll | 32 +- test/ExecutionEngine/MCJIT/remote/stubs-remote.ll | 4 +- test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll | 4 +- .../MCJIT/remote/test-common-symbols-remote.ll | 32 +- .../remote/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 +- test/ExecutionEngine/MCJIT/test-common-symbols.ll | 32 +- .../MCJIT/test-fp-no-external-funcs.ll | 2 +- test/ExecutionEngine/MCJIT/test-fp.ll | 2 +- test/ExecutionEngine/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 +- .../ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll | 8 +- test/ExecutionEngine/MCJIT/test-ptr-reloc.ll | 8 +- test/ExecutionEngine/OrcJIT/2002-12-16-ArgTest.ll | 37 - .../OrcJIT/2003-01-04-ArgumentBug.ll | 13 - test/ExecutionEngine/OrcJIT/2003-01-04-LoopTest.ll | 20 - test/ExecutionEngine/OrcJIT/2003-01-04-PhiTest.ll | 12 - test/ExecutionEngine/OrcJIT/2003-01-09-SARTest.ll | 11 - test/ExecutionEngine/OrcJIT/2003-01-10-FUCOM.ll | 10 - .../OrcJIT/2003-01-15-AlignmentTest.ll | 17 - .../OrcJIT/2003-05-06-LivenessClobber.ll | 19 - .../OrcJIT/2003-05-07-ArgumentTest.ll | 11 - .../OrcJIT/2003-05-11-PHIRegAllocBug.ll | 13 - .../ExecutionEngine/OrcJIT/2003-06-04-bzip2-bug.ll | 17 - test/ExecutionEngine/OrcJIT/2003-06-05-PHIBug.ll | 15 - .../OrcJIT/2003-08-15-AllocaAssertion.ll | 11 - .../OrcJIT/2003-08-21-EnvironmentTest.ll | 21 - .../OrcJIT/2003-08-23-RegisterAllocatePhysReg.ll | 34 - ...-10-18-PHINode-ConstantExpr-CondCode-Failure.ll | 23 - .../OrcJIT/2005-12-02-TailCallBug.ll | 22 - .../OrcJIT/2007-12-10-APIntLoadStore.ll | 19 - .../OrcJIT/2008-06-05-APInt-OverAShr.ll | 60 - .../OrcJIT/2013-04-04-RelocAddend.ll | 25 - .../OrcJIT/Inputs/cross-module-b.ll | 7 - .../OrcJIT/Inputs/multi-module-b.ll | 7 - .../OrcJIT/Inputs/multi-module-c.ll | 4 - .../OrcJIT/Inputs/multi-module-eh-b.ll | 30 - test/ExecutionEngine/OrcJIT/cross-module-a.ll | 13 - .../OrcJIT/cross-module-sm-pic-a.ll | 14 - test/ExecutionEngine/OrcJIT/eh-lg-pic.ll | 32 - test/ExecutionEngine/OrcJIT/eh-sm-pic.ll | 32 - test/ExecutionEngine/OrcJIT/eh.ll | 32 - test/ExecutionEngine/OrcJIT/fpbitcast.ll | 21 - test/ExecutionEngine/OrcJIT/hello-sm-pic.ll | 12 - test/ExecutionEngine/OrcJIT/hello.ll | 11 - test/ExecutionEngine/OrcJIT/hello2.ll | 17 - test/ExecutionEngine/OrcJIT/lit.local.cfg | 26 - test/ExecutionEngine/OrcJIT/load-object-a.ll | 24 - test/ExecutionEngine/OrcJIT/multi-module-a.ll | 9 - test/ExecutionEngine/OrcJIT/multi-module-eh-a.ll | 35 - .../OrcJIT/multi-module-sm-pic-a.ll | 10 - test/ExecutionEngine/OrcJIT/non-extern-addend.ll | 21 - test/ExecutionEngine/OrcJIT/pr13727.ll | 88 - .../OrcJIT/remote/Inputs/cross-module-b.ll | 7 - .../OrcJIT/remote/Inputs/multi-module-b.ll | 7 - .../OrcJIT/remote/Inputs/multi-module-c.ll | 4 - .../OrcJIT/remote/cross-module-a.ll | 12 - .../OrcJIT/remote/cross-module-sm-pic-a.ll | 14 - test/ExecutionEngine/OrcJIT/remote/lit.local.cfg | 8 - .../OrcJIT/remote/multi-module-a.ll | 9 - .../OrcJIT/remote/multi-module-sm-pic-a.ll | 10 - .../OrcJIT/remote/simpletest-remote.ll | 10 - test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll | 37 - test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll | 37 - .../OrcJIT/remote/test-common-symbols-remote.ll | 88 - .../OrcJIT/remote/test-data-align-remote.ll | 15 - .../remote/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 - .../OrcJIT/remote/test-ptr-reloc-remote.ll | 15 - .../OrcJIT/remote/test-ptr-reloc-sm-pic.ll | 17 - test/ExecutionEngine/OrcJIT/simplesttest.ll | 6 - test/ExecutionEngine/OrcJIT/simpletest.ll | 11 - test/ExecutionEngine/OrcJIT/stubs-sm-pic.ll | 36 - test/ExecutionEngine/OrcJIT/stubs.ll | 35 - test/ExecutionEngine/OrcJIT/test-arith.ll | 34 - test/ExecutionEngine/OrcJIT/test-branch.ll | 12 - .../OrcJIT/test-call-no-external-funcs.ll | 14 - test/ExecutionEngine/OrcJIT/test-call.ll | 21 - test/ExecutionEngine/OrcJIT/test-cast.ll | 109 - .../OrcJIT/test-common-symbols-alignment.ll | 32 - test/ExecutionEngine/OrcJIT/test-common-symbols.ll | 88 - test/ExecutionEngine/OrcJIT/test-constantexpr.ll | 12 - test/ExecutionEngine/OrcJIT/test-data-align.ll | 15 - .../OrcJIT/test-fp-no-external-funcs.ll | 21 - test/ExecutionEngine/OrcJIT/test-fp.ll | 23 - test/ExecutionEngine/OrcJIT/test-global-ctors.ll | 22 - .../OrcJIT/test-global-init-nonzero-sm-pic.ll | 35 - .../OrcJIT/test-global-init-nonzero.ll | 34 - test/ExecutionEngine/OrcJIT/test-global.ll | 34 - test/ExecutionEngine/OrcJIT/test-loadstore.ll | 31 - test/ExecutionEngine/OrcJIT/test-local.ll | 34 - test/ExecutionEngine/OrcJIT/test-logical.ll | 18 - test/ExecutionEngine/OrcJIT/test-loop.ll | 14 - test/ExecutionEngine/OrcJIT/test-phi.ll | 34 - .../OrcJIT/test-ptr-reloc-sm-pic.ll | 17 - test/ExecutionEngine/OrcJIT/test-ptr-reloc.ll | 16 - test/ExecutionEngine/OrcJIT/test-ret.ll | 46 - test/ExecutionEngine/OrcJIT/test-return.ll | 8 - test/ExecutionEngine/OrcJIT/test-setcond-fp.ll | 24 - test/ExecutionEngine/OrcJIT/test-setcond-int.ll | 69 - test/ExecutionEngine/OrcJIT/test-shift.ll | 32 - test/ExecutionEngine/OrcLazy/lit.local.cfg | 2 + test/ExecutionEngine/OrcLazy/trivial_retval_1.ll | 26 + .../ExecutionEngine/OrcMCJIT/2002-12-16-ArgTest.ll | 37 + .../OrcMCJIT/2003-01-04-ArgumentBug.ll | 13 + .../OrcMCJIT/2003-01-04-LoopTest.ll | 20 + .../ExecutionEngine/OrcMCJIT/2003-01-04-PhiTest.ll | 12 + .../ExecutionEngine/OrcMCJIT/2003-01-09-SARTest.ll | 11 + test/ExecutionEngine/OrcMCJIT/2003-01-10-FUCOM.ll | 10 + .../OrcMCJIT/2003-01-15-AlignmentTest.ll | 17 + .../OrcMCJIT/2003-05-06-LivenessClobber.ll | 19 + .../OrcMCJIT/2003-05-07-ArgumentTest.ll | 11 + .../OrcMCJIT/2003-05-11-PHIRegAllocBug.ll | 13 + .../OrcMCJIT/2003-06-04-bzip2-bug.ll | 17 + test/ExecutionEngine/OrcMCJIT/2003-06-05-PHIBug.ll | 15 + .../OrcMCJIT/2003-08-15-AllocaAssertion.ll | 11 + .../OrcMCJIT/2003-08-21-EnvironmentTest.ll | 21 + .../OrcMCJIT/2003-08-23-RegisterAllocatePhysReg.ll | 34 + ...-10-18-PHINode-ConstantExpr-CondCode-Failure.ll | 23 + .../OrcMCJIT/2005-12-02-TailCallBug.ll | 22 + .../OrcMCJIT/2007-12-10-APIntLoadStore.ll | 19 + .../OrcMCJIT/2008-06-05-APInt-OverAShr.ll | 60 + .../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 + test/ExecutionEngine/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 + test/ExecutionEngine/OrcMCJIT/fpbitcast.ll | 21 + test/ExecutionEngine/OrcMCJIT/hello-sm-pic.ll | 12 + test/ExecutionEngine/OrcMCJIT/hello.ll | 11 + test/ExecutionEngine/OrcMCJIT/hello2.ll | 17 + test/ExecutionEngine/OrcMCJIT/lit.local.cfg | 26 + test/ExecutionEngine/OrcMCJIT/load-object-a.ll | 24 + test/ExecutionEngine/OrcMCJIT/multi-module-a.ll | 9 + test/ExecutionEngine/OrcMCJIT/multi-module-eh-a.ll | 35 + .../OrcMCJIT/multi-module-sm-pic-a.ll | 10 + test/ExecutionEngine/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 + test/ExecutionEngine/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 + .../OrcMCJIT/remote/test-common-symbols-remote.ll | 88 + .../OrcMCJIT/remote/test-data-align-remote.ll | 15 + .../remote/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 + test/ExecutionEngine/OrcMCJIT/simpletest.ll | 11 + test/ExecutionEngine/OrcMCJIT/stubs-sm-pic.ll | 36 + test/ExecutionEngine/OrcMCJIT/stubs.ll | 35 + test/ExecutionEngine/OrcMCJIT/test-arith.ll | 34 + test/ExecutionEngine/OrcMCJIT/test-branch.ll | 12 + .../OrcMCJIT/test-call-no-external-funcs.ll | 14 + test/ExecutionEngine/OrcMCJIT/test-call.ll | 21 + test/ExecutionEngine/OrcMCJIT/test-cast.ll | 109 + .../OrcMCJIT/test-common-symbols-alignment.ll | 32 + .../OrcMCJIT/test-common-symbols.ll | 88 + test/ExecutionEngine/OrcMCJIT/test-constantexpr.ll | 12 + test/ExecutionEngine/OrcMCJIT/test-data-align.ll | 15 + .../OrcMCJIT/test-fp-no-external-funcs.ll | 21 + test/ExecutionEngine/OrcMCJIT/test-fp.ll | 23 + test/ExecutionEngine/OrcMCJIT/test-global-ctors.ll | 22 + .../OrcMCJIT/test-global-init-nonzero-sm-pic.ll | 35 + .../OrcMCJIT/test-global-init-nonzero.ll | 34 + test/ExecutionEngine/OrcMCJIT/test-global.ll | 34 + test/ExecutionEngine/OrcMCJIT/test-loadstore.ll | 31 + test/ExecutionEngine/OrcMCJIT/test-local.ll | 34 + test/ExecutionEngine/OrcMCJIT/test-logical.ll | 18 + test/ExecutionEngine/OrcMCJIT/test-loop.ll | 14 + test/ExecutionEngine/OrcMCJIT/test-phi.ll | 34 + .../OrcMCJIT/test-ptr-reloc-sm-pic.ll | 17 + test/ExecutionEngine/OrcMCJIT/test-ptr-reloc.ll | 16 + test/ExecutionEngine/OrcMCJIT/test-ret.ll | 46 + test/ExecutionEngine/OrcMCJIT/test-return.ll | 8 + test/ExecutionEngine/OrcMCJIT/test-setcond-fp.ll | 24 + test/ExecutionEngine/OrcMCJIT/test-setcond-int.ll | 69 + test/ExecutionEngine/OrcMCJIT/test-shift.ll | 32 + test/ExecutionEngine/RuntimeDyld/X86/COFF_x86_64 | 31 + test/ExecutionEngine/fma3-jit.ll | 2 +- test/ExecutionEngine/frem.ll | 4 +- test/ExecutionEngine/test-interp-vec-loadstore.ll | 36 +- test/Feature/alias2.ll | 6 +- test/Feature/aliases.ll | 6 +- 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/ppcld.ll | 6 +- test/Feature/recursivetype.ll | 14 +- test/Feature/sparcld.ll | 6 +- test/Feature/testalloca.ll | 10 +- test/Feature/testconstants.ll | 2 +- test/Feature/varargs_new.ll | 2 +- test/Feature/weak_constant.ll | 12 +- test/Feature/x86ld.ll | 6 +- .../AddressSanitizer/X86/bug_11395.ll | 10 +- .../AddressSanitizer/asan-vs-gvn.ll | 8 +- test/Instrumentation/AddressSanitizer/basic.ll | 14 +- .../Instrumentation/AddressSanitizer/debug_info.ll | 42 +- .../do-not-instrument-promotable-allocas.ll | 21 + .../AddressSanitizer/experiment-call.ll | 113 + .../Instrumentation/AddressSanitizer/experiment.ll | 113 + test/Instrumentation/AddressSanitizer/freebsd.ll | 2 +- .../AddressSanitizer/global_metadata.ll | 4 +- .../AddressSanitizer/instrument-dynamic-allocas.ll | 5 +- .../AddressSanitizer/instrument-stack.ll | 48 + .../AddressSanitizer/instrument_global.ll | 10 +- .../AddressSanitizer/instrument_load_then_store.ll | 2 +- .../instrumentation-with-call-threshold.ll | 8 +- .../AddressSanitizer/lifetime-uar.ll | 4 +- test/Instrumentation/AddressSanitizer/lifetime.ll | 5 + .../AddressSanitizer/stack-poisoning.ll | 4 +- .../AddressSanitizer/stack_dynamic_alloca.ll | 6 +- .../AddressSanitizer/stack_layout.ll | 18 + test/Instrumentation/AddressSanitizer/test64.ll | 2 +- test/Instrumentation/AddressSanitizer/ubsan.ll | 8 +- test/Instrumentation/BoundsChecking/many-trap.ll | 4 +- test/Instrumentation/BoundsChecking/phi.ll | 24 +- test/Instrumentation/BoundsChecking/simple-32.ll | 8 +- test/Instrumentation/BoundsChecking/simple.ll | 48 +- test/Instrumentation/DataFlowSanitizer/abilist.ll | 12 +- .../DataFlowSanitizer/debug-nonzero-labels.ll | 4 +- test/Instrumentation/DataFlowSanitizer/debug.ll | 16 +- test/Instrumentation/DataFlowSanitizer/load.ll | 58 +- test/Instrumentation/DataFlowSanitizer/store.ll | 52 +- test/Instrumentation/InstrProfiling/linkage.ll | 10 +- test/Instrumentation/InstrProfiling/noruntime.ll | 4 +- test/Instrumentation/InstrProfiling/platform.ll | 2 +- test/Instrumentation/InstrProfiling/profiling.ll | 10 +- .../Instrumentation/MemorySanitizer/array_types.ll | 16 +- test/Instrumentation/MemorySanitizer/atomics.ll | 24 +- .../MemorySanitizer/check_access_address.ll | 4 +- .../instrumentation-with-call-threshold.ll | 2 +- .../MemorySanitizer/missing_origin.ll | 2 +- test/Instrumentation/MemorySanitizer/msan_basic.ll | 62 +- .../MemorySanitizer/store-long-origin.ll | 12 +- .../MemorySanitizer/store-origin.ll | 24 +- .../Instrumentation/MemorySanitizer/unreachable.ll | 2 +- test/Instrumentation/MemorySanitizer/vector_cvt.ll | 2 +- .../SanitizerCoverage/cmp-tracing.ll | 13 + .../SanitizerCoverage/coverage-dbg.ll | 30 +- test/Instrumentation/SanitizerCoverage/coverage.ll | 33 +- .../SanitizerCoverage/coverage2-dbg.ll | 22 +- test/Instrumentation/ThreadSanitizer/atomic.ll | 40 +- test/Instrumentation/ThreadSanitizer/capture.ll | 4 +- .../ThreadSanitizer/no_sanitize_thread.ll | 8 +- .../ThreadSanitizer/read_before_write.ll | 4 +- .../ThreadSanitizer/read_from_global.ll | 12 +- .../Instrumentation/ThreadSanitizer/tsan-vs-gvn.ll | 4 +- test/Instrumentation/ThreadSanitizer/tsan_basic.ll | 4 +- test/Instrumentation/ThreadSanitizer/unaligned.ll | 20 +- test/Instrumentation/ThreadSanitizer/vptr_read.ll | 2 +- test/Integer/2007-01-19-TruncSext.ll | 8 +- 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 | 44 +- test/JitListener/simple.ll | 20 +- test/LTO/X86/cfi_endproc.ll | 4 +- test/LTO/X86/jump-table-type.ll | 23 - test/LTO/X86/keep-used-puts-during-instcombine.ll | 2 +- test/LTO/X86/linkonce_odr_func.ll | 6 +- test/LTO/X86/no-undefined-puts-when-implemented.ll | 2 +- test/LTO/X86/set-merged.ll | 6 +- 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 | 16 +- test/Linker/2011-08-04-DebugLoc2.ll | 16 +- test/Linker/2011-08-04-Metadata.ll | 26 +- test/Linker/2011-08-04-Metadata2.ll | 18 +- test/Linker/2011-08-18-unique-class-type.ll | 26 +- test/Linker/2011-08-18-unique-class-type2.ll | 26 +- test/Linker/2011-08-18-unique-debug-type.ll | 18 +- test/Linker/2011-08-18-unique-debug-type2.ll | 16 +- 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 | 36 +- test/Linker/DbgDeclare2.ll | 56 +- test/Linker/Inputs/PR11464.b.ll | 2 +- test/Linker/Inputs/comdat5.ll | 2 +- test/Linker/Inputs/linkage.b.ll | 2 +- test/Linker/Inputs/mdlocation.ll | 4 +- test/Linker/Inputs/opaque.ll | 2 +- test/Linker/Inputs/pr22807-1.ll | 6 + test/Linker/Inputs/pr22807-2.ll | 6 + .../replaced-function-matches-first-subprogram.ll | 16 +- test/Linker/Inputs/subprogram-linkonce-weak-odr.ll | 15 + test/Linker/Inputs/subprogram-linkonce-weak.ll | 16 + test/Linker/Inputs/testlink.ll | 4 +- test/Linker/Inputs/type-unique-inheritance-a.ll | 44 +- test/Linker/Inputs/type-unique-inheritance-b.ll | 52 +- test/Linker/Inputs/type-unique-simple2-a.ll | 32 +- test/Linker/Inputs/type-unique-simple2-b.ll | 36 +- 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/link-global-to-func.ll | 2 +- test/Linker/mdlocation.ll | 10 +- test/Linker/module-flags-3-b.ll | 3 +- test/Linker/module-flags-4-b.ll | 3 +- test/Linker/opaque.ll | 2 +- test/Linker/partial-type-refinement-link.ll | 2 +- test/Linker/partial-type-refinement.ll | 4 +- test/Linker/pr22807.ll | 13 + .../replaced-function-matches-first-subprogram.ll | 40 +- test/Linker/subprogram-linkonce-weak-odr.ll | 177 + test/Linker/subprogram-linkonce-weak.ll | 171 + test/Linker/targettriple.ll | 1 - test/Linker/testlink.ll | 10 +- test/Linker/type-unique-odr-a.ll | 38 +- test/Linker/type-unique-odr-b.ll | 38 +- test/Linker/type-unique-simple-a.ll | 28 +- test/Linker/type-unique-simple-b.ll | 32 +- test/Linker/type-unique-simple2-a.ll | 68 +- test/Linker/type-unique-simple2-b.ll | 58 +- test/Linker/type-unique-src-type.ll | 4 +- test/Linker/type-unique-type-array-a.ll | 58 +- test/Linker/type-unique-type-array-b.ll | 58 +- test/MC/AArch64/elf-globaladdress.ll | 8 +- test/MC/ARM/arm11-hint-instr.s | 69 + test/MC/ARM/basic-arm-instructions-v8.1a.s | 174 + test/MC/ARM/coff-debugging-secrel.ll | 12 +- test/MC/ARM/data-in-code.ll | 6 +- test/MC/ARM/directive-arch-armv6k.s | 34 + test/MC/ARM/elf-reloc-02.ll | 8 +- test/MC/ARM/elf-reloc-03.ll | 6 +- test/MC/ARM/thumb-diagnostics.s | 6 +- test/MC/AsmParser/ifeqs-diagnostics.s | 17 + test/MC/AsmParser/ifnes.s | 22 + test/MC/AsmParser/rename.s | 4 +- test/MC/COFF/global_ctors_dtors.ll | 6 +- test/MC/COFF/ir-to-imgrel.ll | 5 + test/MC/COFF/linker-options.ll | 0 test/MC/COFF/tricky-names.ll | 6 +- test/MC/Disassembler/ARM/armv8.1a.txt | 36 + test/MC/Disassembler/ARM/invalid-armv8.1a.txt | 83 + test/MC/Disassembler/ARM/invalid-thumbv8.1a.txt | 72 + test/MC/Disassembler/ARM/neont2.txt | 6 +- test/MC/Disassembler/ARM/thumb-v8.1a.txt | 98 + .../Disassembler/PowerPC/ppc64-encoding-bookII.txt | 22 +- .../MC/Disassembler/PowerPC/ppc64-encoding-vmx.txt | 96 + test/MC/Disassembler/X86/avx-512.txt | 3 + test/MC/ELF/alias.s | 3 + test/MC/ELF/cfi-adjust-cfa-offset.s | 24 +- test/MC/ELF/cfi-version.ll | 14 +- test/MC/ELF/entsize.ll | 8 +- test/MC/ELF/gen-dwarf.s | 1 + test/MC/ELF/relocation-386.s | 9 + test/MC/ELF/relocation.s | 17 + test/MC/ELF/size.s | 15 + test/MC/ELF/weak-diff.s | 12 + test/MC/MachO/AArch64/cstexpr-gotpcrel.ll | 92 + 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/Mips/elf-bigendian.ll | 6 +- test/MC/Mips/mips-abi-bad.s | 6 - test/MC/Mips/mips1/valid.s | 1 + test/MC/Mips/mips2/valid.s | 1 + test/MC/Mips/mips3/valid.s | 1 + test/MC/Mips/mips32/valid.s | 1 + test/MC/Mips/mips32r2/valid.s | 1 + test/MC/Mips/mips32r3/valid.s | 1 + test/MC/Mips/mips32r5/valid.s | 1 + test/MC/Mips/mips32r6/valid.s | 1 + test/MC/Mips/mips4/valid.s | 1 + test/MC/Mips/mips5/valid.s | 1 + test/MC/Mips/mips64/valid.s | 1 + test/MC/Mips/mips64r2/valid.s | 1 + test/MC/Mips/mips64r3/valid.s | 1 + test/MC/Mips/mips64r5/valid.s | 1 + test/MC/Mips/mips64r6/valid.s | 1 + test/MC/Mips/module-directive-bad.s | 262 + test/MC/Mips/sym-offset.ll | 2 +- test/MC/PowerPC/htm.s | 53 + test/MC/PowerPC/ppc64-encoding-bookII.s | 32 +- test/MC/PowerPC/ppc64-encoding-vmx.s | 123 +- test/MC/X86/cstexpr-gotpcrel.ll | 78 - test/MC/X86/expand-var.s | 18 + test/MC/X86/i386-darwin-frame-register.ll | 6 +- test/MC/X86/intel-syntax-avx512.s | 29 + test/MC/X86/invalid-sleb.s | 5 + test/MC/X86/x86-64-avx512bw.s | 261 + test/MC/X86/x86-64-avx512bw_vl.s | 520 + test/MC/X86/x86-64-avx512f_vl.s | 2304 + test/MC/X86/x86_64-avx-encoding.s | 4 + test/Makefile | 1 + test/Object/Inputs/macho-empty-kext-bundle-x86-64 | Bin 0 -> 4288 bytes test/Object/Inputs/trivial.ll | 2 +- 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/extract.ll | 2 - test/Object/kext.test | 7 + test/Object/nm-trivial-object.test | 1 - 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/constant-fold-gep-address-spaces.ll | 152 +- test/Other/constant-fold-gep.ll | 304 +- test/Other/lint.ll | 18 +- test/Other/optimization-remarks-inline.ll | 8 +- test/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll | 6 +- test/Transforms/ADCE/2002-05-28-Crash.ll | 10 +- .../Transforms/ADCE/2002-07-17-AssertionFailure.ll | 2 +- test/Transforms/ADCE/2002-07-17-PHIAssertion.ll | 6 +- test/Transforms/ADCE/2003-06-11-InvalidCFG.ll | 2 +- test/Transforms/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 | 33 +- test/Transforms/AddDiscriminators/first-only.ll | 47 +- test/Transforms/AddDiscriminators/multiple.ll | 43 +- .../AddDiscriminators/no-discriminators.ll | 39 +- test/Transforms/AlignmentFromAssumptions/simple.ll | 44 +- .../AlignmentFromAssumptions/simple32.ll | 44 +- .../AlignmentFromAssumptions/start-unk.ll | 8 +- .../ArgumentPromotion/2008-02-01-ReturnAttrs.ll | 2 +- .../ArgumentPromotion/2008-07-02-array-indexing.ll | 6 +- .../ArgumentPromotion/aggregate-promote.ll | 8 +- test/Transforms/ArgumentPromotion/attrs.ll | 8 +- test/Transforms/ArgumentPromotion/basictest.ll | 4 +- test/Transforms/ArgumentPromotion/byval-2.ll | 8 +- test/Transforms/ArgumentPromotion/byval.ll | 8 +- test/Transforms/ArgumentPromotion/chained.ll | 4 +- test/Transforms/ArgumentPromotion/control-flow.ll | 2 +- test/Transforms/ArgumentPromotion/control-flow2.ll | 4 +- test/Transforms/ArgumentPromotion/crash.ll | 8 +- test/Transforms/ArgumentPromotion/dbg.ll | 13 +- test/Transforms/ArgumentPromotion/fp80.ll | 12 +- test/Transforms/ArgumentPromotion/inalloca.ll | 12 +- test/Transforms/ArgumentPromotion/reserve-tbaa.ll | 12 +- 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 +- test/Transforms/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 +- test/Transforms/BBVectorize/simple-ldstr-ptrs.ll | 104 +- test/Transforms/BBVectorize/simple-ldstr.ll | 98 +- .../CodeExtractor/2004-03-14-DominanceProblem.ll | 2 +- .../CodeGenPrepare/X86/extend-sink-hoist.ll | 8 +- .../CodeGenPrepare/X86/sink-addrspacecast.ll | 6 +- .../CodeGenPrepare/statepoint-relocate.ll | 54 +- test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll | 2 +- test/Transforms/ConstProp/2009-09-01-GEP-Crash.ll | 2 +- test/Transforms/ConstProp/div-zero.ll | 2 +- test/Transforms/ConstProp/loads.ll | 38 +- test/Transforms/ConstProp/shift.ll | 69 + .../ConstantHoisting/AArch64/const-addr.ll | 18 +- .../ConstantHoisting/PowerPC/const-base-addr.ll | 14 +- test/Transforms/ConstantHoisting/PowerPC/masks.ll | 4 +- test/Transforms/ConstantHoisting/X86/cast-inst.ll | 12 +- .../ConstantHoisting/X86/const-base-addr.ll | 14 +- .../ConstantHoisting/X86/delete-dead-cast-inst.ll | 12 +- .../ConstantMerge/2002-09-23-CPR-Update.ll | 4 +- test/Transforms/ConstantMerge/merge-both.ll | 7 +- .../Transforms/CorrelatedValuePropagation/basic.ll | 4 +- .../CorrelatedValuePropagation/non-null.ll | 2 +- .../DeadArgElim/2008-01-16-VarargsParamAttrs.ll | 2 +- test/Transforms/DeadArgElim/2010-04-30-DbgInfo.ll | 68 +- test/Transforms/DeadArgElim/aggregates.ll | 2 +- test/Transforms/DeadArgElim/dbginfo.ll | 24 +- test/Transforms/DeadArgElim/deadexternal.ll | 4 +- test/Transforms/DeadArgElim/deadretval2.ll | 2 +- test/Transforms/DeadArgElim/keepalive.ll | 2 +- .../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 +- test/Transforms/DeadStoreElimination/atomic.ll | 56 +- .../DeadStoreElimination/const-pointers.ll | 6 +- test/Transforms/DeadStoreElimination/crash.ll | 20 +- .../DeadStoreElimination/cs-cs-aliasing.ll | 16 +- test/Transforms/DeadStoreElimination/dominate.ll | 2 +- test/Transforms/DeadStoreElimination/free.ll | 6 +- .../Transforms/DeadStoreElimination/inst-limits.ll | 20 +- test/Transforms/DeadStoreElimination/libcalls.ll | 14 +- test/Transforms/DeadStoreElimination/lifetime.ll | 2 +- .../DeadStoreElimination/no-targetdata.ll | 2 +- test/Transforms/DeadStoreElimination/pr11390.ll | 6 +- test/Transforms/DeadStoreElimination/simple.ll | 52 +- test/Transforms/EarlyCSE/basic.ll | 34 +- .../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 | 12 +- test/Transforms/FunctionAttrs/optnone-simple.ll | 24 +- .../Transforms/GCOVProfiling/function-numbering.ll | 22 +- test/Transforms/GCOVProfiling/global-ctor.ll | 20 +- test/Transforms/GCOVProfiling/linezero.ll | 87 +- test/Transforms/GCOVProfiling/linkagename.ll | 12 +- test/Transforms/GCOVProfiling/return-block.ll | 43 +- test/Transforms/GCOVProfiling/version.ll | 18 +- test/Transforms/GVN/2007-07-25-DominatedLoop.ll | 4 +- test/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 +- .../Transforms/GVN/2007-07-25-SinglePredecessor.ll | 6 +- .../Transforms/GVN/2007-07-26-InterlockingLoops.ll | 6 +- test/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 +- test/Transforms/GVN/2007-07-31-NoDomInherit.ll | 124 +- test/Transforms/GVN/2007-07-31-RedundantPhi.ll | 2 +- test/Transforms/GVN/2008-02-12-UndefLoad.ll | 6 +- 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 +- test/Transforms/GVN/2008-12-14-rle-reanalyze.ll | 6 +- test/Transforms/GVN/2008-12-15-CacheVisited.ll | 8 +- test/Transforms/GVN/2009-01-21-SortInvalidation.ll | 2 +- test/Transforms/GVN/2009-01-22-SortInvalidation.ll | 10 +- test/Transforms/GVN/2009-02-17-LoadPRECrash.ll | 36 +- test/Transforms/GVN/2009-06-17-InvalidPRE.ll | 26 +- test/Transforms/GVN/2009-07-13-MemDepSortFail.ll | 4 +- .../GVN/2009-11-12-MemDepMallocBitCast.ll | 6 +- test/Transforms/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 +- .../GVN/2011-06-01-NonLocalMemdepMiscompile.ll | 18 +- test/Transforms/GVN/MemdepMiscompile.ll | 8 +- test/Transforms/GVN/atomic.ll | 92 +- 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 | 68 +- 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 +- test/Transforms/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 | 2 +- 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-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 | 12 +- 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 | 8 +- test/Transforms/GVN/volatile.ll | 80 +- .../Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll | 2 +- .../GlobalDCE/2002-08-17-WorkListTest.ll | 4 +- test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll | 2 +- test/Transforms/GlobalDCE/complex-constantexpr.ll | 12 +- .../GlobalDCE/global_ctors_integration.ll | 8 +- test/Transforms/GlobalDCE/indirectbr.ll | 4 +- .../GlobalOpt/2004-10-10-CastStoreOnce.ll | 4 +- .../GlobalOpt/2005-06-15-LocalizeConstExprCrash.ll | 2 +- test/Transforms/GlobalOpt/2005-09-27-Crash.ll | 2 +- .../GlobalOpt/2006-07-07-InlineAsmCrash.ll | 4 +- .../GlobalOpt/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 | 4 +- 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 +- test/Transforms/GlobalOpt/2008-07-17-addrspace.ll | 8 +- .../GlobalOpt/2008-12-16-HeapSRACrash-2.ll | 8 +- .../GlobalOpt/2008-12-16-HeapSRACrash.ll | 6 +- test/Transforms/GlobalOpt/2009-01-13-phi-user.ll | 8 +- .../GlobalOpt/2009-02-15-BitcastAlias.ll | 2 +- test/Transforms/GlobalOpt/2009-03-05-dbg.ll | 24 +- .../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 +- test/Transforms/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 +- .../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 +- .../Transforms/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 +- .../GlobalOpt/externally-initialized-global-ctr.ll | 12 +- test/Transforms/GlobalOpt/fastcc.ll | 8 +- test/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 +- test/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 +- test/Transforms/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 +- test/Transforms/IPConstantProp/return-argument.ll | 2 +- .../IRCE/bug-loop-varying-upper-limit.ll | 31 + test/Transforms/IRCE/decrementing-loop.ll | 4 +- test/Transforms/IRCE/low-becount.ll | 4 +- test/Transforms/IRCE/multiple-access-no-preloop.ll | 8 +- test/Transforms/IRCE/not-likely-taken.ll | 8 +- test/Transforms/IRCE/only-lower-check.ll | 37 + test/Transforms/IRCE/only-upper-check.ll | 37 + test/Transforms/IRCE/single-access-no-preloop.ll | 10 +- test/Transforms/IRCE/single-access-with-preloop.ll | 4 +- test/Transforms/IRCE/unhandled.ll | 4 +- test/Transforms/IRCE/with-parent-loops.ll | 36 +- .../IndVarSimplify/2005-02-17-TruncateExprCrash.ll | 2 +- test/Transforms/IndVarSimplify/2005-11-18-Crash.ll | 4 +- .../2006-06-16-Indvar-LCSSA-Crash.ll | 4 +- .../IndVarSimplify/2007-01-06-TripCount.ll | 4 +- .../Transforms/IndVarSimplify/2008-09-02-IVType.ll | 18 +- .../IndVarSimplify/2008-10-03-CouldNotCompute.ll | 2 +- .../IndVarSimplify/2009-04-14-shorten_iv_vars.ll | 96 +- .../IndVarSimplify/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 | 20 +- .../IndVarSimplify/2011-11-15-multiexit.ll | 6 +- .../IndVarSimplify/2012-07-17-lftr-undef.ll | 2 +- .../2014-06-21-congruent-constant.ll | 12 +- .../IndVarSimplify/NVPTX/no-widen-expensive.ll | 2 +- test/Transforms/IndVarSimplify/ada-loops.ll | 12 +- test/Transforms/IndVarSimplify/ashr-tripcount.ll | 48 +- test/Transforms/IndVarSimplify/avoid-i0.ll | 28 +- .../IndVarSimplify/backedge-on-min-max.ll | 32 +- test/Transforms/IndVarSimplify/casted-argument.ll | 6 +- test/Transforms/IndVarSimplify/dangling-use.ll | 6 +- test/Transforms/IndVarSimplify/elim-extend.ll | 22 +- .../IndVarSimplify/eliminate-comparison.ll | 28 +- test/Transforms/IndVarSimplify/eliminate-max.ll | 2 +- test/Transforms/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 +- .../IndVarSimplify/lftr-address-space-pointers.ll | 12 +- .../Transforms/IndVarSimplify/lftr-extend-const.ll | 4 + test/Transforms/IndVarSimplify/lftr-promote.ll | 6 +- test/Transforms/IndVarSimplify/lftr-reuse.ll | 56 +- test/Transforms/IndVarSimplify/lftr-zext.ll | 8 +- test/Transforms/IndVarSimplify/lftr_simple.ll | 6 +- test/Transforms/IndVarSimplify/loop_evaluate7.ll | 4 +- test/Transforms/IndVarSimplify/loop_evaluate8.ll | 4 +- test/Transforms/IndVarSimplify/loop_evaluate9.ll | 4 +- test/Transforms/IndVarSimplify/masked-iv.ll | 2 +- test/Transforms/IndVarSimplify/no-iv-rewrite.ll | 32 +- test/Transforms/IndVarSimplify/overflowcheck.ll | 4 +- .../phi-uses-value-multiple-times.ll | 2 +- .../Transforms/IndVarSimplify/polynomial-expand.ll | 4 +- test/Transforms/IndVarSimplify/pr18223.ll | 2 +- test/Transforms/IndVarSimplify/pr20680.ll | 16 +- test/Transforms/IndVarSimplify/pr22222.ll | 2 +- .../IndVarSimplify/preserve-signed-wrap.ll | 6 +- .../promote-iv-to-eliminate-casts.ll | 17 +- test/Transforms/IndVarSimplify/sharpen-range.ll | 6 +- .../Transforms/IndVarSimplify/signed-trip-count.ll | 6 +- .../IndVarSimplify/single-element-range.ll | 2 +- test/Transforms/IndVarSimplify/sink-alloca.ll | 4 +- test/Transforms/IndVarSimplify/udiv.ll | 16 +- test/Transforms/IndVarSimplify/uglygep.ll | 6 +- test/Transforms/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 +- test/Transforms/IndVarSimplify/widen-loop-comp.ll | 32 +- test/Transforms/IndVarSimplify/widen-nsw.ll | 4 +- .../Inline/2006-07-12-InlinePruneCGUpdate.ll | 2 +- .../Inline/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 | 60 +- test/Transforms/Inline/alloca-in-scc.ll | 2 +- test/Transforms/Inline/alloca-merge-align-nodl.ll | 88 - test/Transforms/Inline/alloca-merge-align.ll | 66 +- 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 +- test/Transforms/Inline/crash2.ll | 2 +- .../Inline/debug-info-duplicate-calls.ll | 26 +- test/Transforms/Inline/debug-invoke.ll | 10 +- test/Transforms/Inline/devirtualize-3.ll | 40 +- test/Transforms/Inline/devirtualize.ll | 48 +- test/Transforms/Inline/ephemeral.ll | 2 +- test/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 +- test/Transforms/Inline/inline-fast-math-flags.ll | 8 +- test/Transforms/Inline/inline-fp.ll | 24 +- test/Transforms/Inline/inline-invoke-tail.ll | 2 +- test/Transforms/Inline/inline-musttail-varargs.ll | 2 +- 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 | 196 +- test/Transforms/Inline/inline_minisize.ll | 116 +- test/Transforms/Inline/inline_ssp.ll | 8 +- test/Transforms/Inline/invoke-combine-clauses.ll | 2 +- test/Transforms/Inline/lifetime-no-datalayout.ll | 6 +- test/Transforms/Inline/noalias-cs.ll | 30 +- test/Transforms/Inline/noalias.ll | 36 +- test/Transforms/Inline/noalias2.ll | 44 +- test/Transforms/Inline/optimization-remarks.ll | 16 +- test/Transforms/Inline/ptr-diff.ll | 24 +- test/Transforms/Inline/store-sroa.ll | 22 + .../InstCombine/2003-07-21-ExternalConstant.ll | 6 +- .../InstCombine/2003-09-09-VolatileLoadElim.ll | 2 +- .../InstCombine/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 +- .../InstCombine/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 | 4 +- .../InstCombine/2007-02-07-PointerCast.ll | 4 +- .../InstCombine/2007-03-25-BadShiftMask.ll | 8 +- test/Transforms/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 +- test/Transforms/InstCombine/2007-10-12-Crash.ll | 2 +- .../Transforms/InstCombine/2007-10-28-stacksave.ll | 2 +- .../InstCombine/2007-10-31-RangeCrash.ll | 2 +- .../InstCombine/2007-10-31-StringCrash.ll | 2 +- .../InstCombine/2007-11-07-OpaqueAlignCrash.ll | 4 +- .../InstCombine/2007-11-25-CompatibleAttributes.ll | 2 +- test/Transforms/InstCombine/2007-12-12-GEPScale.ll | 2 +- test/Transforms/InstCombine/2007-12-28-IcmpSub2.ll | 16 +- .../InstCombine/2008-01-14-VarArgTrampoline.ll | 6 +- test/Transforms/InstCombine/2008-03-13-IntToPtr.ll | 2 +- .../2008-04-29-VolatileLoadDontMerge.ll | 4 +- .../InstCombine/2008-04-29-VolatileLoadMerge.ll | 4 +- .../InstCombine/2008-05-08-LiveStoreDelete.ll | 6 +- .../InstCombine/2008-05-08-StrLenSink.ll | 6 +- .../InstCombine/2008-05-09-SinkOfInvoke.ll | 4 +- test/Transforms/InstCombine/2008-05-17-InfLoop.ll | 6 +- .../InstCombine/2008-05-23-CompareFold.ll | 2 +- .../InstCombine/2008-06-19-UncondLoad.ll | 6 +- .../InstCombine/2008-06-24-StackRestore.ll | 2 +- .../InstCombine/2008-07-08-VolatileLoadMerge.ll | 4 +- test/Transforms/InstCombine/2008-08-05-And.ll | 4 +- .../InstCombine/2009-01-08-AlignAlloca.ll | 10 +- .../2009-01-19-fmod-constant-float-specials.ll | 96 +- .../InstCombine/2009-01-19-fmod-constant-float.ll | 16 +- .../InstCombine/2009-01-24-EmptyStruct.ll | 2 +- .../InstCombine/2009-02-20-InstCombine-SROA.ll | 204 +- test/Transforms/InstCombine/2009-02-21-LoadCST.ll | 2 +- .../InstCombine/2009-02-25-CrashZeroSizeArray.ll | 8 +- .../InstCombine/2009-03-18-vector-ashr-crash.ll | 4 +- .../InstCombine/2009-05-23-FCmpToICmp.ll | 2 +- .../InstCombine/2009-12-17-CmpSelectNull.ll | 4 +- test/Transforms/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 +- test/Transforms/InstCombine/2012-02-13-FCmp.ll | 4 +- .../InstCombine/2012-05-27-Negative-Shift-Crash.ll | 6 +- .../InstCombine/2012-05-28-select-hang.ll | 4 +- .../InstCombine/2012-06-06-LoadOfPHIs.ll | 50 +- test/Transforms/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 - .../InstCombine/2012-10-25-vector-of-pointers.ll | 4 +- .../Transforms/InstCombine/2012-12-14-simp-vgep.ll | 2 +- .../2013-03-05-Combine-BitcastTy-Into-Alloca.ll | 10 +- test/Transforms/InstCombine/CPP_min_max.ll | 12 +- test/Transforms/InstCombine/PR7357.ll | 2 +- test/Transforms/InstCombine/add3.ll | 4 +- test/Transforms/InstCombine/addrspacecast.ll | 12 +- test/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 +- test/Transforms/InstCombine/aligned-altivec.ll | 32 +- test/Transforms/InstCombine/aligned-qpx.ll | 40 +- test/Transforms/InstCombine/alloca.ll | 41 +- test/Transforms/InstCombine/assume-loop-align.ll | 8 +- test/Transforms/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 + test/Transforms/InstCombine/call-cast-target.ll | 15 + test/Transforms/InstCombine/call2.ll | 4 +- test/Transforms/InstCombine/cast.ll | 160 +- test/Transforms/InstCombine/cast_ptr.ll | 6 +- .../InstCombine/constant-expr-datalayout.ll | 2 +- .../constant-fold-address-space-pointer.ll | 50 +- test/Transforms/InstCombine/constant-fold-alias.ll | 4 +- test/Transforms/InstCombine/constant-fold-gep.ll | 96 +- test/Transforms/InstCombine/constant-fold-hang.ll | 14 + test/Transforms/InstCombine/crash.ll | 38 +- test/Transforms/InstCombine/debug-line.ll | 16 +- test/Transforms/InstCombine/debuginfo.ll | 50 +- test/Transforms/InstCombine/default-alignment.ll | 10 + test/Transforms/InstCombine/descale-zero.ll | 10 +- .../InstCombine/disable-simplify-libcalls.ll | 50 +- test/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 +- test/Transforms/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 | 28 +- test/Transforms/InstCombine/fputs-1.ll | 8 +- test/Transforms/InstCombine/fwrite-1.ll | 10 +- test/Transforms/InstCombine/gc.relocate.ll | 5 +- test/Transforms/InstCombine/gep-addrspace.ll | 12 +- test/Transforms/InstCombine/gep-sext.ll | 32 +- test/Transforms/InstCombine/gepgep.ll | 2 +- test/Transforms/InstCombine/gepphigep.ll | 96 +- test/Transforms/InstCombine/getelementptr.ll | 334 +- test/Transforms/InstCombine/icmp-range.ll | 12 +- test/Transforms/InstCombine/icmp.ll | 92 +- .../InstCombine/inline-intrinsic-assert.ll | 30 + test/Transforms/InstCombine/intrinsics.ll | 44 + test/Transforms/InstCombine/invariant.ll | 2 +- test/Transforms/InstCombine/known_align.ll | 12 +- test/Transforms/InstCombine/load-cmp.ll | 347 +- test/Transforms/InstCombine/load-select.ll | 4 +- test/Transforms/InstCombine/load.ll | 58 +- test/Transforms/InstCombine/load3.ll | 16 +- test/Transforms/InstCombine/loadstore-alignment.ll | 34 +- test/Transforms/InstCombine/loadstore-metadata.ll | 34 +- test/Transforms/InstCombine/lshr-phi.ll | 10 +- test/Transforms/InstCombine/malloc-free-delete.ll | 4 +- test/Transforms/InstCombine/mem-gep-zidx.ll | 12 +- test/Transforms/InstCombine/memchr.ll | 200 + test/Transforms/InstCombine/memcmp-1.ll | 16 +- test/Transforms/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/mul.ll | 2 +- .../multi-size-address-space-pointer.ll | 52 +- test/Transforms/InstCombine/no-negzero.ll | 6 +- test/Transforms/InstCombine/obfuscated_splat.ll | 2 +- .../InstCombine/objsize-address-space.ll | 6 +- test/Transforms/InstCombine/objsize.ll | 42 +- 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/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/pr8547.ll | 2 +- test/Transforms/InstCombine/printf-1.ll | 30 +- test/Transforms/InstCombine/printf-2.ll | 12 +- test/Transforms/InstCombine/puts-1.ll | 6 +- test/Transforms/InstCombine/select-cmp-br.ll | 58 +- test/Transforms/InstCombine/select-load-call.ll | 2 +- test/Transforms/InstCombine/select-select.ll | 10 + test/Transforms/InstCombine/select.ll | 86 +- test/Transforms/InstCombine/shufflemask-undef.ll | 4 +- test/Transforms/InstCombine/signed-comparison.ll | 4 +- .../InstCombine/simplify-demanded-bits-pointer.ll | 2 +- test/Transforms/InstCombine/simplify-libcalls.ll | 27 +- test/Transforms/InstCombine/sincospi.ll | 12 +- test/Transforms/InstCombine/sprintf-1.ll | 22 +- test/Transforms/InstCombine/sqrt.ll | 4 +- test/Transforms/InstCombine/stack-overalign.ll | 4 +- test/Transforms/InstCombine/stacksaverestore.ll | 2 +- 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 +- test/Transforms/InstCombine/struct-assign-tbaa.ll | 6 +- test/Transforms/InstCombine/sub.ll | 34 +- .../InstCombine/switch-truncate-crash.ll | 7 + test/Transforms/InstCombine/type_pun.ll | 4 + test/Transforms/InstCombine/unpack-fca.ll | 31 + test/Transforms/InstCombine/urem-simplify-bug.ll | 2 +- test/Transforms/InstCombine/vec_demanded_elts.ll | 6 +- test/Transforms/InstCombine/vec_extract_var_elt.ll | 2 +- test/Transforms/InstCombine/vec_phi_extract.ll | 2 +- test/Transforms/InstCombine/vec_shuffle.ll | 4 +- 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-vperm2.ll | 283 + test/Transforms/InstCombine/zext-or-icmp.ll | 16 +- test/Transforms/InstMerge/ld_hoist1.ll | 22 +- test/Transforms/InstMerge/ld_hoist_st_sink.ll | 62 +- test/Transforms/InstMerge/st_sink_barrier_call.ll | 14 +- test/Transforms/InstMerge/st_sink_bugfix_22613.ll | 26 +- .../InstMerge/st_sink_no_barrier_call.ll | 14 +- .../InstMerge/st_sink_no_barrier_load.ll | 20 +- .../InstMerge/st_sink_no_barrier_store.ll | 16 +- test/Transforms/InstMerge/st_sink_two_stores.ll | 18 +- test/Transforms/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 | 6 +- test/Transforms/InstSimplify/compare.ll | 100 +- 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/vector_gep.ll | 14 +- test/Transforms/InstSimplify/vector_ptr_bitcast.ll | 4 +- .../Internalize/2009-01-05-InternalizeAliases.ll | 2 +- test/Transforms/JumpThreading/2010-08-26-and.ll | 20 +- .../Transforms/JumpThreading/2011-04-14-InfLoop.ll | 2 +- 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-loads.ll | 10 +- .../LCSSA/2006-06-03-IncorrectIDFPhis.ll | 4 +- test/Transforms/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 | 4 +- .../LICM/2003-02-26-LoopExitNotDominated.ll | 2 +- test/Transforms/LICM/2003-05-02-LoadHoist.ll | 4 +- .../LICM/2004-09-14-AliasAnalysisInvalidate.ll | 4 +- test/Transforms/LICM/2004-11-17-UndefIndexCrash.ll | 4 +- test/Transforms/LICM/2007-05-22-VolatileSink.ll | 8 +- test/Transforms/LICM/2007-07-30-AliasSet.ll | 6 +- test/Transforms/LICM/2007-09-17-PromoteValue.ll | 6 +- .../LICM/2008-07-22-LoadGlobalConstant.ll | 8 +- .../Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll | 2 +- .../LICM/2011-04-06-HoistMissedASTUpdate.ll | 4 +- .../LICM/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 | 6 +- test/Transforms/LICM/crash.ll | 10 +- test/Transforms/LICM/debug-value.ll | 38 +- test/Transforms/LICM/hoist-bitcast-load.ll | 72 +- test/Transforms/LICM/hoist-deref-load.ll | 52 +- 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/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 +- test/Transforms/LoadCombine/load-combine-aa.ll | 18 +- test/Transforms/LoadCombine/load-combine-assume.ll | 16 +- test/Transforms/LoadCombine/load-combine.ll | 118 +- test/Transforms/LoopDeletion/2008-05-06-Phi.ll | 20 +- test/Transforms/LoopIdiom/basic-address-space.ll | 12 +- test/Transforms/LoopIdiom/basic.ll | 63 +- test/Transforms/LoopIdiom/crash.ll | 4 +- test/Transforms/LoopIdiom/debug-line.ll | 34 +- test/Transforms/LoopIdiom/memset_noidiom.ll | 2 +- test/Transforms/LoopIdiom/non-canonical-loop.ll | 2 +- test/Transforms/LoopIdiom/scev-invalidation.ll | 10 +- .../LoopInterchange/currentLimitation.ll | 58 + test/Transforms/LoopInterchange/interchange.ll | 557 + test/Transforms/LoopInterchange/profitability.ll | 205 + test/Transforms/LoopReroll/basic.ll | 182 +- test/Transforms/LoopReroll/nonconst_lb.ll | 70 +- test/Transforms/LoopReroll/reduction.ll | 56 +- test/Transforms/LoopRotate/PhiRename-1.ll | 38 +- test/Transforms/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 | 40 +- 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 | 4 +- test/Transforms/LoopRotate/simplifylatch.ll | 16 +- .../LoopSimplify/2003-08-15-PreheadersFail.ll | 20 +- .../LoopSimplify/2003-12-10-ExitBlocksProblem.ll | 8 +- test/Transforms/LoopSimplify/ashr-crash.ll | 6 +- test/Transforms/LoopSimplify/merge-exits.ll | 10 +- test/Transforms/LoopSimplify/notify-scev.ll | 2 +- test/Transforms/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 +- .../LoopStrengthReduce/2007-04-23-UseIterator.ll | 2 +- .../LoopStrengthReduce/2008-08-13-CmpStride.ll | 8 +- .../LoopStrengthReduce/2008-09-09-Overflow.ll | 10 +- .../2009-01-13-nonconstant-stride-outside-loop.ll | 6 +- .../LoopStrengthReduce/2009-04-28-no-reduce-mul.ll | 4 +- .../2011-07-19-CritEdgeBreakCrash.ll | 4 +- .../LoopStrengthReduce/2011-10-03-CritEdgeMerge.ll | 8 +- .../LoopStrengthReduce/2011-10-06-ReusePhi.ll | 20 +- .../LoopStrengthReduce/2011-10-13-SCEVChain.ll | 6 +- .../LoopStrengthReduce/2011-10-14-IntPtr.ll | 2 +- .../2011-12-19-PostincQuadratic.ll | 6 +- .../LoopStrengthReduce/2012-01-02-nopreheader.ll | 4 +- .../LoopStrengthReduce/2012-01-16-nopreheader.ll | 4 +- .../LoopStrengthReduce/2012-03-15-nopreheader.ll | 4 +- .../LoopStrengthReduce/2012-03-26-constexpr.ll | 26 +- .../LoopStrengthReduce/2012-07-13-ExpandUDiv.ll | 8 +- .../2012-07-18-LimitReassociate.ll | 47 +- .../LoopStrengthReduce/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 | 136 +- .../LoopStrengthReduce/X86/2008-08-14-ShadowIV.ll | 4 + .../LoopStrengthReduce/X86/2011-07-20-DoubleIV.ll | 4 + .../LoopStrengthReduce/X86/2011-12-04-loserreg.ll | 40 +- .../LoopStrengthReduce/X86/2012-01-13-phielim.ll | 22 +- .../LoopStrengthReduce/X86/ivchain-X86.ll | 114 +- .../LoopStrengthReduce/X86/ivchain-stress-X86.ll | 40 +- .../X86/no_superflous_induction_vars.ll | 4 +- test/Transforms/LoopStrengthReduce/X86/pr17473.ll | 6 +- .../LoopStrengthReduce/addrec-gep-address-space.ll | 12 +- test/Transforms/LoopStrengthReduce/addrec-gep.ll | 10 +- .../LoopStrengthReduce/address-space-loop.ll | 14 +- .../Transforms/LoopStrengthReduce/count-to-zero.ll | 3 + .../LoopStrengthReduce/dominate-assert.ll | 12 +- .../dont-hoist-simple-loop-constants.ll | 2 +- .../dont_insert_redundant_ops.ll | 8 +- .../LoopStrengthReduce/dont_reduce_bytes.ll | 2 +- test/Transforms/LoopStrengthReduce/dont_reverse.ll | 6 +- .../LoopStrengthReduce/hoist-parent-preheader.ll | 2 +- .../LoopStrengthReduce/invariant_value_first.ll | 2 +- .../invariant_value_first_arg.ll | 2 +- test/Transforms/LoopStrengthReduce/ivchain.ll | 8 +- .../Transforms/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 | 8 +- 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 +- .../LoopStrengthReduce/quadradic-exit-value.ll | 3 + .../LoopStrengthReduce/related_indvars.ll | 4 +- .../Transforms/LoopStrengthReduce/remove_indvar.ll | 5 +- .../scaling_factor_cost_crash.ll | 2 +- .../LoopStrengthReduce/share_code_in_preheader.ll | 8 +- .../LoopStrengthReduce/uglygep-address-space.ll | 14 +- test/Transforms/LoopStrengthReduce/uglygep.ll | 14 +- .../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 +- test/Transforms/LoopUnroll/2011-08-08-PhiUpdate.ll | 6 +- .../Transforms/LoopUnroll/2011-08-09-IVSimplify.ll | 10 +- test/Transforms/LoopUnroll/2011-10-01-NoopTrunc.ll | 4 +- test/Transforms/LoopUnroll/AArch64/lit.local.cfg | 3 + test/Transforms/LoopUnroll/AArch64/partial.ll | 76 + test/Transforms/LoopUnroll/AArch64/runtime-loop.ll | 33 + test/Transforms/LoopUnroll/PowerPC/a2-unrolling.ll | 4 +- test/Transforms/LoopUnroll/X86/partial.ll | 30 +- test/Transforms/LoopUnroll/ephemeral.ll | 4 +- .../LoopUnroll/full-unroll-heuristics.ll | 16 +- .../LoopUnroll/ignore-annotation-intrinsic-cost.ll | 2 +- test/Transforms/LoopUnroll/runtime-loop.ll | 45 +- 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 | 43 + test/Transforms/LoopUnroll/scevunroll.ll | 20 +- test/Transforms/LoopUnroll/shifted-tripcount.ll | 8 +- .../LoopUnroll/unroll-pragmas-disabled.ll | 20 +- test/Transforms/LoopUnroll/unroll-pragmas.ll | 36 +- .../LoopUnswitch/2007-07-12-ExitDomInfo.ll | 2 +- test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll | 2 +- test/Transforms/LoopUnswitch/2007-08-01-LCSSA.ll | 2 +- .../LoopUnswitch/2008-06-17-DomFrontier.ll | 2 +- test/Transforms/LoopUnswitch/2010-11-18-LCSSA.ll | 2 +- test/Transforms/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 +- test/Transforms/LoopUnswitch/2012-05-20-Phi.ll | 4 +- test/Transforms/LoopUnswitch/basictest.ll | 10 +- test/Transforms/LoopUnswitch/preserve-analyses.ll | 8 +- test/Transforms/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 | 44 +- .../LoopVectorize/AArch64/arm64-unroll.ll | 10 +- .../LoopVectorize/AArch64/gather-cost.ll | 28 +- test/Transforms/LoopVectorize/AArch64/sdiv-pow2.ll | 8 +- test/Transforms/LoopVectorize/ARM/arm-unroll.ll | 8 +- test/Transforms/LoopVectorize/ARM/gather-cost.ll | 28 +- test/Transforms/LoopVectorize/ARM/gcc-examples.ll | 16 +- test/Transforms/LoopVectorize/ARM/mul-cast-vect.ll | 24 +- test/Transforms/LoopVectorize/ARM/width-detect.ll | 8 +- .../LoopVectorize/PowerPC/large-loop-rdx.ll | 73 + .../LoopVectorize/PowerPC/small-loop-rdx.ll | 4 +- .../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 +- .../LoopVectorize/X86/constant-vector-operand.ll | 6 +- .../LoopVectorize/X86/conversion-cost.ll | 4 +- test/Transforms/LoopVectorize/X86/cost-model.ll | 14 +- .../LoopVectorize/X86/fp32_to_uint32-cost-model.ll | 6 +- .../LoopVectorize/X86/fp64_to_uint32-cost-model.ll | 8 +- .../LoopVectorize/X86/fp_to_sint8-cost-model.ll | 6 +- test/Transforms/LoopVectorize/X86/gather-cost.ll | 28 +- test/Transforms/LoopVectorize/X86/gcc-examples.ll | 16 +- .../X86/illegal-parallel-loop-uniform-write.ll | 10 +- .../LoopVectorize/X86/masked_load_store.ll | 198 +- .../LoopVectorize/X86/metadata-enable.ll | 24 +- .../LoopVectorize/X86/min-trip-count-switch.ll | 4 +- test/Transforms/LoopVectorize/X86/no-vector.ll | 4 +- .../X86/parallel-loops-after-reg2mem.ll | 22 +- .../Transforms/LoopVectorize/X86/parallel-loops.ll | 42 +- test/Transforms/LoopVectorize/X86/powof2div.ll | 8 +- .../LoopVectorize/X86/reduction-crash.ll | 8 +- test/Transforms/LoopVectorize/X86/small-size.ll | 46 +- test/Transforms/LoopVectorize/X86/struct-store.ll | 2 +- test/Transforms/LoopVectorize/X86/tripcount.ll | 4 +- .../LoopVectorize/X86/uint64_to_fp64-cost-model.ll | 6 +- test/Transforms/LoopVectorize/X86/unroll-pm.ll | 4 +- .../LoopVectorize/X86/unroll-small-loops.ll | 18 +- .../LoopVectorize/X86/unroll_selection.ll | 8 +- test/Transforms/LoopVectorize/X86/veclib-calls.ll | 182 + .../Transforms/LoopVectorize/X86/vect.omp.force.ll | 40 +- .../LoopVectorize/X86/vect.omp.force.small-tc.ll | 16 +- .../LoopVectorize/X86/vector-scalar-select-cost.ll | 20 +- .../LoopVectorize/X86/vector_ptr_load_store.ll | 20 +- .../X86/vectorization-remarks-missed.ll | 40 +- .../LoopVectorize/X86/vectorization-remarks.ll | 26 +- .../LoopVectorize/X86/x86_fp80-vector-store.ll | 2 +- .../LoopVectorize/XCore/no-vector-registers.ll | 2 +- test/Transforms/LoopVectorize/align.ll | 14 +- test/Transforms/LoopVectorize/bsd_regex.ll | 2 +- .../Transforms/LoopVectorize/bzip_reverse_loops.ll | 8 +- test/Transforms/LoopVectorize/calloc.ll | 6 +- test/Transforms/LoopVectorize/cast-induction.ll | 2 +- .../LoopVectorize/conditional-assignment.ll | 20 +- test/Transforms/LoopVectorize/control-flow.ll | 22 +- test/Transforms/LoopVectorize/cpp-new-array.ll | 12 +- test/Transforms/LoopVectorize/dbg.value.ll | 42 +- test/Transforms/LoopVectorize/debugloc.ll | 50 +- .../LoopVectorize/duplicated-metadata.ll | 4 +- test/Transforms/LoopVectorize/ee-crash.ll | 6 +- test/Transforms/LoopVectorize/exact.ll | 4 +- test/Transforms/LoopVectorize/flags.ll | 12 +- test/Transforms/LoopVectorize/float-reduction.ll | 8 +- test/Transforms/LoopVectorize/funcall.ll | 4 +- test/Transforms/LoopVectorize/gcc-examples.ll | 234 +- 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 | 18 +- .../Transforms/LoopVectorize/if-conversion-nest.ll | 8 +- .../LoopVectorize/if-conversion-reduction.ll | 4 +- test/Transforms/LoopVectorize/if-conversion.ll | 20 +- test/Transforms/LoopVectorize/if-pred-stores.ll | 16 +- .../Transforms/LoopVectorize/incorrect-dom-info.ll | 8 +- test/Transforms/LoopVectorize/increment.ll | 12 +- test/Transforms/LoopVectorize/induction.ll | 16 +- test/Transforms/LoopVectorize/induction_plus.ll | 2 +- test/Transforms/LoopVectorize/intrinsic.ll | 332 +- test/Transforms/LoopVectorize/lifetime.ll | 14 +- test/Transforms/LoopVectorize/loop-form.ll | 2 +- test/Transforms/LoopVectorize/loop-vect-memdep.ll | 10 +- test/Transforms/LoopVectorize/memdep.ll | 56 +- test/Transforms/LoopVectorize/metadata-unroll.ll | 4 +- test/Transforms/LoopVectorize/metadata-width.ll | 2 +- test/Transforms/LoopVectorize/metadata.ll | 8 +- test/Transforms/LoopVectorize/minmax_reduction.ll | 136 +- .../LoopVectorize/multi-use-reduction-bug.ll | 6 +- .../LoopVectorize/multiple-address-spaces.ll | 6 +- test/Transforms/LoopVectorize/no_array_bounds.ll | 36 +- test/Transforms/LoopVectorize/no_idiv_reduction.ll | 4 +- test/Transforms/LoopVectorize/no_int_induction.ll | 12 +- test/Transforms/LoopVectorize/no_outside_user.ll | 4 +- test/Transforms/LoopVectorize/no_switch.ll | 22 +- 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 +- test/Transforms/LoopVectorize/reverse_induction.ll | 16 +- test/Transforms/LoopVectorize/reverse_iter.ll | 4 +- .../LoopVectorize/runtime-check-address-space.ll | 42 +- .../runtime-check-readonly-address-space.ll | 50 +- .../LoopVectorize/runtime-check-readonly.ll | 10 +- test/Transforms/LoopVectorize/runtime-check.ll | 14 +- test/Transforms/LoopVectorize/runtime-limit.ll | 56 +- test/Transforms/LoopVectorize/safegep.ll | 16 +- test/Transforms/LoopVectorize/same-base-access.ll | 32 +- test/Transforms/LoopVectorize/scalar-select.ll | 10 +- .../Transforms/LoopVectorize/scev-exitlim-crash.ll | 16 +- test/Transforms/LoopVectorize/simple-unroll.ll | 4 +- test/Transforms/LoopVectorize/small-loop.ll | 10 +- test/Transforms/LoopVectorize/start-non-zero.ll | 4 +- test/Transforms/LoopVectorize/store-shuffle-bug.ll | 12 +- test/Transforms/LoopVectorize/struct_access.ll | 8 +- test/Transforms/LoopVectorize/tbaa-nodep.ll | 24 +- test/Transforms/LoopVectorize/undef-inst-bug.ll | 2 +- test/Transforms/LoopVectorize/unroll_novec.ll | 14 +- .../LoopVectorize/unsized-pointee-crash.ll | 4 +- test/Transforms/LoopVectorize/value-ptr-bug.ll | 10 +- .../LoopVectorize/vect.omp.persistence.ll | 10 +- test/Transforms/LoopVectorize/vect.stats.ll | 14 +- test/Transforms/LoopVectorize/vectorize-once.ll | 15 +- .../Transforms/LoopVectorize/version-mem-access.ll | 16 +- test/Transforms/LoopVectorize/write-only.ll | 4 +- test/Transforms/LowerAtomic/atomic-swap.ll | 2 +- test/Transforms/LowerBitSets/constant.ll | 4 +- test/Transforms/LowerBitSets/simple.ll | 61 +- test/Transforms/LowerExpectIntrinsic/basic.ll | 38 +- .../LowerSwitch/2014-06-10-SwitchContiguousOpt.ll | 2 +- .../2014-06-11-SwitchDefaultUnreachableOpt.ll | 4 +- .../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 | 38 +- test/Transforms/Mem2Reg/ConvertDebugInfo2.ll | 46 +- test/Transforms/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 +- .../MemCpyOpt/2011-06-02-CallSlotOverwritten.ll | 12 +- test/Transforms/MemCpyOpt/align.ll | 8 +- test/Transforms/MemCpyOpt/atomic.ll | 6 +- test/Transforms/MemCpyOpt/callslot_deref.ll | 4 +- test/Transforms/MemCpyOpt/crash.ll | 32 +- test/Transforms/MemCpyOpt/form-memset.ll | 176 +- test/Transforms/MemCpyOpt/loadstore-sret.ll | 6 +- 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 +- test/Transforms/MemCpyOpt/smaller.ll | 10 +- test/Transforms/MemCpyOpt/sret.ll | 12 +- .../Transforms/MergeFunc/2011-02-08-RemoveEqual.ll | 116 +- test/Transforms/MergeFunc/address-spaces.ll | 12 +- test/Transforms/MergeFunc/crash.ll | 12 +- .../Transforms/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 +- test/Transforms/ObjCARC/allocas.ll | 94 +- test/Transforms/ObjCARC/arc-annotations.ll | 83 - test/Transforms/ObjCARC/basic.ll | 296 +- test/Transforms/ObjCARC/cfg-hazards.ll | 2 +- .../ObjCARC/contract-storestrong-ivar.ll | 6 +- test/Transforms/ObjCARC/contract-storestrong.ll | 36 +- ...ensure-that-exception-unwind-path-is-visited.ll | 84 +- test/Transforms/ObjCARC/escape.ll | 68 +- test/Transforms/ObjCARC/gvn.ll | 10 +- test/Transforms/ObjCARC/intrinsic-use.ll | 16 +- .../ObjCARC/move-and-form-retain-autorelease.ll | 70 +- .../ObjCARC/move-and-merge-autorelease.ll | 14 +- test/Transforms/ObjCARC/nested.ll | 252 +- test/Transforms/ObjCARC/provenance.ll | 18 +- .../ObjCARC/retain-block-side-effects.ll | 16 +- test/Transforms/ObjCARC/weak-copies.ll | 16 +- .../PhaseOrdering/2010-03-22-empty-baseclass.ll | 42 +- test/Transforms/PhaseOrdering/PR6627.ll | 32 +- test/Transforms/PhaseOrdering/basic.ll | 16 +- test/Transforms/PhaseOrdering/gdce.ll | 20 +- test/Transforms/PhaseOrdering/scev.ll | 12 +- .../Reassociate/2011-01-26-UseAfterFree.ll | 4 +- test/Transforms/Reassociate/basictest.ll | 24 +- test/Transforms/Reassociate/crash.ll | 6 +- .../Reassociate/fast-ReassociateVector.ll | 232 +- test/Transforms/Reassociate/fast-basictest.ll | 18 +- test/Transforms/Reassociate/looptest.ll | 2 +- test/Transforms/Reassociate/pr12245.ll | 20 +- test/Transforms/Reassociate/pr21205.ll | 2 +- .../RewriteStatepointsForGC/base-pointers-1.ll | 28 + .../RewriteStatepointsForGC/base-pointers-10.ll | 37 + .../RewriteStatepointsForGC/base-pointers-11.ll | 26 + .../RewriteStatepointsForGC/base-pointers-2.ll | 21 + .../RewriteStatepointsForGC/base-pointers-3.ll | 20 + .../RewriteStatepointsForGC/base-pointers-4.ll | 53 + .../RewriteStatepointsForGC/base-pointers-5.ll | 31 + .../RewriteStatepointsForGC/base-pointers-6.ll | 41 + .../RewriteStatepointsForGC/base-pointers-7.ll | 53 + .../RewriteStatepointsForGC/base-pointers-8.ll | 38 + .../RewriteStatepointsForGC/base-pointers-9.ll | 21 + .../RewriteStatepointsForGC/base-pointers.ll | 98 + test/Transforms/RewriteStatepointsForGC/basics.ll | 10 +- .../relocate_invoke_result.ll | 33 + .../RewriteStatepointsForGC/relocation.ll | 295 + .../SCCP/2002-08-30-GetElementPtrTest.ll | 2 +- .../SCCP/2003-06-24-OverdefinedPHIValue.ll | 6 +- test/Transforms/SCCP/2006-10-23-IPSCCP-Crash.ll | 8 +- test/Transforms/SCCP/2006-12-04-PackedType.ll | 8 +- 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/SLPVectorizer/AArch64/commute.ll | 28 +- .../SLPVectorizer/AArch64/load-store-q.ll | 16 +- test/Transforms/SLPVectorizer/AArch64/sdiv-pow2.ll | 34 +- test/Transforms/SLPVectorizer/ARM/memory.ll | 8 +- test/Transforms/SLPVectorizer/ARM/sroa.ll | 4 +- test/Transforms/SLPVectorizer/R600/simplebb.ll | 54 +- test/Transforms/SLPVectorizer/X86/addsub.ll | 252 +- test/Transforms/SLPVectorizer/X86/align.ll | 38 +- test/Transforms/SLPVectorizer/X86/atomics.ll | 16 +- test/Transforms/SLPVectorizer/X86/bad_types.ll | 2 +- test/Transforms/SLPVectorizer/X86/barriercall.ll | 6 +- test/Transforms/SLPVectorizer/X86/call.ll | 70 +- test/Transforms/SLPVectorizer/X86/cast.ll | 20 +- test/Transforms/SLPVectorizer/X86/cmp_sel.ll | 10 +- .../Transforms/SLPVectorizer/X86/compare-reduce.ll | 10 +- .../SLPVectorizer/X86/consecutive-access.ll | 80 +- .../SLPVectorizer/X86/continue_vectorizing.ll | 18 +- test/Transforms/SLPVectorizer/X86/crash_7zip.ll | 4 +- .../Transforms/SLPVectorizer/X86/crash_binaryop.ll | 2 +- test/Transforms/SLPVectorizer/X86/crash_bullet.ll | 10 +- test/Transforms/SLPVectorizer/X86/crash_bullet3.ll | 4 +- test/Transforms/SLPVectorizer/X86/crash_cmpop.ll | 6 +- test/Transforms/SLPVectorizer/X86/crash_dequeue.ll | 14 +- test/Transforms/SLPVectorizer/X86/crash_gep.ll | 6 +- test/Transforms/SLPVectorizer/X86/crash_lencod.ll | 14 +- .../SLPVectorizer/X86/crash_mandeltext.ll | 12 +- .../SLPVectorizer/X86/crash_netbsd_decompress.ll | 12 +- .../SLPVectorizer/X86/crash_scheduling.ll | 4 +- test/Transforms/SLPVectorizer/X86/crash_sim4b1.ll | 4 +- test/Transforms/SLPVectorizer/X86/crash_smallpt.ll | 12 +- .../SLPVectorizer/X86/crash_vectorizeTree.ll | 16 +- .../SLPVectorizer/X86/cross_block_slp.ll | 12 +- test/Transforms/SLPVectorizer/X86/cse.ll | 86 +- test/Transforms/SLPVectorizer/X86/cycle_dup.ll | 18 +- test/Transforms/SLPVectorizer/X86/debug_info.ll | 56 +- test/Transforms/SLPVectorizer/X86/diamond.ll | 60 +- test/Transforms/SLPVectorizer/X86/external_user.ll | 12 +- test/Transforms/SLPVectorizer/X86/extract.ll | 18 +- .../SLPVectorizer/X86/extract_in_tree_user.ll | 42 +- test/Transforms/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 +- test/Transforms/SLPVectorizer/X86/horizontal.ll | 194 +- test/Transforms/SLPVectorizer/X86/implicitfloat.ll | 14 +- test/Transforms/SLPVectorizer/X86/in-tree-user.ll | 10 +- test/Transforms/SLPVectorizer/X86/intrinsic.ll | 286 +- test/Transforms/SLPVectorizer/X86/long_chains.ll | 8 +- test/Transforms/SLPVectorizer/X86/loopinvariant.ll | 32 +- test/Transforms/SLPVectorizer/X86/metadata.ll | 28 +- test/Transforms/SLPVectorizer/X86/multi_block.ll | 10 +- test/Transforms/SLPVectorizer/X86/multi_user.ll | 18 +- test/Transforms/SLPVectorizer/X86/odd_store.ll | 16 +- test/Transforms/SLPVectorizer/X86/operandorder.ll | 184 +- 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 +- test/Transforms/SLPVectorizer/X86/powof2div.ll | 36 +- test/Transforms/SLPVectorizer/X86/pr16628.ll | 4 +- test/Transforms/SLPVectorizer/X86/pr16899.ll | 8 +- test/Transforms/SLPVectorizer/X86/pr19657.ll | 90 +- .../SLPVectorizer/X86/propagate_ir_flags.ll | 210 +- test/Transforms/SLPVectorizer/X86/reduction.ll | 8 +- test/Transforms/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 +- test/Transforms/SLPVectorizer/X86/scheduling.ll | 42 +- test/Transforms/SLPVectorizer/X86/simple-loop.ll | 48 +- test/Transforms/SLPVectorizer/X86/simplebb.ll | 56 +- test/Transforms/SLPVectorizer/X86/tiny-tree.ll | 80 +- test/Transforms/SLPVectorizer/X86/unreachable.ll | 22 +- .../SLPVectorizer/XCore/no-vector-registers.ll | 14 +- test/Transforms/SROA/address-spaces.ll | 8 +- test/Transforms/SROA/alignment.ll | 68 +- test/Transforms/SROA/basictest.ll | 642 +- test/Transforms/SROA/big-endian.ll | 30 +- test/Transforms/SROA/fca.ll | 14 +- test/Transforms/SROA/phi-and-select.ll | 104 +- test/Transforms/SROA/slice-order-independence.ll | 12 +- test/Transforms/SROA/slice-width.ll | 20 +- test/Transforms/SROA/vector-conversion.ll | 6 +- test/Transforms/SROA/vector-lifetime-intrinsic.ll | 2 +- test/Transforms/SROA/vector-promotion.ll | 216 +- test/Transforms/SROA/vectors-of-pointers.ll | 2 +- test/Transforms/SampleProfile/branch.ll | 64 +- test/Transforms/SampleProfile/calls.ll | 40 +- test/Transforms/SampleProfile/discriminator.ll | 30 +- test/Transforms/SampleProfile/fnptr.ll | 16 +- test/Transforms/SampleProfile/propagate.ll | 98 +- test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll | 6 +- .../ScalarRepl/2003-09-12-IncorrectPromote.ll | 4 +- .../ScalarRepl/2003-10-29-ArrayProblem.ll | 4 +- .../ScalarRepl/2006-11-07-InvalidArrayPromote.ll | 8 +- .../ScalarRepl/2007-05-29-MemcpyPreserve.ll | 10 +- .../ScalarRepl/2007-11-03-bigendian_apint.ll | 20 +- .../Transforms/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 +- .../Transforms/ScalarRepl/2008-09-22-vector-gep.ll | 4 +- .../2009-02-02-ScalarPromoteOutOfRange.ll | 6 +- test/Transforms/ScalarRepl/2009-02-05-LoadFCA.ll | 2 +- .../ScalarRepl/2009-03-04-MemCpyAlign.ll | 2 +- test/Transforms/ScalarRepl/2009-12-11-NeonTypes.ll | 32 +- .../ScalarRepl/2011-05-06-CapturedAlloca.ll | 2 +- .../ScalarRepl/2011-06-08-VectorExtractValue.ll | 26 +- .../ScalarRepl/2011-06-17-VectorPartialMemset.ll | 4 +- .../ScalarRepl/2011-09-22-PHISpeculateInvoke.ll | 2 +- .../ScalarRepl/2011-10-22-VectorCrash.ll | 2 +- .../ScalarRepl/2011-11-11-EmptyStruct.ll | 4 +- test/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 +- test/Transforms/ScalarRepl/debuginfo-preserved.ll | 42 +- test/Transforms/ScalarRepl/inline-vector.ll | 8 +- test/Transforms/ScalarRepl/lifetime.ll | 62 +- test/Transforms/ScalarRepl/load-store-aggregate.ll | 12 +- test/Transforms/ScalarRepl/memcpy-align.ll | 2 +- .../ScalarRepl/memset-aggregate-byte-leader.ll | 6 +- test/Transforms/ScalarRepl/memset-aggregate.ll | 24 +- test/Transforms/ScalarRepl/negative-memset.ll | 2 +- test/Transforms/ScalarRepl/nonzero-first-index.ll | 20 +- test/Transforms/ScalarRepl/not-a-vector.ll | 6 +- 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 +- .../ScalarRepl/vectors-with-mismatched-elements.ll | 4 +- test/Transforms/ScalarRepl/volatile.ll | 6 +- test/Transforms/Scalarizer/basic.ll | 164 +- test/Transforms/Scalarizer/dbginfo.ll | 72 +- test/Transforms/Scalarizer/no-data-layout.ll | 25 - .../NVPTX/split-gep-and-gvn.ll | 96 +- .../SeparateConstOffsetFromGEP/NVPTX/split-gep.ll | 86 +- .../SimplifyCFG/2003-08-17-FoldSwitch-dbg.ll | 2 +- test/Transforms/SimplifyCFG/2005-06-16-PHICrash.ll | 4 +- .../SimplifyCFG/2005-08-01-PHIUpdateFail.ll | 2 +- .../SimplifyCFG/2005-12-03-IncorrectPHIFold.ll | 44 +- test/Transforms/SimplifyCFG/2006-08-03-Crash.ll | 46 +- .../SimplifyCFG/2006-12-08-Ptr-ICmp-Branch.ll | 42 +- .../SimplifyCFG/2008-01-02-hoist-fp-add.ll | 2 +- .../SimplifyCFG/2008-07-13-InfLoopMiscompile.ll | 4 +- .../SimplifyCFG/2008-09-08-MultiplePred.ll | 2 +- .../SimplifyCFG/2009-05-12-externweak.ll | 2 +- test/Transforms/SimplifyCFG/AArch64/prefer-fma.ll | 20 +- test/Transforms/SimplifyCFG/EmptyBlockMerge.ll | 2 +- test/Transforms/SimplifyCFG/MagicPointer.ll | 16 +- test/Transforms/SimplifyCFG/PR17073.ll | 6 +- test/Transforms/SimplifyCFG/SpeculativeExec.ll | 4 +- .../SimplifyCFG/X86/switch-covered-bug.ll | 4 +- .../Transforms/SimplifyCFG/X86/switch-table-bug.ll | 4 +- .../SimplifyCFG/X86/switch_to_lookup_table.ll | 44 +- test/Transforms/SimplifyCFG/attr-noduplicate.ll | 4 +- test/Transforms/SimplifyCFG/basictest.ll | 4 +- test/Transforms/SimplifyCFG/branch-fold-dbg.ll | 22 +- .../SimplifyCFG/branch-fold-threshold.ll | 2 +- test/Transforms/SimplifyCFG/branch-phi-thread.ll | 2 +- test/Transforms/SimplifyCFG/dbginfo.ll | 2 +- .../Transforms/SimplifyCFG/duplicate-landingpad.ll | 110 + test/Transforms/SimplifyCFG/hoist-common-code.ll | 4 +- test/Transforms/SimplifyCFG/hoist-dbgvalue.ll | 32 +- test/Transforms/SimplifyCFG/hoist-with-range.ll | 6 +- test/Transforms/SimplifyCFG/indirectbr.ll | 8 +- test/Transforms/SimplifyCFG/iterative-simplify.ll | 18 +- test/Transforms/SimplifyCFG/multiple-phis.ll | 4 +- .../SimplifyCFG/no_speculative_loads_with_tsan.ll | 6 +- test/Transforms/SimplifyCFG/phi-undef-loadstore.ll | 10 +- .../SimplifyCFG/preserve-branchweights.ll | 2 +- test/Transforms/SimplifyCFG/select-gep.ll | 2 +- test/Transforms/SimplifyCFG/speculate-store.ll | 40 +- .../SimplifyCFG/speculate-with-offset.ll | 16 +- ...switch-to-select-multiple-edge-per-block-phi.ll | 4 +- test/Transforms/SimplifyCFG/switch_create.ll | 4 +- test/Transforms/SimplifyCFG/trap-debugloc.ll | 14 +- .../SimplifyCFG/trapping-load-unreachable.ll | 2 +- test/Transforms/SimplifyCFG/unreachable-blocks.ll | 4 +- test/Transforms/SimplifyCFG/volatile-phioper.ll | 2 +- test/Transforms/Sink/basic.ll | 24 +- .../StraightLineStrengthReduce/X86/lit.local.cfg | 2 + .../StraightLineStrengthReduce/X86/no-slsr.ll | 30 + .../StraightLineStrengthReduce/slsr-gep.ll | 109 + .../StraightLineStrengthReduce/slsr-mul.ll | 121 + test/Transforms/StraightLineStrengthReduce/slsr.ll | 119 - .../StripSymbols/2010-06-30-StripDebug.ll | 20 +- test/Transforms/StripSymbols/2010-08-25-crash.ll | 20 +- .../StripSymbols/strip-dead-debug-info.ll | 40 +- .../StructurizeCFG/branch-on-argument.ll | 2 +- .../StructurizeCFG/loop-multiple-exits.ll | 4 +- .../StructurizeCFG/post-order-traversal-bug.ll | 16 +- test/Transforms/TailCallElim/basic.ll | 2 +- test/Transforms/TailCallElim/dont_reorder_load.ll | 6 +- test/Transforms/TailCallElim/inf-recursion.ll | 21 + test/Transforms/TailCallElim/reorder_load.ll | 20 +- test/Transforms/Util/lowerswitch.ll | 134 + test/Verifier/2002-11-05-GetelementptrPointers.ll | 2 +- test/Verifier/2006-10-15-AddrLabel.ll | 2 +- test/Verifier/2010-08-07-PointerIntrinsic.ll | 4 +- ...ugh-constant-inttoptr-inside-gep-instruction.ll | 2 +- .../bitcast-address-space-through-gep-2.ll | 4 +- test/Verifier/bitcast-address-space-through-gep.ll | 2 +- test/Verifier/dbg.ll | 18 + test/Verifier/frameallocate.ll | 48 - test/Verifier/frameescape.ll | 69 + test/Verifier/inalloca-vararg.ll | 0 test/Verifier/invalid-statepoint.ll | 20 + test/Verifier/invalid-statepoint2.ll | 19 + test/Verifier/llvm.dbg.declare-address.ll | 16 + test/Verifier/llvm.dbg.declare-expression.ll | 16 + test/Verifier/llvm.dbg.declare-variable.ll | 16 + test/Verifier/llvm.dbg.value-expression.ll | 16 + test/Verifier/llvm.dbg.value-value.ll | 16 + test/Verifier/llvm.dbg.value-variable.ll | 16 + test/Verifier/memcpy.ll | 9 + test/Verifier/range-1.ll | 32 +- test/Verifier/range-2.ll | 10 +- test/Verifier/recursive-struct-param.ll | 15 + test/lit.cfg | 31 +- test/lit.site.cfg | 1 + test/lit.site.cfg.in | 1 + .../dsymutil/Inputs/basic-lto-dw4.macho.x86_64 | Bin 0 -> 8920 bytes .../dsymutil/Inputs/basic-lto-dw4.macho.x86_64.o | Bin 0 -> 3800 bytes test/tools/dsymutil/X86/basic-linking-x86.test | 218 + .../dsymutil/X86/basic-lto-dw4-linking-x86.test | 204 + test/tools/dsymutil/X86/basic-lto-linking-x86.test | 207 + test/tools/dsymutil/X86/lit.local.cfg | 2 + test/tools/dsymutil/basic-linking.test | 6 +- test/tools/dsymutil/debug-map-parsing.test | 44 +- test/tools/gold/mtriple.ll | 2 + test/tools/gold/opt-level.ll | 50 + test/tools/gold/option.ll | 39 - test/tools/gold/pr19901.ll | 3 +- test/tools/gold/remarks.ll | 22 + test/tools/gold/slp-vectorize.ll | 14 +- test/tools/gold/vectorize.ll | 6 +- test/tools/llvm-cov/Inputs/binary-formats.macho32b | Bin 0 -> 9352 bytes test/tools/llvm-cov/Inputs/binary-formats.macho32l | Bin 0 -> 812 bytes test/tools/llvm-cov/Inputs/binary-formats.macho64l | Bin 0 -> 920 bytes test/tools/llvm-cov/Inputs/binary-formats.proftext | 4 + .../llvm-cov/Inputs/lineExecutionCounts.profdata | Bin 656 -> 0 bytes .../llvm-cov/Inputs/lineExecutionCounts.proftext | 8 + test/tools/llvm-cov/Inputs/regionMarkers.profdata | Bin 656 -> 0 bytes test/tools/llvm-cov/Inputs/regionMarkers.proftext | 8 + .../llvm-cov/Inputs/test_exit_block_arcs.gcda | Bin 0 -> 124 bytes .../llvm-cov/Inputs/test_exit_block_arcs.gcno | Bin 0 -> 216 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 | 47 +- test/tools/llvm-cov/range_based_for.cpp | 2 +- test/tools/llvm-cov/report.cpp | 7 +- test/tools/llvm-cov/showExpansions.cpp | 3 - test/tools/llvm-cov/showHighlightedRanges.cpp | 3 - test/tools/llvm-cov/showLineExecutionCounts.cpp | 8 +- test/tools/llvm-cov/showRegionMarkers.cpp | 5 +- test/tools/llvm-cov/showTemplateInstantiations.cpp | 7 +- test/tools/llvm-cov/universal-binary.c | 10 + test/tools/llvm-cxxdump/Inputs/eh.obj.coff-i386 | Bin 0 -> 7388 bytes .../llvm-cxxdump/Inputs/trivial.obj.coff-i386 | Bin 0 -> 2938 bytes .../tools/llvm-cxxdump/Inputs/trivial.obj.elf-i386 | Bin 0 -> 1032 bytes test/tools/llvm-cxxdump/eh.test | 258 + test/tools/llvm-cxxdump/trivial.test | 58 + .../tools/llvm-objdump/ARM/macho-data-in-code.test | 8 + .../tools/llvm-objdump/X86/macho-cstring-dump.test | 9 + .../X86/macho-dis-no-leading-addr.test | 24 + test/tools/llvm-objdump/X86/macho-dis-symname.test | 19 + test/tools/llvm-objdump/X86/macho-dylib.test | 6 + .../llvm-objdump/X86/macho-indirect-symbols.test | 12 + test/tools/llvm-objdump/X86/macho-info-plist.test | 7 + .../X86/macho-literal-pointers-i386.test | 5 + .../X86/macho-literal-pointers-x86_64.test | 6 + test/tools/llvm-objdump/X86/macho-literals.test | 15 + .../llvm-objdump/X86/macho-private-headers.test | 94 + test/tools/llvm-objdump/X86/macho-section.test | 4 + .../X86/macho-symbolized-disassembly.test | 9 + .../X86/macho-universal-x86_64.i386.test | 20 + test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.cpp | 64 + test/tools/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 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/regex-filter.test | 75 + test/tools/llvm-profdata/general.proftext | 12 +- .../Inputs/macho-universal.x86_64.i386 | Bin 0 -> 16624 bytes test/tools/llvm-readobj/Inputs/trivial.ll | 2 +- .../llvm-readobj/macho-universal-x86_64.i386.test | 141 + .../llvm-vtabledump/Inputs/trivial.obj.coff-i386 | Bin 2938 -> 0 bytes .../llvm-vtabledump/Inputs/trivial.obj.elf-i386 | Bin 1032 -> 0 bytes test/tools/llvm-vtabledump/trivial.test | 58 - test/tools/lto/lit.local.cfg | 2 + test/tools/lto/opt-level.ll | 20 + tools/CMakeLists.txt | 2 +- tools/Makefile | 2 +- tools/bugpoint/BugDriver.cpp | 26 +- tools/bugpoint/CMakeLists.txt | 2 +- tools/bugpoint/CrashDebugger.cpp | 1 - tools/bugpoint/Miscompilation.cpp | 14 +- tools/dsymutil/Android.mk | 41 +- tools/dsymutil/CMakeLists.txt | 3 + tools/dsymutil/DebugMap.cpp | 8 +- tools/dsymutil/DebugMap.h | 14 +- tools/dsymutil/DwarfLinker.cpp | 1934 +- tools/dsymutil/LLVMBuild.txt | 2 +- tools/dsymutil/MachODebugMapParser.cpp | 28 +- tools/dsymutil/Makefile | 2 +- tools/dsymutil/dsymutil.cpp | 32 +- tools/dsymutil/dsymutil.h | 10 +- tools/gold/gold-plugin.cpp | 32 +- tools/llc/CMakeLists.txt | 2 +- tools/llc/llc.cpp | 4 +- tools/lli/Android.mk | 1 + tools/lli/CMakeLists.txt | 3 +- tools/lli/OrcLazyJIT.cpp | 53 + tools/lli/OrcLazyJIT.h | 97 + tools/lli/RemoteMemoryManager.cpp | 1 + tools/lli/lli.cpp | 29 +- tools/llvm-ar/llvm-ar.cpp | 1 + tools/llvm-config/CMakeLists.txt | 2 +- tools/llvm-config/llvm-config.cpp | 8 +- tools/llvm-cov/CodeCoverage.cpp | 37 +- tools/llvm-cov/gcov.cpp | 7 +- tools/llvm-cov/llvm-cov.cpp | 34 +- tools/llvm-cxxdump/Android.mk | 60 + tools/llvm-cxxdump/CMakeLists.txt | 10 + tools/llvm-cxxdump/Error.cpp | 43 + tools/llvm-cxxdump/Error.h | 39 + tools/llvm-cxxdump/LLVMBuild.txt | 22 + tools/llvm-cxxdump/Makefile | 18 + tools/llvm-cxxdump/llvm-cxxdump.cpp | 571 + tools/llvm-cxxdump/llvm-cxxdump.h | 23 + tools/llvm-extract/llvm-extract.cpp | 1 - tools/llvm-jitlistener/llvm-jitlistener.cpp | 3 +- tools/llvm-link/llvm-link.cpp | 7 + tools/llvm-lto/llvm-lto.cpp | 29 +- tools/llvm-mc/Android.mk | 2 +- tools/llvm-mc/llvm-mc.cpp | 10 +- tools/llvm-nm/Android.mk | 2 +- tools/llvm-nm/llvm-nm.cpp | 130 +- tools/llvm-objdump/Android.mk | 2 +- tools/llvm-objdump/MachODump.cpp | 737 +- tools/llvm-objdump/llvm-objdump.cpp | 35 +- tools/llvm-objdump/llvm-objdump.h | 7 +- tools/llvm-pdbdump/Android.mk | 5 +- tools/llvm-pdbdump/BuiltinDumper.cpp | 87 + tools/llvm-pdbdump/BuiltinDumper.h | 30 + tools/llvm-pdbdump/CMakeLists.txt | 3 + tools/llvm-pdbdump/ClassDefinitionDumper.cpp | 136 +- tools/llvm-pdbdump/ClassDefinitionDumper.h | 30 +- tools/llvm-pdbdump/CompilandDumper.cpp | 107 +- tools/llvm-pdbdump/CompilandDumper.h | 34 +- tools/llvm-pdbdump/EnumDumper.cpp | 52 + tools/llvm-pdbdump/EnumDumper.h | 30 + tools/llvm-pdbdump/FunctionDumper.cpp | 199 +- tools/llvm-pdbdump/FunctionDumper.h | 37 +- tools/llvm-pdbdump/LinePrinter.cpp | 124 + tools/llvm-pdbdump/LinePrinter.h | 89 + tools/llvm-pdbdump/TypeDumper.cpp | 97 +- tools/llvm-pdbdump/TypeDumper.h | 20 +- tools/llvm-pdbdump/TypedefDumper.cpp | 61 +- tools/llvm-pdbdump/TypedefDumper.h | 31 +- tools/llvm-pdbdump/VariableDumper.cpp | 136 +- tools/llvm-pdbdump/VariableDumper.h | 34 +- tools/llvm-pdbdump/llvm-pdbdump.cpp | 187 +- tools/llvm-pdbdump/llvm-pdbdump.h | 24 +- tools/llvm-profdata/llvm-profdata.cpp | 27 +- tools/llvm-readobj/ELFDumper.cpp | 1 + tools/llvm-readobj/llvm-readobj.cpp | 17 + tools/llvm-rtdyld/llvm-rtdyld.cpp | 10 +- tools/llvm-shlib/CMakeLists.txt | 2 +- tools/llvm-stress/CMakeLists.txt | 2 +- tools/llvm-stress/llvm-stress.cpp | 1 - tools/llvm-symbolizer/llvm-symbolizer.cpp | 1 + tools/llvm-vtabledump/Android.mk | 60 - tools/llvm-vtabledump/CMakeLists.txt | 10 - tools/llvm-vtabledump/Error.cpp | 43 - tools/llvm-vtabledump/Error.h | 39 - tools/llvm-vtabledump/LLVMBuild.txt | 22 - tools/llvm-vtabledump/Makefile | 18 - tools/llvm-vtabledump/llvm-vtabledump.cpp | 464 - tools/llvm-vtabledump/llvm-vtabledump.h | 23 - tools/lto/lto.cpp | 51 +- tools/opt/Android.mk | 2 +- tools/opt/CMakeLists.txt | 4 +- tools/opt/LLVMBuild.txt | 2 +- tools/opt/Makefile | 2 +- tools/opt/NewPMDriver.cpp | 14 +- tools/opt/PassRegistry.def | 77 - tools/opt/Passes.cpp | 406 - tools/opt/Passes.h | 105 - tools/opt/opt.cpp | 24 +- tools/verify-uselistorder/verify-uselistorder.cpp | 1 + tools/yaml2obj/yaml2coff.cpp | 2 +- tools/yaml2obj/yaml2obj.cpp | 3 +- unittests/ADT/APFloatTest.cpp | 7 +- unittests/ADT/APIntTest.cpp | 240 + unittests/ADT/ArrayRefTest.cpp | 28 +- unittests/ADT/DeltaAlgorithmTest.cpp | 2 +- unittests/ADT/DenseMapTest.cpp | 1 + unittests/ADT/HashingTest.cpp | 1 - unittests/ADT/MapVectorTest.cpp | 25 + unittests/ADT/SCCIteratorTest.cpp | 4 +- unittests/ADT/SmallVectorTest.cpp | 19 + unittests/ADT/TripleTest.cpp | 10 + unittests/ADT/TwineTest.cpp | 10 + unittests/ADT/ilistTest.cpp | 3 +- unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp | 75 + unittests/ExecutionEngine/ExecutionEngineTest.cpp | 1 + unittests/IR/ConstantRangeTest.cpp | 65 +- unittests/IR/ConstantsTest.cpp | 4 +- unittests/IR/DebugInfoTest.cpp | 20 +- unittests/IR/IRBuilderTest.cpp | 6 +- unittests/IR/InstructionsTest.cpp | 30 +- unittests/IR/LegacyPassManagerTest.cpp | 10 - unittests/IR/MetadataTest.cpp | 177 +- unittests/Linker/LinkModulesTest.cpp | 5 +- unittests/Support/AlignOfTest.cpp | 6 + unittests/Support/Path.cpp | 43 + unittests/Support/YAMLIOTest.cpp | 86 + unittests/Transforms/IPO/LowerBitSets.cpp | 90 +- unittests/Transforms/Utils/CMakeLists.txt | 1 + unittests/Transforms/Utils/Cloning.cpp | 3 +- unittests/Transforms/Utils/ValueMapperTest.cpp | 27 + utils/FileCheck/FileCheck.cpp | 3 +- utils/KillTheDoctor/KillTheDoctor.cpp | 1 + utils/TableGen/AsmMatcherEmitter.cpp | 12 +- utils/TableGen/AsmWriterEmitter.cpp | 2 +- utils/TableGen/CodeGenDAGPatterns.cpp | 494 +- utils/TableGen/CodeGenDAGPatterns.h | 16 +- utils/TableGen/CodeGenInstruction.cpp | 1 - utils/TableGen/CodeGenInstruction.h | 1 - utils/TableGen/CodeGenRegisters.cpp | 14 +- utils/TableGen/CodeGenRegisters.h | 8 +- utils/TableGen/DAGISelMatcherEmitter.cpp | 4 +- utils/TableGen/FixedLenDecoderEmitter.cpp | 2 +- utils/TableGen/InstrInfoEmitter.cpp | 18 +- utils/TableGen/RegisterInfoEmitter.cpp | 36 +- utils/TableGen/SubtargetEmitter.cpp | 46 +- utils/TableGen/X86DisassemblerTables.cpp | 12 + utils/lit/lit/TestRunner.py | 52 +- utils/release/export.sh | 3 + utils/unittest/googletest/include/gtest/gtest.h | 2 +- .../gtest/internal/gtest-param-util-generated.h | 3 - .../googletest/include/gtest/internal/gtest-port.h | 2 +- 6912 files changed, 157003 insertions(+), 121727 deletions(-) delete mode 100644 autoconf/m4/func_isinf.m4 delete mode 100644 autoconf/m4/func_isnan.m4 create mode 100644 docs/BuildingLLVMWithAutotools.rst create mode 100644 docs/Frontend/PerformanceTips.rst delete mode 100644 docs/doxygen.css delete mode 100644 docs/doxygen.footer delete mode 100644 docs/doxygen.header create mode 100644 include/llvm/ADT/EpochTracker.h delete mode 100644 include/llvm/Analysis/ConstantsScanner.h create mode 100644 include/llvm/Analysis/TargetLibraryInfo.def 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/ExecutionEngine/JITSymbolFlags.h create mode 100644 include/llvm/Passes/PassBuilder.h delete mode 100644 lib/Analysis/JumpInstrTableInfo.cpp delete mode 100644 lib/Bitcode/Reader/BitcodeReader.h delete mode 100644 lib/CodeGen/ForwardControlFlowIntegrity.cpp delete mode 100644 lib/CodeGen/JumpInstrTables.cpp delete mode 100644 lib/CodeGen/PrologEpilogInserter.h 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 create mode 100644 lib/Fuzzer/test/CounterTest.cpp delete mode 100644 lib/IR/AsmWriter.h create mode 100644 lib/Passes/Android.mk create mode 100644 lib/Passes/CMakeLists.txt create mode 100644 lib/Passes/LLVMBuild.txt create mode 100644 lib/Passes/Makefile create mode 100644 lib/Passes/PassBuilder.cpp create mode 100644 lib/Passes/PassRegistry.def delete mode 100644 lib/Support/IsInf.cpp delete mode 100644 lib/Support/IsNAN.cpp delete mode 100644 lib/Target/ARM/Thumb1RegisterInfo.cpp delete mode 100644 lib/Target/ARM/Thumb1RegisterInfo.h delete mode 100644 lib/Target/ARM/Thumb2RegisterInfo.cpp delete mode 100644 lib/Target/ARM/Thumb2RegisterInfo.h create mode 100644 lib/Target/ARM/ThumbRegisterInfo.cpp create mode 100644 lib/Target/ARM/ThumbRegisterInfo.h delete mode 100644 lib/Target/Hexagon/HexagonSplitTFRCondSets.cpp delete mode 100644 lib/Target/Mips/Mips16HardFloat.h delete mode 100644 lib/Target/Mips/MipsModuleISelDAGToDAG.h delete mode 100644 lib/Target/Mips/MipsOs16.h delete mode 100644 lib/Target/NVPTX/NVPTXutil.cpp delete mode 100644 lib/Target/NVPTX/NVPTXutil.h create mode 100644 lib/Target/PowerPC/PPCInstrHTM.td create mode 100644 lib/Transforms/ObjCARC/BlotMapVector.h create mode 100644 lib/Transforms/ObjCARC/PtrState.cpp create mode 100644 lib/Transforms/ObjCARC/PtrState.h create mode 100644 lib/Transforms/Scalar/LoopInterchange.cpp create mode 100644 test/Analysis/CFLAliasAnalysis/branch-alias.ll create mode 100644 test/Analysis/DependenceAnalysis/Constraints.ll create mode 100644 test/Analysis/DependenceAnalysis/UsefulGEP.ll delete mode 100644 test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks-no-dbg.ll create mode 100644 test/Analysis/ScalarEvolution/ext-antecedent.ll create mode 100644 test/Analysis/ScalarEvolution/infer-via-ranges.ll create mode 100644 test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll create mode 100644 test/Analysis/ScalarEvolution/pr22856.ll create mode 100644 test/Analysis/ScalarEvolution/range-signedness.ll create mode 100644 test/Analysis/TypeBasedAliasAnalysis/cyclic.ll create mode 100644 test/Analysis/ValueTracking/pr23011.ll create mode 100644 test/Assembler/alloca-size-one.ll delete mode 100644 test/Assembler/functionlocal-metadata.ll create mode 100644 test/Assembler/getelementptr_invalid_ptr.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-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 delete mode 100644 test/Assembler/invalid-mdbasictype-missing-tag.ll delete mode 100644 test/Assembler/invalid-mdglobalvariable-missing-name.ll delete mode 100644 test/Assembler/invalid-mdobjcproperty-missing-name.ll delete mode 100644 test/Assembler/invalid-mdsubprogram-missing-name.ll delete mode 100644 test/Assembler/invalid-mdtemplatevalueparameter-missing-tag.ll delete mode 100644 test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll create mode 100644 test/Assembler/mdfile-escaped-chars.ll create mode 100644 test/Assembler/metadata-function-local.ll create mode 100644 test/Assembler/unsized-recursive-type.ll 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-load-mismatched-explicit-type.bc mode change 100755 => 100644 test/BugPoint/compile-custom.ll create mode 100644 test/CodeGen/AArch64/concat_vector-truncate-combine.ll create mode 100644 test/CodeGen/AArch64/function-subtarget-features.ll create mode 100644 test/CodeGen/AArch64/inline-asm-globaladdress.ll create mode 100644 test/CodeGen/AArch64/machine-copy-prop.ll create mode 100644 test/CodeGen/AArch64/remat-float0.ll create mode 100644 test/CodeGen/ARM/byval-align.ll delete mode 100644 test/CodeGen/ARM/darwin-section-order.ll create mode 100644 test/CodeGen/ARM/ifcvt-iter-indbr.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/Hexagon/brev_ld.ll create mode 100644 test/CodeGen/Hexagon/brev_st.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 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/logopm.ll create mode 100644 test/CodeGen/Mips/cconv/arguments-small-structures-bigger-than-32bits.ll create mode 100644 test/CodeGen/Mips/check-adde-redundant-moves.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/micromips-addu16.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-subu16.ll create mode 100644 test/CodeGen/Mips/mips64signextendsesf.ll create mode 100644 test/CodeGen/NVPTX/function-align.ll create mode 100644 test/CodeGen/PowerPC/crypto_bifs.ll create mode 100644 test/CodeGen/PowerPC/fast-isel-load-store-vsx.ll create mode 100644 test/CodeGen/PowerPC/htm.ll create mode 100644 test/CodeGen/PowerPC/memcpy-vec.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/pr22711.ll create mode 100644 test/CodeGen/PowerPC/qpx-split-vsetcc.ll create mode 100644 test/CodeGen/PowerPC/vec_add_sub_doubleword.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_rotate_shift.ll create mode 100644 test/CodeGen/R600/commute-compares.ll create mode 100644 test/CodeGen/R600/fmax3.f64.ll create mode 100644 test/CodeGen/R600/llvm.AMDGPU.flbit.i32.ll create mode 100644 test/CodeGen/R600/llvm.AMDGPU.fract.f64.ll create mode 100644 test/CodeGen/WinEH/cppeh-catch-all.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-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-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-nonalloca-frame-values.ll create mode 100644 test/CodeGen/WinEH/lit.local.cfg create mode 100644 test/CodeGen/WinEH/seh-simple.ll delete mode 100644 test/CodeGen/X86/2013-02-12-ShuffleToZext.ll create mode 100644 test/CodeGen/X86/add32ri8.ll create mode 100644 test/CodeGen/X86/and-load-fold.ll create mode 100644 test/CodeGen/X86/avx-insertelt.ll mode change 100755 => 100644 test/CodeGen/X86/avx512-i1test.ll create mode 100644 test/CodeGen/X86/avx512-scalar.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 delete mode 100644 test/CodeGen/X86/cppeh-catch-all.ll delete mode 100644 test/CodeGen/X86/cppeh-catch-scalar.ll delete mode 100644 test/CodeGen/X86/cppeh-frame-vars.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/extractelement-legalization-store-ordering.ll create mode 100644 test/CodeGen/X86/fast-isel-vecload.ll delete mode 100644 test/CodeGen/X86/fastmath-optnone.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/getelementptr.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/lower-vec-shuffle-bug.ll delete mode 100644 test/CodeGen/X86/palignr-2.ll create mode 100644 test/CodeGen/X86/pr22774.ll mode change 100755 => 100644 test/CodeGen/X86/seh-finally.ll create mode 100644 test/CodeGen/X86/setcc-combine.ll create mode 100644 test/CodeGen/X86/sink-cheap-instructions.ll create mode 100644 test/CodeGen/X86/statepoint-invoke.ll create mode 100644 test/CodeGen/X86/twoaddr-coalesce-3.ll create mode 100644 test/CodeGen/X86/vec_partial.ll create mode 100644 test/CodeGen/X86/vec_shift7.ll create mode 100644 test/CodeGen/X86/win64_nonvol.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/ARM/header.ll delete mode 100644 test/DebugInfo/ARM/sectionorder.ll create mode 100644 test/DebugInfo/Mips/InlinedFnLocalVar.ll create mode 100644 test/DebugInfo/X86/InlinedFnLocalVar.ll create mode 100644 test/DebugInfo/X86/empty.ll create mode 100644 test/DebugInfo/X86/frame-register.ll create mode 100644 test/DebugInfo/X86/header.ll create mode 100644 test/DebugInfo/X86/missing-file-line.ll create mode 100644 test/DebugInfo/accel-table-hash-collisions.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2002-12-16-ArgTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-01-04-ArgumentBug.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-01-04-LoopTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-01-04-PhiTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-01-09-SARTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-01-10-FUCOM.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-01-15-AlignmentTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-05-06-LivenessClobber.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-05-07-ArgumentTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-05-11-PHIRegAllocBug.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-06-04-bzip2-bug.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-06-05-PHIBug.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-08-15-AllocaAssertion.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-08-21-EnvironmentTest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-08-23-RegisterAllocatePhysReg.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2005-12-02-TailCallBug.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2007-12-10-APIntLoadStore.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2008-06-05-APInt-OverAShr.ll delete mode 100644 test/ExecutionEngine/OrcJIT/2013-04-04-RelocAddend.ll delete mode 100644 test/ExecutionEngine/OrcJIT/Inputs/cross-module-b.ll delete mode 100644 test/ExecutionEngine/OrcJIT/Inputs/multi-module-b.ll delete mode 100644 test/ExecutionEngine/OrcJIT/Inputs/multi-module-c.ll delete mode 100644 test/ExecutionEngine/OrcJIT/Inputs/multi-module-eh-b.ll delete mode 100644 test/ExecutionEngine/OrcJIT/cross-module-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/cross-module-sm-pic-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/eh-lg-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/eh-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/eh.ll delete mode 100644 test/ExecutionEngine/OrcJIT/fpbitcast.ll delete mode 100644 test/ExecutionEngine/OrcJIT/hello-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/hello.ll delete mode 100644 test/ExecutionEngine/OrcJIT/hello2.ll delete mode 100644 test/ExecutionEngine/OrcJIT/lit.local.cfg delete mode 100644 test/ExecutionEngine/OrcJIT/load-object-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/multi-module-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/multi-module-eh-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/multi-module-sm-pic-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/non-extern-addend.ll delete mode 100644 test/ExecutionEngine/OrcJIT/pr13727.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/Inputs/cross-module-b.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-b.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-c.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/cross-module-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/cross-module-sm-pic-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/lit.local.cfg delete mode 100644 test/ExecutionEngine/OrcJIT/remote/multi-module-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/multi-module-sm-pic-a.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/simpletest-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-data-align-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-fp-no-external-funcs-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll delete mode 100644 test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/simplesttest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/simpletest.ll delete mode 100644 test/ExecutionEngine/OrcJIT/stubs-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/stubs.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-arith.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-branch.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-call-no-external-funcs.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-call.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-cast.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-common-symbols-alignment.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-common-symbols.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-constantexpr.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-data-align.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-fp-no-external-funcs.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-fp.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-global-ctors.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-global-init-nonzero-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-global-init-nonzero.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-global.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-loadstore.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-local.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-logical.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-loop.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-phi.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-ptr-reloc-sm-pic.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-ptr-reloc.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-ret.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-return.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-setcond-fp.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-setcond-int.ll delete mode 100644 test/ExecutionEngine/OrcJIT/test-shift.ll create mode 100644 test/ExecutionEngine/OrcLazy/lit.local.cfg create mode 100644 test/ExecutionEngine/OrcLazy/trivial_retval_1.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2002-12-16-ArgTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-01-04-ArgumentBug.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-01-04-LoopTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-01-04-PhiTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-01-09-SARTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-01-10-FUCOM.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-01-15-AlignmentTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-05-06-LivenessClobber.ll 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 create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-08-15-AllocaAssertion.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-08-21-EnvironmentTest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-08-23-RegisterAllocatePhysReg.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2005-12-02-TailCallBug.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2007-12-10-APIntLoadStore.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/2008-06-05-APInt-OverAShr.ll 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 create mode 100644 test/ExecutionEngine/OrcMCJIT/fpbitcast.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/hello-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/hello.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/hello2.ll 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 create mode 100644 test/ExecutionEngine/OrcMCJIT/simpletest.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/stubs-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/stubs.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-arith.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-branch.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-call-no-external-funcs.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-call.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-cast.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-common-symbols-alignment.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-common-symbols.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-constantexpr.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-data-align.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-fp-no-external-funcs.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-fp.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-global-ctors.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-global-init-nonzero-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-global-init-nonzero.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-global.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-loadstore.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-local.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-logical.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-loop.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-phi.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-ptr-reloc-sm-pic.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-ptr-reloc.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-ret.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-return.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-setcond-fp.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-setcond-int.ll create mode 100644 test/ExecutionEngine/OrcMCJIT/test-shift.ll create mode 100644 test/ExecutionEngine/RuntimeDyld/X86/COFF_x86_64 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/SanitizerCoverage/cmp-tracing.ll delete mode 100644 test/LTO/X86/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/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/broken.ll delete mode 100644 test/Linker/comdat3.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/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/AsmParser/ifnes.s mode change 100755 => 100644 test/MC/COFF/linker-options.ll 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/ELF/size.s create mode 100644 test/MC/ELF/weak-diff.s create mode 100644 test/MC/MachO/AArch64/cstexpr-gotpcrel.ll 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/Mips/module-directive-bad.s create mode 100644 test/MC/PowerPC/htm.s delete mode 100644 test/MC/X86/cstexpr-gotpcrel.ll create mode 100644 test/MC/X86/expand-var.s create mode 100644 test/MC/X86/invalid-sleb.s create mode 100755 test/Object/Inputs/macho-empty-kext-bundle-x86-64 create mode 100644 test/Object/kext.test create mode 100644 test/Transforms/ConstProp/shift.ll create mode 100644 test/Transforms/IRCE/bug-loop-varying-upper-limit.ll create mode 100644 test/Transforms/IRCE/only-lower-check.ll create mode 100644 test/Transforms/IRCE/only-upper-check.ll delete mode 100644 test/Transforms/Inline/alloca-merge-align-nodl.ll create mode 100644 test/Transforms/Inline/store-sroa.ll delete mode 100644 test/Transforms/InstCombine/2012-09-24-MemcpyFromGlobalCrash.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/dom-conditions.ll create mode 100644 test/Transforms/InstCombine/inline-intrinsic-assert.ll create mode 100644 test/Transforms/InstCombine/memchr.ll create mode 100644 test/Transforms/InstCombine/switch-truncate-crash.ll create mode 100644 test/Transforms/InstCombine/unpack-fca.ll create mode 100644 test/Transforms/InstCombine/x86-vperm2.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/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/runtime-loop4.ll create mode 100644 test/Transforms/LoopVectorize/PowerPC/large-loop-rdx.ll create mode 100644 test/Transforms/LoopVectorize/X86/veclib-calls.ll delete mode 100644 test/Transforms/ObjCARC/arc-annotations.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/relocate_invoke_result.ll create mode 100644 test/Transforms/RewriteStatepointsForGC/relocation.ll delete mode 100644 test/Transforms/Scalarizer/no-data-layout.ll create mode 100644 test/Transforms/SimplifyCFG/duplicate-landingpad.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-gep.ll create mode 100644 test/Transforms/StraightLineStrengthReduce/slsr-mul.ll delete mode 100644 test/Transforms/StraightLineStrengthReduce/slsr.ll create mode 100644 test/Verifier/dbg.ll delete mode 100644 test/Verifier/frameallocate.ll create mode 100644 test/Verifier/frameescape.ll mode change 100755 => 100644 test/Verifier/inalloca-vararg.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.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/memcpy.ll create mode 100644 test/Verifier/recursive-struct-param.ll 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/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 100644 test/tools/llvm-cov/Inputs/test_exit_block_arcs.gcda create mode 100644 test/tools/llvm-cov/Inputs/test_exit_block_arcs.gcno 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 create mode 100644 test/tools/llvm-cxxdump/Inputs/trivial.obj.coff-i386 create mode 100644 test/tools/llvm-cxxdump/Inputs/trivial.obj.elf-i386 create mode 100644 test/tools/llvm-cxxdump/eh.test create mode 100644 test/tools/llvm-cxxdump/trivial.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-info-plist.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/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/regex-filter.test create mode 100644 test/tools/llvm-readobj/Inputs/macho-universal.x86_64.i386 create mode 100644 test/tools/llvm-readobj/macho-universal-x86_64.i386.test delete mode 100644 test/tools/llvm-vtabledump/Inputs/trivial.obj.coff-i386 delete mode 100644 test/tools/llvm-vtabledump/Inputs/trivial.obj.elf-i386 delete mode 100644 test/tools/llvm-vtabledump/trivial.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 create mode 100644 tools/llvm-cxxdump/Android.mk create mode 100644 tools/llvm-cxxdump/CMakeLists.txt create mode 100644 tools/llvm-cxxdump/Error.cpp create mode 100644 tools/llvm-cxxdump/Error.h create mode 100644 tools/llvm-cxxdump/LLVMBuild.txt create mode 100644 tools/llvm-cxxdump/Makefile create mode 100644 tools/llvm-cxxdump/llvm-cxxdump.cpp create mode 100644 tools/llvm-cxxdump/llvm-cxxdump.h create mode 100644 tools/llvm-pdbdump/BuiltinDumper.cpp create mode 100644 tools/llvm-pdbdump/BuiltinDumper.h create mode 100644 tools/llvm-pdbdump/EnumDumper.cpp create mode 100644 tools/llvm-pdbdump/EnumDumper.h create mode 100644 tools/llvm-pdbdump/LinePrinter.cpp create mode 100644 tools/llvm-pdbdump/LinePrinter.h delete mode 100644 tools/llvm-vtabledump/Android.mk delete mode 100644 tools/llvm-vtabledump/CMakeLists.txt delete mode 100644 tools/llvm-vtabledump/Error.cpp delete mode 100644 tools/llvm-vtabledump/Error.h delete mode 100644 tools/llvm-vtabledump/LLVMBuild.txt delete mode 100644 tools/llvm-vtabledump/Makefile delete mode 100644 tools/llvm-vtabledump/llvm-vtabledump.cpp delete mode 100644 tools/llvm-vtabledump/llvm-vtabledump.h delete mode 100644 tools/opt/PassRegistry.def delete mode 100644 tools/opt/Passes.cpp delete mode 100644 tools/opt/Passes.h create mode 100644 unittests/Transforms/Utils/ValueMapperTest.cpp diff --git a/.gitignore b/.gitignore index 7109373..02146ef 100644 --- a/.gitignore +++ b/.gitignore @@ -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/Android.mk b/Android.mk index c2a69f5..f8a2716 100644 --- a/Android.mk +++ b/Android.mk @@ -30,6 +30,7 @@ subdirs := \ lib/MC/MCParser \ lib/Object \ lib/Option \ + lib/Passes \ lib/ProfileData \ lib/Support \ lib/TableGen \ @@ -94,6 +95,7 @@ subdirs += \ tools/llvm-c-test \ tools/llvm-config \ tools/llvm-cov \ + tools/llvm-cxxdump \ tools/llvm-dis \ tools/llvm-diff \ tools/llvm-dwarfdump \ @@ -110,7 +112,6 @@ subdirs += \ tools/llvm-rtdyld \ tools/llvm-size \ tools/llvm-symbolizer \ - tools/llvm-vtabledump \ tools/macho-dump \ tools/obj2yaml \ tools/opt \ diff --git a/CMakeLists.txt b/CMakeLists.txt index ed7aeb0..be78ac2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,24 +1,14 @@ # 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) 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() -# 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(POLICY CMP0022) + cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required endif() if (POLICY CMP0051) @@ -66,7 +56,8 @@ 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}svn") + set(PACKAGE_VERSION + "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}") endif() option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF) @@ -251,6 +242,7 @@ endif() 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) @@ -260,6 +252,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) @@ -348,6 +343,11 @@ 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 @@ -534,9 +534,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 @@ -550,7 +550,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) diff --git a/CODE_OWNERS.TXT b/CODE_OWNERS.TXT index b674756..4e8ff88 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 @@ -116,7 +120,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 @@ -157,7 +161,7 @@ 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 diff --git a/LICENSE.TXT b/LICENSE.TXT index 922092b..84090c0 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.rules b/Makefile.rules index c8c971f..24cac3b 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/autoconf/configure.ac b/autoconf/configure.ac index e0bc783..9617543 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -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) @@ -701,8 +701,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 @@ -726,6 +728,20 @@ 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]) + fi ;; + yes) AC_DEFINE([LLVM_ENABLE_ABI_BREAKING_CHECKS],[1],[Define to enable checks that alter the LLVM C++ ABI]) ;; + no) ;; + *) 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) @@ -801,11 +817,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], @@ -1699,9 +1843,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 ]) @@ -1765,11 +1907,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 40dc48b..0000000 --- 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 eb5ca0d..0000000 --- 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 a7d75a3..f39198d 100644 --- a/bindings/go/llvm/DIBuilderBindings.cpp +++ b/bindings/go/llvm/DIBuilderBindings.cpp @@ -146,6 +146,18 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType( return wrap(CT); } +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); + DICompositeType CT = D->createReplaceableCompositeType( + Tag, Name, unwrapDI(Scope), unwrapDI(File), Line, + RuntimeLang, SizeInBits, AlignInBits, Flags); + return wrap(CT); +} + LLVMMetadataRef LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, const char *Name, LLVMMetadataRef File, diff --git a/bindings/go/llvm/DIBuilderBindings.h b/bindings/go/llvm/DIBuilderBindings.h index e268b3c..a4fba27 100644 --- a/bindings/go/llvm/DIBuilderBindings.h +++ b/bindings/go/llvm/DIBuilderBindings.h @@ -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 fb451ef..fd0cb80 100644 --- a/bindings/go/llvm/IRBindings.cpp +++ b/bindings/go/llvm/IRBindings.cpp @@ -86,9 +86,8 @@ void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { } void LLVMMetadataReplaceAllUsesWith(LLVMMetadataRef MD, LLVMMetadataRef New) { - auto *Node = unwrap(MD); - assert(Node->isTemporary() && "Expected temporary node"); - Node->replaceAllUsesWith(unwrap(New)); + auto *Node = unwrap(MD); + Node->replaceAllUsesWith(unwrap(New)); MDNode::deleteTemporary(Node); } diff --git a/bindings/go/llvm/dibuilder.go b/bindings/go/llvm/dibuilder.go index 3b1a1a6..f03f740 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 64d794e..f64f66c 100644 --- a/bindings/go/llvm/linker.go +++ b/bindings/go/llvm/linker.go @@ -22,7 +22,7 @@ import "errors" func LinkModules(Dest, Src Module) error { var cmsg *C.char - failed := C.LLVMLinkModules(Dest.C, Src.C, 0, &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/cmake/config-ix.cmake b/cmake/config-ix.cmake index d646498..c57f900 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -137,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 ) @@ -162,7 +148,6 @@ 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 @@ -547,6 +532,10 @@ if(GOLD_EXECUTABLE) "PATH to binutils/include containing plugin-api.h for gold plugin.") endif() +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 7f63644..50cee30 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -338,10 +338,10 @@ function(llvm_add_library name) PREFIX "" ) endif() - + set_target_properties(${name} PROPERTIES - SOVERSION ${LLVM_VERSION_MAJOR} + SOVERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR} VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}) endif() @@ -490,6 +490,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 @@ -780,3 +786,25 @@ 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) + foreach(f ${litCfg}) + get_filename_component(dir ${f} DIRECTORY) + 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 30a5e31..a03788e 100644 --- a/cmake/modules/CheckAtomic.cmake +++ b/cmake/modules/CheckAtomic.cmake @@ -13,6 +13,7 @@ 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 400381c..76a3078 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) - -add_custom_command(OUTPUT ${LLVM_NATIVE_BUILD} - COMMAND ${CMAKE_COMMAND} -E make_directory ${LLVM_NATIVE_BUILD} - COMMENT "Creating ${LLVM_NATIVE_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...") - -add_custom_target(ConfigureNativeLLVM DEPENDS ${LLVM_NATIVE_BUILD}/CMakeCache.txt) - -set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${LLVM_NATIVE_BUILD}) - -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") - - message(STATUS "Configuring native build...") - execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory - ${LLVM_NATIVE_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}) +function(llvm_create_cross_target_internal target_name toochain buildtype) + + 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) + + 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_command(OUTPUT ${LLVM_${target_name}_BUILD} + COMMAND ${CMAKE_COMMAND} -E make_directory ${LLVM_${target_name}_BUILD} + COMMENT "Creating ${LLVM_${target_name}_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...") + + add_custom_target(CONFIGURE_LLVM_${target_name} + DEPENDS ${LLVM_${target_name}_BUILD}/CMakeCache.txt) + + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES + ${LLVM_${target_name}_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 fdc4ea0..67f86a6 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -78,6 +78,20 @@ 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. +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) @@ -253,7 +267,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' @@ -272,6 +288,22 @@ 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' # Promoted warnings. -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning. @@ -282,14 +314,19 @@ if( MSVC ) # Enable warnings if (LLVM_ENABLE_WARNINGS) - add_llvm_definitions( /W4 ) + append("/W4" msvc_warning_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) + elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE ) if (LLVM_ENABLE_WARNINGS) append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) @@ -424,7 +461,7 @@ if(LLVM_USE_SANITIZER) message(WARNING "LLVM_USE_SANITIZER is not supported on this platform.") endif() if (LLVM_USE_SANITIZE_COVERAGE) - append("-fsanitize-coverage=4" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + append("-fsanitize-coverage=4 -mllvm -sanitizer-coverage-8bit-counters=1" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) endif() endif() diff --git a/cmake/modules/HandleLLVMStdlib.cmake b/cmake/modules/HandleLLVMStdlib.cmake index 47bb6cd..66ad078 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 b24c129..bc0527f 100644 --- 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}) diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake index 67031a5..bb0d844 100644 --- a/cmake/modules/TableGen.cmake +++ b/cmake/modules/TableGen.cmake @@ -91,20 +91,18 @@ macro(add_tablegen target project) # Effective tblgen executable to be used: set(${project}_TABLEGEN_EXE ${${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_dependencies(${project}NativeTableGen CONFIGURE_LLVM_NATIVE) endif() endif() diff --git a/cmake/platforms/iOS.cmake b/cmake/platforms/iOS.cmake index e18ca6b..4914059 100644 --- a/cmake/platforms/iOS.cmake +++ b/cmake/platforms/iOS.cmake @@ -15,11 +15,10 @@ 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}) -ENDIF() - -IF(EXISTS $ENV{SDKROOT}) - SET(SDKROOT $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 @@ -27,8 +26,14 @@ ELSE() 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 $ENV{SDKROOT} -find clang + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find clang OUTPUT_VARIABLE CMAKE_C_COMPILER ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -36,7 +41,7 @@ IF(NOT CMAKE_C_COMPILER) ENDIF() IF(NOT CMAKE_CXX_COMPILER) - execute_process(COMMAND xcrun -sdk $ENV{SDKROOT} -find clang++ + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find clang++ OUTPUT_VARIABLE CMAKE_CXX_COMPILER ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -44,7 +49,7 @@ IF(NOT CMAKE_CXX_COMPILER) ENDIF() IF(NOT CMAKE_AR) - execute_process(COMMAND xcrun -sdk $ENV{SDKROOT} -find ar + execute_process(COMMAND xcrun -sdk ${SDKROOT} -find ar OUTPUT_VARIABLE CMAKE_AR_val ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -52,8 +57,17 @@ IF(NOT CMAKE_AR) 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 $ENV{SDKROOT} -version SDKVersion +execute_process(COMMAND xcodebuild -sdk ${SDKROOT} -version SDKVersion OUTPUT_VARIABLE IOS_MIN_TARGET ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) diff --git a/configure b/configure index cac9bf6..4ad1f21 100755 --- a/configure +++ b/configure @@ -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. ## ## --------------------- ## @@ -705,6 +705,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 @@ -1408,6 +1426,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 +1437,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 +1476,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 @@ -1558,7 +1588,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 @@ -1951,7 +1981,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." @@ -4953,9 +4983,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. @@ -4996,6 +5028,32 @@ 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 + + fi ;; + yes) +cat >>confdefs.h <<\_ACEOF +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 +_ACEOF + ;; + no) ;; + *) { { 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; @@ -5114,15 +5172,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; @@ -13699,12 +13973,7 @@ fi - - - - - -for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd +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 @@ -13817,7 +14086,8 @@ done -for ac_func in powf fmodf strtof round + +for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -13929,9 +14199,7 @@ done - - -for ac_func in log log2 log10 exp exp2 +for ac_func in isatty mkdtemp mkstemp do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -14045,7 +14313,8 @@ done -for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday + +for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -14157,7 +14426,7 @@ done -for ac_func in isatty mkdtemp mkstemp +for ac_func in strerror strerror_r setenv do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -14270,9 +14539,7 @@ done - - -for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit +for ac_func in strtoll strtoq sysconf malloc_zone_statistics do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -14384,7 +14651,9 @@ done -for ac_func in strerror strerror_r setenv + + +for ac_func in setjmp longjmp sigsetjmp siglongjmp writev do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -14495,9 +14764,7 @@ done - - -for ac_func in strtoll strtoq sysconf malloc_zone_statistics +for ac_func in futimes futimens do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -14606,286 +14873,61 @@ _ACEOF fi done - - - - - -for ac_func in setjmp longjmp sigsetjmp siglongjmp writev -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 "$as_me:$LINENO: checking if printf has the %a format character" >&5 +echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } +if test "${llvm_cv_c_printf_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else + 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 + + if test "$cross_compiling" = yes; then + llvmac_cv_c_printf_a=no +else cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + /* 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 +#include +#include int main () { -return $ac_func (); + +volatile double A, B; +char Buffer[100]; +A = 1; +A /= 10.0; +sprintf(Buffer, "%a", A); +B = atof(Buffer); +if (A != B) + return (1); +if (A != 0x1.999999999999ap-4) + return (1); +return (0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext +rm -f 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 + (eval "$ac_link") 2>&5 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 futimes futimens -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 - -{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 -echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } -if test "${llvm_cv_c_printf_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - 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 - - if test "$cross_compiling" = yes; then - llvmac_cv_c_printf_a=no -else - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#include -#include - -int -main () -{ - -volatile double A, B; -char Buffer[100]; -A = 1; -A /= 10.0; -sprintf(Buffer, "%a", A); -B = atof(Buffer); -if (A != B) - return (1); -if (A != 0x1.999999999999ap-4) - return (1); -return (0); - ; - return 0; -} -_ACEOF -rm -f 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>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; @@ -16460,665 +16502,58 @@ LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } -if test $ac_cv_lib_gcc___udivdi3 = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___UDIVDI3 1 -_ACEOF - -fi - - { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 -echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } -if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgcc $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* 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 __umoddi3 (); -int -main () -{ -return __umoddi3 (); - ; - 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 - ac_cv_lib_gcc___umoddi3=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gcc___umoddi3=no -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 -echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } -if test $ac_cv_lib_gcc___umoddi3 = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___UMODDI3 1 -_ACEOF - -fi - - - { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 -echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } -if test "${ac_cv_lib_gcc___main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgcc $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* 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 __main (); -int -main () -{ -return __main (); - ; - 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 - ac_cv_lib_gcc___main=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gcc___main=no -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 -echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } -if test $ac_cv_lib_gcc___main = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___MAIN 1 -_ACEOF - -fi - - { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 -echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } -if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgcc $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* 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 __cmpdi2 (); -int -main () -{ -return __cmpdi2 (); - ; - 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 - ac_cv_lib_gcc___cmpdi2=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gcc___cmpdi2=no -fi - -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 -echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } -if test $ac_cv_lib_gcc___cmpdi2 = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___CMPDI2 1 -_ACEOF - -fi - -fi - -if test "$llvm_cv_os_type" = "MingW" ; then - { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 -echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - #include - #include - extern void foo(PENUMLOADED_MODULES_CALLBACK); - extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); - - -_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_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_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 - - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - llvm_cv_win32_elmcb_pcstr="PCSTR" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - llvm_cv_win32_elmcb_pcstr="PSTR" - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -cat >>confdefs.h <<_ACEOF -#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr -_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 +if test $ac_cv_lib_gcc___udivdi3 = yes; then cat >>confdefs.h <<\_ACEOF -#define HAVE_STD_ISNAN_IN_CMATH 1 +#define HAVE___UDIVDI3 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 "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 +echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } +if test "${ac_cv_lib_gcc___umoddi3+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 + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgcc $LIBS" +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + +/* 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 __umoddi3 (); int main () { -float f; isinf(f); +return __umoddi3 (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" +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_compile") 2>conftest.er1 + (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_cxx_werror_flag" || test ! -s conftest.err' + { 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;; @@ -17128,7 +16563,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; @@ -17138,77 +16573,73 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_isinf_in_math_h=yes + ac_cv_lib_gcc___umoddi3=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_func_isinf_in_math_h=no + ac_cv_lib_gcc___umoddi3=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 - - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS 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 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 +echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } +if test $ac_cv_lib_gcc___umoddi3 = yes; then cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF_IN_MATH_H 1 +#define HAVE___UMODDI3 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 "$as_me:$LINENO: checking for __main in -lgcc" >&5 +echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } +if test "${ac_cv_lib_gcc___main+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 + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgcc $LIBS" +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + +/* 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 __main (); int main () { -float f; isinf(f); +return __main (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" +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_compile") 2>conftest.er1 + (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_cxx_werror_flag" || test ! -s conftest.err' + { 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;; @@ -17218,7 +16649,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; @@ -17228,77 +16659,72 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_isinf_in_cmath=yes + ac_cv_lib_gcc___main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_func_isinf_in_cmath=no + ac_cv_lib_gcc___main=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 - - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS 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 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 +echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } +if test $ac_cv_lib_gcc___main = yes; then cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF_IN_CMATH 1 +#define HAVE___MAIN 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 "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 +echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } +if test "${ac_cv_lib_gcc___cmpdi2+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 + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgcc $LIBS" +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + +/* 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 __cmpdi2 (); int main () { -float f; std::isinf(f); +return __cmpdi2 (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" +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_compile") 2>conftest.er1 + (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_cxx_werror_flag" || test ! -s conftest.err' + { 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;; @@ -17308,7 +16734,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; @@ -17318,61 +16744,47 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_std_isinf_in_cmath=yes + ac_cv_lib_gcc___cmpdi2=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_func_std_isinf_in_cmath=no + ac_cv_lib_gcc___cmpdi2=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 - - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS 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 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 +echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } +if test $ac_cv_lib_gcc___cmpdi2 = yes; then cat >>confdefs.h <<\_ACEOF -#define HAVE_STD_ISINF_IN_CMATH 1 +#define HAVE___CMPDI2 1 _ACEOF fi +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 +if test "$llvm_cv_os_type" = "MingW" ; then + { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 +echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } + cat >conftest.$ac_ext <<_ACEOF - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + /* 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; -} + + #include + #include + extern void foo(PENUMLOADED_MODULES_CALLBACK); + extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); + + _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" @@ -17388,7 +16800,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 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' + { 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;; @@ -17408,36 +16820,30 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_finite_in_ieeefp_h=yes + + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + llvm_cv_win32_elmcb_pcstr="PCSTR" + 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 + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + llvm_cv_win32_elmcb_pcstr="PSTR" 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 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE_IN_IEEEFP_H 1 +cat >>confdefs.h <<_ACEOF +#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr _ACEOF fi - - if test "$llvm_cv_platform_type" = "Unix" ; then @@ -19478,6 +18884,24 @@ 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 @@ -19551,6 +18975,47 @@ MMAP_FILE!$MMAP_FILE$ac_delim SHLIBEXT!$SHLIBEXT$ac_delim LLVM_PREFIX!$LLVM_PREFIX$ac_delim LLVM_BINDIR!$LLVM_BINDIR$ac_delim +_ACEOF + + 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 +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-2.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +_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 +CEOF$ac_eof +_ACEOF + + +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + cat >conf$$subs.sed <<_ACEOF LLVM_DATADIR!$LLVM_DATADIR$ac_delim LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim @@ -19570,7 +19035,7 @@ 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` = 17; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 @@ -19588,8 +19053,8 @@ if test -n "$ac_eof"; then fi cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g @@ -19602,6 +19067,8 @@ N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +:end +s/|#_!!_#|//g CEOF$ac_eof _ACEOF @@ -19849,7 +19316,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/BuildingLLVMWithAutotools.rst b/docs/BuildingLLVMWithAutotools.rst new file mode 100644 index 0000000..4c04f1e --- /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 + + % SRC_ROOT/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 ``./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 ``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. + +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 + + % SRC_ROOT/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 4d96466..b9e473f 100644 --- a/docs/CMake.rst +++ b/docs/CMake.rst @@ -270,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. diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst index 221c431..9929392 100644 --- a/docs/CodingStandards.rst +++ b/docs/CodingStandards.rst @@ -129,6 +129,8 @@ unlikely to be supported by our host compilers. * But not defaulted move constructors or move assignment operators, MSVC 2013 cannot synthesize them. +* Initializer lists: N2627_ +* Delegating constructors: N1986_ .. _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 @@ -152,6 +154,8 @@ unlikely to be supported by our host compilers. .. _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 .. _MSVC-compatible RTTI: http://llvm.org/PR18951 The supported features in the C++11 standard libraries are less well tracked, @@ -168,9 +172,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. @@ -1301,34 +1302,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 af01503..f48bf47 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 = !MDLocation(line: 5, scope: !1, inlinedAt: !2) + + ; CHECK: !MDLocation(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/llvm-cov.rst b/docs/CommandGuide/llvm-cov.rst index e0b2fe9..dff3375 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 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's 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 + when looking up the coverage map. Errors out if the supplied architecture is + not found in the universal binary, or if used on a non-universal binary of + a different architecture. + +.. 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. -:program:`llvm-cov` returns 1 if it cannot read input files. Otherwise, it -exits with zero. +.. option:: -arch= + If the covered binary is a universal binary, select the architecture to use + when looking up the coverage map. Errors out if the supplied architecture is + not found in the universal binary, or if used on a non-universal binary of + a different architecture. diff --git a/docs/CommandGuide/llvm-profdata.rst b/docs/CommandGuide/llvm-profdata.rst index 0762e2c..45f7073 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/DeveloperPolicy.rst b/docs/DeveloperPolicy.rst index 508a04f..a07b5fa 100644 --- a/docs/DeveloperPolicy.rst +++ b/docs/DeveloperPolicy.rst @@ -275,6 +275,59 @@ 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. + +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 +478,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 696b50f..21de19b 100644 --- a/docs/ExceptionHandling.rst +++ b/docs/ExceptionHandling.rst @@ -442,7 +442,7 @@ Uses of this intrinsic are generated by the C++ front-end. .. code-block:: llvm - i8* @llvm.eh.begincatch(i8* %exn) + void @llvm.eh.begincatch(i8* %ehptr, i8* %ehobj) This intrinsic marks the beginning of catch handling code within the blocks @@ -450,11 +450,11 @@ 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 argument to this intrinsic is a pointer that was previously extracted from -the aggregate return value of the ``landingpad`` instruction. The return -value of the intrinsic is a pointer to the exception object to be used by the -catch code. This pointer is returned as an ``i8*`` value, but the actual type -of the object will depend on the exception that was thrown. +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 @@ -498,6 +498,59 @@ 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 a +pointer to stack object where the exception object should be stored, 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 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 null. 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. + +``llvm.eh.unwindhelp`` +---------------------- + +.. code-block:: llvm + + void @llvm.eh.unwindhelp(i8*) + +This intrinsic designates the provided static alloca as the unwind help object. +This object is used by Windows native exception handling on non-x86 platforms +where xdata unwind information is used. It is typically an 8 byte chunk of +memory treated as two 32-bit integers. + SJLJ Intrinsics --------------- diff --git a/docs/Frontend/PerformanceTips.rst b/docs/Frontend/PerformanceTips.rst new file mode 100644 index 0000000..d8c0465 --- /dev/null +++ b/docs/Frontend/PerformanceTips.rst @@ -0,0 +1,161 @@ +===================================== +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. For languages which need overflow semantics, + consider using the :ref:`overflow intrinsics `. + +#. 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. + +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/GetElementPtr.rst b/docs/GetElementPtr.rst index 91025d8..c9cfae6 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 fa55ece..18b3c1d 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 @@ -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. - -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. +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``. + +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 | ++=========================+====================================================+ +| 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: + + .. code-block:: console + + % cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=type SRC_ROOT -Debug Builds +Between runs, CMake preserves the values set for all options. CMake has the +following build types defined: - 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``. +Debug -Release (Optimized) 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 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. +Release -Profile Builds + 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. - 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. +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`` - - 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. +``make docs-llvm-html`` -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/LangRef.rst b/docs/LangRef.rst index a0e9b18..5eaea1c 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) @@ -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()`` @@ -1024,12 +1024,12 @@ string: define void @f() gc "name" { ... } -The supported values of *name* includes those :ref:`built in to LLVM +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 +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. +which can interoperate with a collector provided externally. .. _prefixdata: @@ -1057,9 +1057,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 @@ -1369,6 +1369,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 @@ -1521,11 +1526,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: @@ -1579,7 +1585,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 @@ -2562,18 +2568,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. @@ -2702,11 +2708,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)`` @@ -2837,6 +2843,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 ----------------------------------- @@ -2889,6 +2897,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 ^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -2896,16 +2906,394 @@ 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. +These aren't inherently debug info centric, but currently all the specialized +metadata nodes are related to debug info. + +.. _MDCompileUnit: + +MDCompileUnit +""""""""""""" + +``MDCompileUnit`` 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 = !MDCompileUnit(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). + +.. _MDFile: + +MDFile +"""""" + +``MDFile`` nodes represent files. The ``filename:`` can include slashes. + +.. code-block:: llvm + + !0 = !MDFile(filename: "path/to/file", directory: "/path/to/dir") + +Files are sometimes used in ``scope:`` fields, and are the only valid target +for ``file:`` fields. + +.. _MDLocation: + +MDBasicType +""""""""""" + +``MDBasicType`` nodes represent primitive types, such as ``int``, ``bool`` and +``float``. ``tag:`` defaults to ``DW_TAG_base_type``. + +.. code-block:: llvm + + !0 = !MDBasicType(name: "unsigned char", size: 8, align: 8, + encoding: DW_ATE_unsigned_char) + !1 = !MDBasicType(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 + +.. _MDSubroutineType: + +MDSubroutineType +"""""""""""""""" + +``MDSubroutineType`` 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 = !MDSubroutineType(types: !{null, !0, !1}) ; void (int, char) + +.. _MDDerivedType: + +MDDerivedType +""""""""""""" + +``MDDerivedType`` nodes represent types derived from other types, such as +qualified types. + +.. code-block:: llvm + + !0 = !MDBasicType(name: "unsigned char", size: 8, align: 8, + encoding: DW_ATE_unsigned_char) + !1 = !MDDerivedType(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. + +.. _MDCompositeType: + +MDCompositeType +""""""""""""""" + +``MDCompositeType`` 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 = !MDEnumerator(name: "SixKind", value: 7) + !1 = !MDEnumerator(name: "SevenKind", value: 7) + !2 = !MDEnumerator(name: "NegEightKind", value: -8) + !3 = !MDCompositeType(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``. + +.. _MDSubrange: + +MDSubrange +"""""""""" + +``MDSubrange`` nodes are the elements for ``DW_TAG_array_type`` variants of +:ref:`MDCompositeType`. ``count: -1`` indicates an empty array. + +.. code-block:: llvm + + !0 = !MDSubrange(count: 5, lowerBound: 0) ; array counting from 0 + !1 = !MDSubrange(count: 5, lowerBound: 1) ; array counting from 1 + !2 = !MDSubrange(count: -1) ; empty array. + +.. _MDEnumerator: + +MDEnumerator +"""""""""""" + +``MDEnumerator`` nodes are the elements for ``DW_TAG_enumeration_type`` +variants of :ref:`MDCompositeType`. + +.. code-block:: llvm + + !0 = !MDEnumerator(name: "SixKind", value: 7) + !1 = !MDEnumerator(name: "SevenKind", value: 7) + !2 = !MDEnumerator(name: "NegEightKind", value: -8) + +MDTemplateTypeParameter +""""""""""""""""""""""" + +``MDTemplateTypeParameter`` nodes represent type parameters to generic source +language constructs. They are used (optionally) in :ref:`MDCompositeType` and +:ref:`MDSubprogram` ``templateParams:`` fields. + +.. code-block:: llvm + + !0 = !MDTemplateTypeParameter(name: "Ty", type: !1) + +MDTemplateValueParameter +"""""""""""""""""""""""" + +``MDTemplateValueParameter`` 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:`MDCompositeType` and :ref:`MDSubprogram` ``templateParams:`` fields. + +.. code-block:: llvm + + !0 = !MDTemplateValueParameter(name: "Ty", type: !1, value: i32 7) + +MDNamespace +""""""""""" + +``MDNamespace`` nodes represent namespaces in the source language. + +.. code-block:: llvm + + !0 = !MDNamespace(name: "myawesomeproject", scope: !1, file: !2, line: 7) + +MDGlobalVariable +"""""""""""""""" + +``MDGlobalVariable`` nodes represent global variables in the source language. + +.. code-block:: llvm + + !0 = !MDGlobalVariable(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 `. + +.. _MDSubprogram: + +MDSubprogram +"""""""""""" + +``MDSubprogram`` 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:`MDSubroutineType`. + +.. code-block:: llvm + + !0 = !MDSubprogram(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) + +.. _MDLexicalBlock: + +MDLexicalBlock +"""""""""""""" + +``MDLexicalBlock`` 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 !MDLexicalBlock(scope: !1, file: !2, line: 7, column: 35) + +Usually lexical blocks are ``distinct`` to prevent node merging based on +operands. + +.. _MDLexicalBlockFile: + +MDLexicalBlockFile +"""""""""""""""""" + +``MDLexicalBlockFile`` 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 = !MDLexicalBlock(scope: !3, file: !4, line: 7, column: 35) + !1 = !MDLexicalBlockFile(scope: !0, file: !4, discriminator: 0) + !2 = !MDLexicalBlockFile(scope: !0, file: !4, discriminator: 1) + MDLocation """""""""" ``MDLocation`` nodes represent source debug locations. The ``scope:`` field is -mandatory. +mandatory, and points at an :ref:`MDLexicalBlockFile`, an +:ref:`MDLexicalBlock`, or an :ref:`MDSubprogram`. .. code-block:: llvm !0 = !MDLocation(line: 2900, column: 42, scope: !1, inlinedAt: !2) +.. _MDLocalVariable: + +MDLocalVariable +""""""""""""""" + +``MDLocalVariable`` 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:`MDSubprogram`. + +If set, the ``inlinedAt:`` field points at an :ref:`MDLocation`, and the +variable represents an inlined version of a variable (with all other fields +duplicated from the non-inlined version). + +.. code-block:: llvm + + !0 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "this", arg: 0, + scope: !3, file: !2, line: 7, type: !3, + flags: DIFlagArtificial, inlinedAt: !4) + !1 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "x", arg: 1, + scope: !4, file: !2, line: 7, type: !3, + inlinedAt: !6) + !1 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "y", + scope: !5, file: !2, line: 7, type: !3, + inlinedAt: !6) + +MDExpression +"""""""""""" + +``MDExpression`` 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 = !MDExpression(DW_OP_deref) + !1 = !MDExpression(DW_OP_plus, 3) + !2 = !MDExpression(DW_OP_bit_piece, 3, 7) + !3 = !MDExpression(DW_OP_deref, DW_OP_plus, 3, DW_OP_bit_piece, 3, 7) + +MDObjCProperty +"""""""""""""" + +``MDObjCProperty`` nodes represent Objective-C property nodes. + +.. code-block:: llvm + + !3 = !MDObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", + getter: "getFoo", attributes: 7, type: !2) + +MDImportedEntity +"""""""""""""""" + +``MDImportedEntity`` nodes represent entities (such as modules) imported into a +compile unit. + +.. code-block:: llvm + + !2 = !MDImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, + entity: !1, line: 7) + '``tbaa``' Metadata ^^^^^^^^^^^^^^^^^^^ @@ -3020,18 +3408,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 ; 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 @@ -3056,6 +3444,8 @@ number representing the maximum relative error, for example: !0 = !{ float 2.5 } ; maximum acceptable inaccuracy is 2.5 ULPs +.. _range-metadata: + '``range``' Metadata ^^^^^^^^^^^^^^^^^^^^ @@ -3080,8 +3470,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 @@ -3217,6 +3607,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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -3237,28 +3637,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 @@ -3269,7 +3669,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 ... @@ -3287,13 +3687,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 ... @@ -5249,7 +5649,7 @@ Syntax: :: - = load [volatile] * [, align ][, !nontemporal !][, !invariant.load !][, !nonnull !] + = load [volatile] , * [, align ][, !nontemporal !][, !invariant.load !][, !nonnull !] = load atomic [volatile] * [singlethread] , align ! = !{ i32 1 } @@ -5262,7 +5662,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 @@ -5302,17 +5702,17 @@ 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. Semantics: """""""""" @@ -5332,7 +5732,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: @@ -5541,7 +5941,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: @@ -5638,9 +6038,9 @@ Syntax: :: - = getelementptr * {, }* - = getelementptr inbounds * {, }* - = getelementptr ptrval, idx + = getelementptr , * {, }* + = getelementptr inbounds , * {, }* + = getelementptr , , Overview: """"""""" @@ -5652,8 +6052,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 @@ -5701,7 +6102,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 } @@ -5726,11 +6127,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 } @@ -5764,20 +6165,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 --------------------- @@ -6626,9 +7027,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: """""""""" @@ -6640,6 +7039,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: """""""" @@ -7110,8 +7512,8 @@ Accurate Garbage Collection 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 +(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 @@ -7125,11 +7527,11 @@ 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 +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: @@ -7320,7 +7722,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: @@ -7328,24 +7730,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 @@ -7357,6 +7758,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: """""""""" @@ -8761,6 +9165,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 ----------------------------------- @@ -9212,9 +9618,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 ------------------- @@ -9251,7 +9659,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)* @@ -9380,9 +9788,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: @@ -9419,9 +9827,9 @@ 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 diff --git a/docs/Makefile b/docs/Makefile index 690f772..c9d2477 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/@abs_top_srcdir@/../g' \ + -e 's/@enable_external_search@/NO/g' \ -e 's/@enable_searchengine@/NO/g' \ - -e 's/@searchengine_url@//g' \ -e 's/@enable_server_based_search@/NO/g' \ - -e 's/@enable_external_search@/NO/g' \ - -e 's/@extra_search_mappings@//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 6b8012e..b2f6030 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/ProgrammersManual.rst b/docs/ProgrammersManual.rst index 753e658..2c7e4a9 100644 --- a/docs/ProgrammersManual.rst +++ b/docs/ProgrammersManual.rst @@ -1816,7 +1816,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"; @@ -2553,6 +2553,22 @@ 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 diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index 6a38363..c0d2ea1 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -7,7 +7,7 @@ LLVM 3.7 Release Notes .. warning:: These are in-progress notes for the upcoming LLVM 3.7 release. You may - prefer the `LLVM 3.5 Release Notes `_. @@ -44,6 +44,15 @@ Non-comprehensive list of changes in this release * The minimum required Visual Studio version for building LLVM is now 2013 Update 4. +* 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. + +* 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 diff --git a/docs/SourceLevelDebugging.rst b/docs/SourceLevelDebugging.rst index 350604c..55e12d3 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} - - !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} + !llvm.module.flags = !{!7, !8, !9} + !llvm.ident = !{!10} + + !0 = !MDCompileUnit(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 = !MDFile(filename: "/dev/stdin", directory: "/Users/dexonsmith/data/llvm/debug-info") + !2 = !{} + !3 = !{!4} + !4 = !MDSubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, function: void ()* @foo, variables: !2) + !5 = !MDSubroutineType(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 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "X", scope: !4, file: !1, line: 2, type: !12) + !12 = !MDBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) + !13 = !MDExpression() + !14 = !MDLocation(line: 2, column: 9, scope: !4) + !15 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "Y", scope: !4, file: !1, line: 3, type: !12) + !16 = !MDLocation(line: 3, column: 9, scope: !4) + !17 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "Z", scope: !18, file: !1, line: 5, type: !12) + !18 = distinct !MDLexicalBlock(scope: !4, file: !1, line: 4, column: 5) + !19 = !MDLocation(line: 5, column: 11, scope: !18) + !20 = !MDLocation(line: 6, column: 11, scope: !18) + !21 = !MDLocation(line: 6, column: 9, scope: !18) + !22 = !MDLocation(line: 8, column: 9, scope: !4) + !23 = !MDLocation(line: 8, column: 7, scope: !4) + !24 = !MDLocation(line: 9, column: 3, scope: !4) + 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] - -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 + !14 = !MDLocation(line: 2, column: 9, scope: !4) + !4 = !MDSubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !5, + isLocal: false, isDefinition: true, scopeLine: 1, + isOptimized: false, function: void ()* @foo, + variables: !2) + +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 !MDLexicalBlock(scope: !4, file: !1, line: 4, column: 5) + !19 = !MDLocation(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 - } + !0 = !MDCompileUnit(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 + ;; + !1 = !MDFile(filename: "/dev/stdin", + directory: "/Users/dexonsmith/data/llvm/debug-info") ;; An empty array. - !2 = metadata !{} + !2 = !{} ;; The Array of Global Variables - !3 = metadata !{ - metadata !4 - } + !3 = !{!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 ] - - ;; - ;; Define the file - ;; - !5 = metadata !{ - ; Header( - ; i32 41 ;; Tag - ; ) - metadata !"0x29", - metadata !1 ;; File/directory pair - } ; [ DW_TAG_file_type ] + !4 = !MDGlobalVariable(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 = !MDBasicType(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 = !MDSubprogram(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. diff --git a/docs/doxygen.cfg.in b/docs/doxygen.cfg.in index 8c16b66..114c9d1 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 double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. # -# All text after a hash (#) is considered a comment and will be ignored +# 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 -# 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 -# 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 - -SYMBOL_CACHE_SIZE = 0 +# 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. + +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. - -HTML_HEADER = @abs_top_srcdir@/docs/doxygen.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. - -HTML_FOOTER = @abs_top_srcdir@/docs/doxygen.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! - -HTML_STYLESHEET = @abs_top_srcdir@/docs/doxygen.css - -# 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. +# +# 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 = + +# 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 = + +# 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 = + +# 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 +# , /