From cf099d11218cb6f6c5cce947d6738e347f07fb12 Mon Sep 17 00:00:00 2001
From: Dimitry Andric
Date: Sun, 20 Feb 2011 12:57:14 +0000
Subject: Vendor import of llvm trunk r126079:
http://llvm.org/svn/llvm-project/llvm/trunk@126079
---
.gitignore | 37 +
CMakeLists.txt | 301 +-
CREDITS.TXT | 4 +-
Makefile | 19 +-
Makefile.config.in | 15 +-
Makefile.rules | 138 +-
ModuleInfo.txt | 2 +-
README.txt | 2 +-
autoconf/configure.ac | 198 +-
bindings/ada/analysis/llvm_analysis-binding.ads | 32 -
bindings/ada/analysis/llvm_analysis.ads | 30 -
bindings/ada/analysis/llvm_analysis_wrap.cxx | 369 -
bindings/ada/bitreader/llvm_bit_reader-binding.ads | 52 -
bindings/ada/bitreader/llvm_bit_reader.ads | 6 -
bindings/ada/bitreader/llvm_bitreader_wrap.cxx | 423 -
bindings/ada/bitwriter/llvm_bit_writer-binding.ads | 28 -
bindings/ada/bitwriter/llvm_bit_writer.ads | 6 -
bindings/ada/bitwriter/llvm_bitwriter_wrap.cxx | 335 -
.../llvm_execution_engine-binding.ads | 192 -
.../ada/executionengine/llvm_execution_engine.ads | 90 -
.../executionengine/llvm_executionengine_wrap.cxx | 924 -
bindings/ada/llvm.gpr | 34 -
bindings/ada/llvm/llvm-binding.ads | 1974 --
bindings/ada/llvm/llvm.ads | 497 -
.../ada/llvm/llvm_link_time_optimizer-binding.ads | 207 -
bindings/ada/llvm/llvm_link_time_optimizer.ads | 184 -
bindings/ada/llvm/llvm_linktimeoptimizer_wrap.cxx | 923 -
bindings/ada/llvm/llvm_wrap.cxx | 8817 ---------
bindings/ada/target/llvm_target-binding.ads | 138 -
bindings/ada/target/llvm_target.ads | 72 -
bindings/ada/target/llvm_target_wrap.cxx | 720 -
.../ada/transforms/llvm_transforms-binding.ads | 206 -
bindings/ada/transforms/llvm_transforms.ads | 6 -
bindings/ada/transforms/llvm_transforms_wrap.cxx | 828 -
bindings/ocaml/Makefile.ocaml | 9 +-
bindings/ocaml/bitreader/llvm_bitreader.mli | 8 +-
.../ocaml/executionengine/llvm_executionengine.mli | 68 +-
bindings/ocaml/llvm/llvm.mli | 962 +-
bindings/ocaml/llvm/llvm_ocaml.c | 5 +
.../ocaml/transforms/scalar/llvm_scalar_opts.ml | 3 -
.../ocaml/transforms/scalar/llvm_scalar_opts.mli | 5 -
.../ocaml/transforms/scalar/scalar_opts_ocaml.c | 6 -
cmake/config-ix.cmake | 162 +-
cmake/modules/AddLLVM.cmake | 34 +-
cmake/modules/AddLLVMDefinitions.cmake | 24 +-
cmake/modules/CMakeLists.txt | 21 +
cmake/modules/CrossCompileLLVM.cmake | 52 +-
cmake/modules/GetTargetTriple.cmake | 6 +-
cmake/modules/HandleLLVMOptions.cmake | 161 +
cmake/modules/LLVM.cmake | 11 +
cmake/modules/LLVMConfig.cmake | 76 +-
cmake/modules/LLVMLibDeps.cmake | 121 +-
cmake/modules/LLVMParseArguments.cmake | 80 +
cmake/modules/LLVMProcessSources.cmake | 38 +-
cmake/modules/TableGen.cmake | 26 +-
cmake/modules/VersionFromVCS.cmake | 31 +-
configure | 3439 +++-
docs/AliasAnalysis.html | 81 +-
docs/BitCodeFormat.html | 9 +-
docs/CMake.html | 53 +-
docs/CodeGenerator.html | 724 +-
docs/CodingStandards.html | 538 +-
docs/CommandGuide/FileCheck.pod | 4 +-
docs/CommandGuide/index.html | 2 +-
docs/CommandGuide/llc.pod | 8 +
docs/CommandGuide/lli.pod | 9 +-
docs/DeveloperPolicy.html | 85 +-
docs/ExceptionHandling.html | 22 +-
docs/GetElementPtr.html | 30 +-
docs/GettingStarted.html | 74 +-
docs/GettingStartedVS.html | 322 +-
docs/GoldPlugin.html | 2 +-
docs/LangRef.html | 260 +-
docs/LinkTimeOptimization.html | 4 +-
docs/Makefile | 15 +-
docs/MakefileGuide.html | 8 +-
docs/Passes.html | 10 +-
docs/ProgrammersManual.html | 28 +-
docs/ReleaseNotes.html | 26 +-
docs/SourceLevelDebugging.html | 54 +-
docs/TableGenFundamentals.html | 24 +-
docs/TestingGuide.html | 69 +-
docs/UsingLibraries.html | 8 +-
docs/WritingAnLLVMBackend.html | 4 +-
docs/WritingAnLLVMPass.html | 130 +-
docs/tutorial/LangImpl3.html | 6 +-
docs/tutorial/LangImpl4.html | 7 +-
docs/tutorial/LangImpl5.html | 5 +-
docs/tutorial/LangImpl6.html | 5 +-
docs/tutorial/LangImpl7.html | 5 +-
docs/tutorial/OCamlLangImpl7.html | 4 +-
docs/tutorial/OCamlLangImpl8.html | 365 +
docs/tutorial/index.html | 2 +-
examples/CMakeLists.txt | 3 -
examples/ExceptionDemo/CMakeLists.txt | 1 +
examples/ExceptionDemo/ExceptionDemo.cpp | 3 +
examples/Kaleidoscope/Chapter4/toy.cpp | 3 +
examples/Kaleidoscope/Chapter5/toy.cpp | 3 +
examples/Kaleidoscope/Chapter6/toy.cpp | 3 +
examples/Kaleidoscope/Chapter7/CMakeLists.txt | 1 +
examples/Kaleidoscope/Chapter7/toy.cpp | 3 +
examples/Makefile | 3 +-
examples/ModuleMaker/README.txt | 2 +-
examples/OCaml-Kaleidoscope/Chapter6/Makefile | 9 +
examples/OCaml-Kaleidoscope/Chapter7/Makefile | 9 +
include/llvm-c/Core.h | 24 +-
include/llvm-c/EnhancedDisassembly.h | 2 +-
include/llvm-c/Initialization.h | 40 +
include/llvm-c/LinkTimeOptimizer.h | 2 +-
include/llvm-c/Transforms/Scalar.h | 3 -
include/llvm-c/lto.h | 50 +-
include/llvm/ADT/APFloat.h | 7 +
include/llvm/ADT/APInt.h | 142 +-
include/llvm/ADT/APSInt.h | 18 +-
include/llvm/ADT/ArrayRef.h | 121 +
include/llvm/ADT/BitVector.h | 36 +-
include/llvm/ADT/DenseMap.h | 3 +-
include/llvm/ADT/DenseMapInfo.h | 14 +
include/llvm/ADT/DenseSet.h | 3 +
include/llvm/ADT/EquivalenceClasses.h | 2 +-
include/llvm/ADT/FoldingSet.h | 2 +-
include/llvm/ADT/ImmutableIntervalMap.h | 54 +-
include/llvm/ADT/ImmutableList.h | 14 +-
include/llvm/ADT/ImmutableMap.h | 53 +-
include/llvm/ADT/ImmutableSet.h | 553 +-
include/llvm/ADT/InMemoryStruct.h | 77 +
include/llvm/ADT/IndexedMap.h | 14 +-
include/llvm/ADT/IntEqClasses.h | 88 +
include/llvm/ADT/IntervalMap.h | 2139 ++
include/llvm/ADT/Optional.h | 54 +
include/llvm/ADT/PointerIntPair.h | 7 +
include/llvm/ADT/PointerUnion.h | 12 +
include/llvm/ADT/PostOrderIterator.h | 6 +-
include/llvm/ADT/SCCIterator.h | 2 +-
include/llvm/ADT/ScopedHashTable.h | 103 +-
include/llvm/ADT/SetVector.h | 4 +-
include/llvm/ADT/SmallBitVector.h | 7 +
include/llvm/ADT/SmallPtrSet.h | 5 +-
include/llvm/ADT/SmallString.h | 12 +-
include/llvm/ADT/SmallVector.h | 26 +-
include/llvm/ADT/SparseBitVector.h | 2 +-
include/llvm/ADT/Statistic.h | 2 +-
include/llvm/ADT/StringExtras.h | 9 +-
include/llvm/ADT/StringMap.h | 21 +-
include/llvm/ADT/StringRef.h | 25 +-
include/llvm/ADT/Triple.h | 77 +-
include/llvm/ADT/Twine.h | 30 +-
include/llvm/ADT/ValueMap.h | 2 +-
include/llvm/ADT/ilist.h | 1 +
include/llvm/Analysis/AliasAnalysis.h | 368 +-
include/llvm/Analysis/AliasSetTracker.h | 60 +-
include/llvm/Analysis/CallGraph.h | 13 +-
include/llvm/Analysis/CodeMetrics.h | 31 +-
include/llvm/Analysis/ConstantFolding.h | 13 +-
include/llvm/Analysis/DIBuilder.h | 459 +
include/llvm/Analysis/DOTGraphTraitsPass.h | 2 +-
include/llvm/Analysis/DebugInfo.h | 196 +-
include/llvm/Analysis/DominanceFrontier.h | 189 +
include/llvm/Analysis/DominatorInternals.h | 189 +-
include/llvm/Analysis/Dominators.h | 265 +-
include/llvm/Analysis/FindUsedTypes.h | 4 +-
include/llvm/Analysis/InlineCost.h | 32 +-
include/llvm/Analysis/InstructionSimplify.h | 111 +-
include/llvm/Analysis/IntervalPartition.h | 4 +-
include/llvm/Analysis/LazyValueInfo.h | 4 +-
include/llvm/Analysis/LibCallAliasAnalysis.h | 10 +-
include/llvm/Analysis/LibCallSemantics.h | 2 +-
include/llvm/Analysis/LoopDependenceAnalysis.h | 4 +-
include/llvm/Analysis/LoopInfo.h | 43 +-
include/llvm/Analysis/MemoryBuiltins.h | 4 +
include/llvm/Analysis/MemoryDependenceAnalysis.h | 109 +-
include/llvm/Analysis/Passes.h | 35 +-
include/llvm/Analysis/PathNumbering.h | 304 +
include/llvm/Analysis/PathProfileInfo.h | 113 +
include/llvm/Analysis/PointerTracking.h | 132 -
include/llvm/Analysis/PostDominators.h | 7 +-
include/llvm/Analysis/ProfileInfoTypes.h | 33 +-
include/llvm/Analysis/RegionInfo.h | 57 +-
include/llvm/Analysis/RegionPass.h | 126 +
include/llvm/Analysis/ScalarEvolution.h | 146 +-
include/llvm/Analysis/ScalarEvolutionExpander.h | 6 +
include/llvm/Analysis/ScalarEvolutionExpressions.h | 138 +-
include/llvm/Analysis/ValueTracking.h | 52 +-
include/llvm/Attributes.h | 7 +-
include/llvm/BasicBlock.h | 32 +-
include/llvm/Bitcode/Archive.h | 13 +-
include/llvm/Bitcode/BitCodes.h | 2 +-
include/llvm/Bitcode/LLVMBitCodes.h | 12 +-
include/llvm/Bitcode/ReaderWriter.h | 9 +
include/llvm/CallingConv.h | 27 +-
include/llvm/CodeGen/Analysis.h | 11 +-
include/llvm/CodeGen/AsmPrinter.h | 7 +-
include/llvm/CodeGen/BinaryObject.h | 2 +-
include/llvm/CodeGen/CalcSpillWeights.h | 24 +-
include/llvm/CodeGen/CallingConvLower.h | 42 +-
include/llvm/CodeGen/EdgeBundles.h | 61 +
include/llvm/CodeGen/FastISel.h | 15 +-
include/llvm/CodeGen/FunctionLoweringInfo.h | 7 +-
include/llvm/CodeGen/GCMetadata.h | 9 +-
include/llvm/CodeGen/ISDOpcodes.h | 52 +-
include/llvm/CodeGen/IntrinsicLowering.h | 5 +
include/llvm/CodeGen/JITCodeEmitter.h | 2 +-
include/llvm/CodeGen/LatencyPriorityQueue.h | 22 +-
include/llvm/CodeGen/LinkAllCodegenComponents.h | 4 +-
include/llvm/CodeGen/LiveInterval.h | 193 +-
include/llvm/CodeGen/LiveIntervalAnalysis.h | 45 +-
include/llvm/CodeGen/LiveStackAnalysis.h | 18 +-
include/llvm/CodeGen/LiveVariables.h | 11 +-
include/llvm/CodeGen/MachORelocation.h | 2 +-
include/llvm/CodeGen/MachineBasicBlock.h | 19 +-
include/llvm/CodeGen/MachineCodeEmitter.h | 2 +-
include/llvm/CodeGen/MachineCodeInfo.h | 2 +-
include/llvm/CodeGen/MachineDominators.h | 2 +-
include/llvm/CodeGen/MachineFrameInfo.h | 14 +-
include/llvm/CodeGen/MachineFunction.h | 26 +-
include/llvm/CodeGen/MachineFunctionAnalysis.h | 4 +
include/llvm/CodeGen/MachineInstr.h | 36 +-
include/llvm/CodeGen/MachineInstrBuilder.h | 21 +
include/llvm/CodeGen/MachineLocation.h | 7 +-
include/llvm/CodeGen/MachineLoopInfo.h | 4 +-
include/llvm/CodeGen/MachineLoopRanges.h | 112 +
include/llvm/CodeGen/MachineMemOperand.h | 72 +-
include/llvm/CodeGen/MachineModuleInfo.h | 73 +-
include/llvm/CodeGen/MachineOperand.h | 134 +-
include/llvm/CodeGen/MachineRegisterInfo.h | 58 +-
include/llvm/CodeGen/MachineRelocation.h | 2 +-
include/llvm/CodeGen/PBQP/Graph.h | 425 +
include/llvm/CodeGen/PBQP/HeuristicBase.h | 246 +
include/llvm/CodeGen/PBQP/HeuristicSolver.h | 616 +
include/llvm/CodeGen/PBQP/Heuristics/Briggs.h | 464 +
include/llvm/CodeGen/PBQP/Math.h | 288 +
include/llvm/CodeGen/PBQP/Solution.h | 94 +
include/llvm/CodeGen/Passes.h | 35 +-
include/llvm/CodeGen/PostRAHazardRecognizer.h | 94 -
include/llvm/CodeGen/ProcessImplicitDefs.h | 4 +-
include/llvm/CodeGen/RegAllocPBQP.h | 167 +
include/llvm/CodeGen/RegisterCoalescer.h | 2 +-
include/llvm/CodeGen/ScheduleDAG.h | 85 +-
include/llvm/CodeGen/ScheduleHazardRecognizer.h | 28 +-
include/llvm/CodeGen/ScoreboardHazardRecognizer.h | 129 +
include/llvm/CodeGen/SelectionDAG.h | 106 +-
include/llvm/CodeGen/SelectionDAGISel.h | 102 +-
include/llvm/CodeGen/SelectionDAGNodes.h | 37 +-
include/llvm/CodeGen/SlotIndexes.h | 118 +-
.../llvm/CodeGen/TargetLoweringObjectFileImpl.h | 6 +
include/llvm/CodeGen/ValueTypes.h | 59 +-
include/llvm/CodeGen/ValueTypes.td | 11 +-
include/llvm/CompilerDriver/CompilationGraph.h | 2 +-
include/llvm/CompilerDriver/Tool.h | 4 +-
include/llvm/Config/config.h.cmake | 340 +-
include/llvm/Config/config.h.in | 76 +-
include/llvm/Config/llvm-config.h.cmake | 6 +-
include/llvm/Constant.h | 13 +-
include/llvm/Constants.h | 130 +-
include/llvm/DerivedTypes.h | 3 +-
include/llvm/ExecutionEngine/ExecutionEngine.h | 164 +-
include/llvm/ExecutionEngine/GenericValue.h | 2 +-
include/llvm/ExecutionEngine/JITEventListener.h | 52 +-
include/llvm/ExecutionEngine/JITMemoryManager.h | 12 +-
include/llvm/ExecutionEngine/MCJIT.h | 38 +
include/llvm/Function.h | 2 +-
include/llvm/GlobalAlias.h | 3 +-
include/llvm/GlobalValue.h | 17 +-
include/llvm/GlobalVariable.h | 34 +-
include/llvm/InitializePasses.h | 235 +
include/llvm/InlineAsm.h | 59 +-
include/llvm/InstrTypes.h | 193 +-
include/llvm/Instruction.h | 7 +-
include/llvm/Instructions.h | 422 +-
include/llvm/IntrinsicInst.h | 29 +-
include/llvm/Intrinsics.td | 8 +-
include/llvm/IntrinsicsARM.td | 6 +
include/llvm/IntrinsicsX86.td | 314 +-
include/llvm/IntrinsicsXCore.td | 22 +
include/llvm/LLVMContext.h | 39 +-
include/llvm/LinkAllPasses.h | 18 +-
include/llvm/LinkAllVMCore.h | 17 +-
include/llvm/MC/EDInstInfo.h | 2 +-
include/llvm/MC/ELFObjectWriter.h | 46 -
include/llvm/MC/MCAsmInfo.h | 102 +-
include/llvm/MC/MCAsmLayout.h | 43 +-
include/llvm/MC/MCAssembler.h | 189 +-
include/llvm/MC/MCCodeEmitter.h | 38 -
include/llvm/MC/MCContext.h | 82 +-
include/llvm/MC/MCDirectives.h | 9 +-
include/llvm/MC/MCDisassembler.h | 2 +-
include/llvm/MC/MCDwarf.h | 133 +-
include/llvm/MC/MCELFObjectWriter.h | 47 +
include/llvm/MC/MCELFSymbolFlags.h | 11 +-
include/llvm/MC/MCExpr.h | 44 +-
include/llvm/MC/MCFixup.h | 16 +-
include/llvm/MC/MCFixupKindInfo.h | 43 +
include/llvm/MC/MCInst.h | 54 +-
include/llvm/MC/MCInstPrinter.h | 8 +-
include/llvm/MC/MCMachOSymbolFlags.h | 4 +-
include/llvm/MC/MCMachObjectWriter.h | 65 +
include/llvm/MC/MCObjectStreamer.h | 18 +-
include/llvm/MC/MCObjectWriter.h | 35 +-
include/llvm/MC/MCParser/AsmLexer.h | 16 +-
include/llvm/MC/MCParser/MCAsmLexer.h | 33 +-
include/llvm/MC/MCParser/MCAsmParser.h | 6 +-
include/llvm/MC/MCParser/MCParsedAsmOperand.h | 4 +-
include/llvm/MC/MCSection.h | 11 +-
include/llvm/MC/MCSectionCOFF.h | 8 +-
include/llvm/MC/MCSectionELF.h | 151 +-
include/llvm/MC/MCSectionMachO.h | 22 +-
include/llvm/MC/MCStreamer.h | 232 +-
include/llvm/MC/MCSymbol.h | 19 +-
include/llvm/MC/MCValue.h | 2 +-
include/llvm/MC/MachObjectWriter.h | 44 -
include/llvm/Metadata.h | 3 -
include/llvm/Module.h | 2 +-
include/llvm/Object/MachOFormat.h | 367 +
include/llvm/Object/MachOObject.h | 180 +
include/llvm/Object/ObjectFile.h | 262 +
include/llvm/OperandTraits.h | 28 +-
include/llvm/Operator.h | 159 +-
include/llvm/Pass.h | 4 +-
include/llvm/PassManagers.h | 11 +-
include/llvm/PassRegistry.h | 75 +-
include/llvm/PassSupport.h | 105 +-
include/llvm/Support/AIXDataTypesFix.h | 25 +
include/llvm/Support/AlignOf.h | 6 +-
include/llvm/Support/Allocator.h | 10 +-
include/llvm/Support/Atomic.h | 39 +
include/llvm/Support/COFF.h | 12 +-
include/llvm/Support/CallSite.h | 19 +-
include/llvm/Support/Casting.h | 4 +-
include/llvm/Support/Compiler.h | 86 +-
include/llvm/Support/ConstantFolder.h | 72 +-
include/llvm/Support/ConstantRange.h | 17 +-
include/llvm/Support/CrashRecoveryContext.h | 8 +
include/llvm/Support/DataTypes.h.cmake | 189 +
include/llvm/Support/DataTypes.h.in | 111 +
include/llvm/Support/Disassembler.h | 35 +
include/llvm/Support/Dwarf.h | 7 +-
include/llvm/Support/DynamicLibrary.h | 86 +
include/llvm/Support/DynamicLinker.h | 40 -
include/llvm/Support/ELF.h | 299 +-
include/llvm/Support/Endian.h | 213 +
include/llvm/Support/Errno.h | 34 +
include/llvm/Support/ErrorHandling.h | 13 +-
include/llvm/Support/FEnv.h | 56 +
include/llvm/Support/FileSystem.h | 690 +
include/llvm/Support/FileUtilities.h | 2 +-
include/llvm/Support/GraphWriter.h | 45 +-
include/llvm/Support/Host.h | 66 +
include/llvm/Support/IRBuilder.h | 479 +-
include/llvm/Support/IRReader.h | 24 +-
include/llvm/Support/IncludeFile.h | 79 +
include/llvm/Support/LICENSE.TXT | 6 +
include/llvm/Support/MachO.h | 38 +-
include/llvm/Support/ManagedStatic.h | 10 +-
include/llvm/Support/MathExtras.h | 48 +-
include/llvm/Support/Memory.h | 96 +
include/llvm/Support/MemoryBuffer.h | 58 +-
include/llvm/Support/MemoryObject.h | 2 +-
include/llvm/Support/Mutex.h | 154 +
include/llvm/Support/MutexGuard.h | 2 +-
include/llvm/Support/NoFolder.h | 138 +-
include/llvm/Support/Path.h | 16 +
include/llvm/Support/PathV1.h | 755 +
include/llvm/Support/PathV2.h | 347 +
include/llvm/Support/PatternMatch.h | 339 +-
include/llvm/Support/PointerLikeTypeTraits.h | 2 +-
include/llvm/Support/Process.h | 146 +
include/llvm/Support/Program.h | 157 +
include/llvm/Support/RWMutex.h | 173 +
include/llvm/Support/Signals.h | 59 +
include/llvm/Support/Solaris.h | 40 +
include/llvm/Support/SourceMgr.h | 15 +-
include/llvm/Support/StableBasicBlockNumbering.h | 59 -
include/llvm/Support/StandardPasses.h | 75 +-
include/llvm/Support/SwapByteOrder.h | 101 +
include/llvm/Support/SystemUtils.h | 13 +-
include/llvm/Support/TargetFolder.h | 68 +-
include/llvm/Support/ThreadLocal.h | 54 +
include/llvm/Support/Threading.h | 59 +
include/llvm/Support/TimeValue.h | 382 +
include/llvm/Support/Timer.h | 2 +-
include/llvm/Support/ToolOutputFile.h | 62 +
include/llvm/Support/TypeBuilder.h | 6 +
include/llvm/Support/Valgrind.h | 32 +
include/llvm/Support/raw_ostream.h | 66 +-
include/llvm/Support/system_error.h | 910 +
include/llvm/System/AIXDataTypesFix.h | 25 -
include/llvm/System/Alarm.h | 51 -
include/llvm/System/Atomic.h | 39 -
include/llvm/System/DataTypes.h.cmake | 189 -
include/llvm/System/DataTypes.h.in | 111 -
include/llvm/System/Disassembler.h | 35 -
include/llvm/System/DynamicLibrary.h | 86 -
include/llvm/System/Errno.h | 34 -
include/llvm/System/Host.h | 66 -
include/llvm/System/IncludeFile.h | 79 -
include/llvm/System/LICENSE.TXT | 6 -
include/llvm/System/Memory.h | 96 -
include/llvm/System/Mutex.h | 154 -
include/llvm/System/Path.h | 716 -
include/llvm/System/Process.h | 146 -
include/llvm/System/Program.h | 155 -
include/llvm/System/RWMutex.h | 173 -
include/llvm/System/Signals.h | 59 -
include/llvm/System/Solaris.h | 40 -
include/llvm/System/ThreadLocal.h | 54 -
include/llvm/System/Threading.h | 45 -
include/llvm/System/TimeValue.h | 382 -
include/llvm/System/Valgrind.h | 32 -
include/llvm/Target/Mangler.h | 7 -
include/llvm/Target/SubtargetFeature.h | 2 +-
include/llvm/Target/Target.td | 129 +-
include/llvm/Target/TargetAsmBackend.h | 67 +-
include/llvm/Target/TargetAsmInfo.h | 75 +
include/llvm/Target/TargetAsmParser.h | 16 +-
include/llvm/Target/TargetCallingConv.h | 14 +-
include/llvm/Target/TargetData.h | 3 +-
include/llvm/Target/TargetELFWriterInfo.h | 3 +-
include/llvm/Target/TargetFrameInfo.h | 97 -
include/llvm/Target/TargetFrameLowering.h | 196 +
include/llvm/Target/TargetInstrDesc.h | 13 +-
include/llvm/Target/TargetInstrInfo.h | 187 +-
include/llvm/Target/TargetInstrItineraries.h | 88 +-
include/llvm/Target/TargetJITInfo.h | 2 +-
include/llvm/Target/TargetLibraryInfo.h | 66 +
include/llvm/Target/TargetLowering.h | 171 +-
include/llvm/Target/TargetLoweringObjectFile.h | 15 +-
include/llvm/Target/TargetMachine.h | 56 +-
include/llvm/Target/TargetRegisterInfo.h | 214 +-
include/llvm/Target/TargetRegistry.h | 66 +-
include/llvm/Target/TargetSchedule.td | 43 +-
include/llvm/Target/TargetSelectionDAG.td | 122 +-
include/llvm/Target/TargetSelectionDAGInfo.h | 10 +-
include/llvm/Transforms/IPO.h | 8 +-
include/llvm/Transforms/Instrumentation.h | 3 +
include/llvm/Transforms/RSProfiling.h | 42 -
include/llvm/Transforms/Scalar.h | 30 +-
include/llvm/Transforms/Utils/AddrModeMatcher.h | 8 +-
include/llvm/Transforms/Utils/BasicBlockUtils.h | 26 +-
include/llvm/Transforms/Utils/BuildLibCalls.h | 14 -
include/llvm/Transforms/Utils/Cloning.h | 15 +-
include/llvm/Transforms/Utils/Local.h | 16 +
include/llvm/Transforms/Utils/PromoteMemToReg.h | 3 +-
include/llvm/Transforms/Utils/SSAUpdater.h | 49 +
.../llvm/Transforms/Utils/UnifyFunctionExitNodes.h | 4 +-
include/llvm/Transforms/Utils/ValueMapper.h | 25 +-
include/llvm/Type.h | 26 +-
include/llvm/TypeSymbolTable.h | 3 +-
include/llvm/Use.h | 37 +-
include/llvm/User.h | 41 +-
include/llvm/Value.h | 18 +-
include/llvm/ValueSymbolTable.h | 2 +-
lib/Analysis/AliasAnalysis.cpp | 187 +-
lib/Analysis/AliasAnalysisCounter.cpp | 45 +-
lib/Analysis/AliasAnalysisEvaluator.cpp | 36 +-
lib/Analysis/AliasDebugger.cpp | 29 +-
lib/Analysis/AliasSetTracker.cpp | 105 +-
lib/Analysis/Analysis.cpp | 67 +-
lib/Analysis/BasicAliasAnalysis.cpp | 459 +-
lib/Analysis/CFGPrinter.cpp | 27 +-
lib/Analysis/CMakeLists.txt | 11 +-
lib/Analysis/CaptureTracking.cpp | 3 +
lib/Analysis/ConstantFolding.cpp | 298 +-
lib/Analysis/DIBuilder.cpp | 801 +
lib/Analysis/DbgInfoPrinter.cpp | 129 +-
lib/Analysis/DebugInfo.cpp | 244 +-
lib/Analysis/DomPrinter.cpp | 50 +-
lib/Analysis/DominanceFrontier.cpp | 137 +
lib/Analysis/IPA/CMakeLists.txt | 1 +
lib/Analysis/IPA/CallGraph.cpp | 24 +-
lib/Analysis/IPA/CallGraphSCCPass.cpp | 1 -
lib/Analysis/IPA/FindUsedTypes.cpp | 2 +-
lib/Analysis/IPA/GlobalsModRef.cpp | 77 +-
lib/Analysis/IPA/IPA.cpp | 29 +
lib/Analysis/IVUsers.cpp | 12 +-
lib/Analysis/InlineCost.cpp | 486 +-
lib/Analysis/InstCount.cpp | 6 +-
lib/Analysis/InstructionSimplify.cpp | 1904 +-
lib/Analysis/IntervalPartition.cpp | 2 +-
lib/Analysis/LazyValueInfo.cpp | 844 +-
lib/Analysis/LibCallAliasAnalysis.cpp | 20 +-
lib/Analysis/Lint.cpp | 110 +-
lib/Analysis/LiveValues.cpp | 15 +-
lib/Analysis/Loads.cpp | 4 +-
lib/Analysis/LoopDependenceAnalysis.cpp | 17 +-
lib/Analysis/LoopInfo.cpp | 22 +-
lib/Analysis/LoopPass.cpp | 1 -
lib/Analysis/MemDepPrinter.cpp | 167 +
lib/Analysis/MemoryDependenceAnalysis.cpp | 373 +-
lib/Analysis/ModuleDebugInfoPrinter.cpp | 6 +-
lib/Analysis/NoAliasAnalysis.cpp | 88 +
lib/Analysis/PHITransAddr.cpp | 154 +-
lib/Analysis/PathNumbering.cpp | 525 +
lib/Analysis/PathProfileInfo.cpp | 434 +
lib/Analysis/PathProfileVerifier.cpp | 207 +
lib/Analysis/PointerTracking.cpp | 316 -
lib/Analysis/PostDominators.cpp | 10 +-
lib/Analysis/ProfileEstimatorPass.cpp | 11 +-
lib/Analysis/ProfileInfo.cpp | 17 +-
lib/Analysis/ProfileInfoLoaderPass.cpp | 3 +-
lib/Analysis/ProfileVerifierPass.cpp | 11 +-
lib/Analysis/RegionInfo.cpp | 168 +-
lib/Analysis/RegionPass.cpp | 275 +
lib/Analysis/RegionPrinter.cpp | 36 +-
lib/Analysis/ScalarEvolution.cpp | 1170 +-
lib/Analysis/ScalarEvolutionAliasAnalysis.cpp | 41 +-
lib/Analysis/ScalarEvolutionExpander.cpp | 51 +-
lib/Analysis/TypeBasedAliasAnalysis.cpp | 232 +-
lib/Analysis/ValueTracking.cpp | 369 +-
lib/Archive/Archive.cpp | 54 +-
lib/Archive/ArchiveInternals.h | 2 +-
lib/Archive/ArchiveWriter.cpp | 117 +-
lib/AsmParser/LLLexer.cpp | 21 +-
lib/AsmParser/LLLexer.h | 4 +-
lib/AsmParser/LLParser.cpp | 151 +-
lib/AsmParser/LLParser.h | 8 +-
lib/AsmParser/LLToken.h | 3 +
lib/AsmParser/Parser.cpp | 10 +-
lib/Bitcode/CMakeLists.txt | 2 +
lib/Bitcode/Reader/BitcodeReader.cpp | 181 +-
lib/Bitcode/Reader/BitcodeReader.h | 5 +
lib/Bitcode/Writer/BitcodeWriter.cpp | 32 +-
lib/CMakeLists.txt | 14 +
lib/CodeGen/AggressiveAntiDepBreaker.cpp | 45 +-
lib/CodeGen/AllocationOrder.cpp | 68 +
lib/CodeGen/AllocationOrder.h | 54 +
lib/CodeGen/Analysis.cpp | 30 +-
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 64 +-
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp | 61 +-
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp | 122 +-
lib/CodeGen/AsmPrinter/CMakeLists.txt | 3 +-
lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 138 +
lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 681 +-
lib/CodeGen/AsmPrinter/DwarfDebug.h | 139 +-
lib/CodeGen/AsmPrinter/DwarfException.cpp | 338 +-
lib/CodeGen/AsmPrinter/DwarfException.h | 155 +-
lib/CodeGen/AsmPrinter/DwarfTableException.cpp | 349 +
lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp | 1 +
lib/CodeGen/CMakeLists.txt | 17 +-
lib/CodeGen/CalcSpillWeights.cpp | 15 +-
lib/CodeGen/CallingConvLower.cpp | 40 +-
lib/CodeGen/CodeGen.cpp | 61 +
lib/CodeGen/CriticalAntiDepBreaker.cpp | 99 +-
lib/CodeGen/CriticalAntiDepBreaker.h | 12 +-
lib/CodeGen/DeadMachineInstructionElim.cpp | 16 +-
lib/CodeGen/DwarfEHPrepare.cpp | 30 +-
lib/CodeGen/ELF.h | 2 +-
lib/CodeGen/ELFWriter.cpp | 17 +-
lib/CodeGen/EdgeBundles.cpp | 86 +
lib/CodeGen/ExpandISelPseudos.cpp | 82 +
lib/CodeGen/GCMetadata.cpp | 7 +-
lib/CodeGen/GCStrategy.cpp | 44 +-
lib/CodeGen/IfConversion.cpp | 247 +-
lib/CodeGen/InlineSpiller.cpp | 287 +-
lib/CodeGen/IntrinsicLowering.cpp | 32 +-
lib/CodeGen/LLVMTargetMachine.cpp | 43 +-
lib/CodeGen/LatencyPriorityQueue.cpp | 26 +-
lib/CodeGen/LiveDebugVariables.cpp | 711 +
lib/CodeGen/LiveDebugVariables.h | 63 +
lib/CodeGen/LiveInterval.cpp | 312 +-
lib/CodeGen/LiveIntervalAnalysis.cpp | 357 +-
lib/CodeGen/LiveIntervalUnion.cpp | 315 +
lib/CodeGen/LiveIntervalUnion.h | 258 +
lib/CodeGen/LiveRangeEdit.cpp | 129 +
lib/CodeGen/LiveRangeEdit.h | 135 +
lib/CodeGen/LiveStackAnalysis.cpp | 20 +-
lib/CodeGen/LiveVariables.cpp | 42 +-
lib/CodeGen/LocalStackSlotAllocation.cpp | 29 +-
lib/CodeGen/MachineBasicBlock.cpp | 79 +-
lib/CodeGen/MachineCSE.cpp | 162 +-
lib/CodeGen/MachineDominators.cpp | 3 +-
lib/CodeGen/MachineFunction.cpp | 69 +-
lib/CodeGen/MachineFunctionAnalysis.cpp | 12 +-
lib/CodeGen/MachineInstr.cpp | 171 +-
lib/CodeGen/MachineLICM.cpp | 506 +-
lib/CodeGen/MachineLoopInfo.cpp | 7 +-
lib/CodeGen/MachineLoopRanges.cpp | 116 +
lib/CodeGen/MachineModuleInfo.cpp | 76 +-
lib/CodeGen/MachineRegisterInfo.cpp | 64 +-
lib/CodeGen/MachineSink.cpp | 312 +-
lib/CodeGen/MachineVerifier.cpp | 377 +-
lib/CodeGen/OptimizePHIs.cpp | 6 +-
lib/CodeGen/PBQP/Graph.h | 425 -
lib/CodeGen/PBQP/HeuristicBase.h | 246 -
lib/CodeGen/PBQP/HeuristicSolver.h | 616 -
lib/CodeGen/PBQP/Heuristics/Briggs.h | 460 -
lib/CodeGen/PBQP/Math.h | 288 -
lib/CodeGen/PBQP/Solution.h | 89 -
lib/CodeGen/PHIElimination.cpp | 143 +-
lib/CodeGen/PHIElimination.h | 115 -
lib/CodeGen/PHIEliminationUtils.cpp | 61 +
lib/CodeGen/PHIEliminationUtils.h | 25 +
lib/CodeGen/PeepholeOptimizer.cpp | 131 +-
lib/CodeGen/PostRAHazardRecognizer.cpp | 180 -
lib/CodeGen/PostRASchedulerList.cpp | 74 +-
lib/CodeGen/PreAllocSplitting.cpp | 43 +-
lib/CodeGen/ProcessImplicitDefs.cpp | 7 +-
lib/CodeGen/PrologEpilogInserter.cpp | 62 +-
lib/CodeGen/PrologEpilogInserter.h | 4 +-
lib/CodeGen/PseudoSourceValue.cpp | 2 +-
lib/CodeGen/RegAllocBase.h | 181 +
lib/CodeGen/RegAllocBasic.cpp | 523 +
lib/CodeGen/RegAllocFast.cpp | 68 +-
lib/CodeGen/RegAllocGreedy.cpp | 1285 ++
lib/CodeGen/RegAllocLinearScan.cpp | 109 +-
lib/CodeGen/RegAllocPBQP.cpp | 994 +-
lib/CodeGen/RegisterCoalescer.cpp | 3 +-
lib/CodeGen/RenderMachineFunction.cpp | 14 +-
lib/CodeGen/RenderMachineFunction.h | 4 +-
lib/CodeGen/ScheduleDAG.cpp | 15 +-
lib/CodeGen/ScheduleDAGEmit.cpp | 2 +-
lib/CodeGen/ScheduleDAGInstrs.cpp | 137 +-
lib/CodeGen/ScheduleDAGInstrs.h | 10 +
lib/CodeGen/ScoreboardHazardRecognizer.cpp | 243 +
lib/CodeGen/SelectionDAG/CMakeLists.txt | 2 -
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 1211 +-
lib/CodeGen/SelectionDAG/FastISel.cpp | 84 +-
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 1 -
lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 141 +-
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 1056 +-
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp | 33 +-
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 426 +-
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | 49 +-
lib/CodeGen/SelectionDAG/LegalizeTypes.h | 34 +-
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp | 66 +-
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 4 +-
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 325 +-
lib/CodeGen/SelectionDAG/SDNodeDbgValue.h | 2 +-
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 12 +-
lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp | 51 +-
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 1969 +-
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp | 333 +-
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h | 35 +-
lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 684 +-
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 850 +-
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 14 +-
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 791 +-
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 16 +-
lib/CodeGen/SelectionDAG/TargetLowering.cpp | 669 +-
lib/CodeGen/ShrinkWrapping.cpp | 4 +-
lib/CodeGen/SimpleRegisterCoalescing.cpp | 247 +-
lib/CodeGen/SimpleRegisterCoalescing.h | 13 +-
lib/CodeGen/SjLjEHPrepare.cpp | 446 +-
lib/CodeGen/SlotIndexes.cpp | 33 +-
lib/CodeGen/SpillPlacement.cpp | 330 +
lib/CodeGen/SpillPlacement.h | 108 +
lib/CodeGen/Spiller.cpp | 316 +-
lib/CodeGen/Spiller.h | 12 +-
lib/CodeGen/SplitKit.cpp | 1491 +-
lib/CodeGen/SplitKit.h | 419 +-
lib/CodeGen/Splitter.cpp | 32 +-
lib/CodeGen/Splitter.h | 4 +-
lib/CodeGen/StackProtector.cpp | 28 +-
lib/CodeGen/StackSlotColoring.cpp | 30 +-
lib/CodeGen/StrongPHIElimination.cpp | 1694 +-
lib/CodeGen/TailDuplication.cpp | 21 +-
lib/CodeGen/TargetInstrInfoImpl.cpp | 50 +-
lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 253 +-
lib/CodeGen/TwoAddressInstructionPass.cpp | 54 +-
lib/CodeGen/UnreachableBlockElim.cpp | 15 +-
lib/CodeGen/VirtRegMap.cpp | 165 +-
lib/CodeGen/VirtRegMap.h | 33 +-
lib/CodeGen/VirtRegRewriter.cpp | 896 +-
lib/CompilerDriver/Action.cpp | 26 +-
lib/CompilerDriver/CMakeLists.txt | 2 +-
lib/CompilerDriver/CompilationGraph.cpp | 66 +-
lib/CompilerDriver/Main.cpp | 9 +-
lib/CompilerDriver/Makefile | 2 +-
lib/CompilerDriver/Tool.cpp | 6 +-
lib/ExecutionEngine/CMakeLists.txt | 4 +
lib/ExecutionEngine/ExecutionEngine.cpp | 378 +-
lib/ExecutionEngine/Interpreter/CMakeLists.txt | 12 +
lib/ExecutionEngine/Interpreter/Execution.cpp | 6 +-
.../Interpreter/ExternalFunctions.cpp | 4 +-
lib/ExecutionEngine/Interpreter/Interpreter.h | 2 +-
lib/ExecutionEngine/JIT/Intercept.cpp | 2 +-
lib/ExecutionEngine/JIT/JIT.cpp | 23 +-
lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp | 4 +-
lib/ExecutionEngine/JIT/JITDebugRegisterer.h | 2 +-
lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp | 11 +-
lib/ExecutionEngine/JIT/JITDwarfEmitter.h | 2 +
lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 +-
lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 2 +-
.../JIT/OProfileJITEventListener.cpp | 2 +-
lib/ExecutionEngine/JIT/TargetSelect.cpp | 2 +-
lib/ExecutionEngine/MCJIT/CMakeLists.txt | 4 +
lib/ExecutionEngine/MCJIT/MCJIT.cpp | 92 +
lib/ExecutionEngine/MCJIT/MCJIT.h | 68 +
lib/ExecutionEngine/MCJIT/Makefile | 13 +
lib/ExecutionEngine/MCJIT/TargetSelect.cpp | 91 +
lib/ExecutionEngine/Makefile | 2 +-
lib/Linker/LinkItems.cpp | 13 +-
lib/Linker/LinkModules.cpp | 100 +-
lib/Linker/Linker.cpp | 18 +-
lib/MC/CMakeLists.txt | 6 +
lib/MC/ELFObjectWriter.cpp | 1858 +-
lib/MC/MCAsmInfo.cpp | 7 +-
lib/MC/MCAsmInfoDarwin.cpp | 9 +-
lib/MC/MCAsmStreamer.cpp | 382 +-
lib/MC/MCAssembler.cpp | 794 +-
lib/MC/MCCodeEmitter.cpp | 12 -
lib/MC/MCContext.cpp | 117 +-
lib/MC/MCDisassembler/EDDisassembler.cpp | 2 +-
lib/MC/MCDisassembler/EDDisassembler.h | 8 +-
lib/MC/MCDisassembler/EDInst.cpp | 2 +
lib/MC/MCDisassembler/EDInst.h | 2 +-
lib/MC/MCDisassembler/EDOperand.cpp | 23 +-
lib/MC/MCDisassembler/EDOperand.h | 2 +-
lib/MC/MCDisassembler/EDToken.h | 2 +-
lib/MC/MCDwarf.cpp | 793 +
lib/MC/MCELFObjectTargetWriter.cpp | 23 +
lib/MC/MCELFStreamer.cpp | 350 +-
lib/MC/MCExpr.cpp | 284 +-
lib/MC/MCLoggingStreamer.cpp | 60 +-
lib/MC/MCMachOStreamer.cpp | 355 +-
lib/MC/MCMachObjectTargetWriter.cpp | 22 +
lib/MC/MCNullStreamer.cpp | 31 +-
lib/MC/MCObjectStreamer.cpp | 187 +-
lib/MC/MCObjectWriter.cpp | 65 +
lib/MC/MCParser/AsmLexer.cpp | 182 +-
lib/MC/MCParser/AsmParser.cpp | 889 +-
lib/MC/MCParser/CMakeLists.txt | 1 +
lib/MC/MCParser/COFFAsmParser.cpp | 144 +
lib/MC/MCParser/DarwinAsmParser.cpp | 2 +-
lib/MC/MCParser/ELFAsmParser.cpp | 460 +-
lib/MC/MCPureStreamer.cpp | 234 +
lib/MC/MCSectionCOFF.cpp | 8 +
lib/MC/MCSectionELF.cpp | 121 +-
lib/MC/MCSectionMachO.cpp | 62 +-
lib/MC/MCStreamer.cpp | 218 +-
lib/MC/MCSymbol.cpp | 13 +
lib/MC/MachObjectWriter.cpp | 935 +-
lib/MC/TargetAsmBackend.cpp | 25 +-
lib/MC/WinCOFFObjectWriter.cpp | 371 +-
lib/MC/WinCOFFStreamer.cpp | 180 +-
lib/Makefile | 2 +-
lib/Object/CMakeLists.txt | 6 +
lib/Object/COFFObjectFile.cpp | 375 +
lib/Object/ELFObjectFile.cpp | 686 +
lib/Object/MachOObject.cpp | 342 +
lib/Object/Makefile | 14 +
lib/Object/ObjectFile.cpp | 71 +
lib/Support/APFloat.cpp | 28 +-
lib/Support/APInt.cpp | 234 +-
lib/Support/Allocator.cpp | 10 +-
lib/Support/Atomic.cpp | 112 +
lib/Support/CMakeLists.txt | 58 +-
lib/Support/CommandLine.cpp | 84 +-
lib/Support/ConstantRange.cpp | 94 +-
lib/Support/CrashRecoveryContext.cpp | 30 +-
lib/Support/Debug.cpp | 2 +-
lib/Support/Disassembler.cpp | 75 +
lib/Support/Dwarf.cpp | 4 +
lib/Support/DynamicLibrary.cpp | 170 +
lib/Support/Errno.cpp | 74 +
lib/Support/ErrorHandling.cpp | 11 +-
lib/Support/FileUtilities.cpp | 26 +-
lib/Support/FoldingSet.cpp | 29 +-
lib/Support/FormattedStream.cpp | 1 +
lib/Support/GraphWriter.cpp | 48 +-
lib/Support/Host.cpp | 307 +
lib/Support/IncludeFile.cpp | 20 +
lib/Support/IntEqClasses.cpp | 70 +
lib/Support/IntervalMap.cpp | 161 +
lib/Support/Makefile | 5 +
lib/Support/ManagedStatic.cpp | 2 +-
lib/Support/Memory.cpp | 74 +
lib/Support/MemoryBuffer.cpp | 113 +-
lib/Support/Mutex.cpp | 157 +
lib/Support/Path.cpp | 283 +
lib/Support/PathV2.cpp | 774 +
lib/Support/PluginLoader.cpp | 4 +-
lib/Support/PrettyStackTrace.cpp | 17 +-
lib/Support/Process.cpp | 33 +
lib/Support/Program.cpp | 56 +
lib/Support/README.txt.system | 43 +
lib/Support/RWMutex.cpp | 157 +
lib/Support/SearchForAddressOfSpecialSymbol.cpp | 73 +
lib/Support/Signals.cpp | 34 +
lib/Support/SourceMgr.cpp | 31 +-
lib/Support/Statistic.cpp | 2 +-
lib/Support/StringMap.cpp | 2 +-
lib/Support/StringRef.cpp | 73 +-
lib/Support/SystemUtils.cpp | 40 +-
lib/Support/TargetRegistry.cpp | 2 +-
lib/Support/ThreadLocal.cpp | 84 +
lib/Support/Threading.cpp | 116 +
lib/Support/TimeValue.cpp | 57 +
lib/Support/Timer.cpp | 4 +-
lib/Support/ToolOutputFile.cpp | 43 +
lib/Support/Triple.cpp | 106 +-
lib/Support/Twine.cpp | 34 +-
lib/Support/Unix/Host.inc | 97 +
lib/Support/Unix/Memory.inc | 151 +
lib/Support/Unix/Mutex.inc | 43 +
lib/Support/Unix/Path.inc | 887 +
lib/Support/Unix/PathV2.inc | 507 +
lib/Support/Unix/Process.inc | 295 +
lib/Support/Unix/Program.inc | 424 +
lib/Support/Unix/README.txt | 16 +
lib/Support/Unix/RWMutex.inc | 43 +
lib/Support/Unix/Signals.inc | 303 +
lib/Support/Unix/ThreadLocal.inc | 26 +
lib/Support/Unix/TimeValue.inc | 56 +
lib/Support/Unix/Unix.h | 87 +
lib/Support/Unix/system_error.inc | 34 +
lib/Support/Valgrind.cpp | 54 +
lib/Support/Windows/DynamicLibrary.inc | 166 +
lib/Support/Windows/Host.inc | 23 +
lib/Support/Windows/Memory.inc | 73 +
lib/Support/Windows/Mutex.inc | 58 +
lib/Support/Windows/Path.inc | 921 +
lib/Support/Windows/PathV2.inc | 750 +
lib/Support/Windows/Process.inc | 222 +
lib/Support/Windows/Program.inc | 403 +
lib/Support/Windows/RWMutex.inc | 58 +
lib/Support/Windows/Signals.inc | 328 +
lib/Support/Windows/ThreadLocal.inc | 54 +
lib/Support/Windows/TimeValue.inc | 51 +
lib/Support/Windows/Windows.h | 120 +
lib/Support/Windows/explicit_symbols.inc | 66 +
lib/Support/Windows/system_error.inc | 142 +
lib/Support/raw_ostream.cpp | 103 +-
lib/Support/regexec.c | 5 +-
lib/Support/system_error.cpp | 130 +
lib/System/Alarm.cpp | 33 -
lib/System/Atomic.cpp | 112 -
lib/System/CMakeLists.txt | 48 -
lib/System/Disassembler.cpp | 75 -
lib/System/DynamicLibrary.cpp | 161 -
lib/System/Errno.cpp | 74 -
lib/System/Host.cpp | 305 -
lib/System/IncludeFile.cpp | 20 -
lib/System/Makefile | 25 -
lib/System/Memory.cpp | 74 -
lib/System/Mutex.cpp | 157 -
lib/System/Path.cpp | 264 -
lib/System/Process.cpp | 33 -
lib/System/Program.cpp | 56 -
lib/System/README.txt | 43 -
lib/System/RWMutex.cpp | 157 -
lib/System/SearchForAddressOfSpecialSymbol.cpp | 64 -
lib/System/Signals.cpp | 34 -
lib/System/ThreadLocal.cpp | 85 -
lib/System/Threading.cpp | 64 -
lib/System/TimeValue.cpp | 58 -
lib/System/Unix/Alarm.inc | 72 -
lib/System/Unix/Host.inc | 96 -
lib/System/Unix/Memory.inc | 151 -
lib/System/Unix/Mutex.inc | 43 -
lib/System/Unix/Path.inc | 923 -
lib/System/Unix/Process.inc | 295 -
lib/System/Unix/Program.inc | 402 -
lib/System/Unix/README.txt | 16 -
lib/System/Unix/RWMutex.inc | 43 -
lib/System/Unix/Signals.inc | 299 -
lib/System/Unix/ThreadLocal.inc | 26 -
lib/System/Unix/TimeValue.inc | 56 -
lib/System/Unix/Unix.h | 87 -
lib/System/Valgrind.cpp | 54 -
lib/System/Win32/Alarm.inc | 43 -
lib/System/Win32/DynamicLibrary.inc | 200 -
lib/System/Win32/Host.inc | 23 -
lib/System/Win32/Memory.inc | 73 -
lib/System/Win32/Mutex.inc | 58 -
lib/System/Win32/Path.inc | 872 -
lib/System/Win32/Process.inc | 221 -
lib/System/Win32/Program.inc | 409 -
lib/System/Win32/RWMutex.inc | 58 -
lib/System/Win32/Signals.inc | 332 -
lib/System/Win32/ThreadLocal.inc | 53 -
lib/System/Win32/TimeValue.inc | 51 -
lib/System/Win32/Win32.h | 57 -
lib/Target/ARM/ARM.h | 114 +-
lib/Target/ARM/ARM.td | 58 +-
lib/Target/ARM/ARMAddressingModes.h | 12 +
lib/Target/ARM/ARMAsmBackend.cpp | 512 +
lib/Target/ARM/ARMAsmPrinter.cpp | 2225 ++-
lib/Target/ARM/ARMAsmPrinter.h | 112 +
lib/Target/ARM/ARMBaseInfo.h | 249 +
lib/Target/ARM/ARMBaseInstrInfo.cpp | 1305 +-
lib/Target/ARM/ARMBaseInstrInfo.h | 171 +-
lib/Target/ARM/ARMBaseRegisterInfo.cpp | 948 +-
lib/Target/ARM/ARMBaseRegisterInfo.h | 65 +-
lib/Target/ARM/ARMBuildAttrs.h | 73 +-
lib/Target/ARM/ARMCallingConv.h | 160 +
lib/Target/ARM/ARMCallingConv.td | 29 +
lib/Target/ARM/ARMCodeEmitter.cpp | 368 +-
lib/Target/ARM/ARMConstantIslandPass.cpp | 27 +-
lib/Target/ARM/ARMConstantPoolValue.cpp | 26 +-
lib/Target/ARM/ARMConstantPoolValue.h | 43 +-
lib/Target/ARM/ARMELFWriterInfo.cpp | 83 +
lib/Target/ARM/ARMELFWriterInfo.h | 58 +
lib/Target/ARM/ARMExpandPseudoInsts.cpp | 1227 +-
lib/Target/ARM/ARMFastISel.cpp | 1670 +-
lib/Target/ARM/ARMFixupKinds.h | 97 +
lib/Target/ARM/ARMFrameInfo.h | 32 -
lib/Target/ARM/ARMFrameLowering.cpp | 1021 +
lib/Target/ARM/ARMFrameLowering.h | 74 +
lib/Target/ARM/ARMGlobalMerge.cpp | 69 +-
lib/Target/ARM/ARMHazardRecognizer.cpp | 121 +
lib/Target/ARM/ARMHazardRecognizer.h | 54 +
lib/Target/ARM/ARMISelDAGToDAG.cpp | 1823 +-
lib/Target/ARM/ARMISelLowering.cpp | 2278 ++-
lib/Target/ARM/ARMISelLowering.h | 88 +-
lib/Target/ARM/ARMInstrFormats.td | 1191 +-
lib/Target/ARM/ARMInstrInfo.cpp | 33 +-
lib/Target/ARM/ARMInstrInfo.h | 5 -
lib/Target/ARM/ARMInstrInfo.td | 3554 ++--
lib/Target/ARM/ARMInstrNEON.td | 3650 ++--
lib/Target/ARM/ARMInstrThumb.td | 1661 +-
lib/Target/ARM/ARMInstrThumb2.td | 2725 ++-
lib/Target/ARM/ARMInstrVFP.td | 1146 +-
lib/Target/ARM/ARMJITInfo.cpp | 13 +-
lib/Target/ARM/ARMJITInfo.h | 2 +-
lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 519 +-
lib/Target/ARM/ARMMCCodeEmitter.cpp | 1230 ++
lib/Target/ARM/ARMMCExpr.cpp | 73 +
lib/Target/ARM/ARMMCExpr.h | 73 +
lib/Target/ARM/ARMMCInstLower.cpp | 147 +-
lib/Target/ARM/ARMMCInstLower.h | 56 -
lib/Target/ARM/ARMMachineFunctionInfo.h | 60 +-
lib/Target/ARM/ARMPerfectShuffle.h | 13122 ++++++-------
lib/Target/ARM/ARMRegisterInfo.cpp | 1 -
lib/Target/ARM/ARMRegisterInfo.td | 90 +-
lib/Target/ARM/ARMSchedule.td | 140 +-
lib/Target/ARM/ARMScheduleA8.td | 862 +-
lib/Target/ARM/ARMScheduleA9.td | 1799 +-
lib/Target/ARM/ARMScheduleV6.td | 130 +-
lib/Target/ARM/ARMSelectionDAGInfo.cpp | 16 +-
lib/Target/ARM/ARMSelectionDAGInfo.h | 6 +-
lib/Target/ARM/ARMSubtarget.cpp | 119 +-
lib/Target/ARM/ARMSubtarget.h | 48 +-
lib/Target/ARM/ARMTargetMachine.cpp | 62 +-
lib/Target/ARM/ARMTargetMachine.h | 36 +-
lib/Target/ARM/ARMTargetObjectFile.cpp | 19 +-
lib/Target/ARM/ARMTargetObjectFile.h | 11 +-
lib/Target/ARM/AsmParser/ARMAsmLexer.cpp | 192 +-
lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 1530 +-
lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp | 800 -
lib/Target/ARM/AsmPrinter/ARMInstPrinter.h | 118 -
lib/Target/ARM/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/ARM/AsmPrinter/Makefile | 15 -
lib/Target/ARM/CMakeLists.txt | 25 +-
lib/Target/ARM/Disassembler/ARMDisassembler.cpp | 49 +-
.../ARM/Disassembler/ARMDisassemblerCore.cpp | 259 +-
lib/Target/ARM/Disassembler/CMakeLists.txt | 14 +
.../ARM/Disassembler/ThumbDisassemblerCore.h | 298 +-
lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 711 +
lib/Target/ARM/InstPrinter/ARMInstPrinter.h | 111 +
lib/Target/ARM/InstPrinter/CMakeLists.txt | 6 +
lib/Target/ARM/InstPrinter/Makefile | 15 +
lib/Target/ARM/MLxExpansionPass.cpp | 321 +
lib/Target/ARM/Makefile | 4 +-
lib/Target/ARM/NEONPreAllocPass.cpp | 406 -
lib/Target/ARM/README-Thumb.txt | 21 +-
lib/Target/ARM/Thumb1FrameLowering.cpp | 352 +
lib/Target/ARM/Thumb1FrameLowering.h | 52 +
lib/Target/ARM/Thumb1InstrInfo.cpp | 84 +-
lib/Target/ARM/Thumb1InstrInfo.h | 17 +-
lib/Target/ARM/Thumb1RegisterInfo.cpp | 332 +-
lib/Target/ARM/Thumb1RegisterInfo.h | 5 -
lib/Target/ARM/Thumb2HazardRecognizer.cpp | 53 -
lib/Target/ARM/Thumb2HazardRecognizer.h | 40 -
lib/Target/ARM/Thumb2InstrInfo.cpp | 44 +-
lib/Target/ARM/Thumb2InstrInfo.h | 8 -
lib/Target/ARM/Thumb2RegisterInfo.cpp | 1 -
lib/Target/ARM/Thumb2SizeReduction.cpp | 133 +-
lib/Target/Alpha/Alpha.h | 7 +
lib/Target/Alpha/AlphaAsmPrinter.cpp | 166 +
lib/Target/Alpha/AlphaCodeEmitter.cpp | 222 -
lib/Target/Alpha/AlphaFrameLowering.cpp | 143 +
lib/Target/Alpha/AlphaFrameLowering.h | 43 +
lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 19 +-
lib/Target/Alpha/AlphaISelLowering.cpp | 87 +-
lib/Target/Alpha/AlphaISelLowering.h | 5 +
lib/Target/Alpha/AlphaInstrInfo.td | 6 +-
lib/Target/Alpha/AlphaJITInfo.cpp | 310 -
lib/Target/Alpha/AlphaJITInfo.h | 53 -
lib/Target/Alpha/AlphaRegisterInfo.cpp | 152 +-
lib/Target/Alpha/AlphaRegisterInfo.h | 10 -
lib/Target/Alpha/AlphaSchedule.td | 4 +-
lib/Target/Alpha/AlphaTargetMachine.cpp | 10 +-
lib/Target/Alpha/AlphaTargetMachine.h | 20 +-
lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | 166 -
lib/Target/Alpha/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/Alpha/AsmPrinter/Makefile | 15 -
lib/Target/Alpha/CMakeLists.txt | 7 +-
lib/Target/Alpha/Makefile | 4 +-
.../Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp | 156 -
lib/Target/Blackfin/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/Blackfin/AsmPrinter/Makefile | 16 -
lib/Target/Blackfin/BlackfinAsmPrinter.cpp | 156 +
lib/Target/Blackfin/BlackfinFrameLowering.cpp | 124 +
lib/Target/Blackfin/BlackfinFrameLowering.h | 46 +
lib/Target/Blackfin/BlackfinISelDAGToDAG.cpp | 6 +-
lib/Target/Blackfin/BlackfinISelLowering.cpp | 61 +-
lib/Target/Blackfin/BlackfinISelLowering.h | 6 +
lib/Target/Blackfin/BlackfinInstrInfo.td | 8 +-
lib/Target/Blackfin/BlackfinRegisterInfo.cpp | 106 +-
lib/Target/Blackfin/BlackfinRegisterInfo.h | 8 -
lib/Target/Blackfin/BlackfinRegisterInfo.td | 20 +-
lib/Target/Blackfin/BlackfinTargetMachine.cpp | 2 +-
lib/Target/Blackfin/BlackfinTargetMachine.h | 17 +-
lib/Target/Blackfin/CMakeLists.txt | 4 +
lib/Target/Blackfin/Makefile | 2 +-
lib/Target/CBackend/CBackend.cpp | 337 +-
lib/Target/CBackend/CMakeLists.txt | 2 +
lib/Target/CMakeLists.txt | 44 +-
lib/Target/CellSPU/AsmPrinter/CMakeLists.txt | 9 -
lib/Target/CellSPU/AsmPrinter/Makefile | 17 -
lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp | 364 -
lib/Target/CellSPU/CMakeLists.txt | 6 +-
lib/Target/CellSPU/Makefile | 2 +-
lib/Target/CellSPU/README.txt | 2 +-
lib/Target/CellSPU/SPU.h | 1 +
lib/Target/CellSPU/SPU64InstrInfo.td | 79 +-
lib/Target/CellSPU/SPUAsmPrinter.cpp | 327 +
lib/Target/CellSPU/SPUFrameInfo.cpp | 29 -
lib/Target/CellSPU/SPUFrameInfo.h | 75 -
lib/Target/CellSPU/SPUFrameLowering.cpp | 276 +
lib/Target/CellSPU/SPUFrameLowering.h | 94 +
lib/Target/CellSPU/SPUHazardRecognizers.cpp | 4 +-
lib/Target/CellSPU/SPUHazardRecognizers.h | 4 +-
lib/Target/CellSPU/SPUISelDAGToDAG.cpp | 223 +-
lib/Target/CellSPU/SPUISelLowering.cpp | 787 +-
lib/Target/CellSPU/SPUISelLowering.h | 23 +-
lib/Target/CellSPU/SPUInstrInfo.cpp | 15 +-
lib/Target/CellSPU/SPUInstrInfo.h | 4 +
lib/Target/CellSPU/SPUInstrInfo.td | 396 +-
lib/Target/CellSPU/SPUMCAsmInfo.cpp | 3 +-
lib/Target/CellSPU/SPUNodes.td | 18 +-
lib/Target/CellSPU/SPUNopFiller.cpp | 153 +
lib/Target/CellSPU/SPUOperands.td | 18 +-
lib/Target/CellSPU/SPURegisterInfo.cpp | 264 +-
lib/Target/CellSPU/SPURegisterInfo.h | 16 +-
lib/Target/CellSPU/SPUSchedule.td | 8 +-
lib/Target/CellSPU/SPUSubtarget.cpp | 21 +
lib/Target/CellSPU/SPUSubtarget.h | 6 +-
lib/Target/CellSPU/SPUTargetMachine.cpp | 13 +-
lib/Target/CellSPU/SPUTargetMachine.h | 15 +-
lib/Target/CppBackend/CMakeLists.txt | 2 +
lib/Target/CppBackend/CPPBackend.cpp | 37 +-
lib/Target/MBlaze/AsmParser/CMakeLists.txt | 8 +
lib/Target/MBlaze/AsmParser/MBlazeAsmLexer.cpp | 127 +
lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp | 568 +
lib/Target/MBlaze/AsmParser/Makefile | 15 +
lib/Target/MBlaze/AsmPrinter/CMakeLists.txt | 9 -
lib/Target/MBlaze/AsmPrinter/MBlazeAsmPrinter.cpp | 295 -
lib/Target/MBlaze/AsmPrinter/Makefile | 17 -
lib/Target/MBlaze/CMakeLists.txt | 14 +-
lib/Target/MBlaze/Disassembler/CMakeLists.txt | 16 +
.../MBlaze/Disassembler/MBlazeDisassembler.cpp | 647 +
.../MBlaze/Disassembler/MBlazeDisassembler.h | 55 +
lib/Target/MBlaze/Disassembler/Makefile | 16 +
lib/Target/MBlaze/InstPrinter/CMakeLists.txt | 8 +
.../MBlaze/InstPrinter/MBlazeInstPrinter.cpp | 69 +
lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.h | 43 +
lib/Target/MBlaze/InstPrinter/Makefile | 16 +
lib/Target/MBlaze/MBlaze.h | 8 +
lib/Target/MBlaze/MBlaze.td | 41 +-
lib/Target/MBlaze/MBlazeAsmBackend.cpp | 163 +
lib/Target/MBlaze/MBlazeAsmPrinter.cpp | 335 +
lib/Target/MBlaze/MBlazeCallingConv.td | 14 +-
lib/Target/MBlaze/MBlazeDelaySlotFiller.cpp | 191 +-
lib/Target/MBlaze/MBlazeELFWriterInfo.cpp | 111 +
lib/Target/MBlaze/MBlazeELFWriterInfo.h | 58 +
lib/Target/MBlaze/MBlazeFrameLowering.cpp | 450 +
lib/Target/MBlaze/MBlazeFrameLowering.h | 53 +
lib/Target/MBlaze/MBlazeISelDAGToDAG.cpp | 87 +-
lib/Target/MBlaze/MBlazeISelLowering.cpp | 720 +-
lib/Target/MBlaze/MBlazeISelLowering.h | 46 +-
lib/Target/MBlaze/MBlazeInstrFPU.td | 253 +-
lib/Target/MBlaze/MBlazeInstrFSL.td | 326 +-
lib/Target/MBlaze/MBlazeInstrFormats.td | 272 +-
lib/Target/MBlaze/MBlazeInstrInfo.cpp | 179 +-
lib/Target/MBlaze/MBlazeInstrInfo.h | 166 +-
lib/Target/MBlaze/MBlazeInstrInfo.td | 927 +-
lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp | 6 +-
lib/Target/MBlaze/MBlazeIntrinsics.td | 6 +-
lib/Target/MBlaze/MBlazeMCAsmInfo.cpp | 9 +-
lib/Target/MBlaze/MBlazeMCAsmInfo.h | 4 +-
lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp | 223 +
lib/Target/MBlaze/MBlazeMCInstLower.cpp | 166 +
lib/Target/MBlaze/MBlazeMCInstLower.h | 50 +
lib/Target/MBlaze/MBlazeMachineFunction.h | 86 +-
lib/Target/MBlaze/MBlazeRegisterInfo.cpp | 343 +-
lib/Target/MBlaze/MBlazeRegisterInfo.h | 20 +-
lib/Target/MBlaze/MBlazeRegisterInfo.td | 140 +-
lib/Target/MBlaze/MBlazeRelocations.h | 47 +
lib/Target/MBlaze/MBlazeSchedule.td | 4 +-
lib/Target/MBlaze/MBlazeTargetMachine.cpp | 66 +-
lib/Target/MBlaze/MBlazeTargetMachine.h | 33 +-
lib/Target/MBlaze/MBlazeTargetObjectFile.cpp | 9 +-
lib/Target/MBlaze/MBlazeTargetObjectFile.h | 7 +-
lib/Target/MBlaze/Makefile | 12 +-
lib/Target/MBlaze/TODO | 26 +
lib/Target/MBlaze/TargetInfo/CMakeLists.txt | 3 +-
lib/Target/MSP430/AsmPrinter/CMakeLists.txt | 8 -
lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp | 179 -
lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp | 116 -
lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.h | 43 -
lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp | 150 -
lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h | 50 -
lib/Target/MSP430/AsmPrinter/Makefile | 15 -
lib/Target/MSP430/CMakeLists.txt | 6 +-
lib/Target/MSP430/InstPrinter/CMakeLists.txt | 6 +
.../MSP430/InstPrinter/MSP430InstPrinter.cpp | 113 +
lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h | 43 +
lib/Target/MSP430/InstPrinter/Makefile | 15 +
lib/Target/MSP430/MSP430.td | 1 +
lib/Target/MSP430/MSP430AsmPrinter.cpp | 179 +
lib/Target/MSP430/MSP430FrameLowering.cpp | 223 +
lib/Target/MSP430/MSP430FrameLowering.h | 53 +
lib/Target/MSP430/MSP430ISelDAGToDAG.cpp | 17 +-
lib/Target/MSP430/MSP430ISelLowering.cpp | 22 +-
lib/Target/MSP430/MSP430InstrInfo.cpp | 52 +-
lib/Target/MSP430/MSP430InstrInfo.h | 9 -
lib/Target/MSP430/MSP430InstrInfo.td | 16 +-
lib/Target/MSP430/MSP430MCInstLower.cpp | 150 +
lib/Target/MSP430/MSP430MCInstLower.h | 50 +
lib/Target/MSP430/MSP430RegisterInfo.cpp | 170 +-
lib/Target/MSP430/MSP430RegisterInfo.h | 6 -
lib/Target/MSP430/MSP430RegisterInfo.td | 8 +-
lib/Target/MSP430/MSP430TargetMachine.cpp | 14 +-
lib/Target/MSP430/MSP430TargetMachine.h | 12 +-
lib/Target/MSP430/Makefile | 2 +-
lib/Target/MSP430/TargetInfo/CMakeLists.txt | 2 +-
lib/Target/Mangler.cpp | 10 -
lib/Target/Mips/AsmPrinter/CMakeLists.txt | 9 -
lib/Target/Mips/AsmPrinter/Makefile | 17 -
lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 386 -
lib/Target/Mips/CMakeLists.txt | 4 +-
lib/Target/Mips/Makefile | 2 +-
lib/Target/Mips/Mips.td | 30 +-
lib/Target/Mips/MipsAsmPrinter.cpp | 393 +
lib/Target/Mips/MipsDelaySlotFiller.cpp | 13 +-
lib/Target/Mips/MipsFrameLowering.cpp | 314 +
lib/Target/Mips/MipsFrameLowering.h | 48 +
lib/Target/Mips/MipsISelDAGToDAG.cpp | 28 +-
lib/Target/Mips/MipsISelLowering.cpp | 620 +-
lib/Target/Mips/MipsISelLowering.h | 18 +-
lib/Target/Mips/MipsInstrFPU.td | 2 +-
lib/Target/Mips/MipsInstrInfo.td | 355 +-
lib/Target/Mips/MipsMachineFunction.h | 34 +-
lib/Target/Mips/MipsRegisterInfo.cpp | 287 +-
lib/Target/Mips/MipsRegisterInfo.h | 5 -
lib/Target/Mips/MipsSchedule.td | 2 +-
lib/Target/Mips/MipsSubtarget.h | 4 +-
lib/Target/Mips/MipsTargetMachine.cpp | 20 +-
lib/Target/Mips/MipsTargetMachine.h | 21 +-
lib/Target/Mips/MipsTargetObjectFile.cpp | 29 +-
lib/Target/PIC16/AsmPrinter/CMakeLists.txt | 9 -
lib/Target/PIC16/AsmPrinter/Makefile | 15 -
lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp | 512 -
lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h | 88 -
lib/Target/PIC16/CMakeLists.txt | 26 -
lib/Target/PIC16/Makefile | 24 -
lib/Target/PIC16/PIC16.h | 134 -
lib/Target/PIC16/PIC16.td | 40 -
lib/Target/PIC16/PIC16ABINames.h | 399 -
lib/Target/PIC16/PIC16DebugInfo.cpp | 490 -
lib/Target/PIC16/PIC16DebugInfo.h | 156 -
lib/Target/PIC16/PIC16ISelDAGToDAG.cpp | 50 -
lib/Target/PIC16/PIC16ISelDAGToDAG.h | 60 -
lib/Target/PIC16/PIC16ISelLowering.cpp | 2000 --
lib/Target/PIC16/PIC16ISelLowering.h | 253 -
lib/Target/PIC16/PIC16InstrFormats.td | 117 -
lib/Target/PIC16/PIC16InstrInfo.cpp | 224 -
lib/Target/PIC16/PIC16InstrInfo.h | 76 -
lib/Target/PIC16/PIC16InstrInfo.td | 540 -
lib/Target/PIC16/PIC16MCAsmInfo.cpp | 59 -
lib/Target/PIC16/PIC16MCAsmInfo.h | 35 -
lib/Target/PIC16/PIC16MachineFunctionInfo.h | 52 -
lib/Target/PIC16/PIC16MemSelOpt.cpp | 254 -
lib/Target/PIC16/PIC16Passes/Makefile | 15 -
lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp | 299 -
lib/Target/PIC16/PIC16Passes/PIC16Cloner.h | 83 -
lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp | 182 -
lib/Target/PIC16/PIC16Passes/PIC16Overlay.h | 60 -
lib/Target/PIC16/PIC16RegisterInfo.cpp | 84 -
lib/Target/PIC16/PIC16RegisterInfo.h | 64 -
lib/Target/PIC16/PIC16RegisterInfo.td | 33 -
lib/Target/PIC16/PIC16Section.cpp | 104 -
lib/Target/PIC16/PIC16Section.h | 99 -
lib/Target/PIC16/PIC16SelectionDAGInfo.cpp | 23 -
lib/Target/PIC16/PIC16SelectionDAGInfo.h | 31 -
lib/Target/PIC16/PIC16Subtarget.cpp | 27 -
lib/Target/PIC16/PIC16Subtarget.h | 44 -
lib/Target/PIC16/PIC16TargetMachine.cpp | 55 -
lib/Target/PIC16/PIC16TargetMachine.h | 70 -
lib/Target/PIC16/PIC16TargetObjectFile.cpp | 384 -
lib/Target/PIC16/PIC16TargetObjectFile.h | 168 -
lib/Target/PIC16/TargetInfo/CMakeLists.txt | 7 -
lib/Target/PIC16/TargetInfo/Makefile | 15 -
lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp | 22 -
lib/Target/PTX/CMakeLists.txt | 26 +
lib/Target/PTX/Makefile | 26 +
lib/Target/PTX/PTX.h | 49 +
lib/Target/PTX/PTX.td | 54 +
lib/Target/PTX/PTXAsmPrinter.cpp | 347 +
lib/Target/PTX/PTXFrameLowering.cpp | 24 +
lib/Target/PTX/PTXFrameLowering.h | 43 +
lib/Target/PTX/PTXISelDAGToDAG.cpp | 151 +
lib/Target/PTX/PTXISelLowering.cpp | 210 +
lib/Target/PTX/PTXISelLowering.h | 67 +
lib/Target/PTX/PTXInstrFormats.td | 24 +
lib/Target/PTX/PTXInstrInfo.cpp | 87 +
lib/Target/PTX/PTXInstrInfo.h | 75 +
lib/Target/PTX/PTXInstrInfo.td | 257 +
lib/Target/PTX/PTXMCAsmInfo.cpp | 30 +
lib/Target/PTX/PTXMCAsmInfo.h | 28 +
lib/Target/PTX/PTXMCAsmStreamer.cpp | 542 +
lib/Target/PTX/PTXMFInfoExtract.cpp | 96 +
lib/Target/PTX/PTXMachineFunctionInfo.h | 79 +
lib/Target/PTX/PTXRegisterInfo.cpp | 19 +
lib/Target/PTX/PTXRegisterInfo.h | 63 +
lib/Target/PTX/PTXRegisterInfo.td | 102 +
lib/Target/PTX/PTXSubtarget.cpp | 23 +
lib/Target/PTX/PTXSubtarget.h | 32 +
lib/Target/PTX/PTXTargetMachine.cpp | 60 +
lib/Target/PTX/PTXTargetMachine.h | 60 +
lib/Target/PTX/TargetInfo/CMakeLists.txt | 7 +
lib/Target/PTX/TargetInfo/Makefile | 15 +
lib/Target/PTX/TargetInfo/PTXTargetInfo.cpp | 21 +
lib/Target/PowerPC/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/PowerPC/AsmPrinter/Makefile | 15 -
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 922 -
lib/Target/PowerPC/CMakeLists.txt | 9 +-
lib/Target/PowerPC/InstPrinter/CMakeLists.txt | 6 +
lib/Target/PowerPC/InstPrinter/Makefile | 16 +
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 292 +
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h | 69 +
lib/Target/PowerPC/Makefile | 5 +-
lib/Target/PowerPC/PPC.h | 62 +-
lib/Target/PowerPC/PPC.td | 6 +
lib/Target/PowerPC/PPCAsmBackend.cpp | 119 +
lib/Target/PowerPC/PPCAsmPrinter.cpp | 696 +
lib/Target/PowerPC/PPCCodeEmitter.cpp | 253 +-
lib/Target/PowerPC/PPCFixupKinds.h | 45 +
lib/Target/PowerPC/PPCFrameInfo.h | 300 -
lib/Target/PowerPC/PPCFrameLowering.cpp | 971 +
lib/Target/PowerPC/PPCFrameLowering.h | 322 +
lib/Target/PowerPC/PPCHazardRecognizers.cpp | 56 +-
lib/Target/PowerPC/PPCHazardRecognizers.h | 20 +-
lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 210 +-
lib/Target/PowerPC/PPCISelLowering.cpp | 731 +-
lib/Target/PowerPC/PPCISelLowering.h | 7 +-
lib/Target/PowerPC/PPCInstr64Bit.td | 57 +-
lib/Target/PowerPC/PPCInstrFormats.td | 39 +-
lib/Target/PowerPC/PPCInstrInfo.cpp | 81 +-
lib/Target/PowerPC/PPCInstrInfo.h | 26 +-
lib/Target/PowerPC/PPCInstrInfo.td | 177 +-
lib/Target/PowerPC/PPCJITInfo.cpp | 2 +-
lib/Target/PowerPC/PPCMCAsmInfo.cpp | 5 +-
lib/Target/PowerPC/PPCMCCodeEmitter.cpp | 195 +
lib/Target/PowerPC/PPCMCInstLower.cpp | 172 +
lib/Target/PowerPC/PPCRegisterInfo.cpp | 975 +-
lib/Target/PowerPC/PPCRegisterInfo.h | 19 -
lib/Target/PowerPC/PPCRegisterInfo.td | 13 +-
lib/Target/PowerPC/PPCScheduleG3.td | 2 +-
lib/Target/PowerPC/PPCScheduleG4.td | 2 +-
lib/Target/PowerPC/PPCScheduleG4Plus.td | 2 +-
lib/Target/PowerPC/PPCScheduleG5.td | 2 +-
lib/Target/PowerPC/PPCSubtarget.cpp | 2 +-
lib/Target/PowerPC/PPCTargetMachine.cpp | 31 +-
lib/Target/PowerPC/PPCTargetMachine.h | 18 +-
lib/Target/PowerPC/README.txt | 29 +-
lib/Target/README.txt | 979 +-
lib/Target/Sparc/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/Sparc/AsmPrinter/Makefile | 15 -
lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | 249 -
lib/Target/Sparc/CMakeLists.txt | 4 +-
lib/Target/Sparc/DelaySlotFiller.cpp | 230 +-
lib/Target/Sparc/Makefile | 2 +-
lib/Target/Sparc/SparcAsmPrinter.cpp | 251 +
lib/Target/Sparc/SparcCallingConv.td | 10 +-
lib/Target/Sparc/SparcFrameLowering.cpp | 80 +
lib/Target/Sparc/SparcFrameLowering.h | 41 +
lib/Target/Sparc/SparcISelDAGToDAG.cpp | 18 +-
lib/Target/Sparc/SparcISelLowering.cpp | 721 +-
lib/Target/Sparc/SparcISelLowering.h | 3 +-
lib/Target/Sparc/SparcInstrInfo.cpp | 195 +-
lib/Target/Sparc/SparcInstrInfo.h | 11 +-
lib/Target/Sparc/SparcInstrInfo.td | 221 +-
lib/Target/Sparc/SparcMachineFunctionInfo.h | 11 +-
lib/Target/Sparc/SparcRegisterInfo.cpp | 53 -
lib/Target/Sparc/SparcRegisterInfo.h | 9 +-
lib/Target/Sparc/SparcRegisterInfo.td | 3 +
lib/Target/Sparc/SparcTargetMachine.cpp | 6 +-
lib/Target/Sparc/SparcTargetMachine.h | 15 +-
lib/Target/SubtargetFeature.cpp | 3 +-
lib/Target/SystemZ/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/SystemZ/AsmPrinter/Makefile | 15 -
.../SystemZ/AsmPrinter/SystemZAsmPrinter.cpp | 217 -
lib/Target/SystemZ/CMakeLists.txt | 4 +-
lib/Target/SystemZ/Makefile | 2 +-
lib/Target/SystemZ/SystemZAsmPrinter.cpp | 223 +
lib/Target/SystemZ/SystemZFrameLowering.cpp | 386 +
lib/Target/SystemZ/SystemZFrameLowering.h | 57 +
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp | 31 +-
lib/Target/SystemZ/SystemZISelLowering.cpp | 18 +-
lib/Target/SystemZ/SystemZInstrBuilder.h | 6 +-
lib/Target/SystemZ/SystemZInstrInfo.cpp | 150 -
lib/Target/SystemZ/SystemZInstrInfo.h | 10 -
lib/Target/SystemZ/SystemZInstrInfo.td | 56 +-
lib/Target/SystemZ/SystemZMCAsmInfo.cpp | 5 +-
lib/Target/SystemZ/SystemZOperands.td | 15 +
lib/Target/SystemZ/SystemZRegisterInfo.cpp | 214 +-
lib/Target/SystemZ/SystemZRegisterInfo.h | 12 -
lib/Target/SystemZ/SystemZRegisterInfo.td | 48 +-
lib/Target/SystemZ/SystemZTargetMachine.cpp | 2 +-
lib/Target/SystemZ/SystemZTargetMachine.h | 12 +-
lib/Target/Target.cpp | 15 +-
lib/Target/TargetAsmInfo.cpp | 27 +
lib/Target/TargetData.cpp | 58 +-
lib/Target/TargetELFWriterInfo.cpp | 5 +-
lib/Target/TargetFrameInfo.cpp | 19 -
lib/Target/TargetFrameLowering.cpp | 53 +
lib/Target/TargetInstrInfo.cpp | 93 +-
lib/Target/TargetLibraryInfo.cpp | 55 +
lib/Target/TargetLoweringObjectFile.cpp | 8 +-
lib/Target/TargetMachine.cpp | 4 +-
lib/Target/TargetRegisterInfo.cpp | 43 +-
lib/Target/X86/AsmParser/X86AsmLexer.cpp | 9 +-
lib/Target/X86/AsmParser/X86AsmParser.cpp | 437 +-
lib/Target/X86/AsmPrinter/CMakeLists.txt | 8 -
lib/Target/X86/AsmPrinter/Makefile | 15 -
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp | 129 -
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.h | 81 -
lib/Target/X86/AsmPrinter/X86InstComments.cpp | 232 -
lib/Target/X86/AsmPrinter/X86InstComments.h | 25 -
lib/Target/X86/AsmPrinter/X86IntelInstPrinter.cpp | 140 -
lib/Target/X86/AsmPrinter/X86IntelInstPrinter.h | 95 -
lib/Target/X86/CMakeLists.txt | 14 +-
lib/Target/X86/Disassembler/CMakeLists.txt | 2 +-
lib/Target/X86/Disassembler/X86Disassembler.cpp | 15 +-
lib/Target/X86/Disassembler/X86Disassembler.h | 2 +-
.../X86/Disassembler/X86DisassemblerDecoder.c | 31 +-
.../X86/Disassembler/X86DisassemblerDecoder.h | 4 +-
.../Disassembler/X86DisassemblerDecoderCommon.h | 3 +-
lib/Target/X86/InstPrinter/CMakeLists.txt | 8 +
lib/Target/X86/InstPrinter/Makefile | 15 +
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | 127 +
lib/Target/X86/InstPrinter/X86ATTInstPrinter.h | 81 +
lib/Target/X86/InstPrinter/X86InstComments.cpp | 232 +
lib/Target/X86/InstPrinter/X86InstComments.h | 25 +
lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp | 139 +
lib/Target/X86/InstPrinter/X86IntelInstPrinter.h | 95 +
lib/Target/X86/Makefile | 2 +-
lib/Target/X86/README-SSE.txt | 50 +-
lib/Target/X86/README-X86-64.txt | 44 -
lib/Target/X86/README.txt | 335 +-
lib/Target/X86/Utils/CMakeLists.txt | 6 +
lib/Target/X86/Utils/Makefile | 15 +
lib/Target/X86/Utils/X86ShuffleDecode.cpp | 148 +
lib/Target/X86/Utils/X86ShuffleDecode.h | 69 +
lib/Target/X86/X86.h | 10 +
lib/Target/X86/X86.td | 28 +-
lib/Target/X86/X86AsmBackend.cpp | 270 +-
lib/Target/X86/X86AsmPrinter.cpp | 97 +-
lib/Target/X86/X86AsmPrinter.h | 2 -
lib/Target/X86/X86CallingConv.td | 67 +-
lib/Target/X86/X86CodeEmitter.cpp | 21 +-
lib/Target/X86/X86ELFWriterInfo.cpp | 55 +-
lib/Target/X86/X86ELFWriterInfo.h | 19 +-
lib/Target/X86/X86FastISel.cpp | 300 +-
lib/Target/X86/X86FixupKinds.h | 16 +-
lib/Target/X86/X86FloatingPoint.cpp | 129 +-
lib/Target/X86/X86FrameLowering.cpp | 994 +
lib/Target/X86/X86FrameLowering.h | 65 +
lib/Target/X86/X86ISelDAGToDAG.cpp | 200 +-
lib/Target/X86/X86ISelLowering.cpp | 3194 ++-
lib/Target/X86/X86ISelLowering.h | 243 +-
lib/Target/X86/X86Instr3DNow.td | 77 +
lib/Target/X86/X86Instr64bit.td | 2250 ---
lib/Target/X86/X86InstrArithmetic.td | 1125 ++
lib/Target/X86/X86InstrBuilder.h | 37 +-
lib/Target/X86/X86InstrCMovSetCC.td | 104 +
lib/Target/X86/X86InstrCompiler.td | 1626 ++
lib/Target/X86/X86InstrControl.td | 294 +
lib/Target/X86/X86InstrExtension.td | 172 +
lib/Target/X86/X86InstrFPStack.td | 82 +-
lib/Target/X86/X86InstrFormats.td | 24 +-
lib/Target/X86/X86InstrFragmentsSIMD.td | 107 +-
lib/Target/X86/X86InstrInfo.cpp | 448 +-
lib/Target/X86/X86InstrInfo.h | 84 +-
lib/Target/X86/X86InstrInfo.td | 4842 +----
lib/Target/X86/X86InstrMMX.td | 607 +-
lib/Target/X86/X86InstrSSE.td | 571 +-
lib/Target/X86/X86InstrShiftRotate.td | 746 +
lib/Target/X86/X86InstrSystem.td | 390 +
lib/Target/X86/X86InstrVMX.td | 54 +
lib/Target/X86/X86JITInfo.cpp | 16 +-
lib/Target/X86/X86MCAsmInfo.cpp | 15 +-
lib/Target/X86/X86MCCodeEmitter.cpp | 149 +-
lib/Target/X86/X86MCInstLower.cpp | 117 +-
lib/Target/X86/X86MCInstLower.h | 2 -
lib/Target/X86/X86MachObjectWriter.cpp | 32 +
lib/Target/X86/X86RegisterInfo.cpp | 955 +-
lib/Target/X86/X86RegisterInfo.h | 17 +-
lib/Target/X86/X86RegisterInfo.td | 100 +-
lib/Target/X86/X86SelectionDAGInfo.cpp | 52 +-
lib/Target/X86/X86SelectionDAGInfo.h | 9 +-
lib/Target/X86/X86ShuffleDecode.h | 155 -
lib/Target/X86/X86Subtarget.cpp | 18 +-
lib/Target/X86/X86Subtarget.h | 36 +-
lib/Target/X86/X86TargetMachine.cpp | 55 +-
lib/Target/X86/X86TargetMachine.h | 75 +-
lib/Target/XCore/AsmPrinter/CMakeLists.txt | 6 -
lib/Target/XCore/AsmPrinter/Makefile | 16 -
lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 280 -
lib/Target/XCore/CMakeLists.txt | 5 +-
lib/Target/XCore/Makefile | 2 +-
lib/Target/XCore/TargetInfo/CMakeLists.txt | 2 +-
lib/Target/XCore/XCoreAsmPrinter.cpp | 280 +
lib/Target/XCore/XCoreCallingConv.td | 3 +
lib/Target/XCore/XCoreFrameInfo.cpp | 27 -
lib/Target/XCore/XCoreFrameInfo.h | 34 -
lib/Target/XCore/XCoreFrameLowering.cpp | 387 +
lib/Target/XCore/XCoreFrameLowering.h | 59 +
lib/Target/XCore/XCoreISelDAGToDAG.cpp | 21 +-
lib/Target/XCore/XCoreISelLowering.cpp | 172 +-
lib/Target/XCore/XCoreISelLowering.h | 1 +
lib/Target/XCore/XCoreInstrInfo.cpp | 66 +-
lib/Target/XCore/XCoreInstrInfo.h | 9 -
lib/Target/XCore/XCoreInstrInfo.td | 76 +-
lib/Target/XCore/XCoreRegisterInfo.cpp | 284 +-
lib/Target/XCore/XCoreRegisterInfo.h | 11 -
lib/Target/XCore/XCoreRegisterInfo.td | 4 +-
lib/Target/XCore/XCoreTargetMachine.cpp | 2 +-
lib/Target/XCore/XCoreTargetMachine.h | 8 +-
lib/Target/XCore/XCoreTargetObjectFile.cpp | 49 +-
lib/Transforms/CMakeLists.txt | 6 +
lib/Transforms/Hello/Hello.cpp | 7 +-
lib/Transforms/IPO/ArgumentPromotion.cpp | 117 +-
lib/Transforms/IPO/CMakeLists.txt | 3 -
lib/Transforms/IPO/ConstantMerge.cpp | 86 +-
lib/Transforms/IPO/DeadArgumentElimination.cpp | 76 +-
lib/Transforms/IPO/DeadTypeElimination.cpp | 9 +-
lib/Transforms/IPO/ExtractGV.cpp | 30 +-
lib/Transforms/IPO/FunctionAttrs.cpp | 141 +-
lib/Transforms/IPO/GlobalDCE.cpp | 6 +-
lib/Transforms/IPO/GlobalOpt.cpp | 830 +-
lib/Transforms/IPO/IPConstantPropagation.cpp | 6 +-
lib/Transforms/IPO/IPO.cpp | 38 +-
lib/Transforms/IPO/InlineAlways.cpp | 11 +-
lib/Transforms/IPO/InlineSimple.cpp | 15 +-
lib/Transforms/IPO/Inliner.cpp | 56 +-
lib/Transforms/IPO/Internalize.cpp | 4 +-
lib/Transforms/IPO/LoopExtractor.cpp | 17 +-
lib/Transforms/IPO/LowerSetJmp.cpp | 6 +-
lib/Transforms/IPO/MergeFunctions.cpp | 646 +-
lib/Transforms/IPO/PartialInlining.cpp | 8 +-
lib/Transforms/IPO/PartialSpecialization.cpp | 216 -
lib/Transforms/IPO/PruneEH.cpp | 11 +-
lib/Transforms/IPO/StripDeadPrototypes.cpp | 6 +-
lib/Transforms/IPO/StripSymbols.cpp | 24 +-
lib/Transforms/IPO/StructRetPromotion.cpp | 11 +-
lib/Transforms/InstCombine/CMakeLists.txt | 2 -
lib/Transforms/InstCombine/InstCombine.h | 28 +-
lib/Transforms/InstCombine/InstCombineAddSub.cpp | 350 +-
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 597 +-
lib/Transforms/InstCombine/InstCombineCalls.cpp | 288 +-
lib/Transforms/InstCombine/InstCombineCasts.cpp | 35 +-
lib/Transforms/InstCombine/InstCombineCompares.cpp | 772 +-
.../InstCombine/InstCombineLoadStoreAlloca.cpp | 11 +-
.../InstCombine/InstCombineMulDivRem.cpp | 315 +-
lib/Transforms/InstCombine/InstCombinePHI.cpp | 79 +-
lib/Transforms/InstCombine/InstCombineSelect.cpp | 294 +-
lib/Transforms/InstCombine/InstCombineShifts.cpp | 116 +-
.../InstCombine/InstCombineSimplifyDemanded.cpp | 100 +-
.../InstCombine/InstCombineVectorOps.cpp | 272 +-
.../InstCombine/InstructionCombining.cpp | 604 +-
lib/Transforms/Instrumentation/CMakeLists.txt | 2 +
lib/Transforms/Instrumentation/EdgeProfiling.cpp | 9 +-
lib/Transforms/Instrumentation/Instrumentation.cpp | 32 +
.../Instrumentation/OptimalEdgeProfiling.cpp | 17 +-
lib/Transforms/Instrumentation/PathProfiling.cpp | 1423 ++
lib/Transforms/Instrumentation/ProfilingUtils.cpp | 22 +-
lib/Transforms/Instrumentation/ProfilingUtils.h | 7 +-
lib/Transforms/Scalar/ADCE.cpp | 6 +-
lib/Transforms/Scalar/BasicBlockPlacement.cpp | 11 +-
lib/Transforms/Scalar/CMakeLists.txt | 6 +-
lib/Transforms/Scalar/CodeGenPrepare.cpp | 369 +-
lib/Transforms/Scalar/ConstantProp.cpp | 6 +-
.../Scalar/CorrelatedValuePropagation.cpp | 86 +-
lib/Transforms/Scalar/DCE.cpp | 12 +-
lib/Transforms/Scalar/DeadStoreElimination.cpp | 847 +-
lib/Transforms/Scalar/EarlyCSE.cpp | 470 +
lib/Transforms/Scalar/GEPSplitter.cpp | 6 +-
lib/Transforms/Scalar/GVN.cpp | 813 +-
lib/Transforms/Scalar/IndVarSimplify.cpp | 49 +-
lib/Transforms/Scalar/JumpThreading.cpp | 998 +-
lib/Transforms/Scalar/LICM.cpp | 324 +-
lib/Transforms/Scalar/LoopDeletion.cpp | 26 +-
lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 594 +
lib/Transforms/Scalar/LoopIndexSplit.cpp | 1270 --
lib/Transforms/Scalar/LoopInstSimplify.cpp | 170 +
lib/Transforms/Scalar/LoopRotation.cpp | 491 +-
lib/Transforms/Scalar/LoopStrengthReduce.cpp | 200 +-
lib/Transforms/Scalar/LoopUnrollPass.cpp | 57 +-
lib/Transforms/Scalar/LoopUnswitch.cpp | 60 +-
lib/Transforms/Scalar/LowerAtomic.cpp | 146 +-
lib/Transforms/Scalar/MemCpyOptimizer.cpp | 729 +-
lib/Transforms/Scalar/Reassociate.cpp | 38 +-
lib/Transforms/Scalar/Reg2Mem.cpp | 12 +-
lib/Transforms/Scalar/SCCP.cpp | 39 +-
lib/Transforms/Scalar/Scalar.cpp | 55 +-
lib/Transforms/Scalar/ScalarReplAggregates.cpp | 1155 +-
lib/Transforms/Scalar/SimplifyCFGPass.cpp | 6 +-
lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp | 9 +-
lib/Transforms/Scalar/SimplifyLibCalls.cpp | 342 +-
lib/Transforms/Scalar/Sink.cpp | 20 +-
lib/Transforms/Scalar/TailDuplication.cpp | 18 +-
lib/Transforms/Scalar/TailRecursionElimination.cpp | 139 +-
lib/Transforms/Utils/AddrModeMatcher.cpp | 28 +-
lib/Transforms/Utils/BasicBlockUtils.cpp | 157 +-
lib/Transforms/Utils/BreakCriticalEdges.cpp | 56 +-
lib/Transforms/Utils/BuildLibCalls.cpp | 54 +-
lib/Transforms/Utils/CMakeLists.txt | 3 +-
lib/Transforms/Utils/CloneFunction.cpp | 40 +-
lib/Transforms/Utils/CloneLoop.cpp | 45 +-
lib/Transforms/Utils/CloneModule.cpp | 8 +-
lib/Transforms/Utils/CodeExtractor.cpp | 4 +-
lib/Transforms/Utils/DemoteRegToStack.cpp | 2 +-
lib/Transforms/Utils/InlineFunction.cpp | 173 +-
lib/Transforms/Utils/InstructionNamer.cpp | 9 +-
lib/Transforms/Utils/LCSSA.cpp | 12 +-
lib/Transforms/Utils/Local.cpp | 148 +-
lib/Transforms/Utils/LoopSimplify.cpp | 69 +-
lib/Transforms/Utils/LoopUnroll.cpp | 38 +-
lib/Transforms/Utils/LowerInvoke.cpp | 27 +-
lib/Transforms/Utils/LowerSwitch.cpp | 9 +-
lib/Transforms/Utils/Mem2Reg.cpp | 17 +-
lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 209 +-
lib/Transforms/Utils/SSAUpdater.cpp | 171 +-
lib/Transforms/Utils/SimplifyCFG.cpp | 2003 +-
lib/Transforms/Utils/SimplifyInstructions.cpp | 94 +
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 2 +-
lib/Transforms/Utils/Utils.cpp | 37 +
lib/Transforms/Utils/ValueMapper.cpp | 178 +-
lib/VMCore/AsmWriter.cpp | 40 +-
lib/VMCore/Attributes.cpp | 33 +-
lib/VMCore/AutoUpgrade.cpp | 569 +-
lib/VMCore/BasicBlock.cpp | 9 +-
lib/VMCore/CMakeLists.txt | 3 +
lib/VMCore/ConstantFold.cpp | 159 +-
lib/VMCore/ConstantFold.h | 2 +
lib/VMCore/Constants.cpp | 382 +-
lib/VMCore/ConstantsContext.h | 30 +-
lib/VMCore/Core.cpp | 234 +-
lib/VMCore/Dominators.cpp | 275 +-
lib/VMCore/Function.cpp | 21 +-
lib/VMCore/Globals.cpp | 49 -
lib/VMCore/IRBuilder.cpp | 81 +
lib/VMCore/InlineAsm.cpp | 79 +-
lib/VMCore/Instruction.cpp | 36 +-
lib/VMCore/Instructions.cpp | 212 +-
lib/VMCore/LLVMContext.cpp | 42 +-
lib/VMCore/LLVMContextImpl.cpp | 13 +-
lib/VMCore/LLVMContextImpl.h | 8 +-
lib/VMCore/LeakDetector.cpp | 4 +-
lib/VMCore/Metadata.cpp | 13 +-
lib/VMCore/Module.cpp | 2 +
lib/VMCore/Pass.cpp | 1 -
lib/VMCore/PassManager.cpp | 128 +-
lib/VMCore/PassRegistry.cpp | 173 +-
lib/VMCore/PrintModulePass.cpp | 4 +-
lib/VMCore/Type.cpp | 30 +-
lib/VMCore/TypesContext.h | 2 +-
lib/VMCore/Use.cpp | 122 +-
lib/VMCore/User.cpp | 81 +
lib/VMCore/Value.cpp | 97 +-
lib/VMCore/ValueTypes.cpp | 5 +-
lib/VMCore/Verifier.cpp | 32 +-
projects/Makefile | 5 +-
projects/sample/autoconf/AutoRegen.sh | 8 +-
projects/sample/autoconf/configure.ac | 10 +-
projects/sample/configure | 2371 ++-
projects/sample/lib/sample/sample.c | 2 +-
runtime/libprofile/CommonProfiling.c | 53 +-
runtime/libprofile/PathProfiling.c | 266 +
runtime/libprofile/Profiling.h | 11 +-
runtime/libprofile/libprofile.exports | 3 +
test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll | 2 +-
test/Analysis/BasicAA/2003-04-22-GEPProblem.ll | 2 +-
test/Analysis/BasicAA/2003-05-21-GEP-Problem.ll | 2 +-
test/Analysis/BasicAA/2003-09-19-LocalArgument.ll | 2 +-
test/Analysis/BasicAA/2003-11-04-SimpleCases.ll | 2 +-
test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll | 2 +-
test/Analysis/BasicAA/2004-07-28-MustAliasbug.ll | 2 +-
test/Analysis/BasicAA/2004-12-08-BasicAACrash.ll | 2 +-
test/Analysis/BasicAA/2004-12-08-BasicAACrash2.ll | 2 +-
.../BasicAA/2006-03-03-BadArraySubscript.ll | 2 +-
.../BasicAA/2006-11-03-BasicAAVectorCrash.ll | 2 +-
test/Analysis/BasicAA/2007-11-05-SizeCrash.ll | 2 +-
.../BasicAA/2007-12-08-OutOfBoundsCrash.ll | 2 +-
test/Analysis/BasicAA/2008-06-02-GEPTailCrash.ll | 2 +-
test/Analysis/BasicAA/2008-11-23-NoaliasRet.ll | 2 +-
test/Analysis/BasicAA/2009-10-13-AtomicModRef.ll | 2 +-
.../Analysis/BasicAA/2009-10-13-GEP-BaseNoAlias.ll | 4 +-
.../BasicAA/2010-09-15-GEP-SignedArithmetic.ll | 15 +
test/Analysis/BasicAA/args-rets-allocas-loads.ll | 2 +-
test/Analysis/BasicAA/byval.ll | 2 +-
test/Analysis/BasicAA/constant-over-index.ll | 2 +-
test/Analysis/BasicAA/empty.ll | 2 +-
test/Analysis/BasicAA/full-store-partial-alias.ll | 33 +
test/Analysis/BasicAA/gep-alias.ll | 2 +-
test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll | 2 +-
test/Analysis/BasicAA/global-size.ll | 36 +-
test/Analysis/BasicAA/modref.ll | 10 +-
test/Analysis/BasicAA/phi-aa.ll | 2 +-
test/Analysis/BasicAA/phi-and-select.ll | 2 +-
test/Analysis/BasicAA/unreachable-block.ll | 2 +-
test/Analysis/GlobalsModRef/aliastest.ll | 2 +-
test/Analysis/GlobalsModRef/chaining-analysis.ll | 2 +-
test/Analysis/GlobalsModRef/indirect-global.ll | 2 +-
test/Analysis/GlobalsModRef/modreftest.ll | 2 +-
test/Analysis/LoopDependenceAnalysis/alias.ll | 2 +-
test/Analysis/LoopDependenceAnalysis/siv-strong.ll | 2 +-
.../LoopDependenceAnalysis/siv-weak-crossing.ll | 2 +-
.../LoopDependenceAnalysis/siv-weak-zero.ll | 2 +-
test/Analysis/LoopDependenceAnalysis/ziv.ll | 2 +-
test/Analysis/PointerTracking/dg.exp | 3 -
test/Analysis/PointerTracking/sizes.ll | 86 -
test/Analysis/Profiling/profiling-tool-chain.ll | 4 +-
.../2010-09-03-RequiredTransitive.ll | 24 +
test/Analysis/ScalarEvolution/fold.ll | 62 +
test/Analysis/ScalarEvolution/nsw.ll | 70 +-
test/Analysis/ScalarEvolution/scev-aa.ll | 7 +-
test/Analysis/TypeBasedAliasAnalysis/aliastest.ll | 62 +
.../TypeBasedAliasAnalysis/argument-promotion.ll | 31 +
test/Analysis/TypeBasedAliasAnalysis/dg.exp | 3 +
test/Analysis/TypeBasedAliasAnalysis/dse.ll | 66 +
.../TypeBasedAliasAnalysis/functionattrs.ll | 81 +
.../gvn-nonlocal-type-mismatch.ll | 91 +
test/Analysis/TypeBasedAliasAnalysis/licm.ll | 61 +
test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll | 23 +
test/Analysis/TypeBasedAliasAnalysis/precedence.ll | 46 +
test/Analysis/TypeBasedAliasAnalysis/sink.ll | 20 +
test/Archive/GNU.toc | 4 -
test/Archive/MacOSX.toc | 5 -
test/Archive/SVR4.toc | 4 -
test/Archive/extract.ll | 8 +-
test/Archive/toc_GNU.ll | 7 +-
test/Archive/toc_MacOSX.ll | 8 +-
test/Archive/toc_SVR4.ll | 7 +-
test/Archive/toc_xpg4.ll | 7 +-
test/Archive/xpg4.toc | 4 -
test/Assembler/2003-05-21-MalformedShiftCrash.ll | 2 +-
test/Assembler/AutoUpgradeIntrinsics.ll | 2 +-
test/Assembler/AutoUpgradeMMXIntrinsics.ll | 223 +
test/Assembler/extractvalue-invalid-idx.ll | 8 +
test/Assembler/flags.ll | 64 +
test/Assembler/insertvalue-invalid-idx.ll | 7 +
test/Assembler/unnamed-addr.ll | 18 +
test/Assembler/x86mmx.ll | 8 +
test/Bindings/Ocaml/analysis.ml | 1 +
test/Bindings/Ocaml/bitreader.ml | 1 +
test/Bindings/Ocaml/bitwriter.ml | 1 +
test/Bindings/Ocaml/executionengine.ml | 1 +
test/Bindings/Ocaml/ext_exc.ml | 17 +
test/Bindings/Ocaml/scalar_opts.ml | 4 +-
test/Bindings/Ocaml/target.ml | 1 +
test/Bindings/Ocaml/vmcore.ml | 1 +
test/Bitcode/null-type.ll | 2 +
test/Bitcode/null-type.ll.bc | Bin 0 -> 312 bytes
test/Bitcode/ssse3_palignr.ll.bc | Bin 1280 -> 1504 bytes
test/BugPoint/crash-narrowfunctiontest.ll | 5 +-
test/BugPoint/metadata.ll | 4 +-
test/BugPoint/remove_arguments_test.ll | 5 +-
test/CMakeLists.txt | 57 +-
test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll | 5 +-
test/CodeGen/ARM/2009-08-21-PostRAKill4.ll | 26 -
test/CodeGen/ARM/2009-09-01-PostRAProlog.ll | 106 -
test/CodeGen/ARM/2009-09-28-LdStOptiBug.ll | 2 +-
test/CodeGen/ARM/2009-11-02-NegativeLane.ll | 3 +-
test/CodeGen/ARM/2010-03-18-ldm-rtrn.ll | 4 +-
.../CodeGen/ARM/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll | 17 -
test/CodeGen/ARM/2010-06-28-DAGCombineUndef.ll | 10 -
.../ARM/2010-06-29-PartialRedefFastAlloc.ll | 6 +-
test/CodeGen/ARM/2010-09-21-OptCmpBug.ll | 84 +
test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll | 13 +
test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll | 37 +
test/CodeGen/ARM/2010-10-25-ifcvt-ldm.ll | 31 +
test/CodeGen/ARM/2010-11-15-SpillEarlyClobber.ll | 85 +
test/CodeGen/ARM/2010-11-29-PrologueBug.ll | 28 +
test/CodeGen/ARM/2010-11-30-reloc-movt.ll | 42 +
test/CodeGen/ARM/2010-12-07-PEIBug.ll | 40 +
test/CodeGen/ARM/2010-12-08-tpsoft.ll | 52 +
test/CodeGen/ARM/2010-12-13-reloc-pic.ll | 100 +
test/CodeGen/ARM/2010-12-15-elf-lcomm.ll | 35 +
test/CodeGen/ARM/2010-12-17-LocalStackSlotCrash.ll | 15 +
test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll | 127 +
test/CodeGen/ARM/2011-02-04-AntidepMultidef.ll | 128 +
test/CodeGen/ARM/2011-02-07-AntidepClobber.ll | 89 +
test/CodeGen/ARM/align.ll | 4 +-
test/CodeGen/ARM/arguments.ll | 4 +-
test/CodeGen/ARM/arm-and-tst-peephole.ll | 112 +
test/CodeGen/ARM/atomic-cmp.ll | 17 +
test/CodeGen/ARM/bfi.ll | 32 +-
test/CodeGen/ARM/bits.ll | 17 +-
test/CodeGen/ARM/bswap-inline-asm.ll | 9 +
test/CodeGen/ARM/bx_fold.ll | 5 +-
test/CodeGen/ARM/call-tc.ll | 96 +-
test/CodeGen/ARM/clz.ll | 6 +-
test/CodeGen/ARM/code-placement.ll | 54 +-
test/CodeGen/ARM/constants.ll | 13 +-
test/CodeGen/ARM/crash.ll | 29 +
test/CodeGen/ARM/div.ll | 2 +-
test/CodeGen/ARM/fabss.ll | 2 +-
test/CodeGen/ARM/fadds.ll | 2 +-
test/CodeGen/ARM/fast-isel-crash.ll | 21 +
test/CodeGen/ARM/fast-isel-static.ll | 30 +
test/CodeGen/ARM/fast-isel.ll | 31 +-
test/CodeGen/ARM/fcopysign.ll | 53 +-
test/CodeGen/ARM/fdivs.ll | 2 +-
test/CodeGen/ARM/fmacs.ll | 55 +-
test/CodeGen/ARM/fmscs.ll | 39 +-
test/CodeGen/ARM/fmuls.ll | 2 +-
test/CodeGen/ARM/fnegs.ll | 20 +-
test/CodeGen/ARM/fnmacs.ll | 31 +-
test/CodeGen/ARM/fnmscs.ll | 64 +-
test/CodeGen/ARM/fp.ll | 2 +-
test/CodeGen/ARM/fpcmp-opt.ll | 1 +
test/CodeGen/ARM/fpcmp_ueq.ll | 10 +-
test/CodeGen/ARM/fpconsts.ll | 8 +-
test/CodeGen/ARM/fpconv.ll | 2 +-
test/CodeGen/ARM/global-merge.ll | 23 +
test/CodeGen/ARM/hello.ll | 2 +-
test/CodeGen/ARM/ifcvt10.ll | 43 +
test/CodeGen/ARM/ifcvt11.ll | 59 +
test/CodeGen/ARM/ifcvt6.ll | 7 +-
test/CodeGen/ARM/ifcvt7.ll | 10 +-
test/CodeGen/ARM/ifcvt8.ll | 4 +-
test/CodeGen/ARM/inlineasm3.ll | 4 +-
test/CodeGen/ARM/ispositive.ll | 2 +-
test/CodeGen/ARM/ldm.ll | 11 +-
test/CodeGen/ARM/ldst-f32-2-i32.ll | 28 +
test/CodeGen/ARM/load-global.ll | 50 +
test/CodeGen/ARM/long.ll | 8 +-
test/CodeGen/ARM/long_shift.ll | 10 +-
test/CodeGen/ARM/lsr-code-insertion.ll | 2 +-
test/CodeGen/ARM/lsr-on-unrolled-loops.ll | 23 +-
test/CodeGen/ARM/machine-licm.ll | 66 +
test/CodeGen/ARM/mul_const.ll | 2 +-
test/CodeGen/ARM/mult-alt-generic-arm.ll | 323 +
test/CodeGen/ARM/neon_div.ll | 48 +
test/CodeGen/ARM/pack.ll | 69 +-
test/CodeGen/ARM/phi.ll | 23 +
test/CodeGen/ARM/prefetch.ll | 61 +
test/CodeGen/ARM/reg_sequence.ll | 39 +-
test/CodeGen/ARM/remat.ll | 65 -
test/CodeGen/ARM/rev.ll | 41 +-
test/CodeGen/ARM/select-imm.ll | 58 +-
test/CodeGen/ARM/select.ll | 4 +-
test/CodeGen/ARM/select_xform.ll | 63 +-
test/CodeGen/ARM/shifter_operand.ll | 72 +-
test/CodeGen/ARM/spill-q.ll | 36 +-
test/CodeGen/ARM/stm.ll | 5 +-
test/CodeGen/ARM/str_pre-2.ll | 5 +-
test/CodeGen/ARM/tail-opts.ll | 9 +-
test/CodeGen/ARM/thumb1-varalloc.ll | 40 +
test/CodeGen/ARM/umulo-32.ll | 14 +
test/CodeGen/ARM/unaligned_load_store.ll | 3 +-
test/CodeGen/ARM/vbits.ll | 42 +-
test/CodeGen/ARM/vceq.ll | 11 +
test/CodeGen/ARM/vcge.ll | 41 +
test/CodeGen/ARM/vcgt.ll | 28 +-
test/CodeGen/ARM/vcombine.ll | 38 +-
test/CodeGen/ARM/vcvt.ll | 20 +-
test/CodeGen/ARM/vdup.ll | 18 -
test/CodeGen/ARM/vector-DAGCombine.ll | 107 +
test/CodeGen/ARM/vext.ll | 59 +
test/CodeGen/ARM/vget_lane.ll | 37 +-
test/CodeGen/ARM/vld1.ll | 50 +-
test/CodeGen/ARM/vld2.ll | 59 +-
test/CodeGen/ARM/vld3.ll | 48 +-
test/CodeGen/ARM/vld4.ll | 62 +-
test/CodeGen/ARM/vlddup.ll | 212 +
test/CodeGen/ARM/vldlane.ll | 204 +-
test/CodeGen/ARM/vmov.ll | 70 +-
test/CodeGen/ARM/vmul.ll | 72 +
test/CodeGen/ARM/vrev.ll | 18 +
test/CodeGen/ARM/vst1.ll | 41 +-
test/CodeGen/ARM/vst2.ll | 55 +-
test/CodeGen/ARM/vst3.ll | 47 +-
test/CodeGen/ARM/vst4.ll | 58 +-
test/CodeGen/ARM/vstlane.ll | 161 +-
.../Alpha/2010-04-07-DbgValueOtherTargets.ll | 43 +-
.../CellSPU/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/CellSPU/arg_ret.ll | 3 +-
test/CodeGen/CellSPU/div_ops.ll | 22 +
test/CodeGen/CellSPU/fcmp32.ll | 25 +-
test/CodeGen/CellSPU/immed32.ll | 15 +-
test/CodeGen/CellSPU/loads.ll | 12 +
test/CodeGen/CellSPU/rotate_ops.ll | 14 +-
test/CodeGen/CellSPU/sext128.ll | 30 +-
test/CodeGen/CellSPU/shift_ops.ll | 18 +-
test/CodeGen/CellSPU/shuffles.ll | 28 +-
test/CodeGen/CellSPU/stores.ll | 22 +
test/CodeGen/CellSPU/v2f32.ll | 3 +-
test/CodeGen/CellSPU/v2i32.ll | 19 +-
test/CodeGen/Generic/2010-11-04-BigByval.ll | 11 +
test/CodeGen/Generic/2011-01-06-BigNumberCrash.ll | 15 +
test/CodeGen/Generic/2011-02-12-shuffle.ll | 32 +
test/CodeGen/Generic/add-with-overflow-128.ll | 24 +-
test/CodeGen/Generic/crash.ll | 32 +
test/CodeGen/Generic/overflow.ll | 220 +
.../MBlaze/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/MBlaze/brind.ll | 13 +-
test/CodeGen/MBlaze/cc.ll | 85 +-
test/CodeGen/MBlaze/fpu.ll | 16 +-
test/CodeGen/MBlaze/imm.ll | 24 +-
test/CodeGen/MBlaze/intr.ll | 48 +
test/CodeGen/MBlaze/jumptable.ll | 4 +-
test/CodeGen/MBlaze/loop.ll | 3 +-
test/CodeGen/MBlaze/mul.ll | 6 +-
test/CodeGen/MBlaze/shift.ll | 26 +-
test/CodeGen/MBlaze/svol.ll | 80 +
.../MSP430/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/MSP430/mult-alt-generic-msp430.ll | 323 +
test/CodeGen/Mips/2008-07-15-InternalConstant.ll | 4 +-
.../Mips/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/Mips/2010-07-20-Select.ll | 6 +-
test/CodeGen/Mips/2010-11-09-CountLeading.ll | 33 +
test/CodeGen/Mips/2010-11-09-Mul.ll | 15 +
test/CodeGen/Mips/cmov.ll | 15 +
test/CodeGen/Mips/madd-msub.ll | 65 +
test/CodeGen/Mips/o32_cc.ll | 325 +
test/CodeGen/Mips/rotate.ll | 40 +
test/CodeGen/PIC16/2009-07-17-PR4566-pic16.ll | 32 -
test/CodeGen/PIC16/2009-11-20-NewNode.ll | 36 -
test/CodeGen/PIC16/C16-11.ll | 40 -
test/CodeGen/PIC16/C16-15.ll | 45 -
test/CodeGen/PIC16/C16-49.ll | 15 -
test/CodeGen/PIC16/check_inc_files.ll | 9 -
test/CodeGen/PIC16/dg.exp | 5 -
test/CodeGen/PIC16/global-in-user-section.ll | 6 -
test/CodeGen/PIC16/globals.ll | 18 -
test/CodeGen/PIC16/result_direction.ll | 13 -
test/CodeGen/PIC16/sext.ll | 11 -
test/CodeGen/PIC16/test_indf_name.ll | 12 -
test/CodeGen/PTX/add.ll | 15 +
test/CodeGen/PTX/dg.exp | 5 +
test/CodeGen/PTX/exit.ll | 14 +
test/CodeGen/PTX/ld.ll | 78 +
test/CodeGen/PTX/mov.ll | 13 +
test/CodeGen/PTX/options.ll | 6 +
test/CodeGen/PTX/ret.ll | 7 +
test/CodeGen/PTX/shl.ll | 22 +
test/CodeGen/PTX/shr.ll | 43 +
test/CodeGen/PTX/st.ll | 71 +
test/CodeGen/PTX/sub.ll | 15 +
test/CodeGen/PowerPC/2007-03-24-cntlzd.ll | 2 +-
.../PowerPC/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/PowerPC/2010-10-11-Fast-Varargs.ll | 16 +
test/CodeGen/PowerPC/2010-12-18-PPCStackRefs.ll | 22 +
test/CodeGen/PowerPC/align.ll | 4 +
test/CodeGen/PowerPC/compare-simm.ll | 2 +-
test/CodeGen/PowerPC/indirectbr.ll | 4 +-
test/CodeGen/PowerPC/mult-alt-generic-powerpc.ll | 321 +
test/CodeGen/PowerPC/mult-alt-generic-powerpc64.ll | 321 +
test/CodeGen/PowerPC/rlwimi2.ll | 2 +-
test/CodeGen/PowerPC/stfiwx.ll | 4 +-
test/CodeGen/PowerPC/tango.net.ftp.FtpClient.ll | 585 -
test/CodeGen/PowerPC/unsafe-math.ll | 2 +-
test/CodeGen/PowerPC/varargs.ll | 22 +
.../SPARC/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/SPARC/2011-01-11-CC.ll | 105 +
test/CodeGen/SPARC/2011-01-11-Call.ll | 13 +
test/CodeGen/SPARC/2011-01-11-FrameAddr.ll | 64 +
test/CodeGen/SPARC/2011-01-19-DelaySlot.ll | 90 +
test/CodeGen/SPARC/2011-01-21-ByValArgs.ll | 18 +
test/CodeGen/SPARC/2011-01-22-SRet.ll | 36 +
test/CodeGen/SPARC/basictest.ll | 24 +-
test/CodeGen/SPARC/mult-alt-generic-sparc.ll | 323 +
test/CodeGen/SPARC/xnor.ll | 15 -
.../SystemZ/2010-04-07-DbgValueOtherTargets.ll | 43 +-
.../Thumb/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/Thumb/2010-07-15-debugOrdering.ll | 2 +-
test/CodeGen/Thumb/2011-EpilogueBug.ll | 17 +
test/CodeGen/Thumb/barrier.ll | 11 +-
test/CodeGen/Thumb/dyn-stackalloc.ll | 23 +-
test/CodeGen/Thumb/large-stack.ll | 14 +-
test/CodeGen/Thumb/long.ll | 2 +-
test/CodeGen/Thumb/machine-licm.ll | 41 -
test/CodeGen/Thumb/select.ll | 2 +-
test/CodeGen/Thumb2/2009-08-06-SpDecBug.ll | 9 +-
test/CodeGen/Thumb2/2009-08-21-PostRAKill4.ll | 26 +
test/CodeGen/Thumb2/2009-09-01-PostRAProlog.ll | 106 +
test/CodeGen/Thumb2/2010-03-15-AsmCCClobber.ll | 13 +-
test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll | 5 +-
test/CodeGen/Thumb2/2010-06-21-TailMergeBug.ll | 2 +-
.../CodeGen/Thumb2/2010-08-10-VarSizedAllocaBug.ll | 12 +-
test/CodeGen/Thumb2/2010-11-22-EpilogueBug.ll | 34 +
test/CodeGen/Thumb2/2010-12-03-AddSPNarrowing.ll | 11 +
test/CodeGen/Thumb2/bfi.ll | 11 +
test/CodeGen/Thumb2/buildvector-crash.ll | 17 +
test/CodeGen/Thumb2/cortex-fp.ll | 2 +-
test/CodeGen/Thumb2/cross-rc-coalescing-2.ll | 10 +-
test/CodeGen/Thumb2/div.ll | 2 +-
test/CodeGen/Thumb2/large-stack.ll | 2 +-
test/CodeGen/Thumb2/load-global.ll | 23 -
test/CodeGen/Thumb2/machine-licm-vdup.ll | 38 -
test/CodeGen/Thumb2/machine-licm.ll | 62 +-
test/CodeGen/Thumb2/thumb2-badreg-operands.ll | 15 -
test/CodeGen/Thumb2/thumb2-barrier.ll | 32 +-
test/CodeGen/Thumb2/thumb2-ifcvt3.ll | 1 -
test/CodeGen/Thumb2/thumb2-ldrd.ll | 2 +-
test/CodeGen/Thumb2/thumb2-mov.ll | 6 +-
test/CodeGen/Thumb2/thumb2-mul.ll | 18 +
test/CodeGen/Thumb2/thumb2-select_xform.ll | 4 +-
test/CodeGen/Thumb2/thumb2-spill-q.ll | 36 +-
test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll | 41 +-
test/CodeGen/X86/2007-05-15-maskmovq.ll | 8 +-
test/CodeGen/X86/2007-06-15-IntToMMX.ll | 13 +-
test/CodeGen/X86/2007-07-03-GR64ToVR64.ll | 14 +-
test/CodeGen/X86/2007-10-16-fp80_select.ll | 19 -
test/CodeGen/X86/2008-02-18-TailMergingBug.ll | 2 +-
test/CodeGen/X86/2008-04-08-CoalescerCrash.ll | 8 +-
test/CodeGen/X86/2008-06-13-VolatileLoadStore.ll | 4 +-
test/CodeGen/X86/2008-07-19-movups-spills.ll | 3 +-
test/CodeGen/X86/2008-08-23-64Bit-maskmovq.ll | 6 +-
test/CodeGen/X86/2008-09-05-sinttofp-2xi32.ll | 22 +-
test/CodeGen/X86/2008-09-17-inline-asm-1.ll | 16 +-
test/CodeGen/X86/2008-10-27-CoalescerBug.ll | 10 +-
test/CodeGen/X86/2008-10-27-StackRealignment.ll | 4 +-
test/CodeGen/X86/2008-11-29-DivideConstant16bit.ll | 9 -
.../X86/2008-11-29-DivideConstant16bitSigned.ll | 9 -
test/CodeGen/X86/2009-01-13-DoubleUpdate.ll | 2 +-
test/CodeGen/X86/2009-01-27-NullStrings.ll | 2 +-
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll | 2 +-
test/CodeGen/X86/2009-04-24.ll | 3 +-
test/CodeGen/X86/2009-06-03-Win64DisableRedZone.ll | 9 +-
test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll | 14 +-
.../X86/2009-06-05-ScalarToVectorByteMMX.ll | 2 +-
test/CodeGen/X86/2009-07-07-SplitICmp.ll | 2 +-
.../CodeGen/X86/2009-08-02-mmx-scalar-to-vector.ll | 8 +-
test/CodeGen/X86/2009-08-06-inlineasm.ll | 6 +-
test/CodeGen/X86/2009-09-10-SpillComments.ll | 4 +-
test/CodeGen/X86/2009-12-11-TLSNoRedZone.ll | 2 +-
.../CodeGen/X86/2010-04-07-DbgValueOtherTargets.ll | 42 +-
test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll | 64 +-
.../X86/2010-04-30-LocalAlloc-LandingPad.ll | 2 +-
test/CodeGen/X86/2010-05-25-DotDebugLoc.ll | 7 +-
test/CodeGen/X86/2010-05-26-DotDebugLoc.ll | 2 +-
test/CodeGen/X86/2010-05-28-Crash.ll | 6 +-
.../X86/2010-06-25-CoalescerSubRegDefDead.ll | 8 +-
test/CodeGen/X86/2010-07-02-asm-alignstack.ll | 4 +-
test/CodeGen/X86/2010-09-16-EmptyFilename.ll | 29 +
test/CodeGen/X86/2010-09-16-asmcrash.ll | 56 +
test/CodeGen/X86/2010-09-17-SideEffectsInChain.ll | 26 +
test/CodeGen/X86/2010-09-30-CMOV-JumpTable-PHI.ll | 71 +
test/CodeGen/X86/2010-10-08-cmpxchg8b.ll | 28 +
test/CodeGen/X86/2010-11-02-DbgParameter.ll | 35 +
test/CodeGen/X86/2010-11-09-MOVLPS.ll | 66 +
test/CodeGen/X86/2010-11-18-SelectOfExtload.ll | 15 +
test/CodeGen/X86/2010-12-02-MC-Set.ll | 22 +
test/CodeGen/X86/2011-01-07-LegalizeTypesCrash.ll | 19 +
test/CodeGen/X86/2011-01-10-DagCombineHang.ll | 15 +
test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll | 103 +
test/CodeGen/X86/2011-02-04-FastRegallocNoFP.ll | 14 +
test/CodeGen/X86/3addr-or.ll | 38 +-
test/CodeGen/X86/abi-isel.ll | 942 +-
test/CodeGen/X86/add-of-carry.ll | 34 +
test/CodeGen/X86/add.ll | 40 +
test/CodeGen/X86/addr-label-difference.ll | 2 +-
test/CodeGen/X86/alldiv-divdi3.ll | 17 +
test/CodeGen/X86/andimm8.ll | 19 +
test/CodeGen/X86/apm.ll | 26 +
test/CodeGen/X86/atomic_op.ll | 71 +-
test/CodeGen/X86/avx-128.ll | 2 +-
test/CodeGen/X86/avx-intrinsics-x86.ll | 33 +-
test/CodeGen/X86/avx-intrinsics-x86_64.ll | 2 +-
test/CodeGen/X86/bc-extract.ll | 27 +
test/CodeGen/X86/bit-test-shift.ll | 13 +
test/CodeGen/X86/bswap-inline-asm.ll | 11 +-
test/CodeGen/X86/byval.ll | 11 +-
test/CodeGen/X86/cmp-test.ll | 27 -
test/CodeGen/X86/cmp.ll | 92 +
test/CodeGen/X86/cmp0.ll | 24 -
test/CodeGen/X86/cmp2.ll | 18 -
test/CodeGen/X86/commute-two-addr.ll | 48 +-
test/CodeGen/X86/compare-inf.ll | 16 +-
test/CodeGen/X86/complex-asm.ll | 17 +
test/CodeGen/X86/conditional-indecrement.ll | 89 +
test/CodeGen/X86/const-select.ll | 22 -
test/CodeGen/X86/crash.ll | 58 +
test/CodeGen/X86/critical-edge-split-2.ll | 29 +
test/CodeGen/X86/critical-edge-split.ll | 50 -
test/CodeGen/X86/ctpop-combine.ll | 40 +
test/CodeGen/X86/dagcombine-buildvector.ll | 2 +-
test/CodeGen/X86/dbg-live-in-location.ll | 84 +
test/CodeGen/X86/dbg-merge-loc-entry.ll | 71 +
test/CodeGen/X86/dbg-value-inlined-parameter.ll | 86 +
test/CodeGen/X86/dbg-value-location.ll | 70 +
test/CodeGen/X86/dbg-value-range.ll | 56 +
test/CodeGen/X86/div_const.ll | 7 -
test/CodeGen/X86/divide-by-constant.ll | 62 +
test/CodeGen/X86/dll-linkage.ll | 2 +-
test/CodeGen/X86/dollar-name.ll | 2 +-
.../X86/fast-isel-avoid-unnecessary-pic-base.ll | 23 +
test/CodeGen/X86/fast-isel-bc.ll | 16 +-
test/CodeGen/X86/fast-isel-gep.ll | 17 +
test/CodeGen/X86/fast-isel-mem.ll | 18 +-
test/CodeGen/X86/fltused.ll | 19 +
test/CodeGen/X86/fp-in-intregs.ll | 3 +-
test/CodeGen/X86/fp-stack-compare.ll | 3 +-
test/CodeGen/X86/ghc-cc.ll | 4 +-
test/CodeGen/X86/global-sections.ll | 18 +-
test/CodeGen/X86/inline-asm-h.ll | 12 +
test/CodeGen/X86/inline-asm-ptr-cast.ll | 27 +
test/CodeGen/X86/insertelement-legalize.ll | 2 +-
test/CodeGen/X86/legalize-sub-zero-2.ll | 41 +
test/CodeGen/X86/legalize-sub-zero.ll | 35 +
test/CodeGen/X86/legalizedag_vec.ll | 8 +-
test/CodeGen/X86/licm-symbol.ll | 2 +-
test/CodeGen/X86/loop-blocks.ll | 11 +-
test/CodeGen/X86/lsr-reuse.ll | 15 +-
test/CodeGen/X86/machine-cse.ll | 40 +
test/CodeGen/X86/memcmp.ll | 12 +-
test/CodeGen/X86/memcpy.ll | 64 +-
test/CodeGen/X86/memmove-0.ll | 9 -
test/CodeGen/X86/memmove-1.ll | 9 -
test/CodeGen/X86/memmove-2.ll | 9 -
test/CodeGen/X86/memmove-3.ll | 9 -
test/CodeGen/X86/memset-2.ll | 26 +-
test/CodeGen/X86/memset64-on-x86-32.ll | 2 +-
test/CodeGen/X86/mingw-alloca.ll | 4 +-
test/CodeGen/X86/misaligned-memset.ll | 15 +
test/CodeGen/X86/mmx-arg-passing.ll | 19 +-
test/CodeGen/X86/mmx-arg-passing2.ll | 14 +-
test/CodeGen/X86/mmx-arith.ll | 380 +-
test/CodeGen/X86/mmx-bitcast-to-i64.ll | 37 +-
test/CodeGen/X86/mmx-builtins.ll | 1324 ++
test/CodeGen/X86/mmx-insert-element.ll | 10 +-
test/CodeGen/X86/mmx-pinsrw.ll | 2 +-
test/CodeGen/X86/mmx-punpckhdq.ll | 19 +-
test/CodeGen/X86/mmx-shift.ll | 24 +-
test/CodeGen/X86/mmx-shuffle.ll | 6 +-
test/CodeGen/X86/mmx-vzmovl-2.ll | 24 +-
test/CodeGen/X86/mmx-vzmovl.ll | 4 +-
test/CodeGen/X86/movgs.ll | 53 +-
test/CodeGen/X86/mult-alt-generic-i686.ll | 321 +
test/CodeGen/X86/mult-alt-generic-x86_64.ll | 321 +
test/CodeGen/X86/mult-alt-x86.ll | 358 +
test/CodeGen/X86/narrow-shl-load.ll | 83 +
test/CodeGen/X86/negative-sin.ll | 4 +-
test/CodeGen/X86/non-globl-eh-frame.ll | 24 +
test/CodeGen/X86/phi-immediate-factoring.ll | 2 +-
test/CodeGen/X86/phys_subreg_coalesce-2.ll | 2 +-
test/CodeGen/X86/pic.ll | 24 +-
test/CodeGen/X86/pic_jumptable.ll | 2 +-
test/CodeGen/X86/popcnt.ll | 38 +
test/CodeGen/X86/postra-licm.ll | 2 +-
test/CodeGen/X86/pr2659.ll | 7 +-
test/CodeGen/X86/pr3522.ll | 2 +-
test/CodeGen/X86/pr9127.ll | 12 +
test/CodeGen/X86/prefetch.ll | 10 +-
test/CodeGen/X86/rodata-relocs.ll | 16 +-
test/CodeGen/X86/scalar_widen_div.ll | 2 +-
test/CodeGen/X86/select-aggregate.ll | 15 -
test/CodeGen/X86/select-zero-one.ll | 25 -
test/CodeGen/X86/select.ll | 239 +-
test/CodeGen/X86/sext-select.ll | 23 -
test/CodeGen/X86/shift-folding.ll | 6 +-
test/CodeGen/X86/sibcall-3.ll | 2 +-
test/CodeGen/X86/sibcall-5.ll | 31 +
test/CodeGen/X86/sibcall.ll | 30 +-
test/CodeGen/X86/sink-hoist.ll | 29 +-
test/CodeGen/X86/split-select.ll | 7 -
test/CodeGen/X86/sse-align-11.ll | 3 +-
test/CodeGen/X86/sse2.ll | 30 +
test/CodeGen/X86/sse3.ll | 17 +-
test/CodeGen/X86/sse41.ll | 4 +-
test/CodeGen/X86/stack-align.ll | 17 +-
test/CodeGen/X86/stdcall-notailcall.ll | 13 +
test/CodeGen/X86/store-narrow.ll | 14 +
test/CodeGen/X86/store_op_load_fold2.ll | 2 +-
test/CodeGen/X86/switch-bt.ll | 30 +
test/CodeGen/X86/switch-or.ll | 22 +
test/CodeGen/X86/tail-opts.ll | 23 +-
test/CodeGen/X86/tailcall-largecode.ll | 8 +-
test/CodeGen/X86/tailcall-ri64.ll | 24 +
test/CodeGen/X86/tailcall-stackalign.ll | 2 +-
test/CodeGen/X86/tailcallfp2.ll | 4 +-
test/CodeGen/X86/tailcallstack64.ll | 17 +-
test/CodeGen/X86/tls-1.ll | 19 -
test/CodeGen/X86/tls-pic.ll | 16 +-
test/CodeGen/X86/tls9.ll | 2 +-
test/CodeGen/X86/tlv-1.ll | 35 +
test/CodeGen/X86/tlv-2.ll | 32 +
test/CodeGen/X86/twoaddr-lea.ll | 32 +-
test/CodeGen/X86/uint64-to-float.ll | 21 +
test/CodeGen/X86/umul-with-overflow.ll | 8 +-
test/CodeGen/X86/umulo-64.ll | 28 +
test/CodeGen/X86/unaligned-load.ll | 2 +-
test/CodeGen/X86/unknown-location.ll | 10 +-
test/CodeGen/X86/vec-sign.ll | 30 +
test/CodeGen/X86/vec-trunc-store.ll | 2 +-
test/CodeGen/X86/vec_cast.ll | 1 -
test/CodeGen/X86/vec_compare-2.ll | 2 +-
test/CodeGen/X86/vec_ext_inreg.ll | 1 -
test/CodeGen/X86/vec_insert-5.ll | 9 +-
test/CodeGen/X86/vec_insert-7.ll | 15 +-
test/CodeGen/X86/vec_select.ll | 12 -
test/CodeGen/X86/vec_set-F.ll | 6 +-
test/CodeGen/X86/vec_shuffle-27.ll | 29 +-
test/CodeGen/X86/vec_shuffle-30.ll | 2 +-
test/CodeGen/X86/vec_shuffle-37.ll | 10 +
test/CodeGen/X86/vec_zero_cse.ll | 5 +-
test/CodeGen/X86/visibility.ll | 11 +
test/CodeGen/X86/vshift-1.ll | 2 +-
test/CodeGen/X86/vshift-2.ll | 2 +-
test/CodeGen/X86/vshift-3.ll | 2 +-
test/CodeGen/X86/vshift-4.ll | 2 +-
test/CodeGen/X86/vshift-5.ll | 2 +-
test/CodeGen/X86/vsplit-and.ll | 2 +-
test/CodeGen/X86/widen_arith-1.ll | 2 +-
test/CodeGen/X86/widen_arith-2.ll | 2 +-
test/CodeGen/X86/widen_arith-3.ll | 2 +-
test/CodeGen/X86/widen_arith-4.ll | 2 +-
test/CodeGen/X86/widen_arith-5.ll | 2 +-
test/CodeGen/X86/widen_arith-6.ll | 2 +-
test/CodeGen/X86/widen_cast-1.ll | 2 +-
test/CodeGen/X86/widen_cast-2.ll | 2 +-
test/CodeGen/X86/widen_cast-3.ll | 2 +-
test/CodeGen/X86/widen_cast-4.ll | 2 +-
test/CodeGen/X86/widen_cast-5.ll | 2 +-
test/CodeGen/X86/widen_cast-6.ll | 2 +-
test/CodeGen/X86/widen_conv-1.ll | 2 +-
test/CodeGen/X86/widen_conv-2.ll | 2 +-
test/CodeGen/X86/widen_conv-3.ll | 2 +-
test/CodeGen/X86/widen_conv-4.ll | 2 +-
test/CodeGen/X86/widen_extract-1.ll | 2 +-
test/CodeGen/X86/widen_load-1.ll | 2 +-
test/CodeGen/X86/widen_load-2.ll | 2 +-
test/CodeGen/X86/widen_select-1.ll | 12 -
test/CodeGen/X86/widen_shuffle-1.ll | 2 +-
test/CodeGen/X86/win64_params.ll | 11 +
test/CodeGen/X86/win64_vararg.ll | 20 +
test/CodeGen/X86/win_chkstk.ll | 15 +-
test/CodeGen/X86/x86-64-extend-shift.ll | 10 +
test/CodeGen/X86/x86_64-mul-by-const.ll | 9 +
test/CodeGen/X86/zext-extract_subreg.ll | 60 +
.../XCore/2010-04-07-DbgValueOtherTargets.ll | 43 +-
test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll | 10 +
test/CodeGen/XCore/ashr.ll | 8 +-
test/CodeGen/XCore/globals.ll | 6 +-
test/CodeGen/XCore/resources.ll | 111 +
test/CodeGen/XCore/trampoline.ll | 37 +
test/DebugInfo/2009-10-16-Scope.ll | 3 +-
test/DebugInfo/2010-05-10-MultipleCU.ll | 18 +-
test/DebugInfo/2010-08-04-StackVariable.ll | 3 +-
test/DebugInfo/2010-10-01-crash.ll | 21 +
test/ExecutionEngine/2002-12-16-ArgTest.ll | 3 +-
test/ExecutionEngine/2003-01-04-ArgumentBug.ll | 3 +-
test/ExecutionEngine/2003-01-04-LoopTest.ll | 3 +-
test/ExecutionEngine/2003-01-04-PhiTest.ll | 3 +-
test/ExecutionEngine/2003-01-09-SARTest.ll | 3 +-
test/ExecutionEngine/2003-01-10-FUCOM.ll | 3 +-
test/ExecutionEngine/2003-01-15-AlignmentTest.ll | 3 +-
test/ExecutionEngine/2003-05-06-LivenessClobber.ll | 4 +-
test/ExecutionEngine/2003-05-07-ArgumentTest.ll | 2 +-
test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll | 3 +-
test/ExecutionEngine/2003-06-04-bzip2-bug.ll | 3 +-
test/ExecutionEngine/2003-06-05-PHIBug.ll | 3 +-
test/ExecutionEngine/2003-08-15-AllocaAssertion.ll | 3 +-
test/ExecutionEngine/2003-08-21-EnvironmentTest.ll | 3 +-
.../2003-08-23-RegisterAllocatePhysReg.ll | 3 +-
...-10-18-PHINode-ConstantExpr-CondCode-Failure.ll | 3 +-
test/ExecutionEngine/2005-12-02-TailCallBug.ll | 3 +-
test/ExecutionEngine/2007-12-10-APIntLoadStore.ll | 2 +-
test/ExecutionEngine/2008-06-05-APInt-OverAShr.ll | 3 +-
test/ExecutionEngine/2010-01-15-UndefValue.ll | 3 +-
test/ExecutionEngine/fpbitcast.ll | 3 +-
test/ExecutionEngine/hello.ll | 3 +-
test/ExecutionEngine/hello2.ll | 3 +-
test/ExecutionEngine/simplesttest.ll | 3 +-
test/ExecutionEngine/simpletest.ll | 3 +-
test/ExecutionEngine/stubs.ll | 2 +-
test/ExecutionEngine/test-arith.ll | 3 +-
test/ExecutionEngine/test-branch.ll | 3 +-
test/ExecutionEngine/test-call.ll | 4 +-
test/ExecutionEngine/test-cast.ll | 3 +-
test/ExecutionEngine/test-constantexpr.ll | 3 +-
test/ExecutionEngine/test-fp.ll | 3 +-
test/ExecutionEngine/test-loadstore.ll | 3 +-
test/ExecutionEngine/test-logical.ll | 3 +-
test/ExecutionEngine/test-loop.ll | 3 +-
test/ExecutionEngine/test-malloc.ll | 3 +-
test/ExecutionEngine/test-phi.ll | 3 +-
test/ExecutionEngine/test-ret.ll | 3 +-
test/ExecutionEngine/test-setcond-fp.ll | 3 +-
test/ExecutionEngine/test-setcond-int.ll | 3 +-
test/ExecutionEngine/test-shift.ll | 3 +-
test/Feature/load_module.ll | 4 +-
test/FrontendAda/Support/real_cst.ads | 4 +
test/FrontendAda/array_constructor.adb | 2 +-
test/FrontendAda/array_range_ref.adb | 2 +-
test/FrontendAda/array_ref.adb | 2 +-
test/FrontendAda/array_size.adb | 2 +-
test/FrontendAda/asm.adb | 2 +-
test/FrontendAda/debug_var_size.ads | 2 +-
test/FrontendAda/element_copy.adb | 2 +-
test/FrontendAda/emit_var.ads | 2 +-
test/FrontendAda/fat_fields.adb | 4 +-
test/FrontendAda/field_order.ads | 2 +-
test/FrontendAda/global_constant.adb | 2 +-
test/FrontendAda/init_size.ads | 2 +-
test/FrontendAda/negative_field_offset.adb | 2 +-
test/FrontendAda/non_bitfield.ads | 2 +-
test/FrontendAda/non_lvalue.adb | 2 +-
test/FrontendAda/placeholder.adb | 2 +-
test/FrontendAda/real_cst.adb | 8 +
test/FrontendAda/switch.adb | 2 +-
test/FrontendAda/unc_constructor.adb | 2 +-
test/FrontendAda/var_offset.adb | 2 +-
test/FrontendAda/var_size.adb | 2 +-
test/FrontendAda/vce.adb | 2 +-
test/FrontendAda/vce_lv.adb | 2 +-
test/FrontendC++/2003-08-20-ExceptionFail.cpp | 12 -
test/FrontendC++/2003-08-21-EmptyClass.cpp | 9 -
test/FrontendC++/2003-08-24-Cleanup.cpp | 10 -
test/FrontendC++/2003-08-27-TypeNamespaces.cpp | 16 -
test/FrontendC++/2003-08-28-ForwardType.cpp | 23 -
test/FrontendC++/2003-08-28-SaveExprBug.cpp | 24 -
test/FrontendC++/2003-08-29-ArgPassingBug.cpp | 13 -
test/FrontendC++/2003-08-31-StructLayout.cpp | 16 -
test/FrontendC++/2003-09-22-CompositeExprValue.cpp | 11 -
.../2003-09-29-ArgumentNumberMismatch.cpp | 17 -
test/FrontendC++/2003-09-30-CommaExprBug.cpp | 10 -
.../FrontendC++/2003-09-30-ForIncrementExprBug.cpp | 10 -
.../2003-09-30-ForIncrementExprBug2.cpp | 12 -
test/FrontendC++/2003-09-30-NestedFunctionDecl.cpp | 12 -
test/FrontendC++/2003-10-17-BoolBitfields.cpp | 11 -
test/FrontendC++/2003-10-21-InnerClass.cpp | 12 -
.../2003-10-27-VirtualBaseClassCrash.cpp | 17 -
test/FrontendC++/2003-11-04-ArrayConstructors.cpp | 12 -
test/FrontendC++/2003-11-04-CatchLabelName.cpp | 11 -
test/FrontendC++/2003-11-08-ArrayAddress.cpp | 10 -
test/FrontendC++/2003-11-18-EnumArray.cpp | 14 -
.../2004-03-09-UnmangledBuiltinMethods.cpp | 2 +-
test/FrontendC++/2004-09-27-DidntEmitTemplate.cpp | 2 +-
test/FrontendC++/2005-07-21-VirtualBaseAccess.cpp | 2 +-
test/FrontendC++/2006-09-27-Debug-Protection.cpp | 4 +-
test/FrontendC++/2006-10-30-ClassBitfield.cpp | 2 +-
test/FrontendC++/2006-11-20-GlobalSymbols.cpp | 2 +-
test/FrontendC++/2006-11-30-ConstantExprCrash.cpp | 2 +-
test/FrontendC++/2006-11-30-NoCompileUnit.cpp | 60 -
test/FrontendC++/2007-01-02-UnboundedArray.cpp | 2 +-
test/FrontendC++/2007-01-06-ELF-Thunk-Sections.cpp | 2 +-
test/FrontendC++/2007-01-06-PtrMethodInit.cpp | 2 +-
test/FrontendC++/2007-03-27-FunctionVarRename.cpp | 4 +-
.../2007-04-11-InlineStorageClassC++.cpp | 14 +-
test/FrontendC++/2007-05-03-VectorInit.cpp | 2 +-
.../2007-05-16-ReverseBitFieldCrash.cpp | 2 +-
test/FrontendC++/2007-05-23-TryFinally.cpp | 2 +-
test/FrontendC++/2007-07-29-RestrictPtrArg.cpp | 2 +-
test/FrontendC++/2007-07-29-RestrictRefArg.cpp | 2 +-
test/FrontendC++/2007-08-01-RestrictMethod.cpp | 2 +-
.../2007-09-10-RecursiveTypeResolution.cpp | 2 +-
test/FrontendC++/2007-10-01-StructResize.cpp | 2 +-
test/FrontendC++/2008-10-29-WrongOffset.cpp | 2 +-
test/FrontendC++/2009-02-16-CtorNames-dbg.cpp | 2 +-
test/FrontendC++/2009-03-17-dbg.cpp | 2 +-
test/FrontendC++/2009-04-21-DtorNames-dbg.cpp | 2 +-
test/FrontendC++/2009-04-23-bool2.cpp | 2 +-
test/FrontendC++/2009-05-04-PureConstNounwind.cpp | 2 +-
test/FrontendC++/2009-06-16-DebugInfoCrash.cpp | 2 +-
test/FrontendC++/2009-06-20-DarwinPPCLayout.cpp | 14 +-
test/FrontendC++/2009-08-05-ZeroInitWidth.cpp | 2 +-
test/FrontendC++/2009-08-11-VectorRetTy.cpp | 2 +-
test/FrontendC++/2009-09-04-modify-crash.cpp | 2 +-
test/FrontendC++/2009-09-09-packed-layout.cpp | 2 +-
test/FrontendC++/2009-10-27-crash.cpp | 2 +-
test/FrontendC++/2010-03-22-empty-baseclass.cpp | 2 +-
.../FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp | 4 +-
.../2010-05-11-alwaysinlineinstantiation.cpp | 4 +-
test/FrontendC++/2010-05-12-PtrToMember-Dbg.cpp | 2 +-
test/FrontendC++/2010-06-22-BitfieldInit.cpp | 2 +-
test/FrontendC++/2010-06-22-ZeroBitfield.cpp | 2 +-
test/FrontendC++/2010-07-19-nowarn.cpp | 2 +-
test/FrontendC++/2010-07-23-DeclLoc.cpp | 2 +-
test/FrontendC++/member-alignment.cpp | 2 +-
test/FrontendC++/ptr-to-method-devirt.cpp | 4 +-
test/FrontendC++/varargs.cpp | 2 +-
test/FrontendC++/weak-external.cpp | 2 +-
.../x86-64-abi-sret-vs-2word-struct-param.cpp | 2 +-
test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c | 2 +-
test/FrontendC/2003-08-17-DeadCodeShortCircuit.c | 2 +-
test/FrontendC/2003-11-03-AddrArrayElement.c | 2 +-
.../2003-11-08-PointerSubNotGetelementptr.c | 2 +-
test/FrontendC/2003-11-13-TypeSafety.c | 2 +-
test/FrontendC/2003-12-14-ExternInlineSupport.c | 2 +-
test/FrontendC/2004-02-12-LargeAggregateCopy.c | 2 +-
.../2004-02-13-BuiltinFrameReturnAddress.c | 2 +-
test/FrontendC/2004-02-13-IllegalVararg.c | 2 +-
test/FrontendC/2004-02-13-Memset.c | 2 +-
test/FrontendC/2004-02-20-Builtins.c | 2 +-
test/FrontendC/2004-03-07-ExternalConstant.c | 2 +-
test/FrontendC/2004-06-17-UnorderedCompares.c | 2 +-
.../FrontendC/2004-11-27-StaticFunctionRedeclare.c | 4 +-
test/FrontendC/2005-01-02-PointerDifference.c | 2 +-
test/FrontendC/2005-02-27-MarkGlobalConstant.c | 2 +-
test/FrontendC/2005-12-04-AttributeUsed.c | 2 +-
test/FrontendC/2006-03-03-MissingInitializer.c | 2 +-
test/FrontendC/2007-01-06-KNR-Proto.c | 2 +-
test/FrontendC/2007-02-04-AddrLValue-2.c | 2 +-
test/FrontendC/2007-02-04-AddrLValue.c | 2 +-
test/FrontendC/2007-02-04-EmptyStruct.c | 2 +-
test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c | 2 +-
test/FrontendC/2007-02-05-nested.c | 2 +-
test/FrontendC/2007-02-07-AddrLabel.c | 2 +-
test/FrontendC/2007-02-16-VoidPtrDiff.c | 2 +-
test/FrontendC/2007-02-16-WritableStrings.c | 6 +-
test/FrontendC/2007-02-25-C-DotDotDot.c | 2 +-
test/FrontendC/2007-03-01-VarSizeArrayIdx.c | 2 +-
test/FrontendC/2007-04-11-InlineAsmStruct.c | 2 +-
test/FrontendC/2007-04-11-InlineAsmUnion.c | 2 +-
test/FrontendC/2007-04-11-InlineStorageClassC89.c | 14 +-
test/FrontendC/2007-04-11-InlineStorageClassC99.c | 14 +-
test/FrontendC/2007-04-13-InlineAsmStruct2.c | 2 +-
test/FrontendC/2007-04-13-InlineAsmUnion2.c | 2 +-
test/FrontendC/2007-04-24-VolatileStructCopy.c | 2 +-
test/FrontendC/2007-04-24-bit-not-expr.c | 2 +-
test/FrontendC/2007-04-24-str-const.c | 2 +-
test/FrontendC/2007-05-07-PaddingElements.c | 4 +-
test/FrontendC/2007-05-11-str-const.c | 2 +-
test/FrontendC/2007-05-15-PaddingElement.c | 2 +-
test/FrontendC/2007-05-16-EmptyStruct.c | 2 +-
test/FrontendC/2007-05-29-UnionCopy.c | 2 +-
test/FrontendC/2007-06-05-NoInlineAttribute.c | 2 +-
test/FrontendC/2007-06-15-AnnotateAttribute.c | 4 +-
test/FrontendC/2007-06-18-SextAttrAggregate.c | 2 +-
test/FrontendC/2007-07-29-RestrictPtrArg.c | 2 +-
test/FrontendC/2007-08-01-LoadStoreAlign.c | 4 +-
test/FrontendC/2007-08-21-ComplexCst.c | 2 +-
test/FrontendC/2007-09-05-ConstCtor.c | 2 +-
test/FrontendC/2007-09-20-GcrootAttribute.c | 6 +-
test/FrontendC/2007-10-01-BuildArrayRef.c | 18 +-
test/FrontendC/2007-11-07-AlignedMemcpy.c | 2 +-
test/FrontendC/2007-11-27-SExtZExt.c | 2 +-
test/FrontendC/2008-01-25-ByValReadNone.c | 4 +-
test/FrontendC/2008-01-28-PragmaMark.c | 2 +-
test/FrontendC/2008-03-03-CtorAttrType.c | 2 +-
test/FrontendC/2008-03-05-syncPtr.c | 2 +-
test/FrontendC/2008-05-19-AlwaysInline.c | 4 +-
test/FrontendC/2008-08-07-AlignPadding1.c | 2 +-
test/FrontendC/2008-08-07-AlignPadding2.c | 2 +-
test/FrontendC/2008-10-30-ZeroPlacement.c | 2 +-
test/FrontendC/2008-11-02-WeakAlias.c | 2 +-
test/FrontendC/2008-11-08-InstCombineSelect.c | 2 +-
.../2008-11-11-AnnotateStructFieldAttribute.c | 2 +-
test/FrontendC/2008-12-23-AsmIntPointerTie.c | 2 +-
test/FrontendC/2009-01-05-BlockInlining.c | 2 +-
test/FrontendC/2009-03-13-dbg.c | 2 +-
test/FrontendC/2009-05-04-EnumInreg.c | 2 +-
test/FrontendC/2010-01-13-MemBarrier.c | 2 +-
test/FrontendC/2010-05-18-asmsched.c | 2 +-
test/FrontendC/2010-05-26-AsmSideEffect.c | 2 +-
test/FrontendC/2010-06-28-nowarn.c | 2 +-
test/FrontendC/2010-07-14-overconservative-align.c | 2 +-
test/FrontendC/2010-11-16-asmblock.c | 16 +
test/FrontendC/2010-12-01-CommonGlobal.c | 7 +
test/FrontendC/arrayderef.c | 17 +
test/FrontendC/attribute_constructor.c | 2 +-
test/FrontendC/block-copy.c | 2 +-
test/FrontendC/cstring-align.c | 2 +-
test/FrontendC/extern-weak.c | 4 +-
test/FrontendC/func-aligned.c | 2 +-
test/FrontendC/hidden-visibility.c | 2 +-
test/FrontendC/implicit-arg.c | 4 +-
test/FrontendC/libcalls-d.c | 8 +-
test/FrontendC/libcalls-ld.c | 8 +-
test/FrontendC/libcalls.c | 8 +-
test/FrontendC/pr3518.c | 2 +-
test/FrontendC/pr4349.c | 10 +-
test/FrontendC/pr5406.c | 2 +-
test/FrontendC/ptr-rotate.c | 4 +-
test/FrontendC/sret.c | 2 +-
test/FrontendC/sret2.c | 2 +-
test/FrontendC/unaligned-memcpy.c | 2 +-
test/FrontendFortran/2008-11-03-OptionOverride.f90 | 2 +-
test/FrontendFortran/2009-02-09-FloorDivExpr.f90 | 2 +-
test/FrontendFortran/cpow.f90 | 2 +-
test/FrontendObjC++/2007-10-03-MetadataPointers.mm | 2 +-
.../FrontendObjC++/2010-08-02-NonPODObjectValue.mm | 2 +-
test/FrontendObjC++/2010-08-04-Template.mm | 2 +-
test/FrontendObjC++/2010-08-06-X.Y-syntax.mm | 2 +-
test/FrontendObjC/2007-04-03-ObjcEH.m | 2 +-
test/FrontendObjC/2007-05-02-Strong.m | 2 +-
test/FrontendObjC/2007-09-25-EH.m | 2 +-
test/FrontendObjC/2007-10-18-ProDescriptor.m | 2 +-
test/FrontendObjC/2007-10-23-GC-WriteBarrier.m | 2 +-
test/FrontendObjC/2008-10-3-EhValue.m | 2 +-
test/FrontendObjC/2008-11-12-Metadata.m | 2 +-
test/FrontendObjC/2008-11-25-Blocks.m | 2 +-
test/FrontendObjC/2009-02-05-VolatileProp.m | 2 +-
test/FrontendObjC/2009-04-14-AsmSection.m | 2 +-
test/FrontendObjC/2009-08-05-utf16.m | 2 +-
.../FrontendObjC/2010-02-11-fwritable-stringsBug.m | 4 +-
test/LLVMC/C++/dg.exp | 2 +-
test/LLVMC/C++/just-compile.cpp | 10 +
test/LLVMC/C++/unknown_suffix.unk | 9 +
test/LLVMC/C/emit-llvm-opt.c | 9 +
test/LLVMC/C/emit-llvm.c | 3 +
test/LLVMC/MultipleOutputLanguages.td | 27 +
test/LLVMC/OptionPreprocessor.td | 8 +-
test/Linker/PR8300.ll | 13 +
test/Linker/available_externally_a.ll | 5 +
test/Linker/available_externally_b.ll | 4 +
test/Linker/link-archive.ll | 1 +
test/Linker/linkmdnode.ll | 1 +
test/Linker/linkmdnode2.ll | 10 +
test/Linker/unnamed-addr1-a.ll | 27 +
test/Linker/unnamed-addr1-b.ll | 12 +
test/MC/ARM/arm_fixups.s | 7 +
test/MC/ARM/arm_instructions.s | 284 +
test/MC/ARM/arm_word_directive.s | 6 +
test/MC/ARM/dg.exp | 5 +
test/MC/ARM/elf-eflags-eabi.s | 13 +
test/MC/ARM/elf-movt.s | 39 +
test/MC/ARM/elf-reloc-01.ll | 71 +
test/MC/ARM/elf-reloc-02.ll | 51 +
test/MC/ARM/elf-reloc-03.ll | 98 +
test/MC/ARM/hilo-16bit-relocations.s | 20 +
test/MC/ARM/neon-abs-encoding.s | 31 +
test/MC/ARM/neon-absdiff-encoding.s | 82 +
test/MC/ARM/neon-add-encoding.s | 137 +
test/MC/ARM/neon-bitcount-encoding.s | 31 +
test/MC/ARM/neon-bitwise-encoding.s | 47 +
test/MC/ARM/neon-cmp-encoding.s | 115 +
test/MC/ARM/neon-convert-encoding.s | 38 +
test/MC/ARM/neon-dup-encoding.s | 27 +
test/MC/ARM/neon-minmax-encoding.s | 58 +
test/MC/ARM/neon-mov-encoding.s | 117 +
test/MC/ARM/neon-mul-accum-encoding.s | 67 +
test/MC/ARM/neon-mul-encoding.s | 56 +
test/MC/ARM/neon-neg-encoding.s | 30 +
test/MC/ARM/neon-pairwise-encoding.s | 86 +
test/MC/ARM/neon-reciprocal-encoding.s | 26 +
test/MC/ARM/neon-reverse-encoding.s | 26 +
test/MC/ARM/neon-satshift-encoding.s | 150 +
test/MC/ARM/neon-shift-encoding.s | 160 +
test/MC/ARM/neon-shiftaccum-encoding.s | 98 +
test/MC/ARM/neon-shuffle-encoding.s | 46 +
test/MC/ARM/neon-sub-encoding.s | 108 +
test/MC/ARM/neon-table-encoding.s | 19 +
test/MC/ARM/neon-vld-encoding.s | 110 +
test/MC/ARM/neon-vst-encoding.s | 101 +
test/MC/ARM/neont2-abs-encoding.s | 33 +
test/MC/ARM/neont2-absdiff-encoding.s | 86 +
test/MC/ARM/neont2-add-encoding.s | 138 +
test/MC/ARM/neont2-bitcount-encoding.s | 34 +
test/MC/ARM/neont2-bitwise-encoding.s | 49 +
test/MC/ARM/neont2-cmp-encoding.s | 36 +
test/MC/ARM/neont2-convert-encoding.s | 40 +
test/MC/ARM/neont2-dup-encoding.s | 29 +
test/MC/ARM/neont2-minmax-encoding.s | 60 +
test/MC/ARM/neont2-mov-encoding.s | 119 +
test/MC/ARM/neont2-mul-accum-encoding.s | 69 +
test/MC/ARM/neont2-mul-encoding.s | 58 +
test/MC/ARM/neont2-neg-encoding.s | 32 +
test/MC/ARM/neont2-pairwise-encoding.s | 89 +
test/MC/ARM/neont2-reciprocal-encoding.s | 28 +
test/MC/ARM/neont2-reverse-encoding.s | 26 +
test/MC/ARM/neont2-satshift-encoding.s | 152 +
test/MC/ARM/neont2-shift-encoding.s | 162 +
test/MC/ARM/neont2-shiftaccum-encoding.s | 100 +
test/MC/ARM/neont2-shuffle-encoding.s | 48 +
test/MC/ARM/neont2-sub-encoding.s | 46 +
test/MC/ARM/neont2-table-encoding.s | 21 +
test/MC/ARM/neont2-vld-encoding.s | 112 +
test/MC/ARM/neont2-vst-encoding.s | 103 +
test/MC/ARM/prefetch.ll | 58 +
test/MC/ARM/reg-list.s | 8 +
test/MC/ARM/simple-encoding.ll | 237 +
test/MC/ARM/simple-fp-encoding.s | 236 +
test/MC/ARM/thumb.s | 70 +
test/MC/ARM/thumb2.s | 286 +
test/MC/ARM/thumb2_instructions.s | 12 +
test/MC/AsmParser/ARM/arm_instructions.s | 8 -
test/MC/AsmParser/ARM/arm_word_directive.s | 6 -
test/MC/AsmParser/ARM/dg.exp | 5 -
test/MC/AsmParser/ELF/dg.exp | 6 -
test/MC/AsmParser/ELF/directive_previous.s | 13 -
test/MC/AsmParser/ELF/directive_section.s | 23 -
test/MC/AsmParser/X86/dg.exp | 5 -
test/MC/AsmParser/X86/x86_32-avx-clmul-encoding.s | 42 -
test/MC/AsmParser/X86/x86_32-avx-encoding.s | 3241 ---
test/MC/AsmParser/X86/x86_32-bit.s | 1631 --
test/MC/AsmParser/X86/x86_32-bit_cat.s | 7862 --------
test/MC/AsmParser/X86/x86_32-encoding.s | 10069 ----------
test/MC/AsmParser/X86/x86_32-fma3-encoding.s | 674 -
test/MC/AsmParser/X86/x86_32-mismatched-add.s | 8 -
test/MC/AsmParser/X86/x86_32-new-encoder.s | 425 -
test/MC/AsmParser/X86/x86_64-avx-clmul-encoding.s | 42 -
test/MC/AsmParser/X86/x86_64-avx-encoding.s | 3318 ----
test/MC/AsmParser/X86/x86_64-encoding.s | 142 -
test/MC/AsmParser/X86/x86_64-fma3-encoding.s | 674 -
test/MC/AsmParser/X86/x86_64-imm-widths.s | 105 -
test/MC/AsmParser/X86/x86_64-incl_decl.s | 26 -
test/MC/AsmParser/X86/x86_64-new-encoder.s | 159 -
test/MC/AsmParser/X86/x86_64-operands.s | 15 -
test/MC/AsmParser/X86/x86_64-suffix-matching.s | 10 -
test/MC/AsmParser/X86/x86_instruction_errors.s | 5 -
test/MC/AsmParser/X86/x86_instructions.s | 175 -
test/MC/AsmParser/X86/x86_operands.s | 58 -
test/MC/AsmParser/X86/x86_word_directive.s | 6 -
test/MC/AsmParser/dash-n.s | 7 +
test/MC/AsmParser/directive_abort.s | 2 +-
test/MC/AsmParser/directive_ascii.s | 7 +
test/MC/AsmParser/directive_loc.s | 2 +-
test/MC/AsmParser/directive_set.s | 5 +
test/MC/AsmParser/directive_values.s | 20 +
test/MC/AsmParser/equ.s | 9 +
test/MC/AsmParser/expr_symbol_modifiers.s | 14 +
test/MC/AsmParser/exprs.s | 77 +-
test/MC/AsmParser/floating-literals.s | 35 +
test/MC/AsmParser/full_line_comment.s | 8 +
test/MC/AsmParser/ifdef.s | 29 +
test/MC/AsmParser/ifndef.s | 29 +
test/MC/AsmParser/paren.s | 8 +
test/MC/AsmParser/rename.s | 10 +
test/MC/AsmParser/section.s | 107 +
test/MC/COFF/align-nops.s | 50 +
test/MC/COFF/basic-coff.ll | 136 -
test/MC/COFF/basic-coff.s | 133 +
test/MC/COFF/bss.s | 15 +
test/MC/COFF/dg.exp | 2 +-
test/MC/COFF/module-asm.ll | 26 +
test/MC/COFF/simple-fixups.s | 50 +
test/MC/COFF/switch-relocations.ll | 3 +
test/MC/COFF/symbol-alias.s | 62 +
test/MC/COFF/symbol-fragment-offset.ll | 182 -
test/MC/COFF/symbol-fragment-offset.s | 187 +
test/MC/COFF/weak.s | 51 +
test/MC/Disassembler/ARM/arm-tests.txt | 132 +
test/MC/Disassembler/ARM/dg.exp | 6 +
test/MC/Disassembler/ARM/neon-tests.txt | 61 +
test/MC/Disassembler/ARM/thumb-tests.txt | 120 +
test/MC/Disassembler/MBlaze/dg.exp | 6 +
test/MC/Disassembler/MBlaze/mblaze_branch.txt | 119 +
test/MC/Disassembler/MBlaze/mblaze_fpu.txt | 47 +
test/MC/Disassembler/MBlaze/mblaze_fsl.txt | 338 +
test/MC/Disassembler/MBlaze/mblaze_imm.txt | 121 +
test/MC/Disassembler/MBlaze/mblaze_memory.txt | 65 +
test/MC/Disassembler/MBlaze/mblaze_operands.txt | 197 +
test/MC/Disassembler/MBlaze/mblaze_pattern.txt | 14 +
test/MC/Disassembler/MBlaze/mblaze_shift.txt | 29 +
test/MC/Disassembler/MBlaze/mblaze_special.txt | 105 +
test/MC/Disassembler/MBlaze/mblaze_typea.txt | 74 +
test/MC/Disassembler/MBlaze/mblaze_typeb.txt | 56 +
test/MC/Disassembler/X86/dg.exp | 6 +
test/MC/Disassembler/X86/simple-tests.txt | 68 +
test/MC/Disassembler/X86/truncated-input.txt | 4 +
test/MC/Disassembler/arm-tests.txt | 111 -
test/MC/Disassembler/dg.exp | 6 -
test/MC/Disassembler/neon-tests.txt | 51 -
test/MC/Disassembler/simple-tests.txt | 62 -
test/MC/Disassembler/thumb-tests.txt | 105 -
test/MC/ELF/abs.s | 16 +
test/MC/ELF/alias-reloc.s | 52 +
test/MC/ELF/alias.s | 85 +
test/MC/ELF/align-bss.s | 17 +
test/MC/ELF/align-nops.s | 40 +
test/MC/ELF/align-size.s | 13 +
test/MC/ELF/align-text.s | 19 +
test/MC/ELF/align.s | 32 +
test/MC/ELF/bad-section.s | 9 +
test/MC/ELF/basic-elf-32.s | 78 +
test/MC/ELF/basic-elf-64.s | 82 +
test/MC/ELF/call-abs.s | 24 +
test/MC/ELF/cfi-advance-loc2.s | 45 +
test/MC/ELF/cfi-def-cfa-offset.s | 46 +
test/MC/ELF/cfi-def-cfa-register.s | 41 +
test/MC/ELF/cfi-def-cfa.s | 42 +
test/MC/ELF/cfi-offset.s | 42 +
test/MC/ELF/cfi-remember.s | 45 +
test/MC/ELF/cfi-zero-addr-delta.s | 48 +
test/MC/ELF/cfi.s | 674 +
test/MC/ELF/comdat.s | 86 +
test/MC/ELF/common.s | 88 +
test/MC/ELF/common2.s | 21 +
test/MC/ELF/debug-line.s | 22 +
test/MC/ELF/debug-loc.s | 32 +
test/MC/ELF/dg.exp | 2 +-
test/MC/ELF/diff.s | 15 +
test/MC/ELF/diff2.s | 13 +
test/MC/ELF/elf_directive_previous.s | 13 +
test/MC/ELF/elf_directive_section.s | 23 +
test/MC/ELF/empty-dwarf-lines.s | 21 +
test/MC/ELF/empty.s | 70 +
test/MC/ELF/entsize.ll | 44 +
test/MC/ELF/entsize.s | 69 +
test/MC/ELF/file.s | 23 +
test/MC/ELF/global-offset.s | 18 +
test/MC/ELF/got.s | 25 +
test/MC/ELF/ident.s | 17 +
test/MC/ELF/invalid-symver.s | 7 +
test/MC/ELF/leb128.s | 19 +
test/MC/ELF/local-reloc.s | 31 +
test/MC/ELF/merge.s | 97 +
test/MC/ELF/n_bytes.s | 20 +
test/MC/ELF/no-fixup.s | 16 +
test/MC/ELF/noexec.s | 24 +
test/MC/ELF/norelocation.s | 18 +
test/MC/ELF/pic-diff.s | 29 +
test/MC/ELF/plt.s | 14 +
test/MC/ELF/relax-arith.s | 75 +
test/MC/ELF/relax-crash.s | 11 +
test/MC/ELF/relax.s | 27 +
test/MC/ELF/relocation-386.s | 226 +
test/MC/ELF/relocation.s | 114 +
test/MC/ELF/rename.s | 46 +
test/MC/ELF/section.s | 110 +
test/MC/ELF/set.s | 34 +
test/MC/ELF/sleb.s | 29 +
test/MC/ELF/symref.s | 165 +
test/MC/ELF/tls-i386.s | 64 +
test/MC/ELF/tls.s | 48 +
test/MC/ELF/type.s | 32 +
test/MC/ELF/uleb.s | 22 +
test/MC/ELF/undef.s | 46 +
test/MC/ELF/undef2.s | 10 +
test/MC/ELF/weak.s | 30 +
test/MC/ELF/weakref-plt.s | 8 +
test/MC/ELF/weakref-reloc.s | 49 +
test/MC/ELF/weakref.s | 234 +
test/MC/ELF/zero.s | 16 +
test/MC/MBlaze/dg.exp | 5 +
test/MC/MBlaze/mblaze_branch.s | 197 +
test/MC/MBlaze/mblaze_fpu.s | 77 +
test/MC/MBlaze/mblaze_fsl.s | 568 +
test/MC/MBlaze/mblaze_imm.s | 194 +
test/MC/MBlaze/mblaze_memory.s | 107 +
test/MC/MBlaze/mblaze_operands.s | 328 +
test/MC/MBlaze/mblaze_pattern.s | 22 +
test/MC/MBlaze/mblaze_shift.s | 47 +
test/MC/MBlaze/mblaze_special.s | 167 +
test/MC/MBlaze/mblaze_typea.s | 122 +
test/MC/MBlaze/mblaze_typeb.s | 92 +
test/MC/MachO/absolutize.s | 6 +-
test/MC/MachO/comm-1.s | 2 +-
test/MC/MachO/darwin-ARM-reloc.s | 171 +
test/MC/MachO/darwin-Thumb-reloc.s | 139 +
test/MC/MachO/darwin-complex-difference.s | 129 +
test/MC/MachO/darwin-x86_64-diff-relocs.s | 2 +-
test/MC/MachO/darwin-x86_64-reloc-offsets.s | 6 +-
test/MC/MachO/darwin-x86_64-reloc.s | 10 +-
test/MC/MachO/diff-with-two-sections.s | 64 +
test/MC/MachO/direction_labels.s | 4 +-
test/MC/MachO/empty-dwarf-lines.s | 25 +
test/MC/MachO/indirect-symbols.s | 6 +-
test/MC/MachO/jcc.s | 4 +-
test/MC/MachO/lcomm-attributes.s | 2 +-
test/MC/MachO/loc.s | 25 +
test/MC/MachO/pcrel-to-other-section.s | 107 +
test/MC/MachO/relax-jumps.s | 6 +-
test/MC/MachO/reloc-pcrel-offset.s | 2 +-
test/MC/MachO/reloc.s | 70 +-
test/MC/MachO/section-align-1.s | 2 +-
test/MC/MachO/section-align-2.s | 2 +-
test/MC/MachO/string-table.s | 4 +-
test/MC/MachO/symbol-diff.s | 122 +
test/MC/MachO/symbol-flags.s | 59 +-
test/MC/MachO/symbol-indirect.s | 2 +-
test/MC/MachO/symbols-1.s | 4 +-
test/MC/MachO/tbss.s | 4 +-
test/MC/MachO/tdata.s | 4 +-
test/MC/MachO/thread_init_func.s | 2 +-
test/MC/MachO/tls.s | 8 +-
test/MC/MachO/tlv-reloc.s | 8 +-
test/MC/MachO/tlv.s | 4 +-
test/MC/MachO/values.s | 2 +-
test/MC/MachO/weakdef.s | 141 +
test/MC/MachO/x86_32-optimal_nop.s | 8 +-
test/MC/MachO/x86_32-symbols.s | 2 +-
test/MC/MachO/x86_64-symbols.s | 2 +-
test/MC/MachO/zerofill-1.s | 2 +-
test/MC/MachO/zerofill-2.s | 2 +-
test/MC/MachO/zerofill-3.s | 2 +-
test/MC/MachO/zerofill-5.s | 6 +-
test/MC/X86/3DNow.s | 92 +
test/MC/X86/dg.exp | 5 +
test/MC/X86/x86-32-avx.s | 3283 ++++
test/MC/X86/x86-32-coverage.s | 19564 +++++++++++++++++++
test/MC/X86/x86-32-fma3.s | 674 +
test/MC/X86/x86-32.s | 810 +
test/MC/X86/x86-64.s | 944 +
test/MC/X86/x86_64-avx-clmul-encoding.s | 42 +
test/MC/X86/x86_64-avx-encoding.s | 3318 ++++
test/MC/X86/x86_64-encoding.s | 157 +
test/MC/X86/x86_64-fma3-encoding.s | 674 +
test/MC/X86/x86_64-imm-widths.s | 105 +
test/MC/X86/x86_directives.s | 6 +
test/MC/X86/x86_errors.s | 5 +
test/MC/X86/x86_operands.s | 58 +
test/Makefile | 11 +-
.../TestObjectFiles/trivial-object-test.coff-i386 | Bin 0 -> 346 bytes
.../trivial-object-test.coff-x86-64 | Bin 0 -> 347 bytes
.../TestObjectFiles/trivial-object-test.elf-i386 | Bin 0 -> 716 bytes
.../TestObjectFiles/trivial-object-test.elf-x86-64 | Bin 0 -> 1024 bytes
.../TestObjectFiles/trivial-object-test.macho-i386 | Bin 0 -> 552 bytes
.../trivial-object-test.macho-x86-64 | Bin 0 -> 552 bytes
test/Object/dg.exp | 3 +
test/Object/nm-trivial-object.test-broken | 19 +
test/Object/objdump-trivial-object.test-broken | 54 +
test/Other/2008-08-14-PassManager.ll | 5 -
test/Other/close-stderr.ll | 2 +
test/Other/extract.ll | 27 +
test/Other/lint.ll | 2 +-
test/Scripts/coff-dump.py | 1008 +-
test/Scripts/coff-dump.py.bat | 5 +-
test/Scripts/common_dump.py | 46 +
test/Scripts/elf-dump | 231 +
test/Scripts/elf-dump.bat | 7 +
test/Scripts/macho-dump | 289 -
test/Scripts/macho-dump.bat | 7 -
test/Scripts/macho-dumpx | 294 +
test/Scripts/macho-dumpx.bat | 7 +
test/TableGen/Dag.td | 71 +
test/TableGen/DagDefSubst.td | 16 -
test/TableGen/DagIntSubst.td | 11 -
test/TableGen/FieldAccess.td | 2 +
test/TableGen/ListManip.td | 4 +-
test/TableGen/Slice.td | 8 +-
test/TableGen/defmclass.td | 12 +
test/TableGen/if.td | 34 +-
test/TableGen/lisp.td | 2 +-
test/TableGen/nameconcat.td | 91 -
test/Transforms/ArgumentPromotion/basictest.ll | 2 +-
test/Transforms/ArgumentPromotion/crash.ll | 21 +
test/Transforms/CodeGenPrepare/basic.ll | 29 +
test/Transforms/ConstProp/basictest.ll | 9 +
test/Transforms/ConstProp/bitcast.ll | 12 +-
test/Transforms/ConstProp/bitcast2.ll | 8 -
test/Transforms/ConstProp/calls.ll | 58 +-
test/Transforms/ConstProp/constant-expr.ll | 44 +
test/Transforms/ConstProp/extractvalue.ll | 68 +
test/Transforms/ConstProp/insertvalue.ll | 68 +
test/Transforms/ConstProp/loads.ll | 17 +
test/Transforms/ConstProp/logicaltest.ll | 4 +-
test/Transforms/ConstProp/nottest.ll | 19 -
test/Transforms/ConstProp/overflow-ops.ll | 11 +
.../ConstantMerge/2011-01-15-EitherOrder.ll | 18 +
test/Transforms/ConstantMerge/merge-both.ll | 26 +
test/Transforms/ConstantMerge/unnamed-addr.ll | 40 +
.../2010-09-26-MergeConstantRange.ll | 82 +
.../Transforms/CorrelatedValuePropagation/basic.ll | 3 +-
.../Transforms/CorrelatedValuePropagation/crash.ll | 37 +
.../CorrelatedValuePropagation/non-null.ll | 103 +
test/Transforms/DeadArgElim/deadexternal.ll | 28 +-
.../2004-11-28-LiveStoreDeleted.ll | 14 -
.../2004-12-28-PartialStore.ll | 13 -
.../DeadStoreElimination/2005-11-30-vaarg.ll | 9 -
.../DeadStoreElimination/2006-06-27-AST-Remove.ll | 1113 --
.../DeadStoreElimination/2008-07-28-load-store.ll | 15 -
.../2008-11-28-MemDepUpdate.ll | 16 -
.../2008-11-29-OffEndOfBlock.ll | 27 -
.../DeadStoreElimination/2009-11-10-Trampoline.ll | 16 -
.../DeadStoreElimination/PartialStore.ll | 71 +-
test/Transforms/DeadStoreElimination/alloca.ll | 9 -
test/Transforms/DeadStoreElimination/byval.ll | 10 -
.../DeadStoreElimination/const-pointers.ll | 2 +-
.../DeadStoreElimination/context-sensitive.ll | 15 -
test/Transforms/DeadStoreElimination/crash.ll | 19 +-
test/Transforms/DeadStoreElimination/free.ll | 27 +-
test/Transforms/DeadStoreElimination/lifetime.ll | 2 +-
test/Transforms/DeadStoreElimination/memcpy.ll | 52 -
.../DeadStoreElimination/no-targetdata.ll | 2 +-
.../DeadStoreElimination/partial-overwrite.ll | 14 -
test/Transforms/DeadStoreElimination/simple.ll | 234 +-
.../DeadStoreElimination/volatile-load.ll | 8 -
test/Transforms/EarlyCSE/basic.ll | 121 +
test/Transforms/EarlyCSE/dg.exp | 3 +
.../FunctionAttrs/2008-09-03-ReadNone.ll | 2 +-
.../FunctionAttrs/2008-09-03-ReadOnly.ll | 2 +-
.../FunctionAttrs/2008-10-04-LocalMemory.ll | 2 +-
.../FunctionAttrs/2008-12-29-Constant.ll | 2 +-
.../FunctionAttrs/2010-10-30-volatile.ll | 10 +
test/Transforms/GVN/2007-07-25-InfiniteLoop.ll | 2 +-
.../Transforms/GVN/2007-07-26-InterlockingLoops.ll | 29 +-
test/Transforms/GVN/2007-07-31-NoDomInherit.ll | 2 +-
test/Transforms/GVN/2007-07-31-RedundantPhi.ll | 2 +-
test/Transforms/GVN/2008-07-02-Unreachable.ll | 2 +-
test/Transforms/GVN/2010-03-31-RedundantPHIs.ll | 12 +-
test/Transforms/GVN/2010-11-13-Simplify.ll | 15 +
test/Transforms/GVN/calls-nonlocal.ll | 2 +-
test/Transforms/GVN/condprop.ll | 35 +-
test/Transforms/GVN/invariant-simple.ll | 2 +-
test/Transforms/GVN/lifetime-simple.ll | 2 +-
test/Transforms/GVN/load-constant-mem.ll | 2 +-
test/Transforms/GVN/load-pre-licm.ll | 39 +
test/Transforms/GVN/lpre-call-wrap-2.ll | 2 +-
test/Transforms/GVN/mixed.ll | 4 +-
test/Transforms/GVN/non-local-offset.ll | 59 +
test/Transforms/GVN/nonescaping-malloc.ll | 2 +-
test/Transforms/GVN/null-aliases-nothing.ll | 2 +-
test/Transforms/GVN/phi-translate.ll | 31 +
test/Transforms/GVN/pre-load.ll | 2 +-
test/Transforms/GVN/pre-single-pred.ll | 14 +-
test/Transforms/GVN/preserve-tbaa.ll | 28 +
test/Transforms/GVN/rle-must-alias.ll | 2 +-
test/Transforms/GVN/rle-nonlocal.ll | 2 +-
test/Transforms/GVN/rle-semidominated.ll | 2 +-
test/Transforms/GVN/rle.ll | 2 +-
.../GlobalOpt/2008-04-26-SROA-Global-Align.ll | 6 +-
.../GlobalOpt/2009-03-07-PromotePtrToBool.ll | 2 +-
.../2009-11-16-MallocSingleStoreToGlobalVar.ll | 2 +-
test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll | 16 +
test/Transforms/GlobalOpt/crash.ll | 9 +
.../GlobalOpt/ctor-list-opt-constexpr.ll | 23 +
test/Transforms/GlobalOpt/ctor-list-opt.ll | 19 +-
.../GlobalOpt/globalsra-unknown-index.ll | 2 +-
test/Transforms/GlobalOpt/memcpy.ll | 2 +-
test/Transforms/GlobalOpt/unnamed-addr.ll | 54 +
.../IndVarSimplify/loop-invariant-step.ll | 33 -
test/Transforms/Inline/basictest.ll | 2 +-
test/Transforms/Inline/byval.ll | 82 +-
test/Transforms/Inline/byval2.ll | 28 -
test/Transforms/Inline/devirtualize-3.ll | 2 +-
test/Transforms/Inline/devirtualize.ll | 2 +-
test/Transforms/Inline/gvn-inline-iteration.ll | 2 +-
.../InstCombine/2003-08-12-AllocaNonNull.ll | 3 +-
.../InstCombine/2006-04-28-ShiftShiftLongLong.ll | 2 +-
.../InstCombine/2007-03-26-BadShiftMask.ll | 3 +-
.../Transforms/InstCombine/2008-11-20-DivMulRem.ll | 43 +-
.../Transforms/InstCombine/2010-11-01-lshr-mask.ll | 46 +
.../InstCombine/2010-11-21-SizeZeroTypeGEP.ll | 17 +
.../InstCombine/2010-11-23-Distributed.ll | 23 +
test/Transforms/InstCombine/2011-02-14-InfLoop.ll | 19 +
.../InstCombine/2011-02-16-InsertelementHang.ll | 11 +
test/Transforms/InstCombine/add.ll | 24 +
test/Transforms/InstCombine/add2.ll | 25 +-
test/Transforms/InstCombine/and2.ll | 18 +
test/Transforms/InstCombine/bit-checks.ll | 348 +-
test/Transforms/InstCombine/bitcast-store.ll | 21 +
test/Transforms/InstCombine/bitcast-vec-uniform.ll | 70 +
test/Transforms/InstCombine/cast.ll | 32 +-
test/Transforms/InstCombine/constant-fold-gep.ll | 19 +
test/Transforms/InstCombine/crash.ll | 118 +
test/Transforms/InstCombine/div-cmp-overflow.ll | 8 -
test/Transforms/InstCombine/exact-sdiv.ll | 52 -
test/Transforms/InstCombine/exact.ll | 154 +
test/Transforms/InstCombine/extractvalue.ll | 81 +-
test/Transforms/InstCombine/fold-calls.ll | 19 +
test/Transforms/InstCombine/fold-vector-select.ll | 13 +
test/Transforms/InstCombine/icmp.ll | 223 +
test/Transforms/InstCombine/intrinsics.ll | 19 +
test/Transforms/InstCombine/memcpy.ll | 19 +-
test/Transforms/InstCombine/memset2.ll | 15 +
test/Transforms/InstCombine/neon-intrinsics.ll | 25 +
test/Transforms/InstCombine/nsw.ll | 41 +-
test/Transforms/InstCombine/objsize.ll | 10 +
test/Transforms/InstCombine/or-fcmp.ll | 28 +-
test/Transforms/InstCombine/or.ll | 48 +-
test/Transforms/InstCombine/overflow.ll | 133 +
test/Transforms/InstCombine/phi.ll | 125 +-
test/Transforms/InstCombine/pr8547.ll | 26 +
test/Transforms/InstCombine/rem.ll | 5 +
test/Transforms/InstCombine/select-crash.ll | 20 +
test/Transforms/InstCombine/select.ll | 244 +
test/Transforms/InstCombine/sext.ll | 2 +-
test/Transforms/InstCombine/shift.ll | 50 +-
test/Transforms/InstCombine/signext.ll | 12 +-
test/Transforms/InstCombine/sub.ll | 28 +-
test/Transforms/InstCombine/trunc.ll | 24 +-
test/Transforms/InstCombine/vec_demanded_elts-2.ll | 19 -
test/Transforms/InstCombine/vec_demanded_elts-3.ll | 14 -
test/Transforms/InstCombine/vec_demanded_elts.ll | 129 +-
test/Transforms/InstCombine/vec_sext.ll | 22 +
test/Transforms/InstCombine/vec_shuffle.ll | 23 +
test/Transforms/InstCombine/vector-casts.ll | 28 +
test/Transforms/InstCombine/xor2.ll | 2 +-
test/Transforms/InstSimplify/2010-12-20-Boolean.ll | 29 +
.../InstSimplify/2010-12-20-Distribute.ll | 62 +
test/Transforms/InstSimplify/2011-01-14-Thread.ll | 9 +
test/Transforms/InstSimplify/2011-02-01-Vector.ll | 8 +
test/Transforms/InstSimplify/compare.ll | 189 +
test/Transforms/InstSimplify/dg.exp | 3 +
test/Transforms/InstSimplify/exact-nsw-nuw.ll | 44 +
test/Transforms/InstSimplify/fdiv.ll | 17 +
test/Transforms/InstSimplify/reassociate.ll | 186 +
test/Transforms/JumpThreading/2010-08-26-and.ll | 2 +-
test/Transforms/JumpThreading/and-and-cond.ll | 10 +-
test/Transforms/JumpThreading/and-cond.ll | 9 +-
test/Transforms/JumpThreading/basic.ll | 2 +-
test/Transforms/JumpThreading/crash.ll | 27 +
test/Transforms/JumpThreading/degenerate-phi.ll | 24 +
test/Transforms/JumpThreading/indirectbr.ll | 94 +
test/Transforms/JumpThreading/lvi-load.ll | 2 +-
test/Transforms/JumpThreading/select.ll | 123 +
test/Transforms/JumpThreading/thread-loads.ll | 9 +-
.../LCSSA/2006-06-03-IncorrectIDFPhis.ll | 4 +-
.../LICM/2003-02-27-NestedLoopExitBlocks.ll | 2 +-
.../LICM/2008-07-22-LoadGlobalConstant.ll | 2 +-
test/Transforms/LICM/2009-03-25-AliasSetTracker.ll | 39 -
test/Transforms/LICM/crash.ll | 13 +
test/Transforms/LICM/scalar_promote.ll | 32 +-
test/Transforms/LoopIdiom/basic.ll | 349 +
test/Transforms/LoopIdiom/dg.exp | 3 +
.../LoopIndexSplit/2007-09-21-LoopBound.ll | 63 -
.../2007-09-24-UpdateIterationSpace.ll | 57 -
.../2007-09-25-UpdateIterationSpace-2.ll | 60 -
.../LoopIndexSplit/2008-01-28-IndDecrement.ll | 46 -
test/Transforms/LoopIndexSplit/2008-02-08-Crash.ll | 48 -
.../LoopIndexSplit/2008-02-13-ExitValueNum.ll | 67 -
.../LoopIndexSplit/2008-02-13-LoopLatch.ll | 72 -
.../LoopIndexSplit/2008-02-13-LoopLatchPHI.ll | 74 -
test/Transforms/LoopIndexSplit/2008-02-14-Crash.ll | 464 -
.../LoopIndexSplit/2008-03-24-ExitPhi.ll | 69 -
.../Transforms/LoopIndexSplit/2008-05-19-IndVar.ll | 40 -
.../LoopIndexSplit/2008-06-03-DomFrontier.ll | 32 -
.../LoopIndexSplit/2008-07-08-MisCompilation.ll | 25 -
test/Transforms/LoopIndexSplit/2008-09-17-IVUse.ll | 78 -
test/Transforms/LoopIndexSplit/2008-09-20-Crash.ll | 38 -
test/Transforms/LoopIndexSplit/2008-10-06-Crash.ll | 31 -
.../LoopIndexSplit/2008-10-10-OneIteration.ll | 66 -
test/Transforms/LoopIndexSplit/2008-11-10-Sign.ll | 69 -
.../2009-03-02-UpdateIterationSpace-crash.ll | 64 -
test/Transforms/LoopIndexSplit/2009-03-30-undef.ll | 24 -
test/Transforms/LoopIndexSplit/Crash-2007-08-17.ll | 52 -
test/Transforms/LoopIndexSplit/Crash-2007-12-03.ll | 44 -
.../Transforms/LoopIndexSplit/Crash2-2007-08-17.ll | 58 -
.../LoopIndexSplit/ExitCondition-2007-09-10.ll | 50 -
.../LoopIndexSplit/OneIterLoop-2007-08-17.ll | 67 -
.../LoopIndexSplit/OneIterLoop2-2007-08-17.ll | 69 -
.../LoopIndexSplit/OneIterLoop3-2007-08-17.ll | 34 -
test/Transforms/LoopIndexSplit/PR3913.ll | 24 -
test/Transforms/LoopIndexSplit/PR4174-2.ll | 38 -
test/Transforms/LoopIndexSplit/PR4174.ll | 23 -
.../LoopIndexSplit/SaveLastValue-2007-08-17.ll | 52 -
.../LoopIndexSplit/SplitValue-2007-08-24.ll | 52 -
.../LoopIndexSplit/UpperBound-2007-08-24.ll | 52 -
test/Transforms/LoopIndexSplit/dg.exp | 3 -
.../LoopIndexSplit/non-iv-cmp-operand.ll | 195 -
test/Transforms/LoopRotate/LRCrash-1.ll | 18 -
test/Transforms/LoopRotate/LRCrash-2.ll | 24 -
test/Transforms/LoopRotate/LRCrash-3.ll | 29 -
test/Transforms/LoopRotate/LRCrash-4.ll | 18 -
test/Transforms/LoopRotate/LRCrash-5.ll | 26 -
test/Transforms/LoopRotate/basic.ll | 35 +
test/Transforms/LoopRotate/crash.ll | 139 +
test/Transforms/LoopRotate/dbgvalue.ll | 59 +
test/Transforms/LoopRotate/phi-duplicate.ll | 19 +-
.../LoopSimplify/2003-04-25-AssertFail.ll | 2 +-
.../2003-05-12-PreheaderExitOfChild.ll | 2 +-
.../2004-02-05-DominatorInfoCorruption.ll | 2 +-
.../LoopSimplify/2004-03-15-IncorrectDomUpdate.ll | 2 +-
.../LoopSimplify/2004-04-01-IncorrectDomUpdate.ll | 2 +-
.../2004-04-12-LoopSimplify-SwitchBackedges.ll | 2 +-
.../2004-04-13-LoopSimplifyUpdateDomFrontier.ll | 2 +-
.../LoopSimplify/2007-10-28-InvokeCrash.ll | 2 +-
.../2010-07-15-IncorrectDomFrontierUpdate.ll | 2 +-
.../LoopSimplify/2010-12-26-PHIInfiniteLoop.ll | 43 +
test/Transforms/LoopSimplify/basictest.ll | 2 +-
test/Transforms/LoopSimplify/hardertest.ll | 2 +-
.../Transforms/LoopSimplify/indirectbr-backedge.ll | 2 +-
test/Transforms/LoopSimplify/indirectbr.ll | 2 +-
test/Transforms/LoopSimplify/merge-exits.ll | 2 +-
test/Transforms/LoopSimplify/phi-node-simplify.ll | 2 +-
.../LoopSimplify/unreachable-loop-pred.ll | 2 +-
.../LoopStrengthReduce/hoist-parent-preheader.ll | 32 +
test/Transforms/LoopStrengthReduce/pr2570.ll | 2 +-
.../LoopUnroll/2005-03-06-BadLoopInfoUpdate.ll | 2 +-
test/Transforms/LoopUnroll/basic.ll | 24 +
test/Transforms/LoopUnswitch/2010-11-18-LCSSA.ll | 28 +
.../MemCpyOpt/2008-02-24-MultipleUseofSRet.ll | 2 +-
.../MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll | 2 +-
.../Transforms/MemCpyOpt/2008-04-29-SRetRemoval.ll | 17 -
test/Transforms/MemCpyOpt/align.ll | 4 +-
test/Transforms/MemCpyOpt/crash.ll | 19 +-
test/Transforms/MemCpyOpt/form-memset.ll | 175 +-
test/Transforms/MemCpyOpt/form-memset2.ll | 99 -
test/Transforms/MemCpyOpt/loadstore-sret.ll | 25 +
test/Transforms/MemCpyOpt/memcpy-to-memset.ll | 19 +
test/Transforms/MemCpyOpt/memcpy.ll | 93 +-
test/Transforms/MemCpyOpt/memmove.ll | 2 +-
test/Transforms/MemCpyOpt/smaller.ll | 28 +
test/Transforms/MemCpyOpt/sret.ll | 6 +-
.../Transforms/MergeFunc/2011-02-08-RemoveEqual.ll | 276 +
test/Transforms/MergeFunc/fold-weak.ll | 4 +
test/Transforms/MergeFunc/vector.ll | 76 +
test/Transforms/PartialSpecialize/dg.exp | 3 -
.../PartialSpecialize/two-specializations.ll | 37 -
.../Reassociate/2011-01-26-UseAfterFree.ll | 35 +
test/Transforms/Reassociate/optional-flags.ll | 29 +
.../ScalarRepl/2003-05-30-InvalidIndices.ll | 8 -
.../Transforms/ScalarRepl/2003-05-30-MultiLevel.ll | 10 -
.../ScalarRepl/2005-12-14-UnionPromoteCrash.ll | 28 -
.../2006-01-24-IllegalUnionPromoteCrash.ll | 12 -
.../ScalarRepl/2006-04-20-PromoteCrash.ll | 18 -
.../ScalarRepl/2006-10-23-PointerUnionCrash.ll | 57 -
.../Transforms/ScalarRepl/2006-12-11-SROA-Crash.ll | 20 -
.../ScalarRepl/2007-03-19-CanonicalizeMemcpy.ll | 44 -
.../ScalarRepl/2009-01-09-scalarrepl-empty.ll | 15 -
.../ScalarRepl/2009-04-21-ZeroLengthMemSet.ll | 16 -
test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll | 12 -
.../ScalarRepl/2009-06-01-BitcastIntPadding.ll | 17 -
test/Transforms/ScalarRepl/2009-08-16-VLA.ll | 23 -
test/Transforms/ScalarRepl/basictest.ll | 23 +-
test/Transforms/ScalarRepl/copy-aggregate.ll | 52 +-
test/Transforms/ScalarRepl/crash.ll | 260 +
test/Transforms/ScalarRepl/memcpy-from-global.ll | 66 +-
test/Transforms/ScalarRepl/phi-select.ll | 153 +
test/Transforms/ScalarRepl/vector_promote.ll | 6 +-
.../SimplifyCFG/2010-10-24-OnlyUnwindInEntry.ll | 6 +
test/Transforms/SimplifyCFG/MagicPointer.ll | 1 -
test/Transforms/SimplifyCFG/PhiBlockMerge.ll | 7 +-
test/Transforms/SimplifyCFG/PhiEliminate.ll | 14 -
test/Transforms/SimplifyCFG/basictest.ll | 23 +-
test/Transforms/SimplifyCFG/indirectbr.ll | 118 +
test/Transforms/SimplifyCFG/invoke_unwind.ll | 5 +-
.../SimplifyCFG/speculate-with-offset.ll | 94 +
test/Transforms/SimplifyCFG/switch-to-icmp.ll | 39 +
test/Transforms/SimplifyCFG/switch_create.ll | 436 +-
.../Transforms/SimplifyCFG/switch_formation.dbg.ll | 8 +-
test/Transforms/SimplifyCFG/switch_formation.ll | 30 -
.../SimplifyLibCalls/2009-02-12-StrTo.ll | 2 +-
test/Transforms/SimplifyLibCalls/FPuts.ll | 29 +
test/Transforms/SimplifyLibCalls/Printf.ll | 29 +-
test/Transforms/SimplifyLibCalls/Puts.ll | 30 +-
test/Transforms/SimplifyLibCalls/StrChr.ll | 28 +-
test/Transforms/SimplifyLibCalls/StrPBrk.ll | 25 +
test/Transforms/SimplifyLibCalls/StrRChr.ll | 23 +
test/Transforms/SimplifyLibCalls/StrSpn.ll | 41 +
test/Transforms/SimplifyLibCalls/floor.ll | 2 +
test/Transforms/Sink/basic.ll | 2 +-
test/Transforms/TailCallElim/dup_tail.ll | 23 +
test/Unit/lit.cfg | 12 +-
test/Unit/lit.site.cfg.in | 10 +
test/lib/llvm.exp | 6 +-
test/lit.cfg | 109 +-
test/lit.site.cfg.in | 10 +
test/site.exp.in | 2 +
tools/CMakeLists.txt | 16 +-
tools/Makefile | 48 +-
tools/bugpoint-passes/CMakeLists.txt | 2 +
tools/bugpoint/BugDriver.cpp | 2 +-
tools/bugpoint/BugDriver.h | 3 +-
tools/bugpoint/CrashDebugger.cpp | 8 +-
tools/bugpoint/ExecutionDriver.cpp | 44 +-
tools/bugpoint/ExtractFunction.cpp | 12 +-
tools/bugpoint/Miscompilation.cpp | 12 +-
tools/bugpoint/OptimizerDriver.cpp | 28 +-
tools/bugpoint/ToolRunner.cpp | 206 +-
tools/bugpoint/ToolRunner.h | 13 +-
tools/bugpoint/bugpoint.cpp | 31 +-
tools/edis/CMakeLists.txt | 2 -
tools/edis/Makefile | 4 +-
tools/gold/Makefile | 3 +-
tools/gold/gold-plugin.cpp | 139 +-
tools/llc/llc.cpp | 22 +-
tools/lli/CMakeLists.txt | 2 +-
tools/lli/Makefile | 2 +-
tools/lli/lli.cpp | 40 +-
tools/llvm-ar/llvm-ar.cpp | 78 +-
tools/llvm-as/llvm-as.cpp | 4 +-
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 30 +-
tools/llvm-config/CMakeLists.txt | 19 +-
tools/llvm-config/llvm-config.in.in | 5 +-
tools/llvm-diff/llvm-diff.cpp | 75 +-
tools/llvm-dis/llvm-dis.cpp | 37 +-
tools/llvm-extract/llvm-extract.cpp | 45 +-
tools/llvm-ld/CMakeLists.txt | 2 +
tools/llvm-ld/Optimize.cpp | 2 +-
tools/llvm-ld/llvm-ld.cpp | 62 +-
tools/llvm-link/llvm-link.cpp | 6 +-
tools/llvm-mc/Disassembler.cpp | 3 +-
tools/llvm-mc/llvm-mc.cpp | 193 +-
tools/llvm-nm/CMakeLists.txt | 2 +-
tools/llvm-nm/Makefile | 2 +-
tools/llvm-nm/llvm-nm.cpp | 228 +-
tools/llvm-objdump/CMakeLists.txt | 11 +
tools/llvm-objdump/Makefile | 17 +
tools/llvm-objdump/llvm-objdump.cpp | 255 +
tools/llvm-prof/llvm-prof.cpp | 14 +-
tools/llvm-ranlib/llvm-ranlib.cpp | 14 +-
tools/llvm-shlib/Makefile | 15 +-
tools/llvm-stub/llvm-stub.c | 10 +-
tools/llvmc/doc/LLVMC-Reference.rst | 71 +-
tools/llvmc/examples/mcc16/Hooks.cpp | 2 +-
tools/llvmc/examples/mcc16/Main.cpp | 2 +-
tools/llvmc/src/Base.td.in | 227 +-
tools/llvmc/src/Clang.td | 6 +-
tools/llvmc/src/Hooks.cpp | 181 +-
tools/lto/LTOCodeGenerator.cpp | 38 +-
tools/lto/LTOModule.cpp | 83 +-
tools/lto/LTOModule.h | 3 +
tools/lto/Makefile | 4 +
tools/lto/lto.cpp | 14 +-
tools/lto/lto.exports | 1 +
tools/macho-dump/CMakeLists.txt | 5 +
tools/macho-dump/Makefile | 23 +
tools/macho-dump/macho-dump.cpp | 391 +
tools/opt/GraphPrinters.cpp | 13 +-
tools/opt/opt.cpp | 223 +-
unittests/ADT/APIntTest.cpp | 7 +-
unittests/ADT/BitVectorTest.cpp | 7 +
unittests/ADT/FoldingSet.cpp | 39 +
unittests/ADT/ImmutableSetTest.cpp | 48 +-
unittests/ADT/IntEqClassesTest.cpp | 107 +
unittests/ADT/IntervalMapTest.cpp | 716 +
unittests/ADT/Makefile | 2 +-
unittests/ADT/SmallBitVectorTest.cpp | 7 +
unittests/ADT/SmallVectorTest.cpp | 2 +-
unittests/ADT/StringMapTest.cpp | 2 +-
unittests/ADT/StringRefTest.cpp | 2 +-
unittests/ADT/TripleTest.cpp | 80 +-
unittests/ADT/TwineTest.cpp | 8 +
unittests/ADT/ValueMapTest.cpp | 294 -
unittests/CMakeLists.txt | 142 +
unittests/ExecutionEngine/JIT/JITTests.def | 4 +
unittests/Makefile.unittest | 10 +-
unittests/Support/ConstantRangeTest.cpp | 54 +-
unittests/Support/EndianTest.cpp | 72 +
unittests/Support/Path.cpp | 253 +
unittests/Support/SwapByteOrderTest.cpp | 128 +
unittests/Support/System.cpp | 16 -
unittests/Support/TimeValue.cpp | 23 +
unittests/Support/ValueHandleTest.cpp | 4 +-
unittests/Transforms/Utils/Local.cpp | 49 +
unittests/VMCore/ConstantsTest.cpp | 9 +
unittests/VMCore/InstructionsTest.cpp | 17 -
unittests/VMCore/PassManagerTest.cpp | 37 +-
unittests/VMCore/ValueMapTest.cpp | 294 +
unittests/VMCore/VerifierTest.cpp | 19 +
utils/CollectDebugInfoUsingLLDB.py | 182 +
utils/CompareDebugInfo.py | 182 +
utils/FileCheck/CMakeLists.txt | 2 +-
utils/FileCheck/FileCheck.cpp | 65 +-
utils/FileCheck/Makefile | 6 +-
utils/FileUpdate/CMakeLists.txt | 2 +-
utils/FileUpdate/FileUpdate.cpp | 20 +-
utils/FileUpdate/Makefile | 6 +-
utils/GenLibDeps.pl | 2 -
utils/GetRepositoryPath | 27 +
utils/GetSourceVersion | 20 +-
utils/KillTheDoctor/CMakeLists.txt | 5 +
utils/KillTheDoctor/KillTheDoctor.cpp | 596 +
utils/Makefile | 2 +-
utils/OldenDataRecover.pl | 37 -
utils/PerfectShuffle/PerfectShuffle.cpp | 3 +-
utils/TableGen/ARMDecoderEmitter.cpp | 313 +-
utils/TableGen/ARMDecoderEmitter.h | 2 +-
utils/TableGen/AsmMatcherEmitter.cpp | 2362 ++-
utils/TableGen/AsmWriterEmitter.cpp | 122 +-
utils/TableGen/AsmWriterInst.cpp | 112 +-
utils/TableGen/AsmWriterInst.h | 36 +-
utils/TableGen/CMakeLists.txt | 12 +-
utils/TableGen/CallingConvEmitter.cpp | 12 +-
utils/TableGen/ClangASTNodesEmitter.h | 2 +-
utils/TableGen/ClangAttrEmitter.cpp | 94 +-
utils/TableGen/ClangAttrEmitter.h | 13 +
utils/TableGen/ClangDiagnosticsEmitter.cpp | 26 +-
utils/TableGen/ClangSACheckersEmitter.cpp | 229 +
utils/TableGen/ClangSACheckersEmitter.h | 31 +
utils/TableGen/CodeEmitterGen.cpp | 253 +-
utils/TableGen/CodeEmitterGen.h | 8 +-
utils/TableGen/CodeGenDAGPatterns.cpp | 796 +-
utils/TableGen/CodeGenDAGPatterns.h | 208 +-
utils/TableGen/CodeGenInstruction.cpp | 519 +-
utils/TableGen/CodeGenInstruction.h | 231 +-
utils/TableGen/CodeGenRegisters.h | 6 +
utils/TableGen/CodeGenTarget.cpp | 114 +-
utils/TableGen/CodeGenTarget.h | 17 +-
utils/TableGen/DAGISelMatcher.cpp | 42 +-
utils/TableGen/DAGISelMatcher.h | 368 +-
utils/TableGen/DAGISelMatcherEmitter.cpp | 38 +-
utils/TableGen/DAGISelMatcherGen.cpp | 273 +-
utils/TableGen/DAGISelMatcherOpt.cpp | 18 +-
utils/TableGen/DisassemblerEmitter.cpp | 7 +-
utils/TableGen/EDEmitter.cpp | 288 +-
utils/TableGen/FastISelEmitter.cpp | 70 +-
utils/TableGen/FixedLenDecoderEmitter.cpp | 1372 ++
utils/TableGen/FixedLenDecoderEmitter.h | 56 +
utils/TableGen/InstrEnumEmitter.cpp | 2 +-
utils/TableGen/InstrInfoEmitter.cpp | 33 +-
utils/TableGen/IntrinsicEmitter.cpp | 204 +-
utils/TableGen/LLVMCConfigurationEmitter.cpp | 335 +-
utils/TableGen/LLVMCConfigurationEmitter.h | 4 +-
utils/TableGen/Makefile | 2 +-
utils/TableGen/NeonEmitter.cpp | 1059 +-
utils/TableGen/NeonEmitter.h | 78 +-
utils/TableGen/Record.cpp | 200 +-
utils/TableGen/Record.h | 42 +-
utils/TableGen/RegisterInfoEmitter.cpp | 24 +-
utils/TableGen/StringMatcher.cpp | 149 +
utils/TableGen/StringMatcher.h | 54 +
utils/TableGen/SubtargetEmitter.cpp | 106 +-
utils/TableGen/SubtargetEmitter.h | 7 +-
utils/TableGen/TGLexer.cpp | 68 +-
utils/TableGen/TGLexer.h | 15 +-
utils/TableGen/TGParser.cpp | 268 +-
utils/TableGen/TGParser.h | 12 +-
utils/TableGen/TableGen.cpp | 49 +-
utils/TableGen/X86DisassemblerTables.cpp | 16 +-
utils/TableGen/X86ModRMFilters.h | 2 +-
utils/TableGen/X86RecognizableInstr.cpp | 33 +-
utils/TableGen/X86RecognizableInstr.h | 5 +-
utils/Target/ARM/analyze-match-table.py | 61 +
utils/buildit/build_llvm | 14 +-
utils/emacs/llvm-mode.el | 17 +-
utils/emacs/tablegen-mode.el | 14 +-
utils/findmisopt | 4 +-
utils/findoptdiff | 6 +-
utils/fpcmp/Makefile | 6 +-
utils/kate/README | 12 +
utils/kate/llvm.xml | 255 +
utils/lit/TODO | 10 -
utils/lit/lit/LitConfig.py | 19 +
utils/lit/lit/LitFormats.py | 1 +
utils/lit/lit/TestFormats.py | 23 +-
utils/lit/lit/TestRunner.py | 21 +-
utils/lit/lit/TestingConfig.py | 2 +
utils/lit/lit/Util.py | 18 +-
utils/lit/lit/__init__.py | 6 +-
utils/lit/lit/lit.py | 648 -
utils/lit/lit/main.py | 648 +
utils/lit/setup.py | 23 +-
utils/llvm-lit/CMakeLists.txt | 12 +
utils/llvm-lit/llvm-lit.in | 6 +
utils/llvm-native-gcc | 4 +-
utils/llvm-native-gxx | 4 +-
utils/not/CMakeLists.txt | 2 +-
utils/not/Makefile | 6 +-
utils/not/not.cpp | 16 +-
utils/profile.pl | 4 +-
utils/release/test-release.sh | 398 +
utils/test_debuginfo.pl | 61 +
utils/unittest/CMakeLists.txt | 41 +
utils/unittest/UnitTestMain/TestMain.cpp | 27 +
utils/unittest/googletest/gtest.cc | 35 +-
.../googletest/include/gtest/internal/gtest-port.h | 3 +-
utils/valgrind/x86_64-pc-linux-gnu.supp | 8 +-
utils/vim/llvm.vim | 3 +-
utils/vim/vimrc | 9 +-
3241 files changed, 240491 insertions(+), 160008 deletions(-)
create mode 100644 .gitignore
delete mode 100644 bindings/ada/analysis/llvm_analysis-binding.ads
delete mode 100644 bindings/ada/analysis/llvm_analysis.ads
delete mode 100644 bindings/ada/analysis/llvm_analysis_wrap.cxx
delete mode 100644 bindings/ada/bitreader/llvm_bit_reader-binding.ads
delete mode 100644 bindings/ada/bitreader/llvm_bit_reader.ads
delete mode 100644 bindings/ada/bitreader/llvm_bitreader_wrap.cxx
delete mode 100644 bindings/ada/bitwriter/llvm_bit_writer-binding.ads
delete mode 100644 bindings/ada/bitwriter/llvm_bit_writer.ads
delete mode 100644 bindings/ada/bitwriter/llvm_bitwriter_wrap.cxx
delete mode 100644 bindings/ada/executionengine/llvm_execution_engine-binding.ads
delete mode 100644 bindings/ada/executionengine/llvm_execution_engine.ads
delete mode 100644 bindings/ada/executionengine/llvm_executionengine_wrap.cxx
delete mode 100644 bindings/ada/llvm.gpr
delete mode 100644 bindings/ada/llvm/llvm-binding.ads
delete mode 100644 bindings/ada/llvm/llvm.ads
delete mode 100644 bindings/ada/llvm/llvm_link_time_optimizer-binding.ads
delete mode 100644 bindings/ada/llvm/llvm_link_time_optimizer.ads
delete mode 100644 bindings/ada/llvm/llvm_linktimeoptimizer_wrap.cxx
delete mode 100644 bindings/ada/llvm/llvm_wrap.cxx
delete mode 100644 bindings/ada/target/llvm_target-binding.ads
delete mode 100644 bindings/ada/target/llvm_target.ads
delete mode 100644 bindings/ada/target/llvm_target_wrap.cxx
delete mode 100644 bindings/ada/transforms/llvm_transforms-binding.ads
delete mode 100644 bindings/ada/transforms/llvm_transforms.ads
delete mode 100644 bindings/ada/transforms/llvm_transforms_wrap.cxx
create mode 100644 cmake/modules/HandleLLVMOptions.cmake
create mode 100644 cmake/modules/LLVMParseArguments.cmake
create mode 100644 docs/tutorial/OCamlLangImpl8.html
create mode 100644 include/llvm-c/Initialization.h
create mode 100644 include/llvm/ADT/ArrayRef.h
create mode 100644 include/llvm/ADT/InMemoryStruct.h
create mode 100644 include/llvm/ADT/IntEqClasses.h
create mode 100644 include/llvm/ADT/IntervalMap.h
create mode 100644 include/llvm/Analysis/DIBuilder.h
create mode 100644 include/llvm/Analysis/DominanceFrontier.h
create mode 100644 include/llvm/Analysis/PathNumbering.h
create mode 100644 include/llvm/Analysis/PathProfileInfo.h
delete mode 100644 include/llvm/Analysis/PointerTracking.h
create mode 100644 include/llvm/Analysis/RegionPass.h
create mode 100644 include/llvm/CodeGen/EdgeBundles.h
create mode 100644 include/llvm/CodeGen/MachineLoopRanges.h
create mode 100644 include/llvm/CodeGen/PBQP/Graph.h
create mode 100644 include/llvm/CodeGen/PBQP/HeuristicBase.h
create mode 100644 include/llvm/CodeGen/PBQP/HeuristicSolver.h
create mode 100644 include/llvm/CodeGen/PBQP/Heuristics/Briggs.h
create mode 100644 include/llvm/CodeGen/PBQP/Math.h
create mode 100644 include/llvm/CodeGen/PBQP/Solution.h
delete mode 100644 include/llvm/CodeGen/PostRAHazardRecognizer.h
create mode 100644 include/llvm/CodeGen/RegAllocPBQP.h
create mode 100644 include/llvm/CodeGen/ScoreboardHazardRecognizer.h
create mode 100644 include/llvm/ExecutionEngine/MCJIT.h
create mode 100644 include/llvm/InitializePasses.h
delete mode 100644 include/llvm/MC/ELFObjectWriter.h
create mode 100644 include/llvm/MC/MCELFObjectWriter.h
create mode 100644 include/llvm/MC/MCFixupKindInfo.h
create mode 100644 include/llvm/MC/MCMachObjectWriter.h
delete mode 100644 include/llvm/MC/MachObjectWriter.h
create mode 100644 include/llvm/Object/MachOFormat.h
create mode 100644 include/llvm/Object/MachOObject.h
create mode 100644 include/llvm/Object/ObjectFile.h
create mode 100644 include/llvm/Support/AIXDataTypesFix.h
create mode 100644 include/llvm/Support/Atomic.h
create mode 100644 include/llvm/Support/DataTypes.h.cmake
create mode 100644 include/llvm/Support/DataTypes.h.in
create mode 100644 include/llvm/Support/Disassembler.h
create mode 100644 include/llvm/Support/DynamicLibrary.h
delete mode 100644 include/llvm/Support/DynamicLinker.h
create mode 100644 include/llvm/Support/Endian.h
create mode 100644 include/llvm/Support/Errno.h
create mode 100644 include/llvm/Support/FEnv.h
create mode 100644 include/llvm/Support/FileSystem.h
create mode 100644 include/llvm/Support/Host.h
create mode 100644 include/llvm/Support/IncludeFile.h
create mode 100644 include/llvm/Support/LICENSE.TXT
create mode 100644 include/llvm/Support/Memory.h
create mode 100644 include/llvm/Support/Mutex.h
create mode 100644 include/llvm/Support/Path.h
create mode 100644 include/llvm/Support/PathV1.h
create mode 100644 include/llvm/Support/PathV2.h
create mode 100644 include/llvm/Support/Process.h
create mode 100644 include/llvm/Support/Program.h
create mode 100644 include/llvm/Support/RWMutex.h
create mode 100644 include/llvm/Support/Signals.h
create mode 100644 include/llvm/Support/Solaris.h
delete mode 100644 include/llvm/Support/StableBasicBlockNumbering.h
create mode 100644 include/llvm/Support/SwapByteOrder.h
create mode 100644 include/llvm/Support/ThreadLocal.h
create mode 100644 include/llvm/Support/Threading.h
create mode 100644 include/llvm/Support/TimeValue.h
create mode 100644 include/llvm/Support/ToolOutputFile.h
create mode 100644 include/llvm/Support/Valgrind.h
create mode 100644 include/llvm/Support/system_error.h
delete mode 100644 include/llvm/System/AIXDataTypesFix.h
delete mode 100644 include/llvm/System/Alarm.h
delete mode 100644 include/llvm/System/Atomic.h
delete mode 100644 include/llvm/System/DataTypes.h.cmake
delete mode 100644 include/llvm/System/DataTypes.h.in
delete mode 100644 include/llvm/System/Disassembler.h
delete mode 100644 include/llvm/System/DynamicLibrary.h
delete mode 100644 include/llvm/System/Errno.h
delete mode 100644 include/llvm/System/Host.h
delete mode 100644 include/llvm/System/IncludeFile.h
delete mode 100644 include/llvm/System/LICENSE.TXT
delete mode 100644 include/llvm/System/Memory.h
delete mode 100644 include/llvm/System/Mutex.h
delete mode 100644 include/llvm/System/Path.h
delete mode 100644 include/llvm/System/Process.h
delete mode 100644 include/llvm/System/Program.h
delete mode 100644 include/llvm/System/RWMutex.h
delete mode 100644 include/llvm/System/Signals.h
delete mode 100644 include/llvm/System/Solaris.h
delete mode 100644 include/llvm/System/ThreadLocal.h
delete mode 100644 include/llvm/System/Threading.h
delete mode 100644 include/llvm/System/TimeValue.h
delete mode 100644 include/llvm/System/Valgrind.h
create mode 100644 include/llvm/Target/TargetAsmInfo.h
delete mode 100644 include/llvm/Target/TargetFrameInfo.h
create mode 100644 include/llvm/Target/TargetFrameLowering.h
create mode 100644 include/llvm/Target/TargetLibraryInfo.h
delete mode 100644 include/llvm/Transforms/RSProfiling.h
create mode 100644 lib/Analysis/DIBuilder.cpp
create mode 100644 lib/Analysis/DominanceFrontier.cpp
create mode 100644 lib/Analysis/IPA/IPA.cpp
create mode 100644 lib/Analysis/MemDepPrinter.cpp
create mode 100644 lib/Analysis/NoAliasAnalysis.cpp
create mode 100644 lib/Analysis/PathNumbering.cpp
create mode 100644 lib/Analysis/PathProfileInfo.cpp
create mode 100644 lib/Analysis/PathProfileVerifier.cpp
delete mode 100644 lib/Analysis/PointerTracking.cpp
create mode 100644 lib/Analysis/RegionPass.cpp
create mode 100644 lib/Bitcode/CMakeLists.txt
create mode 100644 lib/CMakeLists.txt
create mode 100644 lib/CodeGen/AllocationOrder.cpp
create mode 100644 lib/CodeGen/AllocationOrder.h
create mode 100644 lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
create mode 100644 lib/CodeGen/AsmPrinter/DwarfTableException.cpp
create mode 100644 lib/CodeGen/CodeGen.cpp
create mode 100644 lib/CodeGen/EdgeBundles.cpp
create mode 100644 lib/CodeGen/ExpandISelPseudos.cpp
create mode 100644 lib/CodeGen/LiveDebugVariables.cpp
create mode 100644 lib/CodeGen/LiveDebugVariables.h
create mode 100644 lib/CodeGen/LiveIntervalUnion.cpp
create mode 100644 lib/CodeGen/LiveIntervalUnion.h
create mode 100644 lib/CodeGen/LiveRangeEdit.cpp
create mode 100644 lib/CodeGen/LiveRangeEdit.h
create mode 100644 lib/CodeGen/MachineLoopRanges.cpp
delete mode 100644 lib/CodeGen/PBQP/Graph.h
delete mode 100644 lib/CodeGen/PBQP/HeuristicBase.h
delete mode 100644 lib/CodeGen/PBQP/HeuristicSolver.h
delete mode 100644 lib/CodeGen/PBQP/Heuristics/Briggs.h
delete mode 100644 lib/CodeGen/PBQP/Math.h
delete mode 100644 lib/CodeGen/PBQP/Solution.h
delete mode 100644 lib/CodeGen/PHIElimination.h
create mode 100644 lib/CodeGen/PHIEliminationUtils.cpp
create mode 100644 lib/CodeGen/PHIEliminationUtils.h
delete mode 100644 lib/CodeGen/PostRAHazardRecognizer.cpp
create mode 100644 lib/CodeGen/RegAllocBase.h
create mode 100644 lib/CodeGen/RegAllocBasic.cpp
create mode 100644 lib/CodeGen/RegAllocGreedy.cpp
create mode 100644 lib/CodeGen/ScoreboardHazardRecognizer.cpp
create mode 100644 lib/CodeGen/SpillPlacement.cpp
create mode 100644 lib/CodeGen/SpillPlacement.h
create mode 100644 lib/ExecutionEngine/MCJIT/CMakeLists.txt
create mode 100644 lib/ExecutionEngine/MCJIT/MCJIT.cpp
create mode 100644 lib/ExecutionEngine/MCJIT/MCJIT.h
create mode 100644 lib/ExecutionEngine/MCJIT/Makefile
create mode 100644 lib/ExecutionEngine/MCJIT/TargetSelect.cpp
create mode 100644 lib/MC/MCELFObjectTargetWriter.cpp
create mode 100644 lib/MC/MCMachObjectTargetWriter.cpp
create mode 100644 lib/MC/MCParser/COFFAsmParser.cpp
create mode 100644 lib/MC/MCPureStreamer.cpp
create mode 100644 lib/Object/CMakeLists.txt
create mode 100644 lib/Object/COFFObjectFile.cpp
create mode 100644 lib/Object/ELFObjectFile.cpp
create mode 100644 lib/Object/MachOObject.cpp
create mode 100644 lib/Object/Makefile
create mode 100644 lib/Object/ObjectFile.cpp
create mode 100644 lib/Support/Atomic.cpp
create mode 100644 lib/Support/Disassembler.cpp
create mode 100644 lib/Support/DynamicLibrary.cpp
create mode 100644 lib/Support/Errno.cpp
create mode 100644 lib/Support/Host.cpp
create mode 100644 lib/Support/IncludeFile.cpp
create mode 100644 lib/Support/IntEqClasses.cpp
create mode 100644 lib/Support/IntervalMap.cpp
create mode 100644 lib/Support/Memory.cpp
create mode 100644 lib/Support/Mutex.cpp
create mode 100644 lib/Support/Path.cpp
create mode 100644 lib/Support/PathV2.cpp
create mode 100644 lib/Support/Process.cpp
create mode 100644 lib/Support/Program.cpp
create mode 100644 lib/Support/README.txt.system
create mode 100644 lib/Support/RWMutex.cpp
create mode 100644 lib/Support/SearchForAddressOfSpecialSymbol.cpp
create mode 100644 lib/Support/Signals.cpp
create mode 100644 lib/Support/ThreadLocal.cpp
create mode 100644 lib/Support/Threading.cpp
create mode 100644 lib/Support/TimeValue.cpp
create mode 100644 lib/Support/ToolOutputFile.cpp
create mode 100644 lib/Support/Unix/Host.inc
create mode 100644 lib/Support/Unix/Memory.inc
create mode 100644 lib/Support/Unix/Mutex.inc
create mode 100644 lib/Support/Unix/Path.inc
create mode 100644 lib/Support/Unix/PathV2.inc
create mode 100644 lib/Support/Unix/Process.inc
create mode 100644 lib/Support/Unix/Program.inc
create mode 100644 lib/Support/Unix/README.txt
create mode 100644 lib/Support/Unix/RWMutex.inc
create mode 100644 lib/Support/Unix/Signals.inc
create mode 100644 lib/Support/Unix/ThreadLocal.inc
create mode 100644 lib/Support/Unix/TimeValue.inc
create mode 100644 lib/Support/Unix/Unix.h
create mode 100644 lib/Support/Unix/system_error.inc
create mode 100644 lib/Support/Valgrind.cpp
create mode 100644 lib/Support/Windows/DynamicLibrary.inc
create mode 100644 lib/Support/Windows/Host.inc
create mode 100644 lib/Support/Windows/Memory.inc
create mode 100644 lib/Support/Windows/Mutex.inc
create mode 100644 lib/Support/Windows/Path.inc
create mode 100644 lib/Support/Windows/PathV2.inc
create mode 100644 lib/Support/Windows/Process.inc
create mode 100644 lib/Support/Windows/Program.inc
create mode 100644 lib/Support/Windows/RWMutex.inc
create mode 100644 lib/Support/Windows/Signals.inc
create mode 100644 lib/Support/Windows/ThreadLocal.inc
create mode 100644 lib/Support/Windows/TimeValue.inc
create mode 100644 lib/Support/Windows/Windows.h
create mode 100644 lib/Support/Windows/explicit_symbols.inc
create mode 100644 lib/Support/Windows/system_error.inc
create mode 100644 lib/Support/system_error.cpp
delete mode 100644 lib/System/Alarm.cpp
delete mode 100644 lib/System/Atomic.cpp
delete mode 100644 lib/System/CMakeLists.txt
delete mode 100644 lib/System/Disassembler.cpp
delete mode 100644 lib/System/DynamicLibrary.cpp
delete mode 100644 lib/System/Errno.cpp
delete mode 100644 lib/System/Host.cpp
delete mode 100644 lib/System/IncludeFile.cpp
delete mode 100644 lib/System/Makefile
delete mode 100644 lib/System/Memory.cpp
delete mode 100644 lib/System/Mutex.cpp
delete mode 100644 lib/System/Path.cpp
delete mode 100644 lib/System/Process.cpp
delete mode 100644 lib/System/Program.cpp
delete mode 100644 lib/System/README.txt
delete mode 100644 lib/System/RWMutex.cpp
delete mode 100644 lib/System/SearchForAddressOfSpecialSymbol.cpp
delete mode 100644 lib/System/Signals.cpp
delete mode 100644 lib/System/ThreadLocal.cpp
delete mode 100644 lib/System/Threading.cpp
delete mode 100644 lib/System/TimeValue.cpp
delete mode 100644 lib/System/Unix/Alarm.inc
delete mode 100644 lib/System/Unix/Host.inc
delete mode 100644 lib/System/Unix/Memory.inc
delete mode 100644 lib/System/Unix/Mutex.inc
delete mode 100644 lib/System/Unix/Path.inc
delete mode 100644 lib/System/Unix/Process.inc
delete mode 100644 lib/System/Unix/Program.inc
delete mode 100644 lib/System/Unix/README.txt
delete mode 100644 lib/System/Unix/RWMutex.inc
delete mode 100644 lib/System/Unix/Signals.inc
delete mode 100644 lib/System/Unix/ThreadLocal.inc
delete mode 100644 lib/System/Unix/TimeValue.inc
delete mode 100644 lib/System/Unix/Unix.h
delete mode 100644 lib/System/Valgrind.cpp
delete mode 100644 lib/System/Win32/Alarm.inc
delete mode 100644 lib/System/Win32/DynamicLibrary.inc
delete mode 100644 lib/System/Win32/Host.inc
delete mode 100644 lib/System/Win32/Memory.inc
delete mode 100644 lib/System/Win32/Mutex.inc
delete mode 100644 lib/System/Win32/Path.inc
delete mode 100644 lib/System/Win32/Process.inc
delete mode 100644 lib/System/Win32/Program.inc
delete mode 100644 lib/System/Win32/RWMutex.inc
delete mode 100644 lib/System/Win32/Signals.inc
delete mode 100644 lib/System/Win32/ThreadLocal.inc
delete mode 100644 lib/System/Win32/TimeValue.inc
delete mode 100644 lib/System/Win32/Win32.h
create mode 100644 lib/Target/ARM/ARMAsmBackend.cpp
create mode 100644 lib/Target/ARM/ARMAsmPrinter.h
create mode 100644 lib/Target/ARM/ARMBaseInfo.h
create mode 100644 lib/Target/ARM/ARMCallingConv.h
create mode 100644 lib/Target/ARM/ARMELFWriterInfo.cpp
create mode 100644 lib/Target/ARM/ARMELFWriterInfo.h
create mode 100644 lib/Target/ARM/ARMFixupKinds.h
delete mode 100644 lib/Target/ARM/ARMFrameInfo.h
create mode 100644 lib/Target/ARM/ARMFrameLowering.cpp
create mode 100644 lib/Target/ARM/ARMFrameLowering.h
create mode 100644 lib/Target/ARM/ARMHazardRecognizer.cpp
create mode 100644 lib/Target/ARM/ARMHazardRecognizer.h
create mode 100644 lib/Target/ARM/ARMMCCodeEmitter.cpp
create mode 100644 lib/Target/ARM/ARMMCExpr.cpp
create mode 100644 lib/Target/ARM/ARMMCExpr.h
delete mode 100644 lib/Target/ARM/ARMMCInstLower.h
delete mode 100644 lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
delete mode 100644 lib/Target/ARM/AsmPrinter/ARMInstPrinter.h
delete mode 100644 lib/Target/ARM/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/ARM/AsmPrinter/Makefile
create mode 100644 lib/Target/ARM/Disassembler/CMakeLists.txt
create mode 100644 lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
create mode 100644 lib/Target/ARM/InstPrinter/ARMInstPrinter.h
create mode 100644 lib/Target/ARM/InstPrinter/CMakeLists.txt
create mode 100644 lib/Target/ARM/InstPrinter/Makefile
create mode 100644 lib/Target/ARM/MLxExpansionPass.cpp
delete mode 100644 lib/Target/ARM/NEONPreAllocPass.cpp
create mode 100644 lib/Target/ARM/Thumb1FrameLowering.cpp
create mode 100644 lib/Target/ARM/Thumb1FrameLowering.h
delete mode 100644 lib/Target/ARM/Thumb2HazardRecognizer.cpp
delete mode 100644 lib/Target/ARM/Thumb2HazardRecognizer.h
create mode 100644 lib/Target/Alpha/AlphaAsmPrinter.cpp
delete mode 100644 lib/Target/Alpha/AlphaCodeEmitter.cpp
create mode 100644 lib/Target/Alpha/AlphaFrameLowering.cpp
create mode 100644 lib/Target/Alpha/AlphaFrameLowering.h
delete mode 100644 lib/Target/Alpha/AlphaJITInfo.cpp
delete mode 100644 lib/Target/Alpha/AlphaJITInfo.h
delete mode 100644 lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
delete mode 100644 lib/Target/Alpha/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/Alpha/AsmPrinter/Makefile
delete mode 100644 lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
delete mode 100644 lib/Target/Blackfin/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/Blackfin/AsmPrinter/Makefile
create mode 100644 lib/Target/Blackfin/BlackfinAsmPrinter.cpp
create mode 100644 lib/Target/Blackfin/BlackfinFrameLowering.cpp
create mode 100644 lib/Target/Blackfin/BlackfinFrameLowering.h
delete mode 100644 lib/Target/CellSPU/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/CellSPU/AsmPrinter/Makefile
delete mode 100644 lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp
create mode 100644 lib/Target/CellSPU/SPUAsmPrinter.cpp
delete mode 100644 lib/Target/CellSPU/SPUFrameInfo.cpp
delete mode 100644 lib/Target/CellSPU/SPUFrameInfo.h
create mode 100644 lib/Target/CellSPU/SPUFrameLowering.cpp
create mode 100644 lib/Target/CellSPU/SPUFrameLowering.h
create mode 100644 lib/Target/CellSPU/SPUNopFiller.cpp
create mode 100644 lib/Target/MBlaze/AsmParser/CMakeLists.txt
create mode 100644 lib/Target/MBlaze/AsmParser/MBlazeAsmLexer.cpp
create mode 100644 lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
create mode 100644 lib/Target/MBlaze/AsmParser/Makefile
delete mode 100644 lib/Target/MBlaze/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/MBlaze/AsmPrinter/MBlazeAsmPrinter.cpp
delete mode 100644 lib/Target/MBlaze/AsmPrinter/Makefile
create mode 100644 lib/Target/MBlaze/Disassembler/CMakeLists.txt
create mode 100644 lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp
create mode 100644 lib/Target/MBlaze/Disassembler/MBlazeDisassembler.h
create mode 100644 lib/Target/MBlaze/Disassembler/Makefile
create mode 100644 lib/Target/MBlaze/InstPrinter/CMakeLists.txt
create mode 100644 lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp
create mode 100644 lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.h
create mode 100644 lib/Target/MBlaze/InstPrinter/Makefile
create mode 100644 lib/Target/MBlaze/MBlazeAsmBackend.cpp
create mode 100644 lib/Target/MBlaze/MBlazeAsmPrinter.cpp
create mode 100644 lib/Target/MBlaze/MBlazeELFWriterInfo.cpp
create mode 100644 lib/Target/MBlaze/MBlazeELFWriterInfo.h
create mode 100644 lib/Target/MBlaze/MBlazeFrameLowering.cpp
create mode 100644 lib/Target/MBlaze/MBlazeFrameLowering.h
create mode 100644 lib/Target/MBlaze/MBlazeMCCodeEmitter.cpp
create mode 100644 lib/Target/MBlaze/MBlazeMCInstLower.cpp
create mode 100644 lib/Target/MBlaze/MBlazeMCInstLower.h
create mode 100644 lib/Target/MBlaze/MBlazeRelocations.h
create mode 100644 lib/Target/MBlaze/TODO
delete mode 100644 lib/Target/MSP430/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
delete mode 100644 lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp
delete mode 100644 lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.h
delete mode 100644 lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp
delete mode 100644 lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h
delete mode 100644 lib/Target/MSP430/AsmPrinter/Makefile
create mode 100644 lib/Target/MSP430/InstPrinter/CMakeLists.txt
create mode 100644 lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp
create mode 100644 lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h
create mode 100644 lib/Target/MSP430/InstPrinter/Makefile
create mode 100644 lib/Target/MSP430/MSP430AsmPrinter.cpp
create mode 100644 lib/Target/MSP430/MSP430FrameLowering.cpp
create mode 100644 lib/Target/MSP430/MSP430FrameLowering.h
create mode 100644 lib/Target/MSP430/MSP430MCInstLower.cpp
create mode 100644 lib/Target/MSP430/MSP430MCInstLower.h
delete mode 100644 lib/Target/Mips/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/Mips/AsmPrinter/Makefile
delete mode 100644 lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
create mode 100644 lib/Target/Mips/MipsAsmPrinter.cpp
create mode 100644 lib/Target/Mips/MipsFrameLowering.cpp
create mode 100644 lib/Target/Mips/MipsFrameLowering.h
delete mode 100644 lib/Target/PIC16/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/PIC16/AsmPrinter/Makefile
delete mode 100644 lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
delete mode 100644 lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h
delete mode 100644 lib/Target/PIC16/CMakeLists.txt
delete mode 100644 lib/Target/PIC16/Makefile
delete mode 100644 lib/Target/PIC16/PIC16.h
delete mode 100644 lib/Target/PIC16/PIC16.td
delete mode 100644 lib/Target/PIC16/PIC16ABINames.h
delete mode 100644 lib/Target/PIC16/PIC16DebugInfo.cpp
delete mode 100644 lib/Target/PIC16/PIC16DebugInfo.h
delete mode 100644 lib/Target/PIC16/PIC16ISelDAGToDAG.cpp
delete mode 100644 lib/Target/PIC16/PIC16ISelDAGToDAG.h
delete mode 100644 lib/Target/PIC16/PIC16ISelLowering.cpp
delete mode 100644 lib/Target/PIC16/PIC16ISelLowering.h
delete mode 100644 lib/Target/PIC16/PIC16InstrFormats.td
delete mode 100644 lib/Target/PIC16/PIC16InstrInfo.cpp
delete mode 100644 lib/Target/PIC16/PIC16InstrInfo.h
delete mode 100644 lib/Target/PIC16/PIC16InstrInfo.td
delete mode 100644 lib/Target/PIC16/PIC16MCAsmInfo.cpp
delete mode 100644 lib/Target/PIC16/PIC16MCAsmInfo.h
delete mode 100644 lib/Target/PIC16/PIC16MachineFunctionInfo.h
delete mode 100644 lib/Target/PIC16/PIC16MemSelOpt.cpp
delete mode 100644 lib/Target/PIC16/PIC16Passes/Makefile
delete mode 100644 lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp
delete mode 100644 lib/Target/PIC16/PIC16Passes/PIC16Cloner.h
delete mode 100644 lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp
delete mode 100644 lib/Target/PIC16/PIC16Passes/PIC16Overlay.h
delete mode 100644 lib/Target/PIC16/PIC16RegisterInfo.cpp
delete mode 100644 lib/Target/PIC16/PIC16RegisterInfo.h
delete mode 100644 lib/Target/PIC16/PIC16RegisterInfo.td
delete mode 100644 lib/Target/PIC16/PIC16Section.cpp
delete mode 100644 lib/Target/PIC16/PIC16Section.h
delete mode 100644 lib/Target/PIC16/PIC16SelectionDAGInfo.cpp
delete mode 100644 lib/Target/PIC16/PIC16SelectionDAGInfo.h
delete mode 100644 lib/Target/PIC16/PIC16Subtarget.cpp
delete mode 100644 lib/Target/PIC16/PIC16Subtarget.h
delete mode 100644 lib/Target/PIC16/PIC16TargetMachine.cpp
delete mode 100644 lib/Target/PIC16/PIC16TargetMachine.h
delete mode 100644 lib/Target/PIC16/PIC16TargetObjectFile.cpp
delete mode 100644 lib/Target/PIC16/PIC16TargetObjectFile.h
delete mode 100644 lib/Target/PIC16/TargetInfo/CMakeLists.txt
delete mode 100644 lib/Target/PIC16/TargetInfo/Makefile
delete mode 100644 lib/Target/PIC16/TargetInfo/PIC16TargetInfo.cpp
create mode 100644 lib/Target/PTX/CMakeLists.txt
create mode 100644 lib/Target/PTX/Makefile
create mode 100644 lib/Target/PTX/PTX.h
create mode 100644 lib/Target/PTX/PTX.td
create mode 100644 lib/Target/PTX/PTXAsmPrinter.cpp
create mode 100644 lib/Target/PTX/PTXFrameLowering.cpp
create mode 100644 lib/Target/PTX/PTXFrameLowering.h
create mode 100644 lib/Target/PTX/PTXISelDAGToDAG.cpp
create mode 100644 lib/Target/PTX/PTXISelLowering.cpp
create mode 100644 lib/Target/PTX/PTXISelLowering.h
create mode 100644 lib/Target/PTX/PTXInstrFormats.td
create mode 100644 lib/Target/PTX/PTXInstrInfo.cpp
create mode 100644 lib/Target/PTX/PTXInstrInfo.h
create mode 100644 lib/Target/PTX/PTXInstrInfo.td
create mode 100644 lib/Target/PTX/PTXMCAsmInfo.cpp
create mode 100644 lib/Target/PTX/PTXMCAsmInfo.h
create mode 100644 lib/Target/PTX/PTXMCAsmStreamer.cpp
create mode 100644 lib/Target/PTX/PTXMFInfoExtract.cpp
create mode 100644 lib/Target/PTX/PTXMachineFunctionInfo.h
create mode 100644 lib/Target/PTX/PTXRegisterInfo.cpp
create mode 100644 lib/Target/PTX/PTXRegisterInfo.h
create mode 100644 lib/Target/PTX/PTXRegisterInfo.td
create mode 100644 lib/Target/PTX/PTXSubtarget.cpp
create mode 100644 lib/Target/PTX/PTXSubtarget.h
create mode 100644 lib/Target/PTX/PTXTargetMachine.cpp
create mode 100644 lib/Target/PTX/PTXTargetMachine.h
create mode 100644 lib/Target/PTX/TargetInfo/CMakeLists.txt
create mode 100644 lib/Target/PTX/TargetInfo/Makefile
create mode 100644 lib/Target/PTX/TargetInfo/PTXTargetInfo.cpp
delete mode 100644 lib/Target/PowerPC/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/PowerPC/AsmPrinter/Makefile
delete mode 100644 lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
create mode 100644 lib/Target/PowerPC/InstPrinter/CMakeLists.txt
create mode 100644 lib/Target/PowerPC/InstPrinter/Makefile
create mode 100644 lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
create mode 100644 lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h
create mode 100644 lib/Target/PowerPC/PPCAsmBackend.cpp
create mode 100644 lib/Target/PowerPC/PPCAsmPrinter.cpp
create mode 100644 lib/Target/PowerPC/PPCFixupKinds.h
delete mode 100644 lib/Target/PowerPC/PPCFrameInfo.h
create mode 100644 lib/Target/PowerPC/PPCFrameLowering.cpp
create mode 100644 lib/Target/PowerPC/PPCFrameLowering.h
create mode 100644 lib/Target/PowerPC/PPCMCCodeEmitter.cpp
create mode 100644 lib/Target/PowerPC/PPCMCInstLower.cpp
delete mode 100644 lib/Target/Sparc/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/Sparc/AsmPrinter/Makefile
delete mode 100644 lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
create mode 100644 lib/Target/Sparc/SparcAsmPrinter.cpp
create mode 100644 lib/Target/Sparc/SparcFrameLowering.cpp
create mode 100644 lib/Target/Sparc/SparcFrameLowering.h
delete mode 100644 lib/Target/SystemZ/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/SystemZ/AsmPrinter/Makefile
delete mode 100644 lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
create mode 100644 lib/Target/SystemZ/SystemZAsmPrinter.cpp
create mode 100644 lib/Target/SystemZ/SystemZFrameLowering.cpp
create mode 100644 lib/Target/SystemZ/SystemZFrameLowering.h
create mode 100644 lib/Target/TargetAsmInfo.cpp
delete mode 100644 lib/Target/TargetFrameInfo.cpp
create mode 100644 lib/Target/TargetFrameLowering.cpp
create mode 100644 lib/Target/TargetLibraryInfo.cpp
delete mode 100644 lib/Target/X86/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/X86/AsmPrinter/Makefile
delete mode 100644 lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
delete mode 100644 lib/Target/X86/AsmPrinter/X86ATTInstPrinter.h
delete mode 100644 lib/Target/X86/AsmPrinter/X86InstComments.cpp
delete mode 100644 lib/Target/X86/AsmPrinter/X86InstComments.h
delete mode 100644 lib/Target/X86/AsmPrinter/X86IntelInstPrinter.cpp
delete mode 100644 lib/Target/X86/AsmPrinter/X86IntelInstPrinter.h
create mode 100644 lib/Target/X86/InstPrinter/CMakeLists.txt
create mode 100644 lib/Target/X86/InstPrinter/Makefile
create mode 100644 lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
create mode 100644 lib/Target/X86/InstPrinter/X86ATTInstPrinter.h
create mode 100644 lib/Target/X86/InstPrinter/X86InstComments.cpp
create mode 100644 lib/Target/X86/InstPrinter/X86InstComments.h
create mode 100644 lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
create mode 100644 lib/Target/X86/InstPrinter/X86IntelInstPrinter.h
create mode 100644 lib/Target/X86/Utils/CMakeLists.txt
create mode 100644 lib/Target/X86/Utils/Makefile
create mode 100644 lib/Target/X86/Utils/X86ShuffleDecode.cpp
create mode 100644 lib/Target/X86/Utils/X86ShuffleDecode.h
create mode 100644 lib/Target/X86/X86FrameLowering.cpp
create mode 100644 lib/Target/X86/X86FrameLowering.h
create mode 100644 lib/Target/X86/X86Instr3DNow.td
delete mode 100644 lib/Target/X86/X86Instr64bit.td
create mode 100644 lib/Target/X86/X86InstrArithmetic.td
create mode 100644 lib/Target/X86/X86InstrCMovSetCC.td
create mode 100644 lib/Target/X86/X86InstrCompiler.td
create mode 100644 lib/Target/X86/X86InstrControl.td
create mode 100644 lib/Target/X86/X86InstrExtension.td
create mode 100644 lib/Target/X86/X86InstrShiftRotate.td
create mode 100644 lib/Target/X86/X86InstrSystem.td
create mode 100644 lib/Target/X86/X86InstrVMX.td
create mode 100644 lib/Target/X86/X86MachObjectWriter.cpp
delete mode 100644 lib/Target/X86/X86ShuffleDecode.h
delete mode 100644 lib/Target/XCore/AsmPrinter/CMakeLists.txt
delete mode 100644 lib/Target/XCore/AsmPrinter/Makefile
delete mode 100644 lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp
create mode 100644 lib/Target/XCore/XCoreAsmPrinter.cpp
delete mode 100644 lib/Target/XCore/XCoreFrameInfo.cpp
delete mode 100644 lib/Target/XCore/XCoreFrameInfo.h
create mode 100644 lib/Target/XCore/XCoreFrameLowering.cpp
create mode 100644 lib/Target/XCore/XCoreFrameLowering.h
create mode 100644 lib/Transforms/CMakeLists.txt
delete mode 100644 lib/Transforms/IPO/PartialSpecialization.cpp
create mode 100644 lib/Transforms/Instrumentation/Instrumentation.cpp
create mode 100644 lib/Transforms/Instrumentation/PathProfiling.cpp
create mode 100644 lib/Transforms/Scalar/EarlyCSE.cpp
create mode 100644 lib/Transforms/Scalar/LoopIdiomRecognize.cpp
delete mode 100644 lib/Transforms/Scalar/LoopIndexSplit.cpp
create mode 100644 lib/Transforms/Scalar/LoopInstSimplify.cpp
create mode 100644 lib/Transforms/Utils/SimplifyInstructions.cpp
create mode 100644 lib/Transforms/Utils/Utils.cpp
create mode 100644 lib/VMCore/User.cpp
create mode 100644 runtime/libprofile/PathProfiling.c
create mode 100644 test/Analysis/BasicAA/2010-09-15-GEP-SignedArithmetic.ll
create mode 100644 test/Analysis/BasicAA/full-store-partial-alias.ll
delete mode 100644 test/Analysis/PointerTracking/dg.exp
delete mode 100644 test/Analysis/PointerTracking/sizes.ll
create mode 100644 test/Analysis/ScalarEvolution/2010-09-03-RequiredTransitive.ll
create mode 100644 test/Analysis/ScalarEvolution/fold.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/aliastest.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/argument-promotion.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/dg.exp
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/dse.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/gvn-nonlocal-type-mismatch.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/licm.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/precedence.ll
create mode 100644 test/Analysis/TypeBasedAliasAnalysis/sink.ll
delete mode 100644 test/Archive/GNU.toc
delete mode 100644 test/Archive/MacOSX.toc
delete mode 100644 test/Archive/SVR4.toc
delete mode 100644 test/Archive/xpg4.toc
create mode 100644 test/Assembler/AutoUpgradeMMXIntrinsics.ll
create mode 100644 test/Assembler/extractvalue-invalid-idx.ll
create mode 100644 test/Assembler/insertvalue-invalid-idx.ll
create mode 100644 test/Assembler/unnamed-addr.ll
create mode 100644 test/Assembler/x86mmx.ll
create mode 100644 test/Bindings/Ocaml/ext_exc.ml
create mode 100644 test/Bitcode/null-type.ll
create mode 100644 test/Bitcode/null-type.ll.bc
delete mode 100644 test/CodeGen/ARM/2009-08-21-PostRAKill4.ll
delete mode 100644 test/CodeGen/ARM/2009-09-01-PostRAProlog.ll
delete mode 100644 test/CodeGen/ARM/2010-05-17-DAGCombineAssert.ll
delete mode 100644 test/CodeGen/ARM/2010-06-28-DAGCombineUndef.ll
create mode 100644 test/CodeGen/ARM/2010-09-21-OptCmpBug.ll
create mode 100644 test/CodeGen/ARM/2010-09-29-mc-asm-header-test.ll
create mode 100644 test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll
create mode 100644 test/CodeGen/ARM/2010-10-25-ifcvt-ldm.ll
create mode 100644 test/CodeGen/ARM/2010-11-15-SpillEarlyClobber.ll
create mode 100644 test/CodeGen/ARM/2010-11-29-PrologueBug.ll
create mode 100644 test/CodeGen/ARM/2010-11-30-reloc-movt.ll
create mode 100644 test/CodeGen/ARM/2010-12-07-PEIBug.ll
create mode 100644 test/CodeGen/ARM/2010-12-08-tpsoft.ll
create mode 100644 test/CodeGen/ARM/2010-12-13-reloc-pic.ll
create mode 100644 test/CodeGen/ARM/2010-12-15-elf-lcomm.ll
create mode 100644 test/CodeGen/ARM/2010-12-17-LocalStackSlotCrash.ll
create mode 100644 test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll
create mode 100644 test/CodeGen/ARM/2011-02-04-AntidepMultidef.ll
create mode 100644 test/CodeGen/ARM/2011-02-07-AntidepClobber.ll
create mode 100644 test/CodeGen/ARM/arm-and-tst-peephole.ll
create mode 100644 test/CodeGen/ARM/atomic-cmp.ll
create mode 100644 test/CodeGen/ARM/bswap-inline-asm.ll
create mode 100644 test/CodeGen/ARM/crash.ll
create mode 100644 test/CodeGen/ARM/fast-isel-crash.ll
create mode 100644 test/CodeGen/ARM/fast-isel-static.ll
create mode 100644 test/CodeGen/ARM/global-merge.ll
create mode 100644 test/CodeGen/ARM/ifcvt10.ll
create mode 100644 test/CodeGen/ARM/ifcvt11.ll
create mode 100644 test/CodeGen/ARM/ldst-f32-2-i32.ll
create mode 100644 test/CodeGen/ARM/load-global.ll
create mode 100644 test/CodeGen/ARM/machine-licm.ll
create mode 100644 test/CodeGen/ARM/mult-alt-generic-arm.ll
create mode 100644 test/CodeGen/ARM/neon_div.ll
create mode 100644 test/CodeGen/ARM/phi.ll
create mode 100644 test/CodeGen/ARM/prefetch.ll
delete mode 100644 test/CodeGen/ARM/remat.ll
create mode 100644 test/CodeGen/ARM/thumb1-varalloc.ll
create mode 100644 test/CodeGen/ARM/umulo-32.ll
create mode 100644 test/CodeGen/ARM/vector-DAGCombine.ll
create mode 100644 test/CodeGen/ARM/vlddup.ll
create mode 100644 test/CodeGen/CellSPU/div_ops.ll
create mode 100644 test/CodeGen/Generic/2010-11-04-BigByval.ll
create mode 100644 test/CodeGen/Generic/2011-01-06-BigNumberCrash.ll
create mode 100644 test/CodeGen/Generic/2011-02-12-shuffle.ll
create mode 100644 test/CodeGen/Generic/overflow.ll
create mode 100644 test/CodeGen/MBlaze/intr.ll
create mode 100644 test/CodeGen/MBlaze/svol.ll
create mode 100644 test/CodeGen/MSP430/mult-alt-generic-msp430.ll
create mode 100644 test/CodeGen/Mips/2010-11-09-CountLeading.ll
create mode 100644 test/CodeGen/Mips/2010-11-09-Mul.ll
create mode 100755 test/CodeGen/Mips/cmov.ll
create mode 100644 test/CodeGen/Mips/madd-msub.ll
create mode 100644 test/CodeGen/Mips/o32_cc.ll
create mode 100644 test/CodeGen/Mips/rotate.ll
delete mode 100644 test/CodeGen/PIC16/2009-07-17-PR4566-pic16.ll
delete mode 100644 test/CodeGen/PIC16/2009-11-20-NewNode.ll
delete mode 100644 test/CodeGen/PIC16/C16-11.ll
delete mode 100644 test/CodeGen/PIC16/C16-15.ll
delete mode 100644 test/CodeGen/PIC16/C16-49.ll
delete mode 100644 test/CodeGen/PIC16/check_inc_files.ll
delete mode 100644 test/CodeGen/PIC16/dg.exp
delete mode 100644 test/CodeGen/PIC16/global-in-user-section.ll
delete mode 100644 test/CodeGen/PIC16/globals.ll
delete mode 100644 test/CodeGen/PIC16/result_direction.ll
delete mode 100644 test/CodeGen/PIC16/sext.ll
delete mode 100644 test/CodeGen/PIC16/test_indf_name.ll
create mode 100644 test/CodeGen/PTX/add.ll
create mode 100644 test/CodeGen/PTX/dg.exp
create mode 100644 test/CodeGen/PTX/exit.ll
create mode 100644 test/CodeGen/PTX/ld.ll
create mode 100644 test/CodeGen/PTX/mov.ll
create mode 100644 test/CodeGen/PTX/options.ll
create mode 100644 test/CodeGen/PTX/ret.ll
create mode 100644 test/CodeGen/PTX/shl.ll
create mode 100644 test/CodeGen/PTX/shr.ll
create mode 100644 test/CodeGen/PTX/st.ll
create mode 100644 test/CodeGen/PTX/sub.ll
create mode 100644 test/CodeGen/PowerPC/2010-10-11-Fast-Varargs.ll
create mode 100644 test/CodeGen/PowerPC/2010-12-18-PPCStackRefs.ll
create mode 100644 test/CodeGen/PowerPC/mult-alt-generic-powerpc.ll
create mode 100644 test/CodeGen/PowerPC/mult-alt-generic-powerpc64.ll
delete mode 100644 test/CodeGen/PowerPC/tango.net.ftp.FtpClient.ll
create mode 100644 test/CodeGen/PowerPC/varargs.ll
create mode 100755 test/CodeGen/SPARC/2011-01-11-CC.ll
create mode 100644 test/CodeGen/SPARC/2011-01-11-Call.ll
create mode 100644 test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
create mode 100644 test/CodeGen/SPARC/2011-01-19-DelaySlot.ll
create mode 100644 test/CodeGen/SPARC/2011-01-21-ByValArgs.ll
create mode 100644 test/CodeGen/SPARC/2011-01-22-SRet.ll
create mode 100644 test/CodeGen/SPARC/mult-alt-generic-sparc.ll
delete mode 100644 test/CodeGen/SPARC/xnor.ll
create mode 100644 test/CodeGen/Thumb/2011-EpilogueBug.ll
delete mode 100644 test/CodeGen/Thumb/machine-licm.ll
create mode 100644 test/CodeGen/Thumb2/2009-08-21-PostRAKill4.ll
create mode 100644 test/CodeGen/Thumb2/2009-09-01-PostRAProlog.ll
create mode 100644 test/CodeGen/Thumb2/2010-11-22-EpilogueBug.ll
create mode 100644 test/CodeGen/Thumb2/2010-12-03-AddSPNarrowing.ll
create mode 100644 test/CodeGen/Thumb2/buildvector-crash.ll
delete mode 100644 test/CodeGen/Thumb2/load-global.ll
delete mode 100644 test/CodeGen/Thumb2/machine-licm-vdup.ll
delete mode 100644 test/CodeGen/Thumb2/thumb2-badreg-operands.ll
delete mode 100644 test/CodeGen/X86/2007-10-16-fp80_select.ll
delete mode 100644 test/CodeGen/X86/2008-11-29-DivideConstant16bit.ll
delete mode 100644 test/CodeGen/X86/2008-11-29-DivideConstant16bitSigned.ll
create mode 100644 test/CodeGen/X86/2010-09-16-EmptyFilename.ll
create mode 100644 test/CodeGen/X86/2010-09-16-asmcrash.ll
create mode 100644 test/CodeGen/X86/2010-09-17-SideEffectsInChain.ll
create mode 100644 test/CodeGen/X86/2010-09-30-CMOV-JumpTable-PHI.ll
create mode 100644 test/CodeGen/X86/2010-10-08-cmpxchg8b.ll
create mode 100644 test/CodeGen/X86/2010-11-02-DbgParameter.ll
create mode 100644 test/CodeGen/X86/2010-11-09-MOVLPS.ll
create mode 100644 test/CodeGen/X86/2010-11-18-SelectOfExtload.ll
create mode 100644 test/CodeGen/X86/2010-12-02-MC-Set.ll
create mode 100644 test/CodeGen/X86/2011-01-07-LegalizeTypesCrash.ll
create mode 100644 test/CodeGen/X86/2011-01-10-DagCombineHang.ll
create mode 100644 test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll
create mode 100644 test/CodeGen/X86/2011-02-04-FastRegallocNoFP.ll
create mode 100644 test/CodeGen/X86/add-of-carry.ll
create mode 100644 test/CodeGen/X86/alldiv-divdi3.ll
create mode 100644 test/CodeGen/X86/andimm8.ll
create mode 100644 test/CodeGen/X86/apm.ll
create mode 100644 test/CodeGen/X86/bc-extract.ll
create mode 100644 test/CodeGen/X86/bit-test-shift.ll
delete mode 100644 test/CodeGen/X86/cmp-test.ll
create mode 100644 test/CodeGen/X86/cmp.ll
delete mode 100644 test/CodeGen/X86/cmp0.ll
delete mode 100644 test/CodeGen/X86/cmp2.ll
create mode 100644 test/CodeGen/X86/complex-asm.ll
create mode 100644 test/CodeGen/X86/conditional-indecrement.ll
delete mode 100644 test/CodeGen/X86/const-select.ll
create mode 100644 test/CodeGen/X86/critical-edge-split-2.ll
delete mode 100644 test/CodeGen/X86/critical-edge-split.ll
create mode 100644 test/CodeGen/X86/ctpop-combine.ll
create mode 100644 test/CodeGen/X86/dbg-live-in-location.ll
create mode 100644 test/CodeGen/X86/dbg-merge-loc-entry.ll
create mode 100644 test/CodeGen/X86/dbg-value-inlined-parameter.ll
create mode 100644 test/CodeGen/X86/dbg-value-location.ll
create mode 100644 test/CodeGen/X86/dbg-value-range.ll
delete mode 100644 test/CodeGen/X86/div_const.ll
create mode 100644 test/CodeGen/X86/divide-by-constant.ll
create mode 100644 test/CodeGen/X86/fast-isel-avoid-unnecessary-pic-base.ll
create mode 100644 test/CodeGen/X86/fltused.ll
create mode 100644 test/CodeGen/X86/inline-asm-h.ll
create mode 100644 test/CodeGen/X86/inline-asm-ptr-cast.ll
create mode 100644 test/CodeGen/X86/legalize-sub-zero-2.ll
create mode 100644 test/CodeGen/X86/legalize-sub-zero.ll
delete mode 100644 test/CodeGen/X86/memmove-0.ll
delete mode 100644 test/CodeGen/X86/memmove-1.ll
delete mode 100644 test/CodeGen/X86/memmove-2.ll
delete mode 100644 test/CodeGen/X86/memmove-3.ll
create mode 100644 test/CodeGen/X86/misaligned-memset.ll
create mode 100644 test/CodeGen/X86/mmx-builtins.ll
create mode 100644 test/CodeGen/X86/mult-alt-generic-i686.ll
create mode 100644 test/CodeGen/X86/mult-alt-generic-x86_64.ll
create mode 100644 test/CodeGen/X86/mult-alt-x86.ll
create mode 100644 test/CodeGen/X86/narrow-shl-load.ll
create mode 100644 test/CodeGen/X86/non-globl-eh-frame.ll
create mode 100644 test/CodeGen/X86/popcnt.ll
create mode 100644 test/CodeGen/X86/pr9127.ll
delete mode 100644 test/CodeGen/X86/select-aggregate.ll
delete mode 100644 test/CodeGen/X86/select-zero-one.ll
delete mode 100644 test/CodeGen/X86/sext-select.ll
create mode 100644 test/CodeGen/X86/sibcall-5.ll
delete mode 100644 test/CodeGen/X86/split-select.ll
create mode 100644 test/CodeGen/X86/stdcall-notailcall.ll
create mode 100644 test/CodeGen/X86/switch-or.ll
create mode 100644 test/CodeGen/X86/tailcall-ri64.ll
delete mode 100644 test/CodeGen/X86/tls-1.ll
create mode 100644 test/CodeGen/X86/tlv-1.ll
create mode 100644 test/CodeGen/X86/tlv-2.ll
create mode 100644 test/CodeGen/X86/uint64-to-float.ll
create mode 100644 test/CodeGen/X86/umulo-64.ll
create mode 100644 test/CodeGen/X86/vec-sign.ll
delete mode 100644 test/CodeGen/X86/vec_select.ll
create mode 100644 test/CodeGen/X86/visibility.ll
delete mode 100644 test/CodeGen/X86/widen_select-1.ll
create mode 100644 test/CodeGen/X86/win64_params.ll
create mode 100644 test/CodeGen/X86/win64_vararg.ll
create mode 100644 test/CodeGen/X86/x86-64-extend-shift.ll
create mode 100644 test/CodeGen/X86/x86_64-mul-by-const.ll
create mode 100644 test/CodeGen/X86/zext-extract_subreg.ll
create mode 100644 test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll
create mode 100644 test/CodeGen/XCore/resources.ll
create mode 100644 test/CodeGen/XCore/trampoline.ll
create mode 100644 test/DebugInfo/2010-10-01-crash.ll
create mode 100644 test/FrontendAda/Support/real_cst.ads
create mode 100644 test/FrontendAda/real_cst.adb
delete mode 100644 test/FrontendC++/2003-08-20-ExceptionFail.cpp
delete mode 100644 test/FrontendC++/2003-08-21-EmptyClass.cpp
delete mode 100644 test/FrontendC++/2003-08-24-Cleanup.cpp
delete mode 100644 test/FrontendC++/2003-08-27-TypeNamespaces.cpp
delete mode 100644 test/FrontendC++/2003-08-28-ForwardType.cpp
delete mode 100644 test/FrontendC++/2003-08-28-SaveExprBug.cpp
delete mode 100644 test/FrontendC++/2003-08-29-ArgPassingBug.cpp
delete mode 100644 test/FrontendC++/2003-08-31-StructLayout.cpp
delete mode 100644 test/FrontendC++/2003-09-22-CompositeExprValue.cpp
delete mode 100644 test/FrontendC++/2003-09-29-ArgumentNumberMismatch.cpp
delete mode 100644 test/FrontendC++/2003-09-30-CommaExprBug.cpp
delete mode 100644 test/FrontendC++/2003-09-30-ForIncrementExprBug.cpp
delete mode 100644 test/FrontendC++/2003-09-30-ForIncrementExprBug2.cpp
delete mode 100644 test/FrontendC++/2003-09-30-NestedFunctionDecl.cpp
delete mode 100644 test/FrontendC++/2003-10-17-BoolBitfields.cpp
delete mode 100644 test/FrontendC++/2003-10-21-InnerClass.cpp
delete mode 100644 test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp
delete mode 100644 test/FrontendC++/2003-11-04-ArrayConstructors.cpp
delete mode 100644 test/FrontendC++/2003-11-04-CatchLabelName.cpp
delete mode 100644 test/FrontendC++/2003-11-08-ArrayAddress.cpp
delete mode 100644 test/FrontendC++/2003-11-18-EnumArray.cpp
delete mode 100644 test/FrontendC++/2006-11-30-NoCompileUnit.cpp
create mode 100644 test/FrontendC/2010-11-16-asmblock.c
create mode 100644 test/FrontendC/2010-12-01-CommonGlobal.c
create mode 100644 test/FrontendC/arrayderef.c
create mode 100644 test/LLVMC/C++/just-compile.cpp
create mode 100644 test/LLVMC/C++/unknown_suffix.unk
create mode 100644 test/LLVMC/C/emit-llvm-opt.c
create mode 100644 test/LLVMC/MultipleOutputLanguages.td
create mode 100644 test/Linker/PR8300.ll
create mode 100644 test/Linker/available_externally_a.ll
create mode 100644 test/Linker/available_externally_b.ll
create mode 100644 test/Linker/unnamed-addr1-a.ll
create mode 100644 test/Linker/unnamed-addr1-b.ll
create mode 100644 test/MC/ARM/arm_fixups.s
create mode 100644 test/MC/ARM/arm_instructions.s
create mode 100644 test/MC/ARM/arm_word_directive.s
create mode 100644 test/MC/ARM/dg.exp
create mode 100644 test/MC/ARM/elf-eflags-eabi.s
create mode 100644 test/MC/ARM/elf-movt.s
create mode 100644 test/MC/ARM/elf-reloc-01.ll
create mode 100644 test/MC/ARM/elf-reloc-02.ll
create mode 100644 test/MC/ARM/elf-reloc-03.ll
create mode 100644 test/MC/ARM/hilo-16bit-relocations.s
create mode 100644 test/MC/ARM/neon-abs-encoding.s
create mode 100644 test/MC/ARM/neon-absdiff-encoding.s
create mode 100644 test/MC/ARM/neon-add-encoding.s
create mode 100644 test/MC/ARM/neon-bitcount-encoding.s
create mode 100644 test/MC/ARM/neon-bitwise-encoding.s
create mode 100644 test/MC/ARM/neon-cmp-encoding.s
create mode 100644 test/MC/ARM/neon-convert-encoding.s
create mode 100644 test/MC/ARM/neon-dup-encoding.s
create mode 100644 test/MC/ARM/neon-minmax-encoding.s
create mode 100644 test/MC/ARM/neon-mov-encoding.s
create mode 100644 test/MC/ARM/neon-mul-accum-encoding.s
create mode 100644 test/MC/ARM/neon-mul-encoding.s
create mode 100644 test/MC/ARM/neon-neg-encoding.s
create mode 100644 test/MC/ARM/neon-pairwise-encoding.s
create mode 100644 test/MC/ARM/neon-reciprocal-encoding.s
create mode 100644 test/MC/ARM/neon-reverse-encoding.s
create mode 100644 test/MC/ARM/neon-satshift-encoding.s
create mode 100644 test/MC/ARM/neon-shift-encoding.s
create mode 100644 test/MC/ARM/neon-shiftaccum-encoding.s
create mode 100644 test/MC/ARM/neon-shuffle-encoding.s
create mode 100644 test/MC/ARM/neon-sub-encoding.s
create mode 100644 test/MC/ARM/neon-table-encoding.s
create mode 100644 test/MC/ARM/neon-vld-encoding.s
create mode 100644 test/MC/ARM/neon-vst-encoding.s
create mode 100644 test/MC/ARM/neont2-abs-encoding.s
create mode 100644 test/MC/ARM/neont2-absdiff-encoding.s
create mode 100644 test/MC/ARM/neont2-add-encoding.s
create mode 100644 test/MC/ARM/neont2-bitcount-encoding.s
create mode 100644 test/MC/ARM/neont2-bitwise-encoding.s
create mode 100644 test/MC/ARM/neont2-cmp-encoding.s
create mode 100644 test/MC/ARM/neont2-convert-encoding.s
create mode 100644 test/MC/ARM/neont2-dup-encoding.s
create mode 100644 test/MC/ARM/neont2-minmax-encoding.s
create mode 100644 test/MC/ARM/neont2-mov-encoding.s
create mode 100644 test/MC/ARM/neont2-mul-accum-encoding.s
create mode 100644 test/MC/ARM/neont2-mul-encoding.s
create mode 100644 test/MC/ARM/neont2-neg-encoding.s
create mode 100644 test/MC/ARM/neont2-pairwise-encoding.s
create mode 100644 test/MC/ARM/neont2-reciprocal-encoding.s
create mode 100644 test/MC/ARM/neont2-reverse-encoding.s
create mode 100644 test/MC/ARM/neont2-satshift-encoding.s
create mode 100644 test/MC/ARM/neont2-shift-encoding.s
create mode 100644 test/MC/ARM/neont2-shiftaccum-encoding.s
create mode 100644 test/MC/ARM/neont2-shuffle-encoding.s
create mode 100644 test/MC/ARM/neont2-sub-encoding.s
create mode 100644 test/MC/ARM/neont2-table-encoding.s
create mode 100644 test/MC/ARM/neont2-vld-encoding.s
create mode 100644 test/MC/ARM/neont2-vst-encoding.s
create mode 100644 test/MC/ARM/prefetch.ll
create mode 100644 test/MC/ARM/reg-list.s
create mode 100644 test/MC/ARM/simple-encoding.ll
create mode 100644 test/MC/ARM/simple-fp-encoding.s
create mode 100644 test/MC/ARM/thumb.s
create mode 100644 test/MC/ARM/thumb2.s
create mode 100644 test/MC/ARM/thumb2_instructions.s
delete mode 100644 test/MC/AsmParser/ARM/arm_instructions.s
delete mode 100644 test/MC/AsmParser/ARM/arm_word_directive.s
delete mode 100644 test/MC/AsmParser/ARM/dg.exp
delete mode 100644 test/MC/AsmParser/ELF/dg.exp
delete mode 100644 test/MC/AsmParser/ELF/directive_previous.s
delete mode 100644 test/MC/AsmParser/ELF/directive_section.s
delete mode 100644 test/MC/AsmParser/X86/dg.exp
delete mode 100644 test/MC/AsmParser/X86/x86_32-avx-clmul-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-avx-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-bit.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-bit_cat.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-fma3-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-mismatched-add.s
delete mode 100644 test/MC/AsmParser/X86/x86_32-new-encoder.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-avx-clmul-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-avx-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-fma3-encoding.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-imm-widths.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-incl_decl.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-new-encoder.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-operands.s
delete mode 100644 test/MC/AsmParser/X86/x86_64-suffix-matching.s
delete mode 100644 test/MC/AsmParser/X86/x86_instruction_errors.s
delete mode 100644 test/MC/AsmParser/X86/x86_instructions.s
delete mode 100644 test/MC/AsmParser/X86/x86_operands.s
delete mode 100644 test/MC/AsmParser/X86/x86_word_directive.s
create mode 100644 test/MC/AsmParser/dash-n.s
create mode 100644 test/MC/AsmParser/equ.s
create mode 100644 test/MC/AsmParser/expr_symbol_modifiers.s
create mode 100644 test/MC/AsmParser/floating-literals.s
create mode 100644 test/MC/AsmParser/full_line_comment.s
create mode 100644 test/MC/AsmParser/ifdef.s
create mode 100644 test/MC/AsmParser/ifndef.s
create mode 100644 test/MC/AsmParser/paren.s
create mode 100644 test/MC/AsmParser/rename.s
create mode 100644 test/MC/AsmParser/section.s
create mode 100644 test/MC/COFF/align-nops.s
delete mode 100644 test/MC/COFF/basic-coff.ll
create mode 100644 test/MC/COFF/basic-coff.s
create mode 100644 test/MC/COFF/bss.s
create mode 100644 test/MC/COFF/module-asm.ll
create mode 100644 test/MC/COFF/simple-fixups.s
create mode 100644 test/MC/COFF/symbol-alias.s
delete mode 100644 test/MC/COFF/symbol-fragment-offset.ll
create mode 100644 test/MC/COFF/symbol-fragment-offset.s
create mode 100644 test/MC/COFF/weak.s
create mode 100644 test/MC/Disassembler/ARM/arm-tests.txt
create mode 100644 test/MC/Disassembler/ARM/dg.exp
create mode 100644 test/MC/Disassembler/ARM/neon-tests.txt
create mode 100644 test/MC/Disassembler/ARM/thumb-tests.txt
create mode 100644 test/MC/Disassembler/MBlaze/dg.exp
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_branch.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_fpu.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_fsl.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_imm.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_memory.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_operands.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_pattern.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_shift.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_special.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_typea.txt
create mode 100644 test/MC/Disassembler/MBlaze/mblaze_typeb.txt
create mode 100644 test/MC/Disassembler/X86/dg.exp
create mode 100644 test/MC/Disassembler/X86/simple-tests.txt
create mode 100644 test/MC/Disassembler/X86/truncated-input.txt
delete mode 100644 test/MC/Disassembler/arm-tests.txt
delete mode 100644 test/MC/Disassembler/dg.exp
delete mode 100644 test/MC/Disassembler/neon-tests.txt
delete mode 100644 test/MC/Disassembler/simple-tests.txt
delete mode 100644 test/MC/Disassembler/thumb-tests.txt
create mode 100644 test/MC/ELF/abs.s
create mode 100644 test/MC/ELF/alias-reloc.s
create mode 100644 test/MC/ELF/alias.s
create mode 100644 test/MC/ELF/align-bss.s
create mode 100644 test/MC/ELF/align-nops.s
create mode 100644 test/MC/ELF/align-size.s
create mode 100644 test/MC/ELF/align-text.s
create mode 100644 test/MC/ELF/align.s
create mode 100644 test/MC/ELF/bad-section.s
create mode 100644 test/MC/ELF/basic-elf-32.s
create mode 100644 test/MC/ELF/basic-elf-64.s
create mode 100644 test/MC/ELF/call-abs.s
create mode 100644 test/MC/ELF/cfi-advance-loc2.s
create mode 100644 test/MC/ELF/cfi-def-cfa-offset.s
create mode 100644 test/MC/ELF/cfi-def-cfa-register.s
create mode 100644 test/MC/ELF/cfi-def-cfa.s
create mode 100644 test/MC/ELF/cfi-offset.s
create mode 100644 test/MC/ELF/cfi-remember.s
create mode 100644 test/MC/ELF/cfi-zero-addr-delta.s
create mode 100644 test/MC/ELF/cfi.s
create mode 100644 test/MC/ELF/comdat.s
create mode 100644 test/MC/ELF/common.s
create mode 100644 test/MC/ELF/common2.s
create mode 100644 test/MC/ELF/debug-line.s
create mode 100644 test/MC/ELF/debug-loc.s
create mode 100644 test/MC/ELF/diff.s
create mode 100644 test/MC/ELF/diff2.s
create mode 100644 test/MC/ELF/elf_directive_previous.s
create mode 100644 test/MC/ELF/elf_directive_section.s
create mode 100644 test/MC/ELF/empty-dwarf-lines.s
create mode 100644 test/MC/ELF/empty.s
create mode 100644 test/MC/ELF/entsize.ll
create mode 100644 test/MC/ELF/entsize.s
create mode 100644 test/MC/ELF/file.s
create mode 100644 test/MC/ELF/global-offset.s
create mode 100644 test/MC/ELF/got.s
create mode 100644 test/MC/ELF/ident.s
create mode 100644 test/MC/ELF/invalid-symver.s
create mode 100644 test/MC/ELF/leb128.s
create mode 100644 test/MC/ELF/local-reloc.s
create mode 100644 test/MC/ELF/merge.s
create mode 100644 test/MC/ELF/n_bytes.s
create mode 100644 test/MC/ELF/no-fixup.s
create mode 100644 test/MC/ELF/noexec.s
create mode 100644 test/MC/ELF/norelocation.s
create mode 100644 test/MC/ELF/pic-diff.s
create mode 100644 test/MC/ELF/plt.s
create mode 100644 test/MC/ELF/relax-arith.s
create mode 100644 test/MC/ELF/relax-crash.s
create mode 100644 test/MC/ELF/relax.s
create mode 100644 test/MC/ELF/relocation-386.s
create mode 100644 test/MC/ELF/relocation.s
create mode 100644 test/MC/ELF/rename.s
create mode 100644 test/MC/ELF/section.s
create mode 100644 test/MC/ELF/set.s
create mode 100644 test/MC/ELF/sleb.s
create mode 100644 test/MC/ELF/symref.s
create mode 100644 test/MC/ELF/tls-i386.s
create mode 100644 test/MC/ELF/tls.s
create mode 100644 test/MC/ELF/type.s
create mode 100644 test/MC/ELF/uleb.s
create mode 100644 test/MC/ELF/undef.s
create mode 100644 test/MC/ELF/undef2.s
create mode 100644 test/MC/ELF/weak.s
create mode 100644 test/MC/ELF/weakref-plt.s
create mode 100644 test/MC/ELF/weakref-reloc.s
create mode 100644 test/MC/ELF/weakref.s
create mode 100644 test/MC/ELF/zero.s
create mode 100644 test/MC/MBlaze/dg.exp
create mode 100644 test/MC/MBlaze/mblaze_branch.s
create mode 100644 test/MC/MBlaze/mblaze_fpu.s
create mode 100644 test/MC/MBlaze/mblaze_fsl.s
create mode 100644 test/MC/MBlaze/mblaze_imm.s
create mode 100644 test/MC/MBlaze/mblaze_memory.s
create mode 100644 test/MC/MBlaze/mblaze_operands.s
create mode 100644 test/MC/MBlaze/mblaze_pattern.s
create mode 100644 test/MC/MBlaze/mblaze_shift.s
create mode 100644 test/MC/MBlaze/mblaze_special.s
create mode 100644 test/MC/MBlaze/mblaze_typea.s
create mode 100644 test/MC/MBlaze/mblaze_typeb.s
create mode 100644 test/MC/MachO/darwin-ARM-reloc.s
create mode 100644 test/MC/MachO/darwin-Thumb-reloc.s
create mode 100644 test/MC/MachO/darwin-complex-difference.s
create mode 100644 test/MC/MachO/diff-with-two-sections.s
create mode 100644 test/MC/MachO/empty-dwarf-lines.s
create mode 100644 test/MC/MachO/loc.s
create mode 100644 test/MC/MachO/pcrel-to-other-section.s
create mode 100644 test/MC/MachO/symbol-diff.s
create mode 100644 test/MC/MachO/weakdef.s
create mode 100644 test/MC/X86/3DNow.s
create mode 100644 test/MC/X86/dg.exp
create mode 100644 test/MC/X86/x86-32-avx.s
create mode 100644 test/MC/X86/x86-32-coverage.s
create mode 100644 test/MC/X86/x86-32-fma3.s
create mode 100644 test/MC/X86/x86-32.s
create mode 100644 test/MC/X86/x86-64.s
create mode 100644 test/MC/X86/x86_64-avx-clmul-encoding.s
create mode 100644 test/MC/X86/x86_64-avx-encoding.s
create mode 100644 test/MC/X86/x86_64-encoding.s
create mode 100644 test/MC/X86/x86_64-fma3-encoding.s
create mode 100644 test/MC/X86/x86_64-imm-widths.s
create mode 100644 test/MC/X86/x86_directives.s
create mode 100644 test/MC/X86/x86_errors.s
create mode 100644 test/MC/X86/x86_operands.s
create mode 100644 test/Object/TestObjectFiles/trivial-object-test.coff-i386
create mode 100644 test/Object/TestObjectFiles/trivial-object-test.coff-x86-64
create mode 100644 test/Object/TestObjectFiles/trivial-object-test.elf-i386
create mode 100644 test/Object/TestObjectFiles/trivial-object-test.elf-x86-64
create mode 100644 test/Object/TestObjectFiles/trivial-object-test.macho-i386
create mode 100644 test/Object/TestObjectFiles/trivial-object-test.macho-x86-64
create mode 100644 test/Object/dg.exp
create mode 100644 test/Object/nm-trivial-object.test-broken
create mode 100644 test/Object/objdump-trivial-object.test-broken
delete mode 100644 test/Other/2008-08-14-PassManager.ll
create mode 100644 test/Other/extract.ll
create mode 100644 test/Scripts/common_dump.py
create mode 100755 test/Scripts/elf-dump
create mode 100644 test/Scripts/elf-dump.bat
delete mode 100755 test/Scripts/macho-dump
delete mode 100644 test/Scripts/macho-dump.bat
create mode 100755 test/Scripts/macho-dumpx
create mode 100644 test/Scripts/macho-dumpx.bat
create mode 100644 test/TableGen/Dag.td
delete mode 100644 test/TableGen/DagDefSubst.td
delete mode 100644 test/TableGen/DagIntSubst.td
delete mode 100644 test/TableGen/nameconcat.td
create mode 100644 test/Transforms/CodeGenPrepare/basic.ll
delete mode 100644 test/Transforms/ConstProp/bitcast2.ll
create mode 100644 test/Transforms/ConstProp/extractvalue.ll
create mode 100644 test/Transforms/ConstProp/insertvalue.ll
delete mode 100644 test/Transforms/ConstProp/nottest.ll
create mode 100644 test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll
create mode 100644 test/Transforms/ConstantMerge/merge-both.ll
create mode 100644 test/Transforms/ConstantMerge/unnamed-addr.ll
create mode 100644 test/Transforms/CorrelatedValuePropagation/2010-09-26-MergeConstantRange.ll
create mode 100644 test/Transforms/CorrelatedValuePropagation/crash.ll
create mode 100644 test/Transforms/CorrelatedValuePropagation/non-null.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2005-11-30-vaarg.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2006-06-27-AST-Remove.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2008-07-28-load-store.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2008-11-28-MemDepUpdate.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2008-11-29-OffEndOfBlock.ll
delete mode 100644 test/Transforms/DeadStoreElimination/2009-11-10-Trampoline.ll
delete mode 100644 test/Transforms/DeadStoreElimination/alloca.ll
delete mode 100644 test/Transforms/DeadStoreElimination/byval.ll
delete mode 100644 test/Transforms/DeadStoreElimination/context-sensitive.ll
delete mode 100644 test/Transforms/DeadStoreElimination/memcpy.ll
delete mode 100644 test/Transforms/DeadStoreElimination/partial-overwrite.ll
delete mode 100644 test/Transforms/DeadStoreElimination/volatile-load.ll
create mode 100644 test/Transforms/EarlyCSE/basic.ll
create mode 100644 test/Transforms/EarlyCSE/dg.exp
create mode 100644 test/Transforms/FunctionAttrs/2010-10-30-volatile.ll
create mode 100644 test/Transforms/GVN/2010-11-13-Simplify.ll
create mode 100644 test/Transforms/GVN/load-pre-licm.ll
create mode 100644 test/Transforms/GVN/non-local-offset.ll
create mode 100644 test/Transforms/GVN/phi-translate.ll
create mode 100644 test/Transforms/GVN/preserve-tbaa.ll
create mode 100644 test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll
create mode 100644 test/Transforms/GlobalOpt/ctor-list-opt-constexpr.ll
create mode 100644 test/Transforms/GlobalOpt/unnamed-addr.ll
delete mode 100644 test/Transforms/IndVarSimplify/loop-invariant-step.ll
delete mode 100644 test/Transforms/Inline/byval2.ll
create mode 100644 test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
create mode 100644 test/Transforms/InstCombine/2010-11-21-SizeZeroTypeGEP.ll
create mode 100644 test/Transforms/InstCombine/2010-11-23-Distributed.ll
create mode 100644 test/Transforms/InstCombine/2011-02-14-InfLoop.ll
create mode 100644 test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll
create mode 100644 test/Transforms/InstCombine/bitcast-store.ll
create mode 100644 test/Transforms/InstCombine/bitcast-vec-uniform.ll
delete mode 100644 test/Transforms/InstCombine/div-cmp-overflow.ll
delete mode 100644 test/Transforms/InstCombine/exact-sdiv.ll
create mode 100644 test/Transforms/InstCombine/exact.ll
create mode 100644 test/Transforms/InstCombine/fold-calls.ll
create mode 100644 test/Transforms/InstCombine/fold-vector-select.ll
create mode 100644 test/Transforms/InstCombine/memset2.ll
create mode 100644 test/Transforms/InstCombine/neon-intrinsics.ll
create mode 100644 test/Transforms/InstCombine/overflow.ll
create mode 100644 test/Transforms/InstCombine/pr8547.ll
create mode 100644 test/Transforms/InstCombine/select-crash.ll
delete mode 100644 test/Transforms/InstCombine/vec_demanded_elts-2.ll
delete mode 100644 test/Transforms/InstCombine/vec_demanded_elts-3.ll
create mode 100644 test/Transforms/InstCombine/vec_sext.ll
create mode 100644 test/Transforms/InstSimplify/2010-12-20-Boolean.ll
create mode 100644 test/Transforms/InstSimplify/2010-12-20-Distribute.ll
create mode 100644 test/Transforms/InstSimplify/2011-01-14-Thread.ll
create mode 100644 test/Transforms/InstSimplify/2011-02-01-Vector.ll
create mode 100644 test/Transforms/InstSimplify/compare.ll
create mode 100644 test/Transforms/InstSimplify/dg.exp
create mode 100644 test/Transforms/InstSimplify/exact-nsw-nuw.ll
create mode 100644 test/Transforms/InstSimplify/fdiv.ll
create mode 100644 test/Transforms/InstSimplify/reassociate.ll
create mode 100644 test/Transforms/JumpThreading/degenerate-phi.ll
create mode 100644 test/Transforms/JumpThreading/indirectbr.ll
create mode 100644 test/Transforms/JumpThreading/select.ll
delete mode 100644 test/Transforms/LICM/2009-03-25-AliasSetTracker.ll
create mode 100644 test/Transforms/LoopIdiom/basic.ll
create mode 100644 test/Transforms/LoopIdiom/dg.exp
delete mode 100644 test/Transforms/LoopIndexSplit/2007-09-21-LoopBound.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2007-09-25-UpdateIterationSpace-2.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-01-28-IndDecrement.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-02-08-Crash.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-02-13-ExitValueNum.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-02-13-LoopLatch.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-02-13-LoopLatchPHI.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-02-14-Crash.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-03-24-ExitPhi.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-05-19-IndVar.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-07-08-MisCompilation.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-09-17-IVUse.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-09-20-Crash.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-10-06-Crash.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-10-10-OneIteration.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2008-11-10-Sign.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2009-03-02-UpdateIterationSpace-crash.ll
delete mode 100644 test/Transforms/LoopIndexSplit/2009-03-30-undef.ll
delete mode 100644 test/Transforms/LoopIndexSplit/Crash-2007-08-17.ll
delete mode 100644 test/Transforms/LoopIndexSplit/Crash-2007-12-03.ll
delete mode 100644 test/Transforms/LoopIndexSplit/Crash2-2007-08-17.ll
delete mode 100644 test/Transforms/LoopIndexSplit/ExitCondition-2007-09-10.ll
delete mode 100644 test/Transforms/LoopIndexSplit/OneIterLoop-2007-08-17.ll
delete mode 100644 test/Transforms/LoopIndexSplit/OneIterLoop2-2007-08-17.ll
delete mode 100644 test/Transforms/LoopIndexSplit/OneIterLoop3-2007-08-17.ll
delete mode 100644 test/Transforms/LoopIndexSplit/PR3913.ll
delete mode 100644 test/Transforms/LoopIndexSplit/PR4174-2.ll
delete mode 100644 test/Transforms/LoopIndexSplit/PR4174.ll
delete mode 100644 test/Transforms/LoopIndexSplit/SaveLastValue-2007-08-17.ll
delete mode 100644 test/Transforms/LoopIndexSplit/SplitValue-2007-08-24.ll
delete mode 100644 test/Transforms/LoopIndexSplit/UpperBound-2007-08-24.ll
delete mode 100644 test/Transforms/LoopIndexSplit/dg.exp
delete mode 100644 test/Transforms/LoopIndexSplit/non-iv-cmp-operand.ll
delete mode 100644 test/Transforms/LoopRotate/LRCrash-1.ll
delete mode 100644 test/Transforms/LoopRotate/LRCrash-2.ll
delete mode 100644 test/Transforms/LoopRotate/LRCrash-3.ll
delete mode 100644 test/Transforms/LoopRotate/LRCrash-4.ll
delete mode 100644 test/Transforms/LoopRotate/LRCrash-5.ll
create mode 100644 test/Transforms/LoopRotate/basic.ll
create mode 100644 test/Transforms/LoopRotate/crash.ll
create mode 100644 test/Transforms/LoopRotate/dbgvalue.ll
create mode 100644 test/Transforms/LoopSimplify/2010-12-26-PHIInfiniteLoop.ll
create mode 100644 test/Transforms/LoopStrengthReduce/hoist-parent-preheader.ll
create mode 100644 test/Transforms/LoopUnroll/basic.ll
create mode 100644 test/Transforms/LoopUnswitch/2010-11-18-LCSSA.ll
delete mode 100644 test/Transforms/MemCpyOpt/2008-04-29-SRetRemoval.ll
delete mode 100644 test/Transforms/MemCpyOpt/form-memset2.ll
create mode 100644 test/Transforms/MemCpyOpt/loadstore-sret.ll
create mode 100644 test/Transforms/MemCpyOpt/memcpy-to-memset.ll
create mode 100644 test/Transforms/MemCpyOpt/smaller.ll
create mode 100644 test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll
create mode 100644 test/Transforms/MergeFunc/vector.ll
delete mode 100644 test/Transforms/PartialSpecialize/dg.exp
delete mode 100644 test/Transforms/PartialSpecialize/two-specializations.ll
create mode 100644 test/Transforms/Reassociate/2011-01-26-UseAfterFree.ll
create mode 100644 test/Transforms/Reassociate/optional-flags.ll
delete mode 100644 test/Transforms/ScalarRepl/2003-05-30-InvalidIndices.ll
delete mode 100644 test/Transforms/ScalarRepl/2003-05-30-MultiLevel.ll
delete mode 100644 test/Transforms/ScalarRepl/2005-12-14-UnionPromoteCrash.ll
delete mode 100644 test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll
delete mode 100644 test/Transforms/ScalarRepl/2006-04-20-PromoteCrash.ll
delete mode 100644 test/Transforms/ScalarRepl/2006-10-23-PointerUnionCrash.ll
delete mode 100644 test/Transforms/ScalarRepl/2006-12-11-SROA-Crash.ll
delete mode 100644 test/Transforms/ScalarRepl/2007-03-19-CanonicalizeMemcpy.ll
delete mode 100644 test/Transforms/ScalarRepl/2009-01-09-scalarrepl-empty.ll
delete mode 100644 test/Transforms/ScalarRepl/2009-04-21-ZeroLengthMemSet.ll
delete mode 100644 test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll
delete mode 100644 test/Transforms/ScalarRepl/2009-06-01-BitcastIntPadding.ll
delete mode 100644 test/Transforms/ScalarRepl/2009-08-16-VLA.ll
create mode 100644 test/Transforms/ScalarRepl/crash.ll
create mode 100644 test/Transforms/ScalarRepl/phi-select.ll
create mode 100644 test/Transforms/SimplifyCFG/2010-10-24-OnlyUnwindInEntry.ll
create mode 100644 test/Transforms/SimplifyCFG/speculate-with-offset.ll
create mode 100644 test/Transforms/SimplifyCFG/switch-to-icmp.ll
delete mode 100644 test/Transforms/SimplifyCFG/switch_formation.ll
create mode 100644 test/Transforms/SimplifyLibCalls/FPuts.ll
create mode 100644 test/Transforms/SimplifyLibCalls/StrPBrk.ll
create mode 100644 test/Transforms/SimplifyLibCalls/StrRChr.ll
create mode 100644 test/Transforms/SimplifyLibCalls/StrSpn.ll
create mode 100644 test/Transforms/TailCallElim/dup_tail.ll
create mode 100644 tools/llvm-objdump/CMakeLists.txt
create mode 100644 tools/llvm-objdump/Makefile
create mode 100644 tools/llvm-objdump/llvm-objdump.cpp
create mode 100644 tools/macho-dump/CMakeLists.txt
create mode 100644 tools/macho-dump/Makefile
create mode 100644 tools/macho-dump/macho-dump.cpp
create mode 100644 unittests/ADT/FoldingSet.cpp
create mode 100644 unittests/ADT/IntEqClassesTest.cpp
create mode 100644 unittests/ADT/IntervalMapTest.cpp
delete mode 100644 unittests/ADT/ValueMapTest.cpp
create mode 100644 unittests/CMakeLists.txt
create mode 100644 unittests/ExecutionEngine/JIT/JITTests.def
create mode 100644 unittests/Support/EndianTest.cpp
create mode 100644 unittests/Support/Path.cpp
create mode 100644 unittests/Support/SwapByteOrderTest.cpp
delete mode 100644 unittests/Support/System.cpp
create mode 100644 unittests/Support/TimeValue.cpp
create mode 100644 unittests/Transforms/Utils/Local.cpp
create mode 100644 unittests/VMCore/ValueMapTest.cpp
create mode 100755 utils/CollectDebugInfoUsingLLDB.py
create mode 100755 utils/CompareDebugInfo.py
create mode 100755 utils/GetRepositoryPath
create mode 100644 utils/KillTheDoctor/CMakeLists.txt
create mode 100644 utils/KillTheDoctor/KillTheDoctor.cpp
delete mode 100644 utils/OldenDataRecover.pl
create mode 100644 utils/TableGen/ClangSACheckersEmitter.cpp
create mode 100644 utils/TableGen/ClangSACheckersEmitter.h
create mode 100644 utils/TableGen/FixedLenDecoderEmitter.cpp
create mode 100644 utils/TableGen/FixedLenDecoderEmitter.h
create mode 100644 utils/TableGen/StringMatcher.cpp
create mode 100644 utils/TableGen/StringMatcher.h
create mode 100644 utils/Target/ARM/analyze-match-table.py
create mode 100644 utils/kate/README
create mode 100644 utils/kate/llvm.xml
delete mode 100755 utils/lit/lit/lit.py
create mode 100755 utils/lit/lit/main.py
create mode 100644 utils/llvm-lit/CMakeLists.txt
create mode 100755 utils/release/test-release.sh
create mode 100755 utils/test_debuginfo.pl
create mode 100644 utils/unittest/CMakeLists.txt
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000..2e2713a48ae5e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,37 @@
+#==============================================================================#
+# This file specifies intentionally untracked files that git should ignore.
+# See: http://www.kernel.org/pub/software/scm/git/docs/gitignore.html
+#
+# This file is intentionally different from the output of `git svn show-ignore`,
+# as most of those are useless.
+#==============================================================================#
+
+#==============================================================================#
+# File extensions to be ignored anywhere in the tree.
+#==============================================================================#
+# Temp files created by most text editors.
+*~
+# Merge files created by git.
+*.orig
+# Byte compiled python modules.
+*.pyc
+
+#==============================================================================#
+# Explicit files to ignore (only matches one).
+#==============================================================================#
+.gitusers
+cscope.files
+cscope.out
+autoconf/aclocal.m4
+autoconf/autom4te.cache
+
+#==============================================================================#
+# Directories to ignore (do not add trailing '/'s, they skip symlinks).
+#==============================================================================#
+# External projects that are tracked independently.
+projects/*
+!projects/sample
+!projects/CMakeLists.txt
+!projects/Makefile
+# Clang, which is tracked independently.
+tools/clang
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6099d17c56a6..0a5d5f39d85a0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,9 +10,16 @@ set(CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
)
-set(PACKAGE_VERSION "2.8")
+set(PACKAGE_VERSION "2.9")
+
include(VersionFromVCS)
-add_version_info_from_vcs(PACKAGE_VERSION)
+
+option(LLVM_APPEND_VC_REV
+ "Append the version control system revision id to LLVM version" OFF)
+
+if( LLVM_APPEND_VC_REV )
+ add_version_info_from_vcs(PACKAGE_VERSION)
+endif()
set(PACKAGE_NAME llvm)
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
@@ -64,8 +71,8 @@ set(LLVM_ALL_TARGETS
Mips
MBlaze
MSP430
- PIC16
PowerPC
+ PTX
Sparc
SystemZ
X86
@@ -80,36 +87,25 @@ else( MSVC )
CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
endif( MSVC )
-set(C_INCLUDE_DIRS "" CACHE STRING
- "Colon separated list of directories clang will search for headers.")
+option(LLVM_ENABLE_CBE_PRINTF_A "Set to ON if CBE is enabled for printf %a output" ON)
+if(LLVM_ENABLE_CBE_PRINTF_A)
+ set(ENABLE_CBE_PRINTF_A 1)
+endif()
+
+option(LLVM_ENABLE_TIMESTAMPS "Enable embedding timestamp information in build" ON)
+if(LLVM_ENABLE_TIMESTAMPS)
+ set(ENABLE_TIMESTAMPS 1)
+endif()
+
+option(LLVM_ENABLE_FFI "Use libffi to call external functions from the interpreter" OFF)
+set(FFI_LIBRARY_DIR "" CACHE PATH "Additional directory, where CMake should search for libffi.so")
+set(FFI_INCLUDE_DIR "" CACHE PATH "Additional directory, where CMake should search for ffi.h or ffi/ffi.h")
set(LLVM_TARGET_ARCH "host"
CACHE STRING "Set target to use for LLVM JIT or use \"host\" for automatic detection.")
option(LLVM_ENABLE_THREADS "Use threads if available." ON)
-if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
- option(LLVM_ENABLE_ASSERTIONS "Enable assertions" OFF)
-else()
- option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON)
-endif()
-
-if( LLVM_ENABLE_ASSERTIONS )
- # MSVC doesn't like _DEBUG on release builds. See PR 4379.
- if( NOT MSVC )
- add_definitions( -D_DEBUG )
- endif()
- # On Release builds cmake automatically defines NDEBUG, so we
- # explicitly undefine it:
- if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
- add_definitions( -UNDEBUG )
- endif()
-else()
- if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
- add_definitions( -DNDEBUG )
- endif()
-endif()
-
if( LLVM_TARGETS_TO_BUILD STREQUAL "all" )
set( LLVM_TARGETS_TO_BUILD ${LLVM_ALL_TARGETS} )
endif()
@@ -135,65 +131,34 @@ set(llvm_builded_incs_dir ${LLVM_BINARY_DIR}/include/llvm)
include(AddLLVMDefinitions)
-if(WIN32)
- if(CYGWIN)
- set(LLVM_ON_WIN32 0)
- set(LLVM_ON_UNIX 1)
- else(CYGWIN)
- set(LLVM_ON_WIN32 1)
- set(LLVM_ON_UNIX 0)
- endif(CYGWIN)
- set(LTDL_SHLIB_EXT ".dll")
- set(EXEEXT ".exe")
- # Maximum path length is 160 for non-unicode paths
- set(MAXPATHLEN 160)
-else(WIN32)
- if(UNIX)
- set(LLVM_ON_WIN32 0)
- set(LLVM_ON_UNIX 1)
- if(APPLE)
- set(LTDL_SHLIB_EXT ".dylib")
- else(APPLE)
- set(LTDL_SHLIB_EXT ".so")
- endif(APPLE)
- set(EXEEXT "")
- # FIXME: Maximum path length is currently set to 'safe' fixed value
- set(MAXPATHLEN 2024)
- else(UNIX)
- MESSAGE(SEND_ERROR "Unable to determine platform")
- endif(UNIX)
-endif(WIN32)
+option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
include(config-ix)
-option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
+include(HandleLLVMOptions)
-set(ENABLE_PIC 0)
-if( LLVM_ENABLE_PIC )
- if( XCODE )
- # Xcode has -mdynamic-no-pic on by default, which overrides -fPIC. I don't
- # know how to disable this, so just force ENABLE_PIC off for now.
- message(STATUS "Warning: -fPIC not supported with Xcode.")
- else( XCODE )
- if( SUPPORTS_FPIC_FLAG )
- message(STATUS "Building with -fPIC")
- add_llvm_definitions(-fPIC)
- set(ENABLE_PIC 1)
- else( SUPPORTS_FPIC_FLAG )
- message(STATUS "Warning: -fPIC not supported.")
- endif()
- endif()
+if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
+ option(LLVM_ENABLE_ASSERTIONS "Enable assertions" OFF)
+else()
+ option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON)
endif()
+configure_file(
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/config.h.cmake
+ ${LLVM_BINARY_DIR}/include/llvm/Config/config.h)
+
+configure_file(
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/llvm-config.h.cmake
+ ${LLVM_BINARY_DIR}/include/llvm/Config/llvm-config.h)
+
+configure_file(
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/DataTypes.h.cmake
+ ${LLVM_BINARY_DIR}/include/llvm/Support/DataTypes.h)
+
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR} )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib )
-# set(CMAKE_VERBOSE_MAKEFILE true)
-
-add_llvm_definitions( -D__STDC_LIMIT_MACROS )
-add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
-
# MSVC has a gazillion warnings with this.
if( MSVC )
option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." OFF)
@@ -204,65 +169,34 @@ endif()
option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
-if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
- # TODO: support other platforms and toolchains.
- option(LLVM_BUILD_32_BITS "Build 32 bits executables and libraries." OFF)
- if( LLVM_BUILD_32_BITS )
- message(STATUS "Building 32 bits executables and libraries.")
- add_llvm_definitions( -m32 )
- list(APPEND CMAKE_EXE_LINKER_FLAGS -m32)
- list(APPEND CMAKE_SHARED_LINKER_FLAGS -m32)
- endif( LLVM_BUILD_32_BITS )
-endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
-
-if( MSVC )
- include(ChooseMSVCCRT)
-
- add_llvm_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS )
- add_llvm_definitions( -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS )
- add_llvm_definitions( -D_SCL_SECURE_NO_DEPRECATE )
- add_llvm_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 )
- add_llvm_definitions( -wd4355 -wd4715 -wd4180 -wd4345 -wd4224 )
-
- # Suppress 'new behavior: elements of array 'array' will be default initialized'
- add_llvm_definitions( -wd4351 )
-
- # Enable warnings
- if (LLVM_ENABLE_WARNINGS)
- add_llvm_definitions( /W4 /Wall )
- if (LLVM_ENABLE_PEDANTIC)
- # No MSVC equivalent available
- endif (LLVM_ENABLE_PEDANTIC)
- endif (LLVM_ENABLE_WARNINGS)
- if (LLVM_ENABLE_WERROR)
- add_llvm_definitions( /WX )
- endif (LLVM_ENABLE_WERROR)
-elseif( CMAKE_COMPILER_IS_GNUCXX )
- if (LLVM_ENABLE_WARNINGS)
- add_llvm_definitions( -Wall -W -Wno-unused-parameter -Wwrite-strings )
- if (LLVM_ENABLE_PEDANTIC)
- add_llvm_definitions( -pedantic -Wno-long-long )
- endif (LLVM_ENABLE_PEDANTIC)
- endif (LLVM_ENABLE_WARNINGS)
- if (LLVM_ENABLE_WERROR)
- add_llvm_definitions( -Werror )
- endif (LLVM_ENABLE_WERROR)
-endif( MSVC )
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR})
if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
- SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include llvm/System/Solaris.h")
+ SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include llvm/Support/Solaris.h")
endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
include(AddLLVM)
include(TableGen)
-add_subdirectory(lib/Support)
-add_subdirectory(lib/System)
+if( MINGW )
+ get_system_libs(LLVM_SYSTEM_LIBS_LIST)
+ foreach(l ${LLVM_SYSTEM_LIBS_LIST})
+ set(LLVM_SYSTEM_LIBS "${LLVM_SYSTEM_LIBS} -l${l}")
+ endforeach()
+ set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES}${LLVM_SYSTEM_LIBS}")
+ set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}${LLVM_SYSTEM_LIBS}")
+endif()
+
+if( MINGW )
+ # People report that -O3 is unreliable on MinGW. The traditional
+ # build also uses -O2 for that reason:
+ llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELEASE "-O3" "-O2")
+endif()
-# Everything else depends on Support and System:
-set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${LLVM_LIBS} )
+# Put this before tblgen. Else we have a circular dependence.
+add_subdirectory(lib/Support)
set(LLVM_TABLEGEN "tblgen" CACHE
STRING "Native TableGen executable. Saves building one when cross-compiling.")
@@ -278,87 +212,43 @@ endif( CMAKE_CROSSCOMPILING )
add_subdirectory(include/llvm)
-add_subdirectory(lib/VMCore)
-add_subdirectory(lib/CodeGen)
-add_subdirectory(lib/CodeGen/SelectionDAG)
-add_subdirectory(lib/CodeGen/AsmPrinter)
-add_subdirectory(lib/Bitcode/Reader)
-add_subdirectory(lib/Bitcode/Writer)
-add_subdirectory(lib/Transforms/Utils)
-add_subdirectory(lib/Transforms/Instrumentation)
-add_subdirectory(lib/Transforms/InstCombine)
-add_subdirectory(lib/Transforms/Scalar)
-add_subdirectory(lib/Transforms/IPO)
-add_subdirectory(lib/Transforms/Hello)
-add_subdirectory(lib/Linker)
-add_subdirectory(lib/Analysis)
-add_subdirectory(lib/Analysis/IPA)
-add_subdirectory(lib/MC)
-add_subdirectory(lib/MC/MCParser)
-add_subdirectory(lib/MC/MCDisassembler)
-add_subdirectory(test)
+add_subdirectory(lib)
add_subdirectory(utils/FileCheck)
+add_subdirectory(utils/FileUpdate)
add_subdirectory(utils/count)
add_subdirectory(utils/not)
-
-set(LLVM_ENUM_ASM_PRINTERS "")
-set(LLVM_ENUM_ASM_PARSERS "")
-set(LLVM_ENUM_DISASSEMBLERS "")
-foreach(t ${LLVM_TARGETS_TO_BUILD})
- message(STATUS "Targeting ${t}")
- add_subdirectory(lib/Target/${t})
- add_subdirectory(lib/Target/${t}/TargetInfo)
- if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
- add_subdirectory(lib/Target/${t}/AsmPrinter)
- set(LLVM_ENUM_ASM_PRINTERS
- "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
- endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
- if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt )
- add_subdirectory(lib/Target/${t}/AsmParser)
- set(LLVM_ENUM_ASM_PARSERS
- "${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
- endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt )
- if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/Disassembler/CMakeLists.txt )
- add_subdirectory(lib/Target/${t}/Disassembler)
- set(LLVM_ENUM_DISASSEMBLERS
- "${LLVM_ENUM_DISASSEMBLERS}LLVM_DISASSEMBLER(${t})\n")
- endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/Disassembler/CMakeLists.txt )
- set(CURRENT_LLVM_TARGET)
-endforeach(t)
-
-# Produce llvm/Config/AsmPrinters.def
-configure_file(
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/AsmPrinters.def.in
- ${LLVM_BINARY_DIR}/include/llvm/Config/AsmPrinters.def
- )
-
-# Produce llvm/Config/AsmParsers.def
-configure_file(
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/AsmParsers.def.in
- ${LLVM_BINARY_DIR}/include/llvm/Config/AsmParsers.def
- )
-
-# Produce llvm/Config/Disassemblers.def
-configure_file(
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/Disassemblers.def.in
- ${LLVM_BINARY_DIR}/include/llvm/Config/Disassemblers.def
- )
-
-add_subdirectory(lib/ExecutionEngine)
-add_subdirectory(lib/ExecutionEngine/Interpreter)
-add_subdirectory(lib/ExecutionEngine/JIT)
-add_subdirectory(lib/Target)
-add_subdirectory(lib/AsmParser)
-add_subdirectory(lib/Archive)
+add_subdirectory(utils/llvm-lit)
add_subdirectory(projects)
-option(LLVM_BUILD_TOOLS "Build LLVM tool programs." ON)
-add_subdirectory(tools)
+option(LLVM_BUILD_TOOLS
+ "Build the LLVM tools. If OFF, just generate build targets." ON)
+option(LLVM_INCLUDE_TOOLS "Generate build targets for the LLVM tools." ON)
+if( LLVM_INCLUDE_TOOLS )
+ add_subdirectory(tools)
+endif()
-option(LLVM_BUILD_EXAMPLES "Build LLVM example programs." OFF)
-add_subdirectory(examples)
+option(LLVM_BUILD_EXAMPLES
+ "Build the LLVM example programs. If OFF, just generate build targets." OFF)
+option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON)
+if( LLVM_INCLUDE_EXAMPLES )
+ add_subdirectory(examples)
+endif()
+
+option(LLVM_BUILD_TESTS
+ "Build LLVM unit tests. If OFF, just generate build targes." OFF)
+option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON)
+if( LLVM_INCLUDE_TESTS )
+ add_subdirectory(test)
+ add_subdirectory(utils/unittest)
+ add_subdirectory(unittests)
+ if (MSVC)
+ # This utility is used to prevent chrashing tests from calling Dr. Watson on
+ # Windows.
+ add_subdirectory(utils/KillTheDoctor)
+ endif()
+endif()
add_subdirectory(cmake/modules)
@@ -385,3 +275,18 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/
)
# TODO: make and install documentation.
+
+set(CPACK_PACKAGE_VENDOR "LLVM")
+set(CPACK_PACKAGE_VERSION_MAJOR 2)
+set(CPACK_PACKAGE_VERSION_MINOR 9)
+add_version_info_from_vcs(CPACK_PACKAGE_VERSION_PATCH)
+include(CPack)
+
+# Workaround for MSVS10 to avoid the Dialog Hell
+# FIXME: This could be removed with future version of CMake.
+if(MSVC_VERSION EQUAL 1600)
+ set(LLVM_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/LLVM.sln")
+ if( EXISTS "${LLVM_SLN_FILENAME}" )
+ file(APPEND "${LLVM_SLN_FILENAME}" "\n# This should be regenerated!\n")
+ endif()
+endif()
diff --git a/CREDITS.TXT b/CREDITS.TXT
index aeecfe2e21e1d..ab01dde338a5f 100644
--- a/CREDITS.TXT
+++ b/CREDITS.TXT
@@ -8,6 +8,7 @@ beautification by scripts. The fields are: name (N), email (E), web-address
(W), PGP key ID and fingerprint (P), description (D), and snail-mail address
(S).
+
N: Vikram Adve
E: vadve@cs.uiuc.edu
W: http://www.cs.uiuc.edu/~vadve/
@@ -39,7 +40,7 @@ N: Misha Brukman
E: brukman+llvm@uiuc.edu
W: http://misha.brukman.net
D: Portions of X86 and Sparc JIT compilers, PowerPC backend
-D: Incremental bytecode loader
+D: Incremental bitcode loader
N: Cameron Buschardt
E: buschard@uiuc.edu
@@ -328,6 +329,7 @@ D: The `paths' pass
N: Michael J. Spencer
E: bigcheesegs@gmail.com
D: Shepherding Windows COFF support into MC.
+D: Lots of Windows stuff.
N: Reid Spencer
E: rspencer@reidspencer.com
diff --git a/Makefile b/Makefile
index ae650b7f2d938..dbb759dd5fcec 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@
LEVEL := .
# Top-Level LLVM Build Stages:
-# 1. Build lib/System and lib/Support, which are used by utils (tblgen).
+# 1. Build lib/Support, which is used by utils (tblgen).
# 2. Build utils, which is used by VMCore.
# 3. Build VMCore, which builds the Intrinsics.inc file used by libs.
# 4. Build libs, which are needed by llvm-config.
@@ -27,10 +27,10 @@ LEVEL := .
ifneq ($(findstring llvmCore, $(RC_ProjectName)),llvmCore) # Normal build (not "Apple-style").
ifeq ($(BUILD_DIRS_ONLY),1)
- DIRS := lib/System lib/Support utils
+ DIRS := lib/Support utils
OPTIONAL_DIRS :=
else
- DIRS := lib/System lib/Support utils lib/VMCore lib tools/llvm-shlib \
+ DIRS := lib/Support utils lib/VMCore lib tools/llvm-shlib \
tools/llvm-config tools runtime docs unittests
OPTIONAL_DIRS := projects bindings
endif
@@ -47,6 +47,10 @@ ifneq ($(ENABLE_SHARED),1)
DIRS := $(filter-out tools/llvm-shlib, $(DIRS))
endif
+ifneq ($(ENABLE_DOCS),1)
+ DIRS := $(filter-out docs, $(DIRS))
+endif
+
ifeq ($(MAKECMDGOALS),libs-only)
DIRS := $(filter-out tools runtime docs, $(DIRS))
OPTIONAL_DIRS :=
@@ -95,6 +99,11 @@ ifeq ($(MAKECMDGOALS),install)
OPTIONAL_DIRS := $(filter bindings, $(OPTIONAL_DIRS))
endif
+# Don't build unittests when ONLY_TOOLS is set.
+ifneq ($(ONLY_TOOLS),)
+ DIRS := $(filter-out unittests, $(DIRS))
+endif
+
# If we're cross-compiling, build the build-hosted tools first
ifeq ($(LLVM_CROSS_COMPILING),1)
all:: cross-compile-build-tools
@@ -150,7 +159,7 @@ dist-hook::
$(Echo) Eliminating files constructed by configure
$(Verb) $(RM) -f \
$(TopDistDir)/include/llvm/Config/config.h \
- $(TopDistDir)/include/llvm/System/DataTypes.h
+ $(TopDistDir)/include/llvm/Support/DataTypes.h
clang-only: all
tools-only: all
@@ -169,7 +178,7 @@ FilesToConfig := \
include/llvm/Config/AsmPrinters.def \
include/llvm/Config/AsmParsers.def \
include/llvm/Config/Disassemblers.def \
- include/llvm/System/DataTypes.h \
+ include/llvm/Support/DataTypes.h \
tools/llvmc/src/Base.td
FilesToConfigPATH := $(addprefix $(LLVM_OBJ_ROOT)/,$(FilesToConfig))
diff --git a/Makefile.config.in b/Makefile.config.in
index 5ebd80384fb0b..5c737580632ea 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -164,7 +164,7 @@ CAT := @CAT@
DOT := @DOT@
DOXYGEN := @DOXYGEN@
GROFF := @GROFF@
-GZIP := @GZIP@
+GZIPBIN := @GZIPBIN@
OCAMLC := @OCAMLC@
OCAMLOPT := @OCAMLOPT@
OCAMLDEP := @OCAMLDEP@
@@ -195,6 +195,7 @@ LLVMGXX := @LLVMGXX@
LLVMCC1 := @LLVMCC1@
LLVMCC1PLUS := @LLVMCC1PLUS@
LLVMGCC_LANGS := @LLVMGCC_LANGS@
+LLVMGCC_DRAGONEGG := @LLVMGCC_DRAGONEGG@
# Information on Clang, if configured.
CLANGPATH := @CLANGPATH@
@@ -204,6 +205,10 @@ ENABLE_BUILT_CLANG := @ENABLE_BUILT_CLANG@
# The LLVM capable compiler to use.
LLVMCC_OPTION := @LLVMCC_OPTION@
+# The flag used to emit LLVM IR.
+LLVMCC_EMITIR_FLAG = @LLVMCC_EMITIR_FLAG@
+LLVMCC_DISABLEOPT_FLAGS := @LLVMCC_DISABLEOPT_FLAGS@
+
# Path to directory where object files should be stored during a build.
# Set OBJ_ROOT to "." if you do not want to use a separate place for
# object files.
@@ -259,6 +264,9 @@ OPTIMIZE_OPTION := @OPTIMIZE_OPTION@
# information to allow gprof to be used to get execution frequencies.
#ENABLE_PROFILING = 1
+# When ENABLE_DOCS is disabled, docs/ will not be built.
+ENABLE_DOCS = @ENABLE_DOCS@
+
# When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
@@ -271,6 +279,9 @@ ENABLE_PIC := @ENABLE_PIC@
# Do we want to build a shared library and link the tools with it?
ENABLE_SHARED := @ENABLE_SHARED@
+# Do we want to link the stdc++ into a shared library? (Cygming)
+ENABLE_EMBED_STDCXX := @ENABLE_EMBED_STDCXX@
+
# Use -fvisibility-inlines-hidden?
ENABLE_VISIBILITY_INLINES_HIDDEN := @ENABLE_VISIBILITY_INLINES_HIDDEN@
@@ -341,6 +352,8 @@ NO_MISSING_FIELD_INITIALIZERS = @NO_MISSING_FIELD_INITIALIZERS@
# -Wno-variadic-macros
NO_VARIADIC_MACROS = @NO_VARIADIC_MACROS@
+# Was polly found in tools/polly?
+LLVM_HAS_POLLY = @LLVM_HAS_POLLY@
# Flags supported by the linker.
# bfd ld / gold --version-script=file
HAVE_LINK_VERSION_SCRIPT = @HAVE_LINK_VERSION_SCRIPT@
diff --git a/Makefile.rules b/Makefile.rules
index 9cff1053d0d99..363fa9605b5a8 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -129,11 +129,8 @@ reconfigure:
$(ConfigStatusScript) --recheck $(ConfigureScriptFLAGS) && \
$(ConfigStatusScript)
-# FIXME: The {PIC16,MSP430}/AsmPrinter line here is a hack to force a reconfigure to pick
-# up AsmPrinter changes. Remove it after a reasonable delay from 2009-08-13.
-
.PRECIOUS: $(ConfigStatusScript)
-$(ConfigStatusScript): $(ConfigureScript) $(LLVM_SRC_ROOT)/lib/Target/PIC16/AsmPrinter/Makefile $(LLVM_SRC_ROOT)/lib/Target/MSP430/AsmPrinter/Makefile
+$(ConfigStatusScript): $(ConfigureScript)
$(Echo) Reconfiguring with $<
$(Verb) cd $(PROJ_OBJ_ROOT) && \
if test -w $(PROJ_OBJ_ROOT)/config.cache ; then \
@@ -161,9 +158,13 @@ endif
# If the Makefile in the source tree has been updated, copy it over into the
# build tree. But, only do this if the source and object makefiles differ
#------------------------------------------------------------------------
+ifndef PROJ_MAKEFILE
+PROJ_MAKEFILE := $(PROJ_SRC_DIR)/Makefile
+endif
+
ifneq ($(PROJ_OBJ_DIR),$(PROJ_SRC_DIR))
-Makefile: $(PROJ_SRC_DIR)/Makefile $(ExtraMakefiles)
+Makefile: $(PROJ_MAKEFILE) $(ExtraMakefiles)
$(Echo) "Updating Makefile"
$(Verb) $(MKDIR) $(@D)
$(Verb) $(CP) -f $< $@
@@ -171,7 +172,7 @@ Makefile: $(PROJ_SRC_DIR)/Makefile $(ExtraMakefiles)
# Copy the Makefile.* files unless we're in the root directory which avoids
# the copying of Makefile.config.in or other things that should be explicitly
# taken care of.
-$(PROJ_OBJ_DIR)/Makefile% : $(PROJ_SRC_DIR)/Makefile%
+$(PROJ_OBJ_DIR)/Makefile% : $(PROJ_MAKEFILE)%
@case '$?' in \
*Makefile.rules) ;; \
*.in) ;; \
@@ -204,7 +205,7 @@ ifdef LLVMC_BASED_DRIVER
TOOLNAME = $(LLVMC_BASED_DRIVER)
LLVMLIBS = CompilerDriver.a
-LINK_COMPONENTS = support system
+LINK_COMPONENTS = support
endif # LLVMC_BASED_DRIVER
@@ -300,7 +301,7 @@ ifneq ($(REQUIRES_RTTI), 1)
CXX.Flags += -fno-rtti
endif
-ifdef ENABLE_COVERAGE
+ifeq ($(ENABLE_COVERAGE),1)
BuildMode := $(BuildMode)+Coverage
CXX.Flags += -ftest-coverage -fprofile-arcs
C.Flags += -ftest-coverage -fprofile-arcs
@@ -308,17 +309,17 @@ endif
# If DISABLE_ASSERTIONS=1 is specified (make command line or configured),
# then disable assertions by defining the appropriate preprocessor symbols.
-ifndef DISABLE_ASSERTIONS
+ifeq ($(DISABLE_ASSERTIONS),1)
+ CPP.Defines += -DNDEBUG
+else
BuildMode := $(BuildMode)+Asserts
CPP.Defines += -D_DEBUG
-else
- CPP.Defines += -DNDEBUG
endif
# If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or
# configured), then enable expensive checks by defining the
# appropriate preprocessor symbols.
-ifdef ENABLE_EXPENSIVE_CHECKS
+ifeq ($(ENABLE_EXPENSIVE_CHECKS),1)
BuildMode := $(BuildMode)+Checks
CPP.Defines += -D_GLIBCXX_DEBUG -DXDEBUG
endif
@@ -387,12 +388,21 @@ ifeq ($(ENABLE_PIC),0)
CXX.Flags += -fPIC
CPP.BaseFlags += -fPIC
endif
-endif
-ifeq ($(ARCH),Alpha)
LD.Flags += -Wl,--no-relax
endif
+# GNU ld/PECOFF accepts but ignores them below;
+# --version-script
+# --export-dynamic
+# --rpath
+# FIXME: autoconf should be aware of them.
+ifneq (,$(filter $(HOST_OS),Cygwin MingW))
+ HAVE_LINK_VERSION_SCRIPT := 0
+ RPATH :=
+ RDYNAMIC := -Wl,--export-all-symbols
+endif
+
#--------------------------------------------------------------------
# Directory locations
#--------------------------------------------------------------------
@@ -497,8 +507,8 @@ ifeq ($(HOST_OS),Darwin)
# Get "4" out of 10.4 for later pieces in the makefile.
DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
- SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined,suppress \
- -dynamiclib
+ LoadableModuleOptions := -Wl,-flat_namespace -Wl,-undefined,suppress
+ SharedLinkOptions := -dynamiclib
ifneq ($(ARCH),ARM)
SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION)
endif
@@ -516,10 +526,6 @@ ifdef SHARED_LIBRARY
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
ifneq ($(HOST_OS),Darwin)
LD.Flags += $(RPATH) -Wl,'$$ORIGIN'
-else
-ifneq ($(DARWIN_MAJVERS),4)
- LD.Flags += $(RPATH) -Wl,$(SharedLibDir)
-endif
endif
endif
endif
@@ -547,15 +553,21 @@ ifndef KEEP_SYMBOLS
Install.StripFlag += -s
endif
+ifdef TOOL_NO_EXPORTS
+ DynamicFlags :=
+else
+ DynamicFlag := $(RDYNAMIC)
+endif
+
# Adjust linker flags for building an executable
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
ifneq ($(HOST_OS), Darwin)
ifdef TOOLNAME
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
ifdef EXAMPLE_TOOL
- LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(RDYNAMIC)
+ LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag)
else
- LD.Flags += $(RPATH) -Wl,$(ToolDir) $(RDYNAMIC)
+ LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag)
endif
endif
else
@@ -618,11 +630,11 @@ else
endif
ifeq ($(HOST_OS),SunOS)
-CPP.BaseFlags += -include llvm/System/Solaris.h
+CPP.BaseFlags += -include llvm/Support/Solaris.h
endif
ifeq ($(HOST_OS),AuroraUX)
-CPP.BaseFlags += -include llvm/System/Solaris.h
+CPP.BaseFlags += -include llvm/Support/Solaris.h
endif # !HOST_OS - AuroraUX.
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
@@ -828,7 +840,9 @@ $(RecursiveTargets)::
else
$(RecursiveTargets)::
$(Verb) for dir in $(OPTIONAL_DIRS); do \
- ($(MAKE) -C$$dir $@ ) || exit 1; \
+ if [ -d $(PROJ_SRC_DIR)/$$dir ]; then\
+ ($(MAKE) -C$$dir $@ ) || exit 1; \
+ fi \
done
endif
endif
@@ -890,10 +904,13 @@ LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
endif
-# Win32.DLL may refer to other components.
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
+# Loadable module for Win32 requires all symbols resolved for linking.
+# Then all symbols in LLVM.dll will be available.
+ifeq ($(ENABLE_SHARED),1)
ifdef LOADABLE_MODULE
- LINK_COMPONENTS := all
+ ifneq (,$(filter $(HOST_OS),Cygwin MingW))
+ LINK_COMPONENTS += all
+ endif
endif
endif
@@ -941,11 +958,6 @@ ifdef EXPORTED_SYMBOL_FILE
# First, set up the native export file, which may differ from the source
# export file.
-# The option --version-script is not effective on GNU ld win32.
-ifneq (,$(filter $(HOST_OS),Cygwin MingW))
- HAVE_LINK_VERSION_SCRIPT := 0
-endif
-
ifeq ($(HOST_OS),Darwin)
# Darwin convention prefixes symbols with underscores.
NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).sed
@@ -1073,12 +1085,14 @@ ifdef LIBRARYNAME
# Make sure there isn't any extraneous whitespace on the LIBRARYNAME option
LIBRARYNAME := $(strip $(LIBRARYNAME))
ifdef LOADABLE_MODULE
-LibName.A := $(LibDir)/$(LIBRARYNAME).a
-LibName.SO := $(SharedLibDir)/$(LIBRARYNAME)$(SHLIBEXT)
+BaseLibName.A := $(LIBRARYNAME).a
+BaseLibName.SO := $(LIBRARYNAME)$(SHLIBEXT)
else
-LibName.A := $(LibDir)/lib$(LIBRARYNAME).a
-LibName.SO := $(SharedLibDir)/$(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
+BaseLibName.A := lib$(LIBRARYNAME).a
+BaseLibName.SO := $(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
endif
+LibName.A := $(LibDir)/$(BaseLibName.A)
+LibName.SO := $(SharedLibDir)/$(BaseLibName.SO)
LibName.O := $(LibDir)/$(LIBRARYNAME).o
LibName.BCA:= $(LibDir)/lib$(LIBRARYNAME).bca
@@ -1099,6 +1113,7 @@ endif
ifdef LINK_LIBS_IN_SHARED
ifdef LOADABLE_MODULE
SharedLibKindMessage := "Loadable Module"
+SharedLinkOptions := $(LoadableModuleOptions) $(SharedLinkOptions)
else
SharedLibKindMessage := "Shared Library"
endif
@@ -1131,7 +1146,7 @@ DestSharedLibDir := $(DESTDIR)$(PROJ_bindir)
else
DestSharedLibDir := $(DESTDIR)$(PROJ_libdir)
endif
-DestSharedLib := $(DestSharedLibDir)/$(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
+DestSharedLib := $(DestSharedLibDir)/$(BaseLibName.SO)
install-local:: $(DestSharedLib)
@@ -1323,6 +1338,18 @@ endif
endif
endif
+#---------------------------------------------------------
+# Tool Order File Support
+#---------------------------------------------------------
+
+ifeq ($(HOST_OS),Darwin)
+ifdef TOOL_ORDER_FINE
+
+LD.Flags += -Wl,-order_file,$(TOOL_ORDER_FILE)
+
+endif
+endif
+
#---------------------------------------------------------
# Tool Version Info Support
#---------------------------------------------------------
@@ -1441,27 +1468,27 @@ DEPEND_OPTIONS = -MMD -MP -MF "$(ObjDir)/$*.d.tmp" \
DEPEND_MOVEFILE = then $(MV) -f "$(ObjDir)/$*.d.tmp" "$(ObjDir)/$*.d"; \
else $(RM) "$(ObjDir)/$*.d.tmp"; exit 1; fi
-$(ObjDir)/%.o: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+$(ObjDir)/%.o: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_MAKEFILE)
$(Echo) "Compiling $*.cpp for $(BuildMode) build" $(PIC_FLAG)
$(Verb) if $(Compile.CXX) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
-$(ObjDir)/%.o: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+$(ObjDir)/%.o: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_MAKEFILE)
$(Echo) "Compiling $*.mm for $(BuildMode) build" $(PIC_FLAG)
$(Verb) if $(Compile.CXX) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
-$(ObjDir)/%.o: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+$(ObjDir)/%.o: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_MAKEFILE)
$(Echo) "Compiling $*.cc for $(BuildMode) build" $(PIC_FLAG)
$(Verb) if $(Compile.CXX) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
-$(ObjDir)/%.o: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+$(ObjDir)/%.o: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_MAKEFILE)
$(Echo) "Compiling $*.c for $(BuildMode) build" $(PIC_FLAG)
$(Verb) if $(Compile.C) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
-$(ObjDir)/%.o: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_SRC_DIR)/Makefile
+$(ObjDir)/%.o: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(PROJ_MAKEFILE)
$(Echo) "Compiling $*.m for $(BuildMode) build" $(PIC_FLAG)
$(Verb) if $(Compile.C) $(DEPEND_OPTIONS) $< -o $(ObjDir)/$*.o ; \
$(DEPEND_MOVEFILE)
@@ -1481,31 +1508,31 @@ BC_DEPEND_MOVEFILE = then $(MV) -f "$(ObjDir)/$*.bc.d.tmp" "$(ObjDir)/$*.bc.d";
$(ObjDir)/%.ll: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)"
$(Verb) if $(BCCompile.CXX) $(BC_DEPEND_OPTIONS) \
- $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $< -o $(ObjDir)/$*.ll -S -$(LLVMCC_EMITIR_FLAG) ; \
$(BC_DEPEND_MOVEFILE)
$(ObjDir)/%.ll: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.mm for $(BuildMode) build (bytecode)"
$(Verb) if $(BCCompile.CXX) $(BC_DEPEND_OPTIONS) \
- $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $< -o $(ObjDir)/$*.ll -S -$(LLVMCC_EMITIR_FLAG) ; \
$(BC_DEPEND_MOVEFILE)
$(ObjDir)/%.ll: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cc for $(BuildMode) build (bytecode)"
$(Verb) if $(BCCompile.CXX) $(BC_DEPEND_OPTIONS) \
- $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $< -o $(ObjDir)/$*.ll -S -$(LLVMCC_EMITIR_FLAG) ; \
$(BC_DEPEND_MOVEFILE)
$(ObjDir)/%.ll: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
$(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)"
$(Verb) if $(BCCompile.C) $(BC_DEPEND_OPTIONS) \
- $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $< -o $(ObjDir)/$*.ll -S -$(LLVMCC_EMITIR_FLAG) ; \
$(BC_DEPEND_MOVEFILE)
$(ObjDir)/%.ll: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
$(Echo) "Compiling $*.m for $(BuildMode) build (bytecode)"
$(Verb) if $(BCCompile.C) $(BC_DEPEND_OPTIONS) \
- $< -o $(ObjDir)/$*.ll -S -emit-llvm ; \
+ $< -o $(ObjDir)/$*.ll -S -$(LLVMCC_EMITIR_FLAG) ; \
$(BC_DEPEND_MOVEFILE)
# Provide alternate rule sets if dependencies are disabled
@@ -1533,23 +1560,23 @@ $(ObjDir)/%.o: %.m $(ObjDir)/.dir $(BUILT_SOURCES)
$(ObjDir)/%.ll: %.cpp $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)"
- $(BCCompile.CXX) $< -o $@ -S -emit-llvm
+ $(BCCompile.CXX) $< -o $@ -S -$(LLVMCC_EMITIR_FLAG)
$(ObjDir)/%.ll: %.mm $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.mm for $(BuildMode) build (bytecode)"
- $(BCCompile.CXX) $< -o $@ -S -emit-llvm
+ $(BCCompile.CXX) $< -o $@ -S -$(LLVMCC_EMITIR_FLAG)
$(ObjDir)/%.ll: %.cc $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCXX)
$(Echo) "Compiling $*.cc for $(BuildMode) build (bytecode)"
- $(BCCompile.CXX) $< -o $@ -S -emit-llvm
+ $(BCCompile.CXX) $< -o $@ -S -$(LLVMCC_EMITIR_FLAG)
$(ObjDir)/%.ll: %.c $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
$(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)"
- $(BCCompile.C) $< -o $@ -S -emit-llvm
+ $(BCCompile.C) $< -o $@ -S -$(LLVMCC_EMITIR_FLAG)
$(ObjDir)/%.ll: %.m $(ObjDir)/.dir $(BUILT_SOURCES) $(LLVMCC)
$(Echo) "Compiling $*.m for $(BuildMode) build (bytecode)"
- $(BCCompile.C) $< -o $@ -S -emit-llvm
+ $(BCCompile.C) $< -o $@ -S -$(LLVMCC_EMITIR_FLAG)
endif
@@ -1699,6 +1726,11 @@ $(ObjDir)/%GenAsmMatcher.inc.tmp : %.td $(ObjDir)/.dir
$(Echo) "Building $( /dev/null 2>&1
+ if test $? -eq 0 ; then
+ llvm_cv_llvmgcc_dragonegg="yes"
+ fi
+ rm conftest.c
+fi])
+
+dnl Set the flags needed to emit LLVM IR and to disable optimizations
+dnl in llvmgcc
+if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
+ LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
+ LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
+else
+ LLVMCC_EMITIR_FLAG="-emit-llvm"
+ LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
+fi
+
+AC_SUBST(LLVMCC_EMITIR_FLAG)
+
dnl See if the llvm-gcc executable can compile to LLVM assembly
AC_CACHE_CHECK([whether llvm-gcc is sane],[llvm_cv_llvmgcc_sanity],
[llvm_cv_llvmgcc_sanity="no"
-if test -x "$LLVMGCC" ; then
+if test -n "$LLVMGCC" ; then
cp /dev/null conftest.c
- "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
+ $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
grep 'target datalayout =' > /dev/null 2>&1
if test $? -eq 0 ; then
llvm_cv_llvmgcc_sanity="yes"
@@ -1386,16 +1525,19 @@ if test -x "$LLVMGCC" ; then
fi])
dnl Since we have a sane llvm-gcc, identify it and its sub-tools
+dnl Furthermore, add some information about the tools
if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
AC_MSG_CHECKING([llvm-gcc component support])
- llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
+ llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
AC_SUBST(LLVMCC1,$llvmcc1path)
- llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
+ llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
AC_SUBST(LLVMGCCDIR,$llvmgccdir)
- llvmgcclangs=[`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`]
+ llvmgcclangs=[`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`]
AC_SUBST(LLVMGCC_LANGS,$llvmgcclangs)
+ AC_SUBST(LLVMGCC_DRAGONEGG,$llvm_cv_llvmgcc_dragonegg)
+ AC_SUBST(LLVMCC_DISABLEOPT_FLAGS)
AC_MSG_RESULT([ok])
fi
@@ -1548,7 +1690,7 @@ AC_CONFIG_FILES([include/llvm/Config/Targets.def])
AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def])
AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def])
AC_CONFIG_FILES([include/llvm/Config/Disassemblers.def])
-AC_CONFIG_HEADERS([include/llvm/System/DataTypes.h])
+AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h])
dnl Configure the makefile's configuration data
AC_CONFIG_FILES([Makefile.config])
diff --git a/bindings/ada/analysis/llvm_analysis-binding.ads b/bindings/ada/analysis/llvm_analysis-binding.ads
deleted file mode 100644
index c51a50353f11d..0000000000000
--- a/bindings/ada/analysis/llvm_analysis-binding.ads
+++ /dev/null
@@ -1,32 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with llvm;
-with Interfaces.C.Strings;
-
-
-package LLVM_Analysis.Binding is
-
- function LLVMVerifyModule
- (M : in llvm.LLVMModuleRef;
- Action : in LLVM_Analysis.LLVMVerifierFailureAction;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMVerifyFunction
- (Fn : in llvm.LLVMValueRef;
- Action : in LLVM_Analysis.LLVMVerifierFailureAction)
- return Interfaces.C.int;
-
- procedure LLVMViewFunctionCFG (Fn : in llvm.LLVMValueRef);
-
- procedure LLVMViewFunctionCFGOnly (Fn : in llvm.LLVMValueRef);
-
-private
-
- pragma Import (C, LLVMVerifyModule, "Ada_LLVMVerifyModule");
- pragma Import (C, LLVMVerifyFunction, "Ada_LLVMVerifyFunction");
- pragma Import (C, LLVMViewFunctionCFG, "Ada_LLVMViewFunctionCFG");
- pragma Import (C, LLVMViewFunctionCFGOnly, "Ada_LLVMViewFunctionCFGOnly");
-
-end LLVM_Analysis.Binding;
diff --git a/bindings/ada/analysis/llvm_analysis.ads b/bindings/ada/analysis/llvm_analysis.ads
deleted file mode 100644
index aa7b3f0e2e913..0000000000000
--- a/bindings/ada/analysis/llvm_analysis.ads
+++ /dev/null
@@ -1,30 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C;
-
-
-package LLVM_Analysis is
-
- -- LLVMVerifierFailureAction
- --
- type LLVMVerifierFailureAction is (
- LLVMAbortProcessAction,
- LLVMPrintMessageAction,
- LLVMReturnStatusAction);
-
- for LLVMVerifierFailureAction use
- (LLVMAbortProcessAction => 0,
- LLVMPrintMessageAction => 1,
- LLVMReturnStatusAction => 2);
-
- pragma Convention (C, LLVMVerifierFailureAction);
-
- type LLVMVerifierFailureAction_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Analysis.LLVMVerifierFailureAction;
-
- type LLVMVerifierFailureAction_view is access all
- LLVM_Analysis.LLVMVerifierFailureAction;
-
-end LLVM_Analysis;
diff --git a/bindings/ada/analysis/llvm_analysis_wrap.cxx b/bindings/ada/analysis/llvm_analysis_wrap.cxx
deleted file mode 100644
index f2a8637343de4..0000000000000
--- a/bindings/ada/analysis/llvm_analysis_wrap.cxx
+++ /dev/null
@@ -1,369 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_Analysis (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_Analysis(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-#include "llvm-c/Analysis.h"
-//#include "llvm-c/BitReader.h"
-//#include "llvm-c/BitWriter.h"
-//#include "llvm-c/Core.h"
-//#include "llvm-c/ExecutionEngine.h"
-//#include "llvm-c/LinkTimeOptimizer.h"
-//#include "llvm-c/lto.h"
-//#include "llvm-c/Target.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport int SWIGSTDCALL Ada_LLVMVerifyModule (
- void * jarg1
- ,
-
- int jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMVerifierFailureAction arg2 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = (LLVMVerifierFailureAction) jarg2;
-
- arg3 = (char **)jarg3;
-
- result = (int)LLVMVerifyModule(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMVerifyFunction (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMVerifierFailureAction arg2 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMVerifierFailureAction) jarg2;
-
- result = (int)LLVMVerifyFunction(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMViewFunctionCFG (
- void * jarg1
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- LLVMViewFunctionCFG(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMViewFunctionCFGOnly (
- void * jarg1
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- LLVMViewFunctionCFGOnly(arg1);
-
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/bitreader/llvm_bit_reader-binding.ads b/bindings/ada/bitreader/llvm_bit_reader-binding.ads
deleted file mode 100644
index 4fcdb4a84fcf9..0000000000000
--- a/bindings/ada/bitreader/llvm_bit_reader-binding.ads
+++ /dev/null
@@ -1,52 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with llvm;
-with Interfaces.C.Strings;
-
-
-package LLVM_bit_Reader.Binding is
-
- function LLVMParseBitcode
- (MemBuf : in llvm.LLVMMemoryBufferRef;
- OutModule : access llvm.LLVMModuleRef;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMParseBitcodeInContext
- (MemBuf : in llvm.LLVMMemoryBufferRef;
- ContextRef : in llvm.LLVMContextRef;
- OutModule : access llvm.LLVMModuleRef;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMGetBitcodeModuleProvider
- (MemBuf : in llvm.LLVMMemoryBufferRef;
- OutMP : access llvm.LLVMModuleProviderRef;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMGetBitcodeModuleProviderInContext
- (MemBuf : in llvm.LLVMMemoryBufferRef;
- ContextRef : in llvm.LLVMContextRef;
- OutMP : access llvm.LLVMModuleProviderRef;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
-private
-
- pragma Import (C, LLVMParseBitcode, "Ada_LLVMParseBitcode");
- pragma Import
- (C,
- LLVMParseBitcodeInContext,
- "Ada_LLVMParseBitcodeInContext");
- pragma Import
- (C,
- LLVMGetBitcodeModuleProvider,
- "Ada_LLVMGetBitcodeModuleProvider");
- pragma Import
- (C,
- LLVMGetBitcodeModuleProviderInContext,
- "Ada_LLVMGetBitcodeModuleProviderInContext");
-
-end LLVM_bit_Reader.Binding;
diff --git a/bindings/ada/bitreader/llvm_bit_reader.ads b/bindings/ada/bitreader/llvm_bit_reader.ads
deleted file mode 100644
index 7579dea2819d7..0000000000000
--- a/bindings/ada/bitreader/llvm_bit_reader.ads
+++ /dev/null
@@ -1,6 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-package LLVM_bit_Reader is
-
-end LLVM_bit_Reader;
diff --git a/bindings/ada/bitreader/llvm_bitreader_wrap.cxx b/bindings/ada/bitreader/llvm_bitreader_wrap.cxx
deleted file mode 100644
index b7ecbed355af5..0000000000000
--- a/bindings/ada/bitreader/llvm_bitreader_wrap.cxx
+++ /dev/null
@@ -1,423 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_bit_Reader (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_bit_Reader(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-//#include "llvm-c/Analysis.h"
-#include "llvm-c/BitReader.h"
-//#include "llvm-c/BitWriter.h"
-//#include "llvm-c/Core.h"
-//#include "llvm-c/ExecutionEngine.h"
-//#include "llvm-c/LinkTimeOptimizer.h"
-//#include "llvm-c/lto.h"
-//#include "llvm-c/Target.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport int SWIGSTDCALL Ada_LLVMParseBitcode (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMMemoryBufferRef arg1 = (LLVMMemoryBufferRef) 0 ;
- LLVMModuleRef *arg2 = (LLVMModuleRef *) 0 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMMemoryBufferRef)jarg1;
-
- arg2 = (LLVMModuleRef *)jarg2;
-
- arg3 = (char **)jarg3;
-
- result = (int)LLVMParseBitcode(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMParseBitcodeInContext (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- )
-{
- int jresult ;
- LLVMMemoryBufferRef arg1 = (LLVMMemoryBufferRef) 0 ;
- LLVMContextRef arg2 = (LLVMContextRef) 0 ;
- LLVMModuleRef *arg3 = (LLVMModuleRef *) 0 ;
- char **arg4 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMMemoryBufferRef)jarg1;
-
- arg2 = (LLVMContextRef)jarg2;
-
- arg3 = (LLVMModuleRef *)jarg3;
-
- arg4 = (char **)jarg4;
-
- result = (int)LLVMParseBitcodeInContext(arg1,arg2,arg3,arg4);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMGetBitcodeModuleProvider (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMMemoryBufferRef arg1 = (LLVMMemoryBufferRef) 0 ;
- LLVMModuleProviderRef *arg2 = (LLVMModuleProviderRef *) 0 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMMemoryBufferRef)jarg1;
-
- arg2 = (LLVMModuleProviderRef *)jarg2;
-
- arg3 = (char **)jarg3;
-
- result = (int)LLVMGetBitcodeModuleProvider(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMGetBitcodeModuleProviderInContext (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- )
-{
- int jresult ;
- LLVMMemoryBufferRef arg1 = (LLVMMemoryBufferRef) 0 ;
- LLVMContextRef arg2 = (LLVMContextRef) 0 ;
- LLVMModuleProviderRef *arg3 = (LLVMModuleProviderRef *) 0 ;
- char **arg4 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMMemoryBufferRef)jarg1;
-
- arg2 = (LLVMContextRef)jarg2;
-
- arg3 = (LLVMModuleProviderRef *)jarg3;
-
- arg4 = (char **)jarg4;
-
- result = (int)LLVMGetBitcodeModuleProviderInContext(arg1,arg2,arg3,arg4);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/bitwriter/llvm_bit_writer-binding.ads b/bindings/ada/bitwriter/llvm_bit_writer-binding.ads
deleted file mode 100644
index b5542df0e062a..0000000000000
--- a/bindings/ada/bitwriter/llvm_bit_writer-binding.ads
+++ /dev/null
@@ -1,28 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with llvm;
-with Interfaces.C.Strings;
-
-
-package LLVM_bit_Writer.Binding is
-
- function LLVMWriteBitcodeToFileHandle
- (M : in llvm.LLVMModuleRef;
- Handle : in Interfaces.C.int)
- return Interfaces.C.int;
-
- function LLVMWriteBitcodeToFile
- (M : in llvm.LLVMModuleRef;
- Path : in Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
-private
-
- pragma Import
- (C,
- LLVMWriteBitcodeToFileHandle,
- "Ada_LLVMWriteBitcodeToFileHandle");
- pragma Import (C, LLVMWriteBitcodeToFile, "Ada_LLVMWriteBitcodeToFile");
-
-end LLVM_bit_Writer.Binding;
diff --git a/bindings/ada/bitwriter/llvm_bit_writer.ads b/bindings/ada/bitwriter/llvm_bit_writer.ads
deleted file mode 100644
index 35b1f38aa9963..0000000000000
--- a/bindings/ada/bitwriter/llvm_bit_writer.ads
+++ /dev/null
@@ -1,6 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-package LLVM_bit_Writer is
-
-end LLVM_bit_Writer;
diff --git a/bindings/ada/bitwriter/llvm_bitwriter_wrap.cxx b/bindings/ada/bitwriter/llvm_bitwriter_wrap.cxx
deleted file mode 100644
index 4abf44fffd5c8..0000000000000
--- a/bindings/ada/bitwriter/llvm_bitwriter_wrap.cxx
+++ /dev/null
@@ -1,335 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_bit_Writer (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_bit_Writer(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-#include "llvm-c/Analysis.h"
-#include "llvm-c/BitReader.h"
-#include "llvm-c/BitWriter.h"
-#include "llvm-c/Core.h"
-#include "llvm-c/ExecutionEngine.h"
-#include "llvm-c/LinkTimeOptimizer.h"
-#include "llvm-c/lto.h"
-#include "llvm-c/Target.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport int SWIGSTDCALL Ada_LLVMWriteBitcodeToFileHandle (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- int jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- int arg2 ;
- int result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
-
- arg2 = (int) jarg2;
-
-
- result = (int)LLVMWriteBitcodeToFileHandle(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMWriteBitcodeToFile (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- int jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
- int result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- result = (int)LLVMWriteBitcodeToFile(arg1,(char const *)arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/executionengine/llvm_execution_engine-binding.ads b/bindings/ada/executionengine/llvm_execution_engine-binding.ads
deleted file mode 100644
index a37c462cf3248..0000000000000
--- a/bindings/ada/executionengine/llvm_execution_engine-binding.ads
+++ /dev/null
@@ -1,192 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with llvm;
-with Interfaces.C.Strings;
-
-
-package LLVM_execution_Engine.Binding is
-
- procedure LLVMLinkInJIT;
-
- procedure LLVMLinkInInterpreter;
-
- function LLVMCreateGenericValueOfInt
- (Ty : in llvm.LLVMTypeRef;
- N : in Interfaces.C.Extensions.unsigned_long_long;
- IsSigned : in Interfaces.C.int)
- return LLVM_execution_Engine.LLVMGenericValueRef;
-
- function LLVMCreateGenericValueOfPointer
- (P : access Interfaces.C.Extensions.void)
- return LLVM_execution_Engine.LLVMGenericValueRef;
-
- function LLVMCreateGenericValueOfFloat
- (Ty : in llvm.LLVMTypeRef;
- N : in Interfaces.C.double)
- return LLVM_execution_Engine.LLVMGenericValueRef;
-
- function LLVMGenericValueIntWidth
- (GenValRef : in LLVM_execution_Engine.LLVMGenericValueRef)
- return Interfaces.C.unsigned;
-
- function LLVMGenericValueToInt
- (GenVal : in LLVM_execution_Engine.LLVMGenericValueRef;
- IsSigned : in Interfaces.C.int)
- return Interfaces.C.Extensions.unsigned_long_long;
-
- function LLVMGenericValueToPointer
- (GenVal : in LLVM_execution_Engine.LLVMGenericValueRef)
- return access Interfaces.C.Extensions.void;
-
- function LLVMGenericValueToFloat
- (TyRef : in llvm.LLVMTypeRef;
- GenVal : in LLVM_execution_Engine.LLVMGenericValueRef)
- return Interfaces.C.double;
-
- procedure LLVMDisposeGenericValue
- (GenVal : in LLVM_execution_Engine.LLVMGenericValueRef);
-
- function LLVMCreateExecutionEngine
- (OutEE : access LLVM_execution_Engine.LLVMExecutionEngineRef;
- MP : in llvm.LLVMModuleProviderRef;
- OutError : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMCreateInterpreter
- (OutInterp : access LLVM_execution_Engine.LLVMExecutionEngineRef;
- MP : in llvm.LLVMModuleProviderRef;
- OutError : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMCreateJITCompiler
- (OutJIT : access LLVM_execution_Engine.LLVMExecutionEngineRef;
- MP : in llvm.LLVMModuleProviderRef;
- OptLevel : in Interfaces.C.unsigned;
- OutError : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- procedure LLVMDisposeExecutionEngine
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef);
-
- procedure LLVMRunStaticConstructors
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef);
-
- procedure LLVMRunStaticDestructors
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef);
-
- function LLVMRunFunctionAsMain
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- F : in llvm.LLVMValueRef;
- ArgC : in Interfaces.C.unsigned;
- ArgV : access Interfaces.C.Strings.chars_ptr;
- EnvP : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMRunFunction
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- F : in llvm.LLVMValueRef;
- NumArgs : in Interfaces.C.unsigned;
- Args : access LLVM_execution_Engine.LLVMGenericValueRef)
- return LLVM_execution_Engine.LLVMGenericValueRef;
-
- procedure LLVMFreeMachineCodeForFunction
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- F : in llvm.LLVMValueRef);
-
- procedure LLVMAddModuleProvider
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- MP : in llvm.LLVMModuleProviderRef);
-
- function LLVMRemoveModuleProvider
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- MP : in llvm.LLVMModuleProviderRef;
- OutMod : access llvm.LLVMModuleRef;
- OutError : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMFindFunction
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- Name : in Interfaces.C.Strings.chars_ptr;
- OutFn : access llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- function LLVMGetExecutionEngineTargetData
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef)
- return LLVM_execution_Engine.LLVMTargetDataRef;
-
- procedure LLVMAddGlobalMapping
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- Global : in llvm.LLVMValueRef;
- Addr : access Interfaces.C.Extensions.void);
-
- function LLVMGetPointerToGlobal
- (EE : in LLVM_execution_Engine.LLVMExecutionEngineRef;
- Global : in llvm.LLVMValueRef)
- return access Interfaces.C.Extensions.void;
-
-private
-
- pragma Import (C, LLVMLinkInJIT, "Ada_LLVMLinkInJIT");
- pragma Import (C, LLVMLinkInInterpreter, "Ada_LLVMLinkInInterpreter");
- pragma Import
- (C,
- LLVMCreateGenericValueOfInt,
- "Ada_LLVMCreateGenericValueOfInt");
- pragma Import
- (C,
- LLVMCreateGenericValueOfPointer,
- "Ada_LLVMCreateGenericValueOfPointer");
- pragma Import
- (C,
- LLVMCreateGenericValueOfFloat,
- "Ada_LLVMCreateGenericValueOfFloat");
- pragma Import
- (C,
- LLVMGenericValueIntWidth,
- "Ada_LLVMGenericValueIntWidth");
- pragma Import (C, LLVMGenericValueToInt, "Ada_LLVMGenericValueToInt");
- pragma Import
- (C,
- LLVMGenericValueToPointer,
- "Ada_LLVMGenericValueToPointer");
- pragma Import (C, LLVMGenericValueToFloat, "Ada_LLVMGenericValueToFloat");
- pragma Import (C, LLVMDisposeGenericValue, "Ada_LLVMDisposeGenericValue");
- pragma Import
- (C,
- LLVMCreateExecutionEngine,
- "Ada_LLVMCreateExecutionEngine");
- pragma Import (C, LLVMCreateInterpreter, "Ada_LLVMCreateInterpreter");
- pragma Import (C, LLVMCreateJITCompiler, "Ada_LLVMCreateJITCompiler");
- pragma Import
- (C,
- LLVMDisposeExecutionEngine,
- "Ada_LLVMDisposeExecutionEngine");
- pragma Import
- (C,
- LLVMRunStaticConstructors,
- "Ada_LLVMRunStaticConstructors");
- pragma Import
- (C,
- LLVMRunStaticDestructors,
- "Ada_LLVMRunStaticDestructors");
- pragma Import (C, LLVMRunFunctionAsMain, "Ada_LLVMRunFunctionAsMain");
- pragma Import (C, LLVMRunFunction, "Ada_LLVMRunFunction");
- pragma Import
- (C,
- LLVMFreeMachineCodeForFunction,
- "Ada_LLVMFreeMachineCodeForFunction");
- pragma Import (C, LLVMAddModuleProvider, "Ada_LLVMAddModuleProvider");
- pragma Import
- (C,
- LLVMRemoveModuleProvider,
- "Ada_LLVMRemoveModuleProvider");
- pragma Import (C, LLVMFindFunction, "Ada_LLVMFindFunction");
- pragma Import
- (C,
- LLVMGetExecutionEngineTargetData,
- "Ada_LLVMGetExecutionEngineTargetData");
- pragma Import (C, LLVMAddGlobalMapping, "Ada_LLVMAddGlobalMapping");
- pragma Import (C, LLVMGetPointerToGlobal, "Ada_LLVMGetPointerToGlobal");
-
-end LLVM_execution_Engine.Binding;
diff --git a/bindings/ada/executionengine/llvm_execution_engine.ads b/bindings/ada/executionengine/llvm_execution_engine.ads
deleted file mode 100644
index c7669920f7ac9..0000000000000
--- a/bindings/ada/executionengine/llvm_execution_engine.ads
+++ /dev/null
@@ -1,90 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C.Extensions;
-
-
-package LLVM_execution_Engine is
-
- -- LLVMOpaqueGenericValue
- --
- type LLVMOpaqueGenericValue is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueGenericValue_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.LLVMOpaqueGenericValue;
-
- type LLVMOpaqueGenericValue_view is access all
- LLVM_execution_Engine.LLVMOpaqueGenericValue;
-
- -- LLVMGenericValueRef
- --
- type LLVMGenericValueRef is access all
- LLVM_execution_Engine.LLVMOpaqueGenericValue;
-
- type LLVMGenericValueRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.LLVMGenericValueRef;
-
- type LLVMGenericValueRef_view is access all
- LLVM_execution_Engine.LLVMGenericValueRef;
-
- -- LLVMOpaqueExecutionEngine
- --
- type LLVMOpaqueExecutionEngine is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueExecutionEngine_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.LLVMOpaqueExecutionEngine;
-
- type LLVMOpaqueExecutionEngine_view is access all
- LLVM_execution_Engine.LLVMOpaqueExecutionEngine;
-
- -- LLVMExecutionEngineRef
- --
- type LLVMExecutionEngineRef is access all
- LLVM_execution_Engine.LLVMOpaqueExecutionEngine;
-
- type LLVMExecutionEngineRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.LLVMExecutionEngineRef;
-
- type LLVMExecutionEngineRef_view is access all
- LLVM_execution_Engine.LLVMExecutionEngineRef;
-
- -- LLVMTargetDataRef
- --
- type LLVMTargetDataRef is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMTargetDataRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.LLVMTargetDataRef;
-
- type LLVMTargetDataRef_view is access all
- LLVM_execution_Engine.LLVMTargetDataRef;
-
- -- GenericValue
- --
- type GenericValue is new Interfaces.C.Extensions.opaque_structure_def;
-
- type GenericValue_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.GenericValue;
-
- type GenericValue_view is access all LLVM_execution_Engine.GenericValue;
-
- -- ExecutionEngine
- --
- type ExecutionEngine is new Interfaces.C.Extensions.incomplete_class_def;
-
- type ExecutionEngine_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_execution_Engine.ExecutionEngine;
-
- type ExecutionEngine_view is access all
- LLVM_execution_Engine.ExecutionEngine;
-
-
-end LLVM_execution_Engine;
diff --git a/bindings/ada/executionengine/llvm_executionengine_wrap.cxx b/bindings/ada/executionengine/llvm_executionengine_wrap.cxx
deleted file mode 100644
index b63acacb361f0..0000000000000
--- a/bindings/ada/executionengine/llvm_executionengine_wrap.cxx
+++ /dev/null
@@ -1,924 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_execution_Engine (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_execution_Engine(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-#include "llvm-c/ExecutionEngine.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport void SWIGSTDCALL Ada_LLVMLinkInJIT (
- )
-{
- LLVMLinkInJIT();
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMLinkInInterpreter (
- )
-{
- LLVMLinkInInterpreter();
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateGenericValueOfInt (
- void * jarg1
- ,
-
- unsigned long long jarg2
- ,
-
- int jarg3
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned long long arg2 ;
- int arg3 ;
- LLVMGenericValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (unsigned long long) jarg2;
-
-
-
- arg3 = (int) jarg3;
-
-
- result = (LLVMGenericValueRef)LLVMCreateGenericValueOfInt(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateGenericValueOfPointer (
- void* jarg1
- )
-{
- void * jresult ;
- void *arg1 = (void *) 0 ;
- LLVMGenericValueRef result;
-
- arg1 = (void *)jarg1;
-
- result = (LLVMGenericValueRef)LLVMCreateGenericValueOfPointer(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateGenericValueOfFloat (
- void * jarg1
- ,
-
- double jarg2
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- double arg2 ;
- LLVMGenericValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (double) jarg2;
-
-
- result = (LLVMGenericValueRef)LLVMCreateGenericValueOfFloat(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGenericValueIntWidth (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMGenericValueRef)jarg1;
-
- result = (unsigned int)LLVMGenericValueIntWidth(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned long long SWIGSTDCALL Ada_LLVMGenericValueToInt (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- unsigned long long jresult ;
- LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
- int arg2 ;
- unsigned long long result;
-
- arg1 = (LLVMGenericValueRef)jarg1;
-
-
- arg2 = (int) jarg2;
-
-
- result = (unsigned long long)LLVMGenericValueToInt(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void* SWIGSTDCALL Ada_LLVMGenericValueToPointer (
- void * jarg1
- )
-{
- void* jresult ;
- LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
- void *result = 0 ;
-
- arg1 = (LLVMGenericValueRef)jarg1;
-
- result = (void *)LLVMGenericValueToPointer(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport double SWIGSTDCALL Ada_LLVMGenericValueToFloat (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- double jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMGenericValueRef arg2 = (LLVMGenericValueRef) 0 ;
- double result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = (LLVMGenericValueRef)jarg2;
-
- result = (double)LLVMGenericValueToFloat(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeGenericValue (
- void * jarg1
- )
-{
- LLVMGenericValueRef arg1 = (LLVMGenericValueRef) 0 ;
-
- arg1 = (LLVMGenericValueRef)jarg1;
-
- LLVMDisposeGenericValue(arg1);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMCreateExecutionEngine (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMExecutionEngineRef *arg1 = (LLVMExecutionEngineRef *) 0 ;
- LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMExecutionEngineRef *)jarg1;
-
- arg2 = (LLVMModuleProviderRef)jarg2;
-
- arg3 = (char **)jarg3;
-
- result = (int)LLVMCreateExecutionEngine(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMCreateInterpreter (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMExecutionEngineRef *arg1 = (LLVMExecutionEngineRef *) 0 ;
- LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMExecutionEngineRef *)jarg1;
-
- arg2 = (LLVMModuleProviderRef)jarg2;
-
- arg3 = (char **)jarg3;
-
- result = (int)LLVMCreateInterpreter(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMCreateJITCompiler (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- ,
-
- void * jarg4
- )
-{
- int jresult ;
- LLVMExecutionEngineRef *arg1 = (LLVMExecutionEngineRef *) 0 ;
- LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
- unsigned int arg3 ;
- char **arg4 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMExecutionEngineRef *)jarg1;
-
- arg2 = (LLVMModuleProviderRef)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- arg4 = (char **)jarg4;
-
- result = (int)LLVMCreateJITCompiler(arg1,arg2,arg3,arg4);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeExecutionEngine (
- void * jarg1
- )
-{
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- LLVMDisposeExecutionEngine(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMRunStaticConstructors (
- void * jarg1
- )
-{
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- LLVMRunStaticConstructors(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMRunStaticDestructors (
- void * jarg1
- )
-{
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- LLVMRunStaticDestructors(arg1);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMRunFunctionAsMain (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- ,
-
- void * jarg4
- ,
-
- void * jarg5
- )
-{
- int jresult ;
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- unsigned int arg3 ;
- char **arg4 = (char **) 0 ;
- char **arg5 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- arg4 = (char **)jarg4;
-
- arg5 = (char **)jarg5;
-
- result = (int)LLVMRunFunctionAsMain(arg1,arg2,arg3,(char const *const *)arg4,(char const *const *)arg5);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMRunFunction (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- ,
-
- void * jarg4
- )
-{
- void * jresult ;
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- unsigned int arg3 ;
- LLVMGenericValueRef *arg4 = (LLVMGenericValueRef *) 0 ;
- LLVMGenericValueRef result;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- arg4 = (LLVMGenericValueRef *)jarg4;
-
- result = (LLVMGenericValueRef)LLVMRunFunction(arg1,arg2,arg3,arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMFreeMachineCodeForFunction (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- LLVMFreeMachineCodeForFunction(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddModuleProvider (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMModuleProviderRef)jarg2;
-
- LLVMAddModuleProvider(arg1,arg2);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMRemoveModuleProvider (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- )
-{
- int jresult ;
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMModuleProviderRef arg2 = (LLVMModuleProviderRef) 0 ;
- LLVMModuleRef *arg3 = (LLVMModuleRef *) 0 ;
- char **arg4 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMModuleProviderRef)jarg2;
-
- arg3 = (LLVMModuleRef *)jarg3;
-
- arg4 = (char **)jarg4;
-
- result = (int)LLVMRemoveModuleProvider(arg1,arg2,arg3,arg4);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMFindFunction (
- void * jarg1
- ,
-
- char * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMValueRef *arg3 = (LLVMValueRef *) 0 ;
- int result;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = jarg2;
-
- arg3 = (LLVMValueRef *)jarg3;
-
- result = (int)LLVMFindFunction(arg1,(char const *)arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport LLVMTargetDataRef SWIGSTDCALL Ada_LLVMGetExecutionEngineTargetData (
- void * jarg1
- )
-{
- LLVMTargetDataRef jresult ;
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMTargetDataRef result;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- result = LLVMGetExecutionEngineTargetData(arg1);
-
- jresult = result;
- //jresult = new LLVMTargetDataRef ((LLVMTargetDataRef &) result);
-
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddGlobalMapping (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void* jarg3
- )
-{
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- void *arg3 = (void *) 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (void *)jarg3;
-
- LLVMAddGlobalMapping(arg1,arg2,arg3);
-
-
-}
-
-
-
-DllExport void* SWIGSTDCALL Ada_LLVMGetPointerToGlobal (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void* jresult ;
- LLVMExecutionEngineRef arg1 = (LLVMExecutionEngineRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- void *result = 0 ;
-
- arg1 = (LLVMExecutionEngineRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (void *)LLVMGetPointerToGlobal(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/llvm.gpr b/bindings/ada/llvm.gpr
deleted file mode 100644
index 8e87af4fa12e6..0000000000000
--- a/bindings/ada/llvm.gpr
+++ /dev/null
@@ -1,34 +0,0 @@
-project LLVM is
-
- for Languages use ("Ada", "C++");
- for Source_Dirs use (".", "analysis", "bitreader", "bitwriter", "executionengine", "llvm", "target", "transforms");
- for Object_Dir use "build";
- for Exec_Dir use ".";
- for Library_Name use "llvm_ada";
- for Library_Dir use "lib";
- for Library_Ali_Dir use "objects";
-
- package Naming is
- for Specification_Suffix ("c++") use ".h";
- for Implementation_Suffix ("c++") use ".cxx";
- end Naming;
-
- package Builder is
- for Default_Switches ("ada") use ("-g");
- end Builder;
-
- package Compiler is
- for Default_Switches ("ada") use ("-gnato", "-fstack-check", "-g", "-gnata", "-gnat05", "-I/usr/local/include");
- for Default_Switches ("c++") use ("-D__STDC_LIMIT_MACROS", "-D__STDC_CONSTANT_MACROS", "-I../../include", "-g");
- end Compiler;
-
- package Binder is
- for Default_Switches ("ada") use ("-E");
- end Binder;
-
- package Linker is
- for Default_Switches ("c++") use ("-g");
- end Linker;
-
-end LLVM;
-
diff --git a/bindings/ada/llvm/llvm-binding.ads b/bindings/ada/llvm/llvm-binding.ads
deleted file mode 100644
index c0e48a1b5bf35..0000000000000
--- a/bindings/ada/llvm/llvm-binding.ads
+++ /dev/null
@@ -1,1974 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C.Strings;
-
-
-package llvm.Binding is
-
- procedure LLVMDisposeMessage
- (Message : in Interfaces.C.Strings.chars_ptr);
-
- function LLVMContextCreate return llvm.LLVMContextRef;
-
- function LLVMGetGlobalContext return llvm.LLVMContextRef;
-
- procedure LLVMContextDispose (C : in llvm.LLVMContextRef);
-
- function LLVMModuleCreateWithName
- (ModuleID : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMModuleRef;
-
- function LLVMModuleCreateWithNameInContext
- (ModuleID : in Interfaces.C.Strings.chars_ptr;
- C : in llvm.LLVMContextRef)
- return llvm.LLVMModuleRef;
-
- procedure LLVMDisposeModule (M : in llvm.LLVMModuleRef);
-
- function LLVMGetDataLayout
- (M : in llvm.LLVMModuleRef)
- return Interfaces.C.Strings.chars_ptr;
-
- procedure LLVMSetDataLayout
- (M : in llvm.LLVMModuleRef;
- Triple : in Interfaces.C.Strings.chars_ptr);
-
- function LLVMGetTarget
- (M : in llvm.LLVMModuleRef)
- return Interfaces.C.Strings.chars_ptr;
-
- procedure LLVMSetTarget
- (M : in llvm.LLVMModuleRef;
- Triple : in Interfaces.C.Strings.chars_ptr);
-
- function LLVMAddTypeName
- (M : in llvm.LLVMModuleRef;
- Name : in Interfaces.C.Strings.chars_ptr;
- Ty : in llvm.LLVMTypeRef)
- return Interfaces.C.int;
-
- procedure LLVMDeleteTypeName
- (M : in llvm.LLVMModuleRef;
- Name : in Interfaces.C.Strings.chars_ptr);
-
- function LLVMGetTypeByName
- (M : in llvm.LLVMModuleRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMTypeRef;
-
- procedure LLVMDumpModule (M : in llvm.LLVMModuleRef);
-
- function LLVMGetTypeKind
- (Ty : in llvm.LLVMTypeRef)
- return llvm.LLVMTypeKind;
-
- function LLVMInt1Type return llvm.LLVMTypeRef;
-
- function LLVMInt8Type return llvm.LLVMTypeRef;
-
- function LLVMInt16Type return llvm.LLVMTypeRef;
-
- function LLVMInt32Type return llvm.LLVMTypeRef;
-
- function LLVMInt64Type return llvm.LLVMTypeRef;
-
- function LLVMIntType
- (NumBits : in Interfaces.C.unsigned)
- return llvm.LLVMTypeRef;
-
- function LLVMGetIntTypeWidth
- (IntegerTy : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMFloatType return llvm.LLVMTypeRef;
-
- function LLVMDoubleType return llvm.LLVMTypeRef;
-
- function LLVMX86FP80Type return llvm.LLVMTypeRef;
-
- function LLVMFP128Type return llvm.LLVMTypeRef;
-
- function LLVMPPCFP128Type return llvm.LLVMTypeRef;
-
- function LLVMFunctionType
- (ReturnType : in llvm.LLVMTypeRef;
- ParamTypes : access llvm.LLVMTypeRef;
- ParamCount : in Interfaces.C.unsigned;
- IsVarArg : in Interfaces.C.int)
- return llvm.LLVMTypeRef;
-
- function LLVMIsFunctionVarArg
- (FunctionTy : in llvm.LLVMTypeRef)
- return Interfaces.C.int;
-
- function LLVMGetReturnType
- (FunctionTy : in llvm.LLVMTypeRef)
- return llvm.LLVMTypeRef;
-
- function LLVMCountParamTypes
- (FunctionTy : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMGetParamTypes
- (FunctionTy : in llvm.LLVMTypeRef;
- Dest : access llvm.LLVMTypeRef);
-
- function LLVMStructType
- (ElementTypes : access llvm.LLVMTypeRef;
- ElementCount : in Interfaces.C.unsigned;
- Packed : in Interfaces.C.int)
- return llvm.LLVMTypeRef;
-
- function LLVMCountStructElementTypes
- (StructTy : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMGetStructElementTypes
- (StructTy : in llvm.LLVMTypeRef;
- Dest : access llvm.LLVMTypeRef);
-
- function LLVMIsPackedStruct
- (StructTy : in llvm.LLVMTypeRef)
- return Interfaces.C.int;
-
- function LLVMArrayType
- (ElementType : in llvm.LLVMTypeRef;
- ElementCount : in Interfaces.C.unsigned)
- return llvm.LLVMTypeRef;
-
- function LLVMPointerType
- (ElementType : in llvm.LLVMTypeRef;
- AddressSpace : in Interfaces.C.unsigned)
- return llvm.LLVMTypeRef;
-
- function LLVMVectorType
- (ElementType : in llvm.LLVMTypeRef;
- ElementCount : in Interfaces.C.unsigned)
- return llvm.LLVMTypeRef;
-
- function LLVMGetElementType
- (Ty : in llvm.LLVMTypeRef)
- return llvm.LLVMTypeRef;
-
- function LLVMGetArrayLength
- (ArrayTy : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMGetPointerAddressSpace
- (PointerTy : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMGetVectorSize
- (VectorTy : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMVoidType return llvm.LLVMTypeRef;
-
- function LLVMLabelType return llvm.LLVMTypeRef;
-
- function LLVMOpaqueType return llvm.LLVMTypeRef;
-
- function LLVMCreateTypeHandle
- (PotentiallyAbstractTy : in llvm.LLVMTypeRef)
- return llvm.LLVMTypeHandleRef;
-
- procedure LLVMRefineType
- (AbstractTy : in llvm.LLVMTypeRef;
- ConcreteTy : in llvm.LLVMTypeRef);
-
- function LLVMResolveTypeHandle
- (TypeHandle : in llvm.LLVMTypeHandleRef)
- return llvm.LLVMTypeRef;
-
- procedure LLVMDisposeTypeHandle (TypeHandle : in llvm.LLVMTypeHandleRef);
-
- function LLVMTypeOf (Val : in llvm.LLVMValueRef) return llvm.LLVMTypeRef;
-
- function LLVMGetValueName
- (Val : in llvm.LLVMValueRef)
- return Interfaces.C.Strings.chars_ptr;
-
- procedure LLVMSetValueName
- (Val : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr);
-
- procedure LLVMDumpValue (Val : in llvm.LLVMValueRef);
-
- function LLVMIsAArgument
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsABasicBlock
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAInlineAsm
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAUser
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstant
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantAggregateZero
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantArray
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantExpr
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantFP
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantInt
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantPointerNull
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantStruct
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAConstantVector
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAGlobalValue
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFunction
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAGlobalAlias
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAGlobalVariable
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAUndefValue
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAInstruction
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsABinaryOperator
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsACallInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAIntrinsicInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsADbgInfoIntrinsic
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsADbgDeclareInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsADbgFuncStartInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsADbgRegionEndInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsADbgRegionStartInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsADbgStopPointInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAEHSelectorInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAMemIntrinsic
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAMemCpyInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAMemMoveInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAMemSetInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsACmpInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFCmpInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAICmpInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAExtractElementInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAGetElementPtrInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAInsertElementInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAInsertValueInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAPHINode
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsASelectInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAShuffleVectorInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAStoreInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsATerminatorInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsABranchInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAInvokeInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAReturnInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsASwitchInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAUnreachableInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAUnwindInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAUnaryInstruction
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAAllocationInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAAllocaInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAMallocInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsACastInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsABitCastInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFPExtInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFPToSIInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFPToUIInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFPTruncInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAIntToPtrInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAPtrToIntInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsASExtInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsASIToFPInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsATruncInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAUIToFPInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAZExtInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAExtractValueInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAFreeInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsALoadInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsAVAArgInst
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstNull
- (Ty : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstAllOnes
- (Ty : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetUndef
- (Ty : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMIsConstant
- (Val : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- function LLVMIsNull (Val : in llvm.LLVMValueRef) return Interfaces.C.int;
-
- function LLVMIsUndef
- (Val : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- function LLVMConstPointerNull
- (Ty : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstInt
- (IntTy : in llvm.LLVMTypeRef;
- N : in Interfaces.C.Extensions.unsigned_long_long;
- SignExtend : in Interfaces.C.int)
- return llvm.LLVMValueRef;
-
- function LLVMConstReal
- (RealTy : in llvm.LLVMTypeRef;
- N : in Interfaces.C.double)
- return llvm.LLVMValueRef;
-
- function LLVMConstRealOfString
- (RealTy : in llvm.LLVMTypeRef;
- Text : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMConstString
- (Str : in Interfaces.C.Strings.chars_ptr;
- Length : in Interfaces.C.unsigned;
- DontNullTerminate : in Interfaces.C.int)
- return llvm.LLVMValueRef;
-
- function LLVMConstArray
- (ElementTy : in llvm.LLVMTypeRef;
- ConstantVals : access llvm.LLVMValueRef;
- Length : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMConstStruct
- (ConstantVals : access llvm.LLVMValueRef;
- Count : in Interfaces.C.unsigned;
- packed : in Interfaces.C.int)
- return llvm.LLVMValueRef;
-
- function LLVMConstVector
- (ScalarConstantVals : access llvm.LLVMValueRef;
- Size : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMSizeOf (Ty : in llvm.LLVMTypeRef) return llvm.LLVMValueRef;
-
- function LLVMConstNeg
- (ConstantVal : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstNot
- (ConstantVal : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstAdd
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstSub
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstMul
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstUDiv
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstSDiv
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFDiv
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstURem
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstSRem
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFRem
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstAnd
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstOr
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstXor
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstICmp
- (Predicate : in llvm.LLVMIntPredicate;
- LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFCmp
- (Predicate : in llvm.LLVMRealPredicate;
- LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstShl
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstLShr
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstAShr
- (LHSConstant : in llvm.LLVMValueRef;
- RHSConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstGEP
- (ConstantVal : in llvm.LLVMValueRef;
- ConstantIndices : access llvm.LLVMValueRef;
- NumIndices : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMConstTrunc
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstSExt
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstZExt
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFPTrunc
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFPExt
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstUIToFP
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstSIToFP
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFPToUI
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstFPToSI
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstPtrToInt
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstIntToPtr
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstBitCast
- (ConstantVal : in llvm.LLVMValueRef;
- ToType : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstSelect
- (ConstantCondition : in llvm.LLVMValueRef;
- ConstantIfTrue : in llvm.LLVMValueRef;
- ConstantIfFalse : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstExtractElement
- (VectorConstant : in llvm.LLVMValueRef;
- IndexConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstInsertElement
- (VectorConstant : in llvm.LLVMValueRef;
- ElementValueConstant : in llvm.LLVMValueRef;
- IndexConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstShuffleVector
- (VectorAConstant : in llvm.LLVMValueRef;
- VectorBConstant : in llvm.LLVMValueRef;
- MaskConstant : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMConstExtractValue
- (AggConstant : in llvm.LLVMValueRef;
- IdxList : access Interfaces.C.unsigned;
- NumIdx : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMConstInsertValue
- (AggConstant : in llvm.LLVMValueRef;
- ElementValueConstant : in llvm.LLVMValueRef;
- IdxList : access Interfaces.C.unsigned;
- NumIdx : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMConstInlineAsm
- (Ty : in llvm.LLVMTypeRef;
- AsmString : in Interfaces.C.Strings.chars_ptr;
- Constraints : in Interfaces.C.Strings.chars_ptr;
- HasSideEffects : in Interfaces.C.int)
- return llvm.LLVMValueRef;
-
- function LLVMGetGlobalParent
- (Global : in llvm.LLVMValueRef)
- return llvm.LLVMModuleRef;
-
- function LLVMIsDeclaration
- (Global : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- function LLVMGetLinkage
- (Global : in llvm.LLVMValueRef)
- return llvm.LLVMLinkage;
-
- procedure LLVMSetLinkage
- (Global : in llvm.LLVMValueRef;
- Linkage : in llvm.LLVMLinkage);
-
- function LLVMGetSection
- (Global : in llvm.LLVMValueRef)
- return Interfaces.C.Strings.chars_ptr;
-
- procedure LLVMSetSection
- (Global : in llvm.LLVMValueRef;
- Section : in Interfaces.C.Strings.chars_ptr);
-
- function LLVMGetVisibility
- (Global : in llvm.LLVMValueRef)
- return llvm.LLVMVisibility;
-
- procedure LLVMSetVisibility
- (Global : in llvm.LLVMValueRef;
- Viz : in llvm.LLVMVisibility);
-
- function LLVMGetAlignment
- (Global : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMSetAlignment
- (Global : in llvm.LLVMValueRef;
- Bytes : in Interfaces.C.unsigned);
-
- function LLVMAddGlobal
- (M : in llvm.LLVMModuleRef;
- Ty : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMGetNamedGlobal
- (M : in llvm.LLVMModuleRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMGetFirstGlobal
- (M : in llvm.LLVMModuleRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetLastGlobal
- (M : in llvm.LLVMModuleRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetNextGlobal
- (GlobalVar : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetPreviousGlobal
- (GlobalVar : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- procedure LLVMDeleteGlobal (GlobalVar : in llvm.LLVMValueRef);
-
- function LLVMGetInitializer
- (GlobalVar : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- procedure LLVMSetInitializer
- (GlobalVar : in llvm.LLVMValueRef;
- ConstantVal : in llvm.LLVMValueRef);
-
- function LLVMIsThreadLocal
- (GlobalVar : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- procedure LLVMSetThreadLocal
- (GlobalVar : in llvm.LLVMValueRef;
- IsThreadLocal : in Interfaces.C.int);
-
- function LLVMIsGlobalConstant
- (GlobalVar : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- procedure LLVMSetGlobalConstant
- (GlobalVar : in llvm.LLVMValueRef;
- IsConstant : in Interfaces.C.int);
-
- function LLVMAddAlias
- (M : in llvm.LLVMModuleRef;
- Ty : in llvm.LLVMTypeRef;
- Aliasee : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMAddFunction
- (M : in llvm.LLVMModuleRef;
- Name : in Interfaces.C.Strings.chars_ptr;
- FunctionTy : in llvm.LLVMTypeRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetNamedFunction
- (M : in llvm.LLVMModuleRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMGetFirstFunction
- (M : in llvm.LLVMModuleRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetLastFunction
- (M : in llvm.LLVMModuleRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetNextFunction
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetPreviousFunction
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- procedure LLVMDeleteFunction (Fn : in llvm.LLVMValueRef);
-
- function LLVMGetIntrinsicID
- (Fn : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- function LLVMGetFunctionCallConv
- (Fn : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMSetFunctionCallConv
- (Fn : in llvm.LLVMValueRef;
- CC : in Interfaces.C.unsigned);
-
- function LLVMGetGC
- (Fn : in llvm.LLVMValueRef)
- return Interfaces.C.Strings.chars_ptr;
-
- procedure LLVMSetGC
- (Fn : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr);
-
- procedure LLVMAddFunctionAttr
- (Fn : in llvm.LLVMValueRef;
- PA : in llvm.LLVMAttribute);
-
- procedure LLVMRemoveFunctionAttr
- (Fn : in llvm.LLVMValueRef;
- PA : in llvm.LLVMAttribute);
-
- function LLVMCountParams
- (Fn : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMGetParams
- (Fn : in llvm.LLVMValueRef;
- Params : access llvm.LLVMValueRef);
-
- function LLVMGetParam
- (Fn : in llvm.LLVMValueRef;
- Index : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMGetParamParent
- (Inst : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetFirstParam
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetLastParam
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetNextParam
- (Arg : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetPreviousParam
- (Arg : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- procedure LLVMAddAttribute
- (Arg : in llvm.LLVMValueRef;
- PA : in llvm.LLVMAttribute);
-
- procedure LLVMRemoveAttribute
- (Arg : in llvm.LLVMValueRef;
- PA : in llvm.LLVMAttribute);
-
- procedure LLVMSetParamAlignment
- (Arg : in llvm.LLVMValueRef;
- align : in Interfaces.C.unsigned);
-
- function LLVMBasicBlockAsValue
- (BB : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMValueRef;
-
- function LLVMValueIsBasicBlock
- (Val : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- function LLVMValueAsBasicBlock
- (Val : in llvm.LLVMValueRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMGetBasicBlockParent
- (BB : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMValueRef;
-
- function LLVMCountBasicBlocks
- (Fn : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMGetBasicBlocks
- (Fn : in llvm.LLVMValueRef;
- BasicBlocks : access llvm.LLVMBasicBlockRef);
-
- function LLVMGetFirstBasicBlock
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMGetLastBasicBlock
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMGetNextBasicBlock
- (BB : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMGetPreviousBasicBlock
- (BB : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMGetEntryBasicBlock
- (Fn : in llvm.LLVMValueRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMAppendBasicBlock
- (Fn : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMInsertBasicBlock
- (InsertBeforeBB : in llvm.LLVMBasicBlockRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMBasicBlockRef;
-
- procedure LLVMDeleteBasicBlock (BB : in llvm.LLVMBasicBlockRef);
-
- function LLVMGetInstructionParent
- (Inst : in llvm.LLVMValueRef)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMGetFirstInstruction
- (BB : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetLastInstruction
- (BB : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetNextInstruction
- (Inst : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMGetPreviousInstruction
- (Inst : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- procedure LLVMSetInstructionCallConv
- (Instr : in llvm.LLVMValueRef;
- CC : in Interfaces.C.unsigned);
-
- function LLVMGetInstructionCallConv
- (Instr : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- procedure LLVMAddInstrAttribute
- (Instr : in llvm.LLVMValueRef;
- index : in Interfaces.C.unsigned;
- arg_1 : in llvm.LLVMAttribute);
-
- procedure LLVMRemoveInstrAttribute
- (Instr : in llvm.LLVMValueRef;
- index : in Interfaces.C.unsigned;
- arg_1 : in llvm.LLVMAttribute);
-
- procedure LLVMSetInstrParamAlignment
- (Instr : in llvm.LLVMValueRef;
- index : in Interfaces.C.unsigned;
- align : in Interfaces.C.unsigned);
-
- function LLVMIsTailCall
- (CallInst : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- procedure LLVMSetTailCall
- (CallInst : in llvm.LLVMValueRef;
- IsTailCall : in Interfaces.C.int);
-
- procedure LLVMAddIncoming
- (PhiNode : in llvm.LLVMValueRef;
- IncomingValues : access llvm.LLVMValueRef;
- IncomingBlocks : access llvm.LLVMBasicBlockRef;
- Count : in Interfaces.C.unsigned);
-
- function LLVMCountIncoming
- (PhiNode : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- function LLVMGetIncomingValue
- (PhiNode : in llvm.LLVMValueRef;
- Index : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMGetIncomingBlock
- (PhiNode : in llvm.LLVMValueRef;
- Index : in Interfaces.C.unsigned)
- return llvm.LLVMBasicBlockRef;
-
- function LLVMCreateBuilder return llvm.LLVMBuilderRef;
-
- procedure LLVMPositionBuilder
- (Builder : in llvm.LLVMBuilderRef;
- Block : in llvm.LLVMBasicBlockRef;
- Instr : in llvm.LLVMValueRef);
-
- procedure LLVMPositionBuilderBefore
- (Builder : in llvm.LLVMBuilderRef;
- Instr : in llvm.LLVMValueRef);
-
- procedure LLVMPositionBuilderAtEnd
- (Builder : in llvm.LLVMBuilderRef;
- Block : in llvm.LLVMBasicBlockRef);
-
- function LLVMGetInsertBlock
- (Builder : in llvm.LLVMBuilderRef)
- return llvm.LLVMBasicBlockRef;
-
- procedure LLVMClearInsertionPosition (Builder : in llvm.LLVMBuilderRef);
-
- procedure LLVMInsertIntoBuilder
- (Builder : in llvm.LLVMBuilderRef;
- Instr : in llvm.LLVMValueRef);
-
- procedure LLVMDisposeBuilder (Builder : in llvm.LLVMBuilderRef);
-
- function LLVMBuildRetVoid
- (arg_1 : in llvm.LLVMBuilderRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildRet
- (arg_1 : in llvm.LLVMBuilderRef;
- V : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildBr
- (arg_1 : in llvm.LLVMBuilderRef;
- Dest : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildCondBr
- (arg_1 : in llvm.LLVMBuilderRef;
- the_If : in llvm.LLVMValueRef;
- the_Then : in llvm.LLVMBasicBlockRef;
- the_Else : in llvm.LLVMBasicBlockRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSwitch
- (arg_1 : in llvm.LLVMBuilderRef;
- V : in llvm.LLVMValueRef;
- the_Else : in llvm.LLVMBasicBlockRef;
- NumCases : in Interfaces.C.unsigned)
- return llvm.LLVMValueRef;
-
- function LLVMBuildInvoke
- (arg_1 : in llvm.LLVMBuilderRef;
- Fn : in llvm.LLVMValueRef;
- Args : access llvm.LLVMValueRef;
- NumArgs : in Interfaces.C.unsigned;
- the_Then : in llvm.LLVMBasicBlockRef;
- Catch : in llvm.LLVMBasicBlockRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildUnwind
- (arg_1 : in llvm.LLVMBuilderRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildUnreachable
- (arg_1 : in llvm.LLVMBuilderRef)
- return llvm.LLVMValueRef;
-
- procedure LLVMAddCase
- (Switch : in llvm.LLVMValueRef;
- OnVal : in llvm.LLVMValueRef;
- Dest : in llvm.LLVMBasicBlockRef);
-
- function LLVMBuildAdd
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSub
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildMul
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildUDiv
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSDiv
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFDiv
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildURem
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSRem
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFRem
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildShl
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildLShr
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildAShr
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildAnd
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildOr
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildXor
- (arg_1 : in llvm.LLVMBuilderRef;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildNeg
- (arg_1 : in llvm.LLVMBuilderRef;
- V : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildNot
- (arg_1 : in llvm.LLVMBuilderRef;
- V : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildMalloc
- (arg_1 : in llvm.LLVMBuilderRef;
- Ty : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildArrayMalloc
- (arg_1 : in llvm.LLVMBuilderRef;
- Ty : in llvm.LLVMTypeRef;
- Val : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildAlloca
- (arg_1 : in llvm.LLVMBuilderRef;
- Ty : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildArrayAlloca
- (arg_1 : in llvm.LLVMBuilderRef;
- Ty : in llvm.LLVMTypeRef;
- Val : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFree
- (arg_1 : in llvm.LLVMBuilderRef;
- PointerVal : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildLoad
- (arg_1 : in llvm.LLVMBuilderRef;
- PointerVal : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildStore
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- Ptr : in llvm.LLVMValueRef)
- return llvm.LLVMValueRef;
-
- function LLVMBuildGEP
- (B : in llvm.LLVMBuilderRef;
- Pointer : in llvm.LLVMValueRef;
- Indices : access llvm.LLVMValueRef;
- NumIndices : in Interfaces.C.unsigned;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildTrunc
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildZExt
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSExt
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFPToUI
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFPToSI
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildUIToFP
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSIToFP
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFPTrunc
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFPExt
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildPtrToInt
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildIntToPtr
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildBitCast
- (arg_1 : in llvm.LLVMBuilderRef;
- Val : in llvm.LLVMValueRef;
- DestTy : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildICmp
- (arg_1 : in llvm.LLVMBuilderRef;
- Op : in llvm.LLVMIntPredicate;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildFCmp
- (arg_1 : in llvm.LLVMBuilderRef;
- Op : in llvm.LLVMRealPredicate;
- LHS : in llvm.LLVMValueRef;
- RHS : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildPhi
- (arg_1 : in llvm.LLVMBuilderRef;
- Ty : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildCall
- (arg_1 : in llvm.LLVMBuilderRef;
- Fn : in llvm.LLVMValueRef;
- Args : access llvm.LLVMValueRef;
- NumArgs : in Interfaces.C.unsigned;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildSelect
- (arg_1 : in llvm.LLVMBuilderRef;
- the_If : in llvm.LLVMValueRef;
- the_Then : in llvm.LLVMValueRef;
- the_Else : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildVAArg
- (arg_1 : in llvm.LLVMBuilderRef;
- List : in llvm.LLVMValueRef;
- Ty : in llvm.LLVMTypeRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildExtractElement
- (arg_1 : in llvm.LLVMBuilderRef;
- VecVal : in llvm.LLVMValueRef;
- Index : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildInsertElement
- (arg_1 : in llvm.LLVMBuilderRef;
- VecVal : in llvm.LLVMValueRef;
- EltVal : in llvm.LLVMValueRef;
- Index : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildShuffleVector
- (arg_1 : in llvm.LLVMBuilderRef;
- V1 : in llvm.LLVMValueRef;
- V2 : in llvm.LLVMValueRef;
- Mask : in llvm.LLVMValueRef;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildExtractValue
- (arg_1 : in llvm.LLVMBuilderRef;
- AggVal : in llvm.LLVMValueRef;
- Index : in Interfaces.C.unsigned;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMBuildInsertValue
- (arg_1 : in llvm.LLVMBuilderRef;
- AggVal : in llvm.LLVMValueRef;
- EltVal : in llvm.LLVMValueRef;
- Index : in Interfaces.C.unsigned;
- Name : in Interfaces.C.Strings.chars_ptr)
- return llvm.LLVMValueRef;
-
- function LLVMCreateModuleProviderForExistingModule
- (M : in llvm.LLVMModuleRef)
- return llvm.LLVMModuleProviderRef;
-
- procedure LLVMDisposeModuleProvider (MP : in llvm.LLVMModuleProviderRef);
-
- function LLVMCreateMemoryBufferWithContentsOfFile
- (Path : in Interfaces.C.Strings.chars_ptr;
- OutMemBuf : access llvm.LLVMMemoryBufferRef;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- function LLVMCreateMemoryBufferWithSTDIN
- (OutMemBuf : access llvm.LLVMMemoryBufferRef;
- OutMessage : access Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.int;
-
- procedure LLVMDisposeMemoryBuffer (MemBuf : in llvm.LLVMMemoryBufferRef);
-
- function LLVMCreatePassManager return llvm.LLVMPassManagerRef;
-
- function LLVMCreateFunctionPassManager
- (MP : in llvm.LLVMModuleProviderRef)
- return llvm.LLVMPassManagerRef;
-
- function LLVMRunPassManager
- (PM : in llvm.LLVMPassManagerRef;
- M : in llvm.LLVMModuleRef)
- return Interfaces.C.int;
-
- function LLVMInitializeFunctionPassManager
- (FPM : in llvm.LLVMPassManagerRef)
- return Interfaces.C.int;
-
- function LLVMRunFunctionPassManager
- (FPM : in llvm.LLVMPassManagerRef;
- F : in llvm.LLVMValueRef)
- return Interfaces.C.int;
-
- function LLVMFinalizeFunctionPassManager
- (FPM : in llvm.LLVMPassManagerRef)
- return Interfaces.C.int;
-
- procedure LLVMDisposePassManager (PM : in llvm.LLVMPassManagerRef);
-
-private
-
- pragma Import (C, LLVMDisposeMessage, "Ada_LLVMDisposeMessage");
- pragma Import (C, LLVMContextCreate, "Ada_LLVMContextCreate");
- pragma Import (C, LLVMGetGlobalContext, "Ada_LLVMGetGlobalContext");
- pragma Import (C, LLVMContextDispose, "Ada_LLVMContextDispose");
- pragma Import
- (C,
- LLVMModuleCreateWithName,
- "Ada_LLVMModuleCreateWithName");
- pragma Import
- (C,
- LLVMModuleCreateWithNameInContext,
- "Ada_LLVMModuleCreateWithNameInContext");
- pragma Import (C, LLVMDisposeModule, "Ada_LLVMDisposeModule");
- pragma Import (C, LLVMGetDataLayout, "Ada_LLVMGetDataLayout");
- pragma Import (C, LLVMSetDataLayout, "Ada_LLVMSetDataLayout");
- pragma Import (C, LLVMGetTarget, "Ada_LLVMGetTarget");
- pragma Import (C, LLVMSetTarget, "Ada_LLVMSetTarget");
- pragma Import (C, LLVMAddTypeName, "Ada_LLVMAddTypeName");
- pragma Import (C, LLVMDeleteTypeName, "Ada_LLVMDeleteTypeName");
- pragma Import (C, LLVMGetTypeByName, "Ada_LLVMGetTypeByName");
- pragma Import (C, LLVMDumpModule, "Ada_LLVMDumpModule");
- pragma Import (C, LLVMGetTypeKind, "Ada_LLVMGetTypeKind");
- pragma Import (C, LLVMInt1Type, "Ada_LLVMInt1Type");
- pragma Import (C, LLVMInt8Type, "Ada_LLVMInt8Type");
- pragma Import (C, LLVMInt16Type, "Ada_LLVMInt16Type");
- pragma Import (C, LLVMInt32Type, "Ada_LLVMInt32Type");
- pragma Import (C, LLVMInt64Type, "Ada_LLVMInt64Type");
- pragma Import (C, LLVMIntType, "Ada_LLVMIntType");
- pragma Import (C, LLVMGetIntTypeWidth, "Ada_LLVMGetIntTypeWidth");
- pragma Import (C, LLVMFloatType, "Ada_LLVMFloatType");
- pragma Import (C, LLVMDoubleType, "Ada_LLVMDoubleType");
- pragma Import (C, LLVMX86FP80Type, "Ada_LLVMX86FP80Type");
- pragma Import (C, LLVMFP128Type, "Ada_LLVMFP128Type");
- pragma Import (C, LLVMPPCFP128Type, "Ada_LLVMPPCFP128Type");
- pragma Import (C, LLVMFunctionType, "Ada_LLVMFunctionType");
- pragma Import (C, LLVMIsFunctionVarArg, "Ada_LLVMIsFunctionVarArg");
- pragma Import (C, LLVMGetReturnType, "Ada_LLVMGetReturnType");
- pragma Import (C, LLVMCountParamTypes, "Ada_LLVMCountParamTypes");
- pragma Import (C, LLVMGetParamTypes, "Ada_LLVMGetParamTypes");
- pragma Import (C, LLVMStructType, "Ada_LLVMStructType");
- pragma Import
- (C,
- LLVMCountStructElementTypes,
- "Ada_LLVMCountStructElementTypes");
- pragma Import
- (C,
- LLVMGetStructElementTypes,
- "Ada_LLVMGetStructElementTypes");
- pragma Import (C, LLVMIsPackedStruct, "Ada_LLVMIsPackedStruct");
- pragma Import (C, LLVMArrayType, "Ada_LLVMArrayType");
- pragma Import (C, LLVMPointerType, "Ada_LLVMPointerType");
- pragma Import (C, LLVMVectorType, "Ada_LLVMVectorType");
- pragma Import (C, LLVMGetElementType, "Ada_LLVMGetElementType");
- pragma Import (C, LLVMGetArrayLength, "Ada_LLVMGetArrayLength");
- pragma Import
- (C,
- LLVMGetPointerAddressSpace,
- "Ada_LLVMGetPointerAddressSpace");
- pragma Import (C, LLVMGetVectorSize, "Ada_LLVMGetVectorSize");
- pragma Import (C, LLVMVoidType, "Ada_LLVMVoidType");
- pragma Import (C, LLVMLabelType, "Ada_LLVMLabelType");
- pragma Import (C, LLVMOpaqueType, "Ada_LLVMOpaqueType");
- pragma Import (C, LLVMCreateTypeHandle, "Ada_LLVMCreateTypeHandle");
- pragma Import (C, LLVMRefineType, "Ada_LLVMRefineType");
- pragma Import (C, LLVMResolveTypeHandle, "Ada_LLVMResolveTypeHandle");
- pragma Import (C, LLVMDisposeTypeHandle, "Ada_LLVMDisposeTypeHandle");
- pragma Import (C, LLVMTypeOf, "Ada_LLVMTypeOf");
- pragma Import (C, LLVMGetValueName, "Ada_LLVMGetValueName");
- pragma Import (C, LLVMSetValueName, "Ada_LLVMSetValueName");
- pragma Import (C, LLVMDumpValue, "Ada_LLVMDumpValue");
- pragma Import (C, LLVMIsAArgument, "Ada_LLVMIsAArgument");
- pragma Import (C, LLVMIsABasicBlock, "Ada_LLVMIsABasicBlock");
- pragma Import (C, LLVMIsAInlineAsm, "Ada_LLVMIsAInlineAsm");
- pragma Import (C, LLVMIsAUser, "Ada_LLVMIsAUser");
- pragma Import (C, LLVMIsAConstant, "Ada_LLVMIsAConstant");
- pragma Import
- (C,
- LLVMIsAConstantAggregateZero,
- "Ada_LLVMIsAConstantAggregateZero");
- pragma Import (C, LLVMIsAConstantArray, "Ada_LLVMIsAConstantArray");
- pragma Import (C, LLVMIsAConstantExpr, "Ada_LLVMIsAConstantExpr");
- pragma Import (C, LLVMIsAConstantFP, "Ada_LLVMIsAConstantFP");
- pragma Import (C, LLVMIsAConstantInt, "Ada_LLVMIsAConstantInt");
- pragma Import
- (C,
- LLVMIsAConstantPointerNull,
- "Ada_LLVMIsAConstantPointerNull");
- pragma Import (C, LLVMIsAConstantStruct, "Ada_LLVMIsAConstantStruct");
- pragma Import (C, LLVMIsAConstantVector, "Ada_LLVMIsAConstantVector");
- pragma Import (C, LLVMIsAGlobalValue, "Ada_LLVMIsAGlobalValue");
- pragma Import (C, LLVMIsAFunction, "Ada_LLVMIsAFunction");
- pragma Import (C, LLVMIsAGlobalAlias, "Ada_LLVMIsAGlobalAlias");
- pragma Import (C, LLVMIsAGlobalVariable, "Ada_LLVMIsAGlobalVariable");
- pragma Import (C, LLVMIsAUndefValue, "Ada_LLVMIsAUndefValue");
- pragma Import (C, LLVMIsAInstruction, "Ada_LLVMIsAInstruction");
- pragma Import (C, LLVMIsABinaryOperator, "Ada_LLVMIsABinaryOperator");
- pragma Import (C, LLVMIsACallInst, "Ada_LLVMIsACallInst");
- pragma Import (C, LLVMIsAIntrinsicInst, "Ada_LLVMIsAIntrinsicInst");
- pragma Import (C, LLVMIsADbgInfoIntrinsic, "Ada_LLVMIsADbgInfoIntrinsic");
- pragma Import (C, LLVMIsADbgDeclareInst, "Ada_LLVMIsADbgDeclareInst");
- pragma Import (C, LLVMIsADbgFuncStartInst, "Ada_LLVMIsADbgFuncStartInst");
- pragma Import (C, LLVMIsADbgRegionEndInst, "Ada_LLVMIsADbgRegionEndInst");
- pragma Import
- (C,
- LLVMIsADbgRegionStartInst,
- "Ada_LLVMIsADbgRegionStartInst");
- pragma Import (C, LLVMIsADbgStopPointInst, "Ada_LLVMIsADbgStopPointInst");
- pragma Import (C, LLVMIsAEHSelectorInst, "Ada_LLVMIsAEHSelectorInst");
- pragma Import (C, LLVMIsAMemIntrinsic, "Ada_LLVMIsAMemIntrinsic");
- pragma Import (C, LLVMIsAMemCpyInst, "Ada_LLVMIsAMemCpyInst");
- pragma Import (C, LLVMIsAMemMoveInst, "Ada_LLVMIsAMemMoveInst");
- pragma Import (C, LLVMIsAMemSetInst, "Ada_LLVMIsAMemSetInst");
- pragma Import (C, LLVMIsACmpInst, "Ada_LLVMIsACmpInst");
- pragma Import (C, LLVMIsAFCmpInst, "Ada_LLVMIsAFCmpInst");
- pragma Import (C, LLVMIsAICmpInst, "Ada_LLVMIsAICmpInst");
- pragma Import
- (C,
- LLVMIsAExtractElementInst,
- "Ada_LLVMIsAExtractElementInst");
- pragma Import
- (C,
- LLVMIsAGetElementPtrInst,
- "Ada_LLVMIsAGetElementPtrInst");
- pragma Import
- (C,
- LLVMIsAInsertElementInst,
- "Ada_LLVMIsAInsertElementInst");
- pragma Import (C, LLVMIsAInsertValueInst, "Ada_LLVMIsAInsertValueInst");
- pragma Import (C, LLVMIsAPHINode, "Ada_LLVMIsAPHINode");
- pragma Import (C, LLVMIsASelectInst, "Ada_LLVMIsASelectInst");
- pragma Import
- (C,
- LLVMIsAShuffleVectorInst,
- "Ada_LLVMIsAShuffleVectorInst");
- pragma Import (C, LLVMIsAStoreInst, "Ada_LLVMIsAStoreInst");
- pragma Import (C, LLVMIsATerminatorInst, "Ada_LLVMIsATerminatorInst");
- pragma Import (C, LLVMIsABranchInst, "Ada_LLVMIsABranchInst");
- pragma Import (C, LLVMIsAInvokeInst, "Ada_LLVMIsAInvokeInst");
- pragma Import (C, LLVMIsAReturnInst, "Ada_LLVMIsAReturnInst");
- pragma Import (C, LLVMIsASwitchInst, "Ada_LLVMIsASwitchInst");
- pragma Import (C, LLVMIsAUnreachableInst, "Ada_LLVMIsAUnreachableInst");
- pragma Import (C, LLVMIsAUnwindInst, "Ada_LLVMIsAUnwindInst");
- pragma Import (C, LLVMIsAUnaryInstruction, "Ada_LLVMIsAUnaryInstruction");
- pragma Import (C, LLVMIsAAllocationInst, "Ada_LLVMIsAAllocationInst");
- pragma Import (C, LLVMIsAAllocaInst, "Ada_LLVMIsAAllocaInst");
- pragma Import (C, LLVMIsAMallocInst, "Ada_LLVMIsAMallocInst");
- pragma Import (C, LLVMIsACastInst, "Ada_LLVMIsACastInst");
- pragma Import (C, LLVMIsABitCastInst, "Ada_LLVMIsABitCastInst");
- pragma Import (C, LLVMIsAFPExtInst, "Ada_LLVMIsAFPExtInst");
- pragma Import (C, LLVMIsAFPToSIInst, "Ada_LLVMIsAFPToSIInst");
- pragma Import (C, LLVMIsAFPToUIInst, "Ada_LLVMIsAFPToUIInst");
- pragma Import (C, LLVMIsAFPTruncInst, "Ada_LLVMIsAFPTruncInst");
- pragma Import (C, LLVMIsAIntToPtrInst, "Ada_LLVMIsAIntToPtrInst");
- pragma Import (C, LLVMIsAPtrToIntInst, "Ada_LLVMIsAPtrToIntInst");
- pragma Import (C, LLVMIsASExtInst, "Ada_LLVMIsASExtInst");
- pragma Import (C, LLVMIsASIToFPInst, "Ada_LLVMIsASIToFPInst");
- pragma Import (C, LLVMIsATruncInst, "Ada_LLVMIsATruncInst");
- pragma Import (C, LLVMIsAUIToFPInst, "Ada_LLVMIsAUIToFPInst");
- pragma Import (C, LLVMIsAZExtInst, "Ada_LLVMIsAZExtInst");
- pragma Import (C, LLVMIsAExtractValueInst, "Ada_LLVMIsAExtractValueInst");
- pragma Import (C, LLVMIsAFreeInst, "Ada_LLVMIsAFreeInst");
- pragma Import (C, LLVMIsALoadInst, "Ada_LLVMIsALoadInst");
- pragma Import (C, LLVMIsAVAArgInst, "Ada_LLVMIsAVAArgInst");
- pragma Import (C, LLVMConstNull, "Ada_LLVMConstNull");
- pragma Import (C, LLVMConstAllOnes, "Ada_LLVMConstAllOnes");
- pragma Import (C, LLVMGetUndef, "Ada_LLVMGetUndef");
- pragma Import (C, LLVMIsConstant, "Ada_LLVMIsConstant");
- pragma Import (C, LLVMIsNull, "Ada_LLVMIsNull");
- pragma Import (C, LLVMIsUndef, "Ada_LLVMIsUndef");
- pragma Import (C, LLVMConstPointerNull, "Ada_LLVMConstPointerNull");
- pragma Import (C, LLVMConstInt, "Ada_LLVMConstInt");
- pragma Import (C, LLVMConstReal, "Ada_LLVMConstReal");
- pragma Import (C, LLVMConstRealOfString, "Ada_LLVMConstRealOfString");
- pragma Import (C, LLVMConstString, "Ada_LLVMConstString");
- pragma Import (C, LLVMConstArray, "Ada_LLVMConstArray");
- pragma Import (C, LLVMConstStruct, "Ada_LLVMConstStruct");
- pragma Import (C, LLVMConstVector, "Ada_LLVMConstVector");
- pragma Import (C, LLVMSizeOf, "Ada_LLVMSizeOf");
- pragma Import (C, LLVMConstNeg, "Ada_LLVMConstNeg");
- pragma Import (C, LLVMConstNot, "Ada_LLVMConstNot");
- pragma Import (C, LLVMConstAdd, "Ada_LLVMConstAdd");
- pragma Import (C, LLVMConstSub, "Ada_LLVMConstSub");
- pragma Import (C, LLVMConstMul, "Ada_LLVMConstMul");
- pragma Import (C, LLVMConstUDiv, "Ada_LLVMConstUDiv");
- pragma Import (C, LLVMConstSDiv, "Ada_LLVMConstSDiv");
- pragma Import (C, LLVMConstFDiv, "Ada_LLVMConstFDiv");
- pragma Import (C, LLVMConstURem, "Ada_LLVMConstURem");
- pragma Import (C, LLVMConstSRem, "Ada_LLVMConstSRem");
- pragma Import (C, LLVMConstFRem, "Ada_LLVMConstFRem");
- pragma Import (C, LLVMConstAnd, "Ada_LLVMConstAnd");
- pragma Import (C, LLVMConstOr, "Ada_LLVMConstOr");
- pragma Import (C, LLVMConstXor, "Ada_LLVMConstXor");
- pragma Import (C, LLVMConstICmp, "Ada_LLVMConstICmp");
- pragma Import (C, LLVMConstFCmp, "Ada_LLVMConstFCmp");
- pragma Import (C, LLVMConstShl, "Ada_LLVMConstShl");
- pragma Import (C, LLVMConstLShr, "Ada_LLVMConstLShr");
- pragma Import (C, LLVMConstAShr, "Ada_LLVMConstAShr");
- pragma Import (C, LLVMConstGEP, "Ada_LLVMConstGEP");
- pragma Import (C, LLVMConstTrunc, "Ada_LLVMConstTrunc");
- pragma Import (C, LLVMConstSExt, "Ada_LLVMConstSExt");
- pragma Import (C, LLVMConstZExt, "Ada_LLVMConstZExt");
- pragma Import (C, LLVMConstFPTrunc, "Ada_LLVMConstFPTrunc");
- pragma Import (C, LLVMConstFPExt, "Ada_LLVMConstFPExt");
- pragma Import (C, LLVMConstUIToFP, "Ada_LLVMConstUIToFP");
- pragma Import (C, LLVMConstSIToFP, "Ada_LLVMConstSIToFP");
- pragma Import (C, LLVMConstFPToUI, "Ada_LLVMConstFPToUI");
- pragma Import (C, LLVMConstFPToSI, "Ada_LLVMConstFPToSI");
- pragma Import (C, LLVMConstPtrToInt, "Ada_LLVMConstPtrToInt");
- pragma Import (C, LLVMConstIntToPtr, "Ada_LLVMConstIntToPtr");
- pragma Import (C, LLVMConstBitCast, "Ada_LLVMConstBitCast");
- pragma Import (C, LLVMConstSelect, "Ada_LLVMConstSelect");
- pragma Import (C, LLVMConstExtractElement, "Ada_LLVMConstExtractElement");
- pragma Import (C, LLVMConstInsertElement, "Ada_LLVMConstInsertElement");
- pragma Import (C, LLVMConstShuffleVector, "Ada_LLVMConstShuffleVector");
- pragma Import (C, LLVMConstExtractValue, "Ada_LLVMConstExtractValue");
- pragma Import (C, LLVMConstInsertValue, "Ada_LLVMConstInsertValue");
- pragma Import (C, LLVMConstInlineAsm, "Ada_LLVMConstInlineAsm");
- pragma Import (C, LLVMGetGlobalParent, "Ada_LLVMGetGlobalParent");
- pragma Import (C, LLVMIsDeclaration, "Ada_LLVMIsDeclaration");
- pragma Import (C, LLVMGetLinkage, "Ada_LLVMGetLinkage");
- pragma Import (C, LLVMSetLinkage, "Ada_LLVMSetLinkage");
- pragma Import (C, LLVMGetSection, "Ada_LLVMGetSection");
- pragma Import (C, LLVMSetSection, "Ada_LLVMSetSection");
- pragma Import (C, LLVMGetVisibility, "Ada_LLVMGetVisibility");
- pragma Import (C, LLVMSetVisibility, "Ada_LLVMSetVisibility");
- pragma Import (C, LLVMGetAlignment, "Ada_LLVMGetAlignment");
- pragma Import (C, LLVMSetAlignment, "Ada_LLVMSetAlignment");
- pragma Import (C, LLVMAddGlobal, "Ada_LLVMAddGlobal");
- pragma Import (C, LLVMGetNamedGlobal, "Ada_LLVMGetNamedGlobal");
- pragma Import (C, LLVMGetFirstGlobal, "Ada_LLVMGetFirstGlobal");
- pragma Import (C, LLVMGetLastGlobal, "Ada_LLVMGetLastGlobal");
- pragma Import (C, LLVMGetNextGlobal, "Ada_LLVMGetNextGlobal");
- pragma Import (C, LLVMGetPreviousGlobal, "Ada_LLVMGetPreviousGlobal");
- pragma Import (C, LLVMDeleteGlobal, "Ada_LLVMDeleteGlobal");
- pragma Import (C, LLVMGetInitializer, "Ada_LLVMGetInitializer");
- pragma Import (C, LLVMSetInitializer, "Ada_LLVMSetInitializer");
- pragma Import (C, LLVMIsThreadLocal, "Ada_LLVMIsThreadLocal");
- pragma Import (C, LLVMSetThreadLocal, "Ada_LLVMSetThreadLocal");
- pragma Import (C, LLVMIsGlobalConstant, "Ada_LLVMIsGlobalConstant");
- pragma Import (C, LLVMSetGlobalConstant, "Ada_LLVMSetGlobalConstant");
- pragma Import (C, LLVMAddAlias, "Ada_LLVMAddAlias");
- pragma Import (C, LLVMAddFunction, "Ada_LLVMAddFunction");
- pragma Import (C, LLVMGetNamedFunction, "Ada_LLVMGetNamedFunction");
- pragma Import (C, LLVMGetFirstFunction, "Ada_LLVMGetFirstFunction");
- pragma Import (C, LLVMGetLastFunction, "Ada_LLVMGetLastFunction");
- pragma Import (C, LLVMGetNextFunction, "Ada_LLVMGetNextFunction");
- pragma Import (C, LLVMGetPreviousFunction, "Ada_LLVMGetPreviousFunction");
- pragma Import (C, LLVMDeleteFunction, "Ada_LLVMDeleteFunction");
- pragma Import (C, LLVMGetIntrinsicID, "Ada_LLVMGetIntrinsicID");
- pragma Import (C, LLVMGetFunctionCallConv, "Ada_LLVMGetFunctionCallConv");
- pragma Import (C, LLVMSetFunctionCallConv, "Ada_LLVMSetFunctionCallConv");
- pragma Import (C, LLVMGetGC, "Ada_LLVMGetGC");
- pragma Import (C, LLVMSetGC, "Ada_LLVMSetGC");
- pragma Import (C, LLVMAddFunctionAttr, "Ada_LLVMAddFunctionAttr");
- pragma Import (C, LLVMRemoveFunctionAttr, "Ada_LLVMRemoveFunctionAttr");
- pragma Import (C, LLVMCountParams, "Ada_LLVMCountParams");
- pragma Import (C, LLVMGetParams, "Ada_LLVMGetParams");
- pragma Import (C, LLVMGetParam, "Ada_LLVMGetParam");
- pragma Import (C, LLVMGetParamParent, "Ada_LLVMGetParamParent");
- pragma Import (C, LLVMGetFirstParam, "Ada_LLVMGetFirstParam");
- pragma Import (C, LLVMGetLastParam, "Ada_LLVMGetLastParam");
- pragma Import (C, LLVMGetNextParam, "Ada_LLVMGetNextParam");
- pragma Import (C, LLVMGetPreviousParam, "Ada_LLVMGetPreviousParam");
- pragma Import (C, LLVMAddAttribute, "Ada_LLVMAddAttribute");
- pragma Import (C, LLVMRemoveAttribute, "Ada_LLVMRemoveAttribute");
- pragma Import (C, LLVMSetParamAlignment, "Ada_LLVMSetParamAlignment");
- pragma Import (C, LLVMBasicBlockAsValue, "Ada_LLVMBasicBlockAsValue");
- pragma Import (C, LLVMValueIsBasicBlock, "Ada_LLVMValueIsBasicBlock");
- pragma Import (C, LLVMValueAsBasicBlock, "Ada_LLVMValueAsBasicBlock");
- pragma Import (C, LLVMGetBasicBlockParent, "Ada_LLVMGetBasicBlockParent");
- pragma Import (C, LLVMCountBasicBlocks, "Ada_LLVMCountBasicBlocks");
- pragma Import (C, LLVMGetBasicBlocks, "Ada_LLVMGetBasicBlocks");
- pragma Import (C, LLVMGetFirstBasicBlock, "Ada_LLVMGetFirstBasicBlock");
- pragma Import (C, LLVMGetLastBasicBlock, "Ada_LLVMGetLastBasicBlock");
- pragma Import (C, LLVMGetNextBasicBlock, "Ada_LLVMGetNextBasicBlock");
- pragma Import
- (C,
- LLVMGetPreviousBasicBlock,
- "Ada_LLVMGetPreviousBasicBlock");
- pragma Import (C, LLVMGetEntryBasicBlock, "Ada_LLVMGetEntryBasicBlock");
- pragma Import (C, LLVMAppendBasicBlock, "Ada_LLVMAppendBasicBlock");
- pragma Import (C, LLVMInsertBasicBlock, "Ada_LLVMInsertBasicBlock");
- pragma Import (C, LLVMDeleteBasicBlock, "Ada_LLVMDeleteBasicBlock");
- pragma Import
- (C,
- LLVMGetInstructionParent,
- "Ada_LLVMGetInstructionParent");
- pragma Import (C, LLVMGetFirstInstruction, "Ada_LLVMGetFirstInstruction");
- pragma Import (C, LLVMGetLastInstruction, "Ada_LLVMGetLastInstruction");
- pragma Import (C, LLVMGetNextInstruction, "Ada_LLVMGetNextInstruction");
- pragma Import
- (C,
- LLVMGetPreviousInstruction,
- "Ada_LLVMGetPreviousInstruction");
- pragma Import
- (C,
- LLVMSetInstructionCallConv,
- "Ada_LLVMSetInstructionCallConv");
- pragma Import
- (C,
- LLVMGetInstructionCallConv,
- "Ada_LLVMGetInstructionCallConv");
- pragma Import (C, LLVMAddInstrAttribute, "Ada_LLVMAddInstrAttribute");
- pragma Import
- (C,
- LLVMRemoveInstrAttribute,
- "Ada_LLVMRemoveInstrAttribute");
- pragma Import
- (C,
- LLVMSetInstrParamAlignment,
- "Ada_LLVMSetInstrParamAlignment");
- pragma Import (C, LLVMIsTailCall, "Ada_LLVMIsTailCall");
- pragma Import (C, LLVMSetTailCall, "Ada_LLVMSetTailCall");
- pragma Import (C, LLVMAddIncoming, "Ada_LLVMAddIncoming");
- pragma Import (C, LLVMCountIncoming, "Ada_LLVMCountIncoming");
- pragma Import (C, LLVMGetIncomingValue, "Ada_LLVMGetIncomingValue");
- pragma Import (C, LLVMGetIncomingBlock, "Ada_LLVMGetIncomingBlock");
- pragma Import (C, LLVMCreateBuilder, "Ada_LLVMCreateBuilder");
- pragma Import (C, LLVMPositionBuilder, "Ada_LLVMPositionBuilder");
- pragma Import
- (C,
- LLVMPositionBuilderBefore,
- "Ada_LLVMPositionBuilderBefore");
- pragma Import
- (C,
- LLVMPositionBuilderAtEnd,
- "Ada_LLVMPositionBuilderAtEnd");
- pragma Import (C, LLVMGetInsertBlock, "Ada_LLVMGetInsertBlock");
- pragma Import
- (C,
- LLVMClearInsertionPosition,
- "Ada_LLVMClearInsertionPosition");
- pragma Import (C, LLVMInsertIntoBuilder, "Ada_LLVMInsertIntoBuilder");
- pragma Import (C, LLVMDisposeBuilder, "Ada_LLVMDisposeBuilder");
- pragma Import (C, LLVMBuildRetVoid, "Ada_LLVMBuildRetVoid");
- pragma Import (C, LLVMBuildRet, "Ada_LLVMBuildRet");
- pragma Import (C, LLVMBuildBr, "Ada_LLVMBuildBr");
- pragma Import (C, LLVMBuildCondBr, "Ada_LLVMBuildCondBr");
- pragma Import (C, LLVMBuildSwitch, "Ada_LLVMBuildSwitch");
- pragma Import (C, LLVMBuildInvoke, "Ada_LLVMBuildInvoke");
- pragma Import (C, LLVMBuildUnwind, "Ada_LLVMBuildUnwind");
- pragma Import (C, LLVMBuildUnreachable, "Ada_LLVMBuildUnreachable");
- pragma Import (C, LLVMAddCase, "Ada_LLVMAddCase");
- pragma Import (C, LLVMBuildAdd, "Ada_LLVMBuildAdd");
- pragma Import (C, LLVMBuildSub, "Ada_LLVMBuildSub");
- pragma Import (C, LLVMBuildMul, "Ada_LLVMBuildMul");
- pragma Import (C, LLVMBuildUDiv, "Ada_LLVMBuildUDiv");
- pragma Import (C, LLVMBuildSDiv, "Ada_LLVMBuildSDiv");
- pragma Import (C, LLVMBuildFDiv, "Ada_LLVMBuildFDiv");
- pragma Import (C, LLVMBuildURem, "Ada_LLVMBuildURem");
- pragma Import (C, LLVMBuildSRem, "Ada_LLVMBuildSRem");
- pragma Import (C, LLVMBuildFRem, "Ada_LLVMBuildFRem");
- pragma Import (C, LLVMBuildShl, "Ada_LLVMBuildShl");
- pragma Import (C, LLVMBuildLShr, "Ada_LLVMBuildLShr");
- pragma Import (C, LLVMBuildAShr, "Ada_LLVMBuildAShr");
- pragma Import (C, LLVMBuildAnd, "Ada_LLVMBuildAnd");
- pragma Import (C, LLVMBuildOr, "Ada_LLVMBuildOr");
- pragma Import (C, LLVMBuildXor, "Ada_LLVMBuildXor");
- pragma Import (C, LLVMBuildNeg, "Ada_LLVMBuildNeg");
- pragma Import (C, LLVMBuildNot, "Ada_LLVMBuildNot");
- pragma Import (C, LLVMBuildMalloc, "Ada_LLVMBuildMalloc");
- pragma Import (C, LLVMBuildArrayMalloc, "Ada_LLVMBuildArrayMalloc");
- pragma Import (C, LLVMBuildAlloca, "Ada_LLVMBuildAlloca");
- pragma Import (C, LLVMBuildArrayAlloca, "Ada_LLVMBuildArrayAlloca");
- pragma Import (C, LLVMBuildFree, "Ada_LLVMBuildFree");
- pragma Import (C, LLVMBuildLoad, "Ada_LLVMBuildLoad");
- pragma Import (C, LLVMBuildStore, "Ada_LLVMBuildStore");
- pragma Import (C, LLVMBuildGEP, "Ada_LLVMBuildGEP");
- pragma Import (C, LLVMBuildTrunc, "Ada_LLVMBuildTrunc");
- pragma Import (C, LLVMBuildZExt, "Ada_LLVMBuildZExt");
- pragma Import (C, LLVMBuildSExt, "Ada_LLVMBuildSExt");
- pragma Import (C, LLVMBuildFPToUI, "Ada_LLVMBuildFPToUI");
- pragma Import (C, LLVMBuildFPToSI, "Ada_LLVMBuildFPToSI");
- pragma Import (C, LLVMBuildUIToFP, "Ada_LLVMBuildUIToFP");
- pragma Import (C, LLVMBuildSIToFP, "Ada_LLVMBuildSIToFP");
- pragma Import (C, LLVMBuildFPTrunc, "Ada_LLVMBuildFPTrunc");
- pragma Import (C, LLVMBuildFPExt, "Ada_LLVMBuildFPExt");
- pragma Import (C, LLVMBuildPtrToInt, "Ada_LLVMBuildPtrToInt");
- pragma Import (C, LLVMBuildIntToPtr, "Ada_LLVMBuildIntToPtr");
- pragma Import (C, LLVMBuildBitCast, "Ada_LLVMBuildBitCast");
- pragma Import (C, LLVMBuildICmp, "Ada_LLVMBuildICmp");
- pragma Import (C, LLVMBuildFCmp, "Ada_LLVMBuildFCmp");
- pragma Import (C, LLVMBuildPhi, "Ada_LLVMBuildPhi");
- pragma Import (C, LLVMBuildCall, "Ada_LLVMBuildCall");
- pragma Import (C, LLVMBuildSelect, "Ada_LLVMBuildSelect");
- pragma Import (C, LLVMBuildVAArg, "Ada_LLVMBuildVAArg");
- pragma Import (C, LLVMBuildExtractElement, "Ada_LLVMBuildExtractElement");
- pragma Import (C, LLVMBuildInsertElement, "Ada_LLVMBuildInsertElement");
- pragma Import (C, LLVMBuildShuffleVector, "Ada_LLVMBuildShuffleVector");
- pragma Import (C, LLVMBuildExtractValue, "Ada_LLVMBuildExtractValue");
- pragma Import (C, LLVMBuildInsertValue, "Ada_LLVMBuildInsertValue");
- pragma Import
- (C,
- LLVMCreateModuleProviderForExistingModule,
- "Ada_LLVMCreateModuleProviderForExistingModule");
- pragma Import
- (C,
- LLVMDisposeModuleProvider,
- "Ada_LLVMDisposeModuleProvider");
- pragma Import
- (C,
- LLVMCreateMemoryBufferWithContentsOfFile,
- "Ada_LLVMCreateMemoryBufferWithContentsOfFile");
- pragma Import
- (C,
- LLVMCreateMemoryBufferWithSTDIN,
- "Ada_LLVMCreateMemoryBufferWithSTDIN");
- pragma Import (C, LLVMDisposeMemoryBuffer, "Ada_LLVMDisposeMemoryBuffer");
- pragma Import (C, LLVMCreatePassManager, "Ada_LLVMCreatePassManager");
- pragma Import
- (C,
- LLVMCreateFunctionPassManager,
- "Ada_LLVMCreateFunctionPassManager");
- pragma Import (C, LLVMRunPassManager, "Ada_LLVMRunPassManager");
- pragma Import
- (C,
- LLVMInitializeFunctionPassManager,
- "Ada_LLVMInitializeFunctionPassManager");
- pragma Import
- (C,
- LLVMRunFunctionPassManager,
- "Ada_LLVMRunFunctionPassManager");
- pragma Import
- (C,
- LLVMFinalizeFunctionPassManager,
- "Ada_LLVMFinalizeFunctionPassManager");
- pragma Import (C, LLVMDisposePassManager, "Ada_LLVMDisposePassManager");
-
-end llvm.Binding;
diff --git a/bindings/ada/llvm/llvm.ads b/bindings/ada/llvm/llvm.ads
deleted file mode 100644
index 20fc940f8c246..0000000000000
--- a/bindings/ada/llvm/llvm.ads
+++ /dev/null
@@ -1,497 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C.Extensions;
-
-
-package llvm is
-
- -- LLVMCtxt
- --
- type LLVMCtxt is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMCtxt_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMCtxt;
-
- type LLVMCtxt_view is access all llvm.LLVMCtxt;
-
- -- LLVMContextRef
- --
- type LLVMContextRef is access all llvm.LLVMCtxt;
-
- type LLVMContextRef_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMContextRef;
-
- type LLVMContextRef_view is access all llvm.LLVMContextRef;
-
- -- LLVMOpaqueModule
- --
- type LLVMOpaqueModule is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueModule_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMOpaqueModule;
-
- type LLVMOpaqueModule_view is access all llvm.LLVMOpaqueModule;
-
- -- LLVMModuleRef
- --
- type LLVMModuleRef is access all llvm.LLVMOpaqueModule;
-
- type LLVMModuleRef_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMModuleRef;
-
- type LLVMModuleRef_view is access all llvm.LLVMModuleRef;
-
- -- LLVMOpaqueType
- --
- type LLVMOpaqueType is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueType_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMOpaqueType;
-
- type LLVMOpaqueType_view is access all llvm.LLVMOpaqueType;
-
- -- LLVMTypeRef
- --
- type LLVMTypeRef is access all llvm.LLVMOpaqueType;
-
- type LLVMTypeRef_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMTypeRef;
-
- type LLVMTypeRef_view is access all llvm.LLVMTypeRef;
-
- -- LLVMOpaqueTypeHandle
- --
- type LLVMOpaqueTypeHandle is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueTypeHandle_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMOpaqueTypeHandle;
-
- type LLVMOpaqueTypeHandle_view is access all llvm.LLVMOpaqueTypeHandle;
-
- -- LLVMTypeHandleRef
- --
- type LLVMTypeHandleRef is access all llvm.LLVMOpaqueTypeHandle;
-
- type LLVMTypeHandleRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMTypeHandleRef;
-
- type LLVMTypeHandleRef_view is access all llvm.LLVMTypeHandleRef;
-
- -- LLVMOpaqueValue
- --
- type LLVMOpaqueValue is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueValue_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMOpaqueValue;
-
- type LLVMOpaqueValue_view is access all llvm.LLVMOpaqueValue;
-
- -- LLVMValueRef
- --
- type LLVMValueRef is access all llvm.LLVMOpaqueValue;
-
- type LLVMValueRef_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMValueRef;
-
- type LLVMValueRef_view is access all llvm.LLVMValueRef;
-
- -- LLVMOpaqueBasicBlock
- --
- type LLVMOpaqueBasicBlock is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueBasicBlock_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMOpaqueBasicBlock;
-
- type LLVMOpaqueBasicBlock_view is access all llvm.LLVMOpaqueBasicBlock;
-
- -- LLVMBasicBlockRef
- --
- type LLVMBasicBlockRef is access all llvm.LLVMOpaqueBasicBlock;
-
- type LLVMBasicBlockRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMBasicBlockRef;
-
- type LLVMBasicBlockRef_view is access all llvm.LLVMBasicBlockRef;
-
- -- LLVMOpaqueBuilder
- --
- type LLVMOpaqueBuilder is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueBuilder_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMOpaqueBuilder;
-
- type LLVMOpaqueBuilder_view is access all llvm.LLVMOpaqueBuilder;
-
- -- LLVMBuilderRef
- --
- type LLVMBuilderRef is access all llvm.LLVMOpaqueBuilder;
-
- type LLVMBuilderRef_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMBuilderRef;
-
- type LLVMBuilderRef_view is access all llvm.LLVMBuilderRef;
-
- -- LLVMOpaqueModuleProvider
- --
- type LLVMOpaqueModuleProvider is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueModuleProvider_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMOpaqueModuleProvider;
-
- type LLVMOpaqueModuleProvider_view is access all
- llvm.LLVMOpaqueModuleProvider;
-
- -- LLVMModuleProviderRef
- --
- type LLVMModuleProviderRef is access all llvm.LLVMOpaqueModuleProvider;
-
- type LLVMModuleProviderRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMModuleProviderRef;
-
- type LLVMModuleProviderRef_view is access all llvm.LLVMModuleProviderRef;
-
- -- LLVMOpaqueMemoryBuffer
- --
- type LLVMOpaqueMemoryBuffer is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueMemoryBuffer_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMOpaqueMemoryBuffer;
-
- type LLVMOpaqueMemoryBuffer_view is access all llvm.LLVMOpaqueMemoryBuffer;
-
- -- LLVMMemoryBufferRef
- --
- type LLVMMemoryBufferRef is access all llvm.LLVMOpaqueMemoryBuffer;
-
- type LLVMMemoryBufferRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMMemoryBufferRef;
-
- type LLVMMemoryBufferRef_view is access all llvm.LLVMMemoryBufferRef;
-
- -- LLVMOpaquePassManager
- --
- type LLVMOpaquePassManager is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaquePassManager_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMOpaquePassManager;
-
- type LLVMOpaquePassManager_view is access all llvm.LLVMOpaquePassManager;
-
- -- LLVMPassManagerRef
- --
- type LLVMPassManagerRef is access all llvm.LLVMOpaquePassManager;
-
- type LLVMPassManagerRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMPassManagerRef;
-
- type LLVMPassManagerRef_view is access all llvm.LLVMPassManagerRef;
-
- -- LLVMAttribute
- --
- type LLVMAttribute is (
- LLVMZExtAttribute,
- LLVMSExtAttribute,
- LLVMNoReturnAttribute,
- LLVMInRegAttribute,
- LLVMStructRetAttribute,
- LLVMNoUnwindAttribute,
- LLVMNoAliasAttribute,
- LLVMByValAttribute,
- LLVMNestAttribute,
- LLVMReadNoneAttribute,
- LLVMReadOnlyAttribute,
- LLVMNoInlineAttribute,
- LLVMAlwaysInlineAttribute,
- LLVMOptimizeForSizeAttribute,
- LLVMStackProtectAttribute,
- LLVMStackProtectReqAttribute,
- LLVMNoCaptureAttribute,
- LLVMNoRedZoneAttribute,
- LLVMNoImplicitFloatAttribute,
- LLVMNakedAttribute);
-
- for LLVMAttribute use
- (LLVMZExtAttribute => 1,
- LLVMSExtAttribute => 2,
- LLVMNoReturnAttribute => 4,
- LLVMInRegAttribute => 8,
- LLVMStructRetAttribute => 16,
- LLVMNoUnwindAttribute => 32,
- LLVMNoAliasAttribute => 64,
- LLVMByValAttribute => 128,
- LLVMNestAttribute => 256,
- LLVMReadNoneAttribute => 512,
- LLVMReadOnlyAttribute => 1024,
- LLVMNoInlineAttribute => 2048,
- LLVMAlwaysInlineAttribute => 4096,
- LLVMOptimizeForSizeAttribute => 8192,
- LLVMStackProtectAttribute => 16384,
- LLVMStackProtectReqAttribute => 32768,
- LLVMNoCaptureAttribute => 2097152,
- LLVMNoRedZoneAttribute => 4194304,
- LLVMNoImplicitFloatAttribute => 8388608,
- LLVMNakedAttribute => 16777216);
-
- pragma Convention (C, LLVMAttribute);
-
- type LLVMAttribute_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMAttribute;
-
- type LLVMAttribute_view is access all llvm.LLVMAttribute;
-
- -- LLVMTypeKind
- --
- type LLVMTypeKind is (
- LLVMVoidTypeKind,
- LLVMFloatTypeKind,
- LLVMDoubleTypeKind,
- LLVMX86_FP80TypeKind,
- LLVMFP128TypeKind,
- LLVMPPC_FP128TypeKind,
- LLVMLabelTypeKind,
- LLVMIntegerTypeKind,
- LLVMFunctionTypeKind,
- LLVMStructTypeKind,
- LLVMArrayTypeKind,
- LLVMPointerTypeKind,
- LLVMOpaqueTypeKind,
- LLVMVectorTypeKind,
- LLVMMetadataTypeKind);
-
- for LLVMTypeKind use
- (LLVMVoidTypeKind => 0,
- LLVMFloatTypeKind => 1,
- LLVMDoubleTypeKind => 2,
- LLVMX86_FP80TypeKind => 3,
- LLVMFP128TypeKind => 4,
- LLVMPPC_FP128TypeKind => 5,
- LLVMLabelTypeKind => 6,
- LLVMIntegerTypeKind => 7,
- LLVMFunctionTypeKind => 8,
- LLVMStructTypeKind => 9,
- LLVMArrayTypeKind => 10,
- LLVMPointerTypeKind => 11,
- LLVMOpaqueTypeKind => 12,
- LLVMVectorTypeKind => 13,
- LLVMMetadataTypeKind => 14);
-
- pragma Convention (C, LLVMTypeKind);
-
- type LLVMTypeKind_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMTypeKind;
-
- type LLVMTypeKind_view is access all llvm.LLVMTypeKind;
-
- -- LLVMLinkage
- --
- type LLVMLinkage is (
- LLVMExternalLinkage,
- LLVMAvailableExternallyLinkage,
- LLVMLinkOnceAnyLinkage,
- LLVMLinkOnceODRLinkage,
- LLVMWeakAnyLinkage,
- LLVMWeakODRLinkage,
- LLVMAppendingLinkage,
- LLVMInternalLinkage,
- LLVMPrivateLinkage,
- LLVMDLLImportLinkage,
- LLVMDLLExportLinkage,
- LLVMExternalWeakLinkage,
- LLVMGhostLinkage,
- LLVMCommonLinkage,
- LLVMLinkerPrivateLinkage,
- LLVMLinkerPrivateWeakLinkage,
- LinkerPrivateWeakDefAutoLinkage);
-
- for LLVMLinkage use
- (LLVMExternalLinkage => 0,
- LLVMAvailableExternallyLinkage => 1,
- LLVMLinkOnceAnyLinkage => 2,
- LLVMLinkOnceODRLinkage => 3,
- LLVMWeakAnyLinkage => 4,
- LLVMWeakODRLinkage => 5,
- LLVMAppendingLinkage => 6,
- LLVMInternalLinkage => 7,
- LLVMPrivateLinkage => 8,
- LLVMDLLImportLinkage => 9,
- LLVMDLLExportLinkage => 10,
- LLVMExternalWeakLinkage => 11,
- LLVMGhostLinkage => 12,
- LLVMCommonLinkage => 13,
- LLVMLinkerPrivateLinkage => 14,
- LLVMLinkerPrivateWeakLinkage => 15,
- LinkerPrivateWeakDefAutoLinkage => 16);
-
- pragma Convention (C, LLVMLinkage);
-
- type LLVMLinkage_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMLinkage;
-
- type LLVMLinkage_view is access all llvm.LLVMLinkage;
-
- -- LLVMVisibility
- --
- type LLVMVisibility is (
- LLVMDefaultVisibility,
- LLVMHiddenVisibility,
- LLVMProtectedVisibility);
-
- for LLVMVisibility use
- (LLVMDefaultVisibility => 0,
- LLVMHiddenVisibility => 1,
- LLVMProtectedVisibility => 2);
-
- pragma Convention (C, LLVMVisibility);
-
- type LLVMVisibility_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMVisibility;
-
- type LLVMVisibility_view is access all llvm.LLVMVisibility;
-
- -- LLVMCallConv
- --
- type LLVMCallConv is (
- LLVMCCallConv,
- LLVMFastCallConv,
- LLVMColdCallConv,
- LLVMX86StdcallCallConv,
- LLVMX86FastcallCallConv);
-
- for LLVMCallConv use
- (LLVMCCallConv => 0,
- LLVMFastCallConv => 8,
- LLVMColdCallConv => 9,
- LLVMX86StdcallCallConv => 64,
- LLVMX86FastcallCallConv => 65);
-
- pragma Convention (C, LLVMCallConv);
-
- type LLVMCallConv_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMCallConv;
-
- type LLVMCallConv_view is access all llvm.LLVMCallConv;
-
- -- LLVMIntPredicate
- --
- type LLVMIntPredicate is (
- LLVMIntEQ,
- LLVMIntNE,
- LLVMIntUGT,
- LLVMIntUGE,
- LLVMIntULT,
- LLVMIntULE,
- LLVMIntSGT,
- LLVMIntSGE,
- LLVMIntSLT,
- LLVMIntSLE);
-
- for LLVMIntPredicate use
- (LLVMIntEQ => 32,
- LLVMIntNE => 33,
- LLVMIntUGT => 34,
- LLVMIntUGE => 35,
- LLVMIntULT => 36,
- LLVMIntULE => 37,
- LLVMIntSGT => 38,
- LLVMIntSGE => 39,
- LLVMIntSLT => 40,
- LLVMIntSLE => 41);
-
- pragma Convention (C, LLVMIntPredicate);
-
- type LLVMIntPredicate_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.LLVMIntPredicate;
-
- type LLVMIntPredicate_view is access all llvm.LLVMIntPredicate;
-
- -- LLVMRealPredicate
- --
- type LLVMRealPredicate is (
- LLVMRealPredicateFalse,
- LLVMRealOEQ,
- LLVMRealOGT,
- LLVMRealOGE,
- LLVMRealOLT,
- LLVMRealOLE,
- LLVMRealONE,
- LLVMRealORD,
- LLVMRealUNO,
- LLVMRealUEQ,
- LLVMRealUGT,
- LLVMRealUGE,
- LLVMRealULT,
- LLVMRealULE,
- LLVMRealUNE,
- LLVMRealPredicateTrue);
-
- for LLVMRealPredicate use
- (LLVMRealPredicateFalse => 0,
- LLVMRealOEQ => 1,
- LLVMRealOGT => 2,
- LLVMRealOGE => 3,
- LLVMRealOLT => 4,
- LLVMRealOLE => 5,
- LLVMRealONE => 6,
- LLVMRealORD => 7,
- LLVMRealUNO => 8,
- LLVMRealUEQ => 9,
- LLVMRealUGT => 10,
- LLVMRealUGE => 11,
- LLVMRealULT => 12,
- LLVMRealULE => 13,
- LLVMRealUNE => 14,
- LLVMRealPredicateTrue => 15);
-
- pragma Convention (C, LLVMRealPredicate);
-
- type LLVMRealPredicate_array is
- array (Interfaces.C.size_t range <>)
- of aliased llvm.LLVMRealPredicate;
-
- type LLVMRealPredicate_view is access all llvm.LLVMRealPredicate;
-
- -- ModuleProvider
- --
- type ModuleProvider is new Interfaces.C.Extensions.incomplete_class_def;
-
- type ModuleProvider_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.ModuleProvider;
-
- type ModuleProvider_view is access all llvm.ModuleProvider;
-
- -- MemoryBuffer
- --
- type MemoryBuffer is new Interfaces.C.Extensions.incomplete_class_def;
-
- type MemoryBuffer_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.MemoryBuffer;
-
- type MemoryBuffer_view is access all llvm.MemoryBuffer;
-
- -- PassManagerBase
- --
- type PassManagerBase is new Interfaces.C.Extensions.incomplete_class_def;
-
- type PassManagerBase_array is
- array (Interfaces.C.size_t range <>) of aliased llvm.PassManagerBase;
-
- type PassManagerBase_view is access all llvm.PassManagerBase;
-
-end llvm;
diff --git a/bindings/ada/llvm/llvm_link_time_optimizer-binding.ads b/bindings/ada/llvm/llvm_link_time_optimizer-binding.ads
deleted file mode 100644
index 7c0b086b4282e..0000000000000
--- a/bindings/ada/llvm/llvm_link_time_optimizer-binding.ads
+++ /dev/null
@@ -1,207 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C.Strings;
-
-
-package LLVM_link_time_Optimizer.Binding is
-
- LTO_H : constant := 1;
- LTO_API_VERSION : constant := 3;
-
- function lto_get_version return Interfaces.C.Strings.chars_ptr;
-
- function lto_get_error_message return Interfaces.C.Strings.chars_ptr;
-
- function lto_module_is_object_file
- (path : in Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.Extensions.bool;
-
- function lto_module_is_object_file_for_target
- (path : in Interfaces.C.Strings.chars_ptr;
- target_triple_prefix : in Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.Extensions.bool;
-
- function lto_module_is_object_file_in_memory
- (mem : access Interfaces.C.Extensions.void;
- length : in Interfaces.C.size_t)
- return Interfaces.C.Extensions.bool;
-
- function lto_module_is_object_file_in_memory_for_target
- (mem : access Interfaces.C.Extensions.void;
- length : in Interfaces.C.size_t;
- target_triple_prefix : in Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.Extensions.bool;
-
- function lto_module_create
- (path : in Interfaces.C.Strings.chars_ptr)
- return LLVM_link_time_Optimizer.lto_module_t;
-
- function lto_module_create_from_memory
- (mem : access Interfaces.C.Extensions.void;
- length : in Interfaces.C.size_t)
- return LLVM_link_time_Optimizer.lto_module_t;
-
- procedure lto_module_dispose
- (the_mod : in LLVM_link_time_Optimizer.lto_module_t);
-
- function lto_module_get_target_triple
- (the_mod : in LLVM_link_time_Optimizer.lto_module_t)
- return Interfaces.C.Strings.chars_ptr;
-
- function lto_module_get_num_symbols
- (the_mod : in LLVM_link_time_Optimizer.lto_module_t)
- return Interfaces.C.unsigned;
-
- function lto_module_get_symbol_name
- (the_mod : in LLVM_link_time_Optimizer.lto_module_t;
- index : in Interfaces.C.unsigned)
- return Interfaces.C.Strings.chars_ptr;
-
- function lto_module_get_symbol_attribute
- (the_mod : in LLVM_link_time_Optimizer.lto_module_t;
- index : in Interfaces.C.unsigned)
- return LLVM_link_time_Optimizer.lto_symbol_attributes;
-
- function lto_codegen_create return LLVM_link_time_Optimizer.lto_code_gen_t;
-
- procedure lto_codegen_dispose
- (arg_1 : in LLVM_link_time_Optimizer.lto_code_gen_t);
-
- function lto_codegen_add_module
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- the_mod : in LLVM_link_time_Optimizer.lto_module_t)
- return Interfaces.C.Extensions.bool;
-
- function lto_codegen_set_debug_model
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- arg_1 : in LLVM_link_time_Optimizer.lto_debug_model)
- return Interfaces.C.Extensions.bool;
-
- function lto_codegen_set_pic_model
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- arg_1 : in LLVM_link_time_Optimizer.lto_codegen_model)
- return Interfaces.C.Extensions.bool;
-
- procedure lto_codegen_set_gcc_path
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- path : in Interfaces.C.Strings.chars_ptr);
-
- procedure lto_codegen_set_assembler_path
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- path : in Interfaces.C.Strings.chars_ptr);
-
- procedure lto_codegen_add_must_preserve_symbol
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- symbol : in Interfaces.C.Strings.chars_ptr);
-
- function lto_codegen_write_merged_modules
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- path : in Interfaces.C.Strings.chars_ptr)
- return Interfaces.C.Extensions.bool;
-
- function lto_codegen_compile
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- length : access Interfaces.C.size_t)
- return access Interfaces.C.Extensions.void;
-
- procedure lto_codegen_debug_options
- (cg : in LLVM_link_time_Optimizer.lto_code_gen_t;
- arg_1 : in Interfaces.C.Strings.chars_ptr);
-
- function llvm_create_optimizer return
- LLVM_link_time_Optimizer.llvm_lto_t;
-
- procedure llvm_destroy_optimizer
- (lto : in LLVM_link_time_Optimizer.llvm_lto_t);
-
- function llvm_read_object_file
- (lto : in LLVM_link_time_Optimizer.llvm_lto_t;
- input_filename : in Interfaces.C.Strings.chars_ptr)
- return LLVM_link_time_Optimizer.llvm_lto_status_t;
-
- function llvm_optimize_modules
- (lto : in LLVM_link_time_Optimizer.llvm_lto_t;
- output_filename : in Interfaces.C.Strings.chars_ptr)
- return LLVM_link_time_Optimizer.llvm_lto_status_t;
-
-private
-
- pragma Import (C, lto_get_version, "Ada_lto_get_version");
- pragma Import (C, lto_get_error_message, "Ada_lto_get_error_message");
- pragma Import
- (C,
- lto_module_is_object_file,
- "Ada_lto_module_is_object_file");
- pragma Import
- (C,
- lto_module_is_object_file_for_target,
- "Ada_lto_module_is_object_file_for_target");
- pragma Import
- (C,
- lto_module_is_object_file_in_memory,
- "Ada_lto_module_is_object_file_in_memory");
- pragma Import
- (C,
- lto_module_is_object_file_in_memory_for_target,
- "Ada_lto_module_is_object_file_in_memory_for_target");
- pragma Import (C, lto_module_create, "Ada_lto_module_create");
- pragma Import
- (C,
- lto_module_create_from_memory,
- "Ada_lto_module_create_from_memory");
- pragma Import (C, lto_module_dispose, "Ada_lto_module_dispose");
- pragma Import
- (C,
- lto_module_get_target_triple,
- "Ada_lto_module_get_target_triple");
- pragma Import
- (C,
- lto_module_get_num_symbols,
- "Ada_lto_module_get_num_symbols");
- pragma Import
- (C,
- lto_module_get_symbol_name,
- "Ada_lto_module_get_symbol_name");
- pragma Import
- (C,
- lto_module_get_symbol_attribute,
- "Ada_lto_module_get_symbol_attribute");
- pragma Import (C, lto_codegen_create, "Ada_lto_codegen_create");
- pragma Import (C, lto_codegen_dispose, "Ada_lto_codegen_dispose");
- pragma Import (C, lto_codegen_add_module, "Ada_lto_codegen_add_module");
- pragma Import
- (C,
- lto_codegen_set_debug_model,
- "Ada_lto_codegen_set_debug_model");
- pragma Import
- (C,
- lto_codegen_set_pic_model,
- "Ada_lto_codegen_set_pic_model");
- pragma Import
- (C,
- lto_codegen_set_gcc_path,
- "Ada_lto_codegen_set_gcc_path");
- pragma Import
- (C,
- lto_codegen_set_assembler_path,
- "Ada_lto_codegen_set_assembler_path");
- pragma Import
- (C,
- lto_codegen_add_must_preserve_symbol,
- "Ada_lto_codegen_add_must_preserve_symbol");
- pragma Import
- (C,
- lto_codegen_write_merged_modules,
- "Ada_lto_codegen_write_merged_modules");
- pragma Import (C, lto_codegen_compile, "Ada_lto_codegen_compile");
- pragma Import
- (C,
- lto_codegen_debug_options,
- "Ada_lto_codegen_debug_options");
- pragma Import (C, llvm_create_optimizer, "Ada_llvm_create_optimizer");
- pragma Import (C, llvm_destroy_optimizer, "Ada_llvm_destroy_optimizer");
- pragma Import (C, llvm_read_object_file, "Ada_llvm_read_object_file");
- pragma Import (C, llvm_optimize_modules, "Ada_llvm_optimize_modules");
-
-end LLVM_link_time_Optimizer.Binding;
diff --git a/bindings/ada/llvm/llvm_link_time_optimizer.ads b/bindings/ada/llvm/llvm_link_time_optimizer.ads
deleted file mode 100644
index c27f7c5893b61..0000000000000
--- a/bindings/ada/llvm/llvm_link_time_optimizer.ads
+++ /dev/null
@@ -1,184 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C.Extensions;
-
-
-package LLVM_link_time_Optimizer is
-
- -- lto_symbol_attributes
- --
- type lto_symbol_attributes is (
- LTO_SYMBOL_ALIGNMENT_MASK,
- LTO_SYMBOL_PERMISSIONS_RODATA,
- LTO_SYMBOL_PERMISSIONS_CODE,
- LTO_SYMBOL_PERMISSIONS_DATA,
- LTO_SYMBOL_PERMISSIONS_MASK,
- LTO_SYMBOL_DEFINITION_REGULAR,
- LTO_SYMBOL_DEFINITION_TENTATIVE,
- LTO_SYMBOL_DEFINITION_WEAK,
- LTO_SYMBOL_DEFINITION_UNDEFINED,
- LTO_SYMBOL_DEFINITION_WEAKUNDEF,
- LTO_SYMBOL_DEFINITION_MASK,
- LTO_SYMBOL_SCOPE_INTERNAL,
- LTO_SYMBOL_SCOPE_HIDDEN,
- LTO_SYMBOL_SCOPE_DEFAULT,
- LTO_SYMBOL_SCOPE_PROTECTED,
- LTO_SYMBOL_SCOPE_MASK);
-
- for lto_symbol_attributes use
- (LTO_SYMBOL_ALIGNMENT_MASK => 31,
- LTO_SYMBOL_PERMISSIONS_RODATA => 128,
- LTO_SYMBOL_PERMISSIONS_CODE => 160,
- LTO_SYMBOL_PERMISSIONS_DATA => 192,
- LTO_SYMBOL_PERMISSIONS_MASK => 224,
- LTO_SYMBOL_DEFINITION_REGULAR => 256,
- LTO_SYMBOL_DEFINITION_TENTATIVE => 512,
- LTO_SYMBOL_DEFINITION_WEAK => 768,
- LTO_SYMBOL_DEFINITION_UNDEFINED => 1024,
- LTO_SYMBOL_DEFINITION_WEAKUNDEF => 1280,
- LTO_SYMBOL_DEFINITION_MASK => 1792,
- LTO_SYMBOL_SCOPE_INTERNAL => 2048,
- LTO_SYMBOL_SCOPE_HIDDEN => 4096,
- LTO_SYMBOL_SCOPE_DEFAULT => 6144,
- LTO_SYMBOL_SCOPE_PROTECTED => 8192,
- LTO_SYMBOL_SCOPE_MASK => 14336);
-
- pragma Convention (C, lto_symbol_attributes);
-
- type lto_symbol_attributes_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.lto_symbol_attributes;
-
- type lto_symbol_attributes_view is access all
- LLVM_link_time_Optimizer.lto_symbol_attributes;
-
- -- lto_debug_model
- --
- type lto_debug_model is (LTO_DEBUG_MODEL_NONE, LTO_DEBUG_MODEL_DWARF);
-
- for lto_debug_model use
- (LTO_DEBUG_MODEL_NONE => 0,
- LTO_DEBUG_MODEL_DWARF => 1);
-
- pragma Convention (C, lto_debug_model);
-
- type lto_debug_model_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.lto_debug_model;
-
- type lto_debug_model_view is access all
- LLVM_link_time_Optimizer.lto_debug_model;
-
- -- lto_codegen_model
- --
- type lto_codegen_model is (
- LTO_CODEGEN_PIC_MODEL_STATIC,
- LTO_CODEGEN_PIC_MODEL_DYNAMIC,
- LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC);
-
- for lto_codegen_model use
- (LTO_CODEGEN_PIC_MODEL_STATIC => 0,
- LTO_CODEGEN_PIC_MODEL_DYNAMIC => 1,
- LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC => 2);
-
- pragma Convention (C, lto_codegen_model);
-
- type lto_codegen_model_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.lto_codegen_model;
-
- type lto_codegen_model_view is access all
- LLVM_link_time_Optimizer.lto_codegen_model;
-
- -- LTOModule
- --
- type LTOModule is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LTOModule_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.LTOModule;
-
- type LTOModule_view is access all LLVM_link_time_Optimizer.LTOModule;
-
- -- lto_module_t
- --
- type lto_module_t is access all LLVM_link_time_Optimizer.LTOModule;
-
- type lto_module_t_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.lto_module_t;
-
- type lto_module_t_view is access all LLVM_link_time_Optimizer.lto_module_t;
-
- -- LTOCodeGenerator
- --
- type LTOCodeGenerator is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LTOCodeGenerator_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.LTOCodeGenerator;
-
- type LTOCodeGenerator_view is access all
- LLVM_link_time_Optimizer.LTOCodeGenerator;
-
- -- lto_code_gen_t
- --
- type lto_code_gen_t is access all LLVM_link_time_Optimizer.LTOCodeGenerator;
-
- type lto_code_gen_t_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.lto_code_gen_t;
-
- type lto_code_gen_t_view is access all
- LLVM_link_time_Optimizer.lto_code_gen_t;
-
- -- llvm_lto_status_t
- --
- type llvm_lto_status_t is (
- LLVM_LTO_UNKNOWN,
- LLVM_LTO_OPT_SUCCESS,
- LLVM_LTO_READ_SUCCESS,
- LLVM_LTO_READ_FAILURE,
- LLVM_LTO_WRITE_FAILURE,
- LLVM_LTO_NO_TARGET,
- LLVM_LTO_NO_WORK,
- LLVM_LTO_MODULE_MERGE_FAILURE,
- LLVM_LTO_ASM_FAILURE,
- LLVM_LTO_NULL_OBJECT);
-
- for llvm_lto_status_t use
- (LLVM_LTO_UNKNOWN => 0,
- LLVM_LTO_OPT_SUCCESS => 1,
- LLVM_LTO_READ_SUCCESS => 2,
- LLVM_LTO_READ_FAILURE => 3,
- LLVM_LTO_WRITE_FAILURE => 4,
- LLVM_LTO_NO_TARGET => 5,
- LLVM_LTO_NO_WORK => 6,
- LLVM_LTO_MODULE_MERGE_FAILURE => 7,
- LLVM_LTO_ASM_FAILURE => 8,
- LLVM_LTO_NULL_OBJECT => 9);
-
- pragma Convention (C, llvm_lto_status_t);
-
- type llvm_lto_status_t_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.llvm_lto_status_t;
-
- type llvm_lto_status_t_view is access all
- LLVM_link_time_Optimizer.llvm_lto_status_t;
-
-
- -- llvm_lto_t
- --
- type llvm_lto_t is access all Interfaces.C.Extensions.void;
-
- type llvm_lto_t_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_link_time_Optimizer.llvm_lto_t;
-
- type llvm_lto_t_view is access all
- LLVM_link_time_Optimizer.llvm_lto_t;
-
-
-end LLVM_link_time_Optimizer;
diff --git a/bindings/ada/llvm/llvm_linktimeoptimizer_wrap.cxx b/bindings/ada/llvm/llvm_linktimeoptimizer_wrap.cxx
deleted file mode 100644
index eb2e7ab15633e..0000000000000
--- a/bindings/ada/llvm/llvm_linktimeoptimizer_wrap.cxx
+++ /dev/null
@@ -1,923 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_link_time_Optimizer (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_link_time_Optimizer(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-#include "llvm-c/lto.h"
-#include "llvm-c/LinkTimeOptimizer.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport char * SWIGSTDCALL Ada_lto_get_version (
- )
-{
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lto_get_version();
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_lto_get_error_message (
- )
-{
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lto_get_error_message();
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_module_is_object_file (
- char * jarg1
- )
-{
- unsigned int jresult ;
- char *arg1 = (char *) 0 ;
- bool result;
-
- arg1 = jarg1;
-
- result = (bool)lto_module_is_object_file((char const *)arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_module_is_object_file_for_target (
- char * jarg1
- ,
-
- char * jarg2
- )
-{
- unsigned int jresult ;
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = jarg1;
-
- arg2 = jarg2;
-
- result = (bool)lto_module_is_object_file_for_target((char const *)arg1,(char const *)arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_module_is_object_file_in_memory (
- void* jarg1
- ,
-
- size_t jarg2
- )
-{
- unsigned int jresult ;
- void *arg1 = (void *) 0 ;
- size_t arg2 ;
- bool result;
-
- arg1 = (void *)jarg1;
-
-
- arg2 = (size_t) jarg2;
-
-
- result = (bool)lto_module_is_object_file_in_memory((void const *)arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_module_is_object_file_in_memory_for_target (
- void* jarg1
- ,
-
- size_t jarg2
- ,
-
- char * jarg3
- )
-{
- unsigned int jresult ;
- void *arg1 = (void *) 0 ;
- size_t arg2 ;
- char *arg3 = (char *) 0 ;
- bool result;
-
- arg1 = (void *)jarg1;
-
-
- arg2 = (size_t) jarg2;
-
-
- arg3 = jarg3;
-
- result = (bool)lto_module_is_object_file_in_memory_for_target((void const *)arg1,arg2,(char const *)arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_lto_module_create (
- char * jarg1
- )
-{
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lto_module_t result;
-
- arg1 = jarg1;
-
- result = (lto_module_t)lto_module_create((char const *)arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_lto_module_create_from_memory (
- void* jarg1
- ,
-
- size_t jarg2
- )
-{
- void * jresult ;
- void *arg1 = (void *) 0 ;
- size_t arg2 ;
- lto_module_t result;
-
- arg1 = (void *)jarg1;
-
-
- arg2 = (size_t) jarg2;
-
-
- result = (lto_module_t)lto_module_create_from_memory((void const *)arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_lto_module_dispose (
- void * jarg1
- )
-{
- lto_module_t arg1 = (lto_module_t) 0 ;
-
- arg1 = (lto_module_t)jarg1;
-
- lto_module_dispose(arg1);
-
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_lto_module_get_target_triple (
- void * jarg1
- )
-{
- char * jresult ;
- lto_module_t arg1 = (lto_module_t) 0 ;
- char *result = 0 ;
-
- arg1 = (lto_module_t)jarg1;
-
- result = (char *)lto_module_get_target_triple(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_module_get_num_symbols (
- void * jarg1
- )
-{
- unsigned int jresult ;
- lto_module_t arg1 = (lto_module_t) 0 ;
- unsigned int result;
-
- arg1 = (lto_module_t)jarg1;
-
- result = (unsigned int)lto_module_get_num_symbols(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_lto_module_get_symbol_name (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- char * jresult ;
- lto_module_t arg1 = (lto_module_t) 0 ;
- unsigned int arg2 ;
- char *result = 0 ;
-
- arg1 = (lto_module_t)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (char *)lto_module_get_symbol_name(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_lto_module_get_symbol_attribute (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- int jresult ;
- lto_module_t arg1 = (lto_module_t) 0 ;
- unsigned int arg2 ;
- lto_symbol_attributes result;
-
- arg1 = (lto_module_t)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (lto_symbol_attributes)lto_module_get_symbol_attribute(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_lto_codegen_create (
- )
-{
- void * jresult ;
- lto_code_gen_t result;
-
- result = (lto_code_gen_t)lto_codegen_create();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_lto_codegen_dispose (
- void * jarg1
- )
-{
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- lto_codegen_dispose(arg1);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_codegen_add_module (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned int jresult ;
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- lto_module_t arg2 = (lto_module_t) 0 ;
- bool result;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = (lto_module_t)jarg2;
-
- result = (bool)lto_codegen_add_module(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_codegen_set_debug_model (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- unsigned int jresult ;
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- lto_debug_model arg2 ;
- bool result;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = (lto_debug_model) jarg2;
-
- result = (bool)lto_codegen_set_debug_model(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_codegen_set_pic_model (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- unsigned int jresult ;
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- lto_codegen_model arg2 ;
- bool result;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = (lto_codegen_model) jarg2;
-
- result = (bool)lto_codegen_set_pic_model(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_lto_codegen_set_gcc_path (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = jarg2;
-
- lto_codegen_set_gcc_path(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_lto_codegen_set_assembler_path (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = jarg2;
-
- lto_codegen_set_assembler_path(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_lto_codegen_add_must_preserve_symbol (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = jarg2;
-
- lto_codegen_add_must_preserve_symbol(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_lto_codegen_write_merged_modules (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- unsigned int jresult ;
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = jarg2;
-
- result = (bool)lto_codegen_write_merged_modules(arg1,(char const *)arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void* SWIGSTDCALL Ada_lto_codegen_compile (
- void * jarg1
- ,
-
- size_t* jarg2
- )
-{
- void* jresult ;
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- size_t *arg2 = (size_t *) 0 ;
- void *result = 0 ;
-
- arg1 = (lto_code_gen_t)jarg1;
-
-
- arg2 = (size_t *) jarg2;
-
-
- result = (void *)lto_codegen_compile(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_lto_codegen_debug_options (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- lto_code_gen_t arg1 = (lto_code_gen_t) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lto_code_gen_t)jarg1;
-
- arg2 = jarg2;
-
- lto_codegen_debug_options(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport void* SWIGSTDCALL Ada_llvm_create_optimizer (
- )
-{
- void* jresult ;
- llvm_lto_t result;
-
- result = (llvm_lto_t)llvm_create_optimizer();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_llvm_destroy_optimizer (
- void* jarg1
- )
-{
- llvm_lto_t arg1 = (llvm_lto_t) 0 ;
-
- arg1 = (llvm_lto_t)jarg1;
-
- llvm_destroy_optimizer(arg1);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_llvm_read_object_file (
- void* jarg1
- ,
-
- char * jarg2
- )
-{
- int jresult ;
- llvm_lto_t arg1 = (llvm_lto_t) 0 ;
- char *arg2 = (char *) 0 ;
- llvm_lto_status_t result;
-
- arg1 = (llvm_lto_t)jarg1;
-
- arg2 = jarg2;
-
- result = (llvm_lto_status_t)llvm_read_object_file(arg1,(char const *)arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_llvm_optimize_modules (
- void* jarg1
- ,
-
- char * jarg2
- )
-{
- int jresult ;
- llvm_lto_t arg1 = (llvm_lto_t) 0 ;
- char *arg2 = (char *) 0 ;
- llvm_lto_status_t result;
-
- arg1 = (llvm_lto_t)jarg1;
-
- arg2 = jarg2;
-
- result = (llvm_lto_status_t)llvm_optimize_modules(arg1,(char const *)arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/llvm/llvm_wrap.cxx b/bindings/ada/llvm/llvm_wrap.cxx
deleted file mode 100644
index 79b19ff4c0bbb..0000000000000
--- a/bindings/ada/llvm/llvm_wrap.cxx
+++ /dev/null
@@ -1,8817 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_llvm (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_llvm(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-//#include "llvm-c/Analysis.h"
-//#include "llvm-c/BitReader.h"
-//#include "llvm-c/BitWriter.h"
-#include "llvm-c/Core.h"
-//#include "llvm-c/ExecutionEngine.h"
-//#include "llvm-c/LinkTimeOptimizer.h"
-//#include "llvm-c/lto.h"
-//#include "llvm-c/Target.h"
-
-
-
- struct LLVMCtxt;
-// struct LLVMOpaqueType;
-// struct LLVMOpaqueValue;
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport void SWIGSTDCALL Ada_LLVMDisposeMessage (
- char * jarg1
- )
-{
- char *arg1 = (char *) 0 ;
-
- arg1 = jarg1;
-
- LLVMDisposeMessage(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMContextCreate (
- )
-{
- void * jresult ;
- LLVMContextRef result;
-
- result = (LLVMContextRef)LLVMContextCreate();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetGlobalContext (
- )
-{
- void * jresult ;
- LLVMContextRef result;
-
- result = (LLVMContextRef)LLVMGetGlobalContext();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMContextDispose (
- void * jarg1
- )
-{
- LLVMContextRef arg1 = (LLVMContextRef) 0 ;
-
- arg1 = (LLVMContextRef)jarg1;
-
- LLVMContextDispose(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMModuleCreateWithName (
- char * jarg1
- )
-{
- void * jresult ;
- char *arg1 = (char *) 0 ;
- LLVMModuleRef result;
-
- arg1 = jarg1;
-
- result = (LLVMModuleRef)LLVMModuleCreateWithName((char const *)arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMModuleCreateWithNameInContext (
- char * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- char *arg1 = (char *) 0 ;
- LLVMContextRef arg2 = (LLVMContextRef) 0 ;
- LLVMModuleRef result;
-
- arg1 = jarg1;
-
- arg2 = (LLVMContextRef)jarg2;
-
- result = (LLVMModuleRef)LLVMModuleCreateWithNameInContext((char const *)arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeModule (
- void * jarg1
- )
-{
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- LLVMDisposeModule(arg1);
-
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_LLVMGetDataLayout (
- void * jarg1
- )
-{
- char * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *result = 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (char *)LLVMGetDataLayout(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetDataLayout (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- LLVMSetDataLayout(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_LLVMGetTarget (
- void * jarg1
- )
-{
- char * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *result = 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (char *)LLVMGetTarget(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetTarget (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- LLVMSetTarget(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMAddTypeName (
- void * jarg1
- ,
-
- char * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- int result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- result = (int)LLVMAddTypeName(arg1,(char const *)arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDeleteTypeName (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- LLVMDeleteTypeName(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetTypeByName (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- result = (LLVMTypeRef)LLVMGetTypeByName(arg1,(char const *)arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDumpModule (
- void * jarg1
- )
-{
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- LLVMDumpModule(arg1);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMGetTypeKind (
- void * jarg1
- )
-{
- int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeKind result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMTypeKind)LLVMGetTypeKind(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMInt1Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMInt1Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMInt8Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMInt8Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMInt16Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMInt16Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMInt32Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMInt32Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMInt64Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMInt64Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIntType (
- unsigned int jarg1
- )
-{
- void * jresult ;
- unsigned int arg1 ;
- LLVMTypeRef result;
-
-
- arg1 = (unsigned int) jarg1;
-
-
- result = (LLVMTypeRef)LLVMIntType(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetIntTypeWidth (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (unsigned int)LLVMGetIntTypeWidth(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMFloatType (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMFloatType();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMDoubleType (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMDoubleType();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMX86FP80Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMX86FP80Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMFP128Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMFP128Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMPPCFP128Type (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMPPCFP128Type();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMFunctionType (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- ,
-
- int jarg4
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeRef *arg2 = (LLVMTypeRef *) 0 ;
- unsigned int arg3 ;
- int arg4 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = (LLVMTypeRef *)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
-
- arg4 = (int) jarg4;
-
-
- result = (LLVMTypeRef)LLVMFunctionType(arg1,arg2,arg3,arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsFunctionVarArg (
- void * jarg1
- )
-{
- int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (int)LLVMIsFunctionVarArg(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetReturnType (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMTypeRef)LLVMGetReturnType(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMCountParamTypes (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (unsigned int)LLVMCountParamTypes(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMGetParamTypes (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeRef *arg2 = (LLVMTypeRef *) 0 ;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = (LLVMTypeRef *)jarg2;
-
- LLVMGetParamTypes(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMStructType (
- void * jarg1
- ,
-
- unsigned int jarg2
- ,
-
- int jarg3
- )
-{
- void * jresult ;
- LLVMTypeRef *arg1 = (LLVMTypeRef *) 0 ;
- unsigned int arg2 ;
- int arg3 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef *)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
-
- arg3 = (int) jarg3;
-
-
- result = (LLVMTypeRef)LLVMStructType(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMCountStructElementTypes (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (unsigned int)LLVMCountStructElementTypes(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMGetStructElementTypes (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeRef *arg2 = (LLVMTypeRef *) 0 ;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = (LLVMTypeRef *)jarg2;
-
- LLVMGetStructElementTypes(arg1,arg2);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsPackedStruct (
- void * jarg1
- )
-{
- int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (int)LLVMIsPackedStruct(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMArrayType (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int arg2 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMTypeRef)LLVMArrayType(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMPointerType (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int arg2 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMTypeRef)LLVMPointerType(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMVectorType (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int arg2 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMTypeRef)LLVMVectorType(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetElementType (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMTypeRef)LLVMGetElementType(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetArrayLength (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (unsigned int)LLVMGetArrayLength(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetPointerAddressSpace (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (unsigned int)LLVMGetPointerAddressSpace(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetVectorSize (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (unsigned int)LLVMGetVectorSize(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMVoidType (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMVoidType();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMLabelType (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMLabelType();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMOpaqueType (
- )
-{
- void * jresult ;
- LLVMTypeRef result;
-
- result = (LLVMTypeRef)LLVMOpaqueType();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateTypeHandle (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeHandleRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMTypeHandleRef)LLVMCreateTypeHandle(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMRefineType (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- LLVMRefineType(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMResolveTypeHandle (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeHandleRef arg1 = (LLVMTypeHandleRef) 0 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTypeHandleRef)jarg1;
-
- result = (LLVMTypeRef)LLVMResolveTypeHandle(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeTypeHandle (
- void * jarg1
- )
-{
- LLVMTypeHandleRef arg1 = (LLVMTypeHandleRef) 0 ;
-
- arg1 = (LLVMTypeHandleRef)jarg1;
-
- LLVMDisposeTypeHandle(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMTypeOf (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMTypeRef)LLVMTypeOf(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_LLVMGetValueName (
- void * jarg1
- )
-{
- char * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *result = 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (char *)LLVMGetValueName(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetValueName (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = jarg2;
-
- LLVMSetValueName(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDumpValue (
- void * jarg1
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- LLVMDumpValue(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAArgument (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAArgument(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsABasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsABasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAInlineAsm (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAInlineAsm(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAUser (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAUser(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstant (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstant(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantAggregateZero (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantAggregateZero(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantArray (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantArray(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantExpr (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantExpr(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantFP (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantFP(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantInt (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantInt(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantPointerNull (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantPointerNull(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantStruct (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantStruct(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAConstantVector (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAConstantVector(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAGlobalValue (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAGlobalValue(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFunction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFunction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAGlobalAlias (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAGlobalAlias(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAGlobalVariable (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAGlobalVariable(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAUndefValue (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAUndefValue(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAInstruction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAInstruction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsABinaryOperator (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsABinaryOperator(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsACallInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsACallInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAIntrinsicInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAIntrinsicInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsADbgInfoIntrinsic (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsADbgInfoIntrinsic(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsADbgDeclareInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsADbgDeclareInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsADbgFuncStartInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsADbgFuncStartInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsADbgRegionEndInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsADbgRegionEndInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsADbgRegionStartInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsADbgRegionStartInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsADbgStopPointInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsADbgStopPointInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAEHSelectorInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAEHSelectorInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAMemIntrinsic (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAMemIntrinsic(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAMemCpyInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAMemCpyInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAMemMoveInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAMemMoveInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAMemSetInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAMemSetInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsACmpInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsACmpInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFCmpInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFCmpInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAICmpInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAICmpInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAExtractElementInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAExtractElementInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAGetElementPtrInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAGetElementPtrInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAInsertElementInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAInsertElementInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAInsertValueInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAInsertValueInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAPHINode (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAPHINode(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsASelectInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsASelectInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAShuffleVectorInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAShuffleVectorInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAStoreInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAStoreInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsATerminatorInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsATerminatorInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsABranchInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsABranchInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAInvokeInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAInvokeInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAReturnInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAReturnInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsASwitchInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsASwitchInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAUnreachableInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAUnreachableInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAUnwindInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAUnwindInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAUnaryInstruction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAUnaryInstruction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAAllocationInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAAllocationInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAAllocaInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAAllocaInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAMallocInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAMallocInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsACastInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsACastInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsABitCastInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsABitCastInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFPExtInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFPExtInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFPToSIInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFPToSIInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFPToUIInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFPToUIInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFPTruncInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFPTruncInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAIntToPtrInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAIntToPtrInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAPtrToIntInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAPtrToIntInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsASExtInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsASExtInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsASIToFPInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsASIToFPInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsATruncInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsATruncInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAUIToFPInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAUIToFPInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAZExtInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAZExtInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAExtractValueInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAExtractValueInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAFreeInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAFreeInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsALoadInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsALoadInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIsAVAArgInst (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMIsAVAArgInst(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstNull (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMValueRef)LLVMConstNull(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstAllOnes (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMValueRef)LLVMConstAllOnes(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetUndef (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetUndef(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsConstant (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsConstant(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsNull (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsNull(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsUndef (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsUndef(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstPointerNull (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMValueRef)LLVMConstPointerNull(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstInt (
- void * jarg1
- ,
-
- unsigned long long jarg2
- ,
-
- int jarg3
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- unsigned long long arg2 ;
- int arg3 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (unsigned long long) jarg2;
-
-
-
- arg3 = (int) jarg3;
-
-
- result = (LLVMValueRef)LLVMConstInt(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstReal (
- void * jarg1
- ,
-
- double jarg2
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- double arg2 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
-
- arg2 = (double) jarg2;
-
-
- result = (LLVMValueRef)LLVMConstReal(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstRealOfString (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = jarg2;
-
- result = (LLVMValueRef)LLVMConstRealOfString(arg1,(char const *)arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstString (
- char * jarg1
- ,
-
- unsigned int jarg2
- ,
-
- int jarg3
- )
-{
- void * jresult ;
- char *arg1 = (char *) 0 ;
- unsigned int arg2 ;
- int arg3 ;
- LLVMValueRef result;
-
- arg1 = jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
-
- arg3 = (int) jarg3;
-
-
- result = (LLVMValueRef)LLVMConstString((char const *)arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstArray (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMValueRef *arg2 = (LLVMValueRef *) 0 ;
- unsigned int arg3 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = (LLVMValueRef *)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- result = (LLVMValueRef)LLVMConstArray(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstStruct (
- void * jarg1
- ,
-
- unsigned int jarg2
- ,
-
- int jarg3
- )
-{
- void * jresult ;
- LLVMValueRef *arg1 = (LLVMValueRef *) 0 ;
- unsigned int arg2 ;
- int arg3 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef *)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
-
- arg3 = (int) jarg3;
-
-
- result = (LLVMValueRef)LLVMConstStruct(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstVector (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMValueRef *arg1 = (LLVMValueRef *) 0 ;
- unsigned int arg2 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef *)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMValueRef)LLVMConstVector(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMSizeOf (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- result = (LLVMValueRef)LLVMSizeOf(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstNeg (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMConstNeg(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstNot (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMConstNot(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstAdd (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstAdd(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstSub (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstSub(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstMul (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstMul(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstUDiv (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstUDiv(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstSDiv (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstSDiv(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFDiv (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstFDiv(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstURem (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstURem(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstSRem (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstSRem(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFRem (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstFRem(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstAnd (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstAnd(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstOr (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstOr(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstXor (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstXor(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstICmp (
- int jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMIntPredicate arg1 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMIntPredicate) jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- result = (LLVMValueRef)LLVMConstICmp(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFCmp (
- int jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMRealPredicate arg1 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMRealPredicate) jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- result = (LLVMValueRef)LLVMConstFCmp(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstShl (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstShl(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstLShr (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstLShr(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstAShr (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstAShr(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstGEP (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef *arg2 = (LLVMValueRef *) 0 ;
- unsigned int arg3 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef *)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- result = (LLVMValueRef)LLVMConstGEP(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstTrunc (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstTrunc(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstSExt (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstSExt(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstZExt (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstZExt(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFPTrunc (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstFPTrunc(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFPExt (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstFPExt(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstUIToFP (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstUIToFP(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstSIToFP (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstSIToFP(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFPToUI (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstFPToUI(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstFPToSI (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstFPToSI(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstPtrToInt (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstPtrToInt(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstIntToPtr (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstIntToPtr(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstBitCast (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstBitCast(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstSelect (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- result = (LLVMValueRef)LLVMConstSelect(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstExtractElement (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMConstExtractElement(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstInsertElement (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- result = (LLVMValueRef)LLVMConstInsertElement(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstShuffleVector (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- result = (LLVMValueRef)LLVMConstShuffleVector(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstExtractValue (
- void * jarg1
- ,
-
- unsigned int* jarg2
- ,
-
- unsigned int jarg3
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int *arg2 = (unsigned int *) 0 ;
- unsigned int arg3 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int *) jarg2;
-
-
-
- arg3 = (unsigned int) jarg3;
-
-
- result = (LLVMValueRef)LLVMConstExtractValue(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstInsertValue (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int* jarg3
- ,
-
- unsigned int jarg4
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- unsigned int *arg3 = (unsigned int *) 0 ;
- unsigned int arg4 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
-
- arg3 = (unsigned int *) jarg3;
-
-
-
- arg4 = (unsigned int) jarg4;
-
-
- result = (LLVMValueRef)LLVMConstInsertValue(arg1,arg2,arg3,arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMConstInlineAsm (
- void * jarg1
- ,
-
- char * jarg2
- ,
-
- char * jarg3
- ,
-
- int jarg4
- )
-{
- void * jresult ;
- LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- int arg4 ;
- LLVMValueRef result;
-
- arg1 = (LLVMTypeRef)jarg1;
-
- arg2 = jarg2;
-
- arg3 = jarg3;
-
-
- arg4 = (int) jarg4;
-
-
- result = (LLVMValueRef)LLVMConstInlineAsm(arg1,(char const *)arg2,(char const *)arg3,arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetGlobalParent (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMModuleRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMModuleRef)LLVMGetGlobalParent(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsDeclaration (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsDeclaration(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMGetLinkage (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMLinkage result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMLinkage)LLVMGetLinkage(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetLinkage (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMLinkage arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMLinkage) jarg2;
-
- LLVMSetLinkage(arg1,arg2);
-
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_LLVMGetSection (
- void * jarg1
- )
-{
- char * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *result = 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (char *)LLVMGetSection(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetSection (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = jarg2;
-
- LLVMSetSection(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMGetVisibility (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMVisibility result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMVisibility)LLVMGetVisibility(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetVisibility (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMVisibility arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMVisibility) jarg2;
-
- LLVMSetVisibility(arg1,arg2);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetAlignment (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMGetAlignment(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetAlignment (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- LLVMSetAlignment(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMAddGlobal (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMAddGlobal(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNamedGlobal (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- result = (LLVMValueRef)LLVMGetNamedGlobal(arg1,(char const *)arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetFirstGlobal (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetFirstGlobal(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetLastGlobal (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetLastGlobal(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNextGlobal (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetNextGlobal(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetPreviousGlobal (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetPreviousGlobal(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDeleteGlobal (
- void * jarg1
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- LLVMDeleteGlobal(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetInitializer (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetInitializer(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetInitializer (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- LLVMSetInitializer(arg1,arg2);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsThreadLocal (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsThreadLocal(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetThreadLocal (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (int) jarg2;
-
-
- LLVMSetThreadLocal(arg1,arg2);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsGlobalConstant (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsGlobalConstant(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetGlobalConstant (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (int) jarg2;
-
-
- LLVMSetGlobalConstant(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMAddAlias (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMAddAlias(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMAddFunction (
- void * jarg1
- ,
-
- char * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- result = (LLVMValueRef)LLVMAddFunction(arg1,(char const *)arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNamedFunction (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- arg2 = jarg2;
-
- result = (LLVMValueRef)LLVMGetNamedFunction(arg1,(char const *)arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetFirstFunction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetFirstFunction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetLastFunction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetLastFunction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNextFunction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetNextFunction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetPreviousFunction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetPreviousFunction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDeleteFunction (
- void * jarg1
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- LLVMDeleteFunction(arg1);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetIntrinsicID (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMGetIntrinsicID(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetFunctionCallConv (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMGetFunctionCallConv(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetFunctionCallConv (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- LLVMSetFunctionCallConv(arg1,arg2);
-
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_LLVMGetGC (
- void * jarg1
- )
-{
- char * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *result = 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (char *)LLVMGetGC(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetGC (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = jarg2;
-
- LLVMSetGC(arg1,(char const *)arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddFunctionAttr (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMAttribute arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMAttribute) jarg2;
-
- LLVMAddFunctionAttr(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMRemoveFunctionAttr (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMAttribute arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMAttribute) jarg2;
-
- LLVMRemoveFunctionAttr(arg1,arg2);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMCountParams (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMCountParams(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMGetParams (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef *arg2 = (LLVMValueRef *) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef *)jarg2;
-
- LLVMGetParams(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetParam (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMValueRef)LLVMGetParam(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetParamParent (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetParamParent(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetFirstParam (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetFirstParam(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetLastParam (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetLastParam(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNextParam (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetNextParam(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetPreviousParam (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetPreviousParam(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddAttribute (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMAttribute arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMAttribute) jarg2;
-
- LLVMAddAttribute(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMRemoveAttribute (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMAttribute arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMAttribute) jarg2;
-
- LLVMRemoveAttribute(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetParamAlignment (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- LLVMSetParamAlignment(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBasicBlockAsValue (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- result = (LLVMValueRef)LLVMBasicBlockAsValue(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMValueIsBasicBlock (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMValueIsBasicBlock(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMValueAsBasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMValueAsBasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetBasicBlockParent (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetBasicBlockParent(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMCountBasicBlocks (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMCountBasicBlocks(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMGetBasicBlocks (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef *arg2 = (LLVMBasicBlockRef *) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMBasicBlockRef *)jarg2;
-
- LLVMGetBasicBlocks(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetFirstBasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetFirstBasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetLastBasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetLastBasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNextBasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetNextBasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetPreviousBasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetPreviousBasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetEntryBasicBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetEntryBasicBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMAppendBasicBlock (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = jarg2;
-
- result = (LLVMBasicBlockRef)LLVMAppendBasicBlock(arg1,(char const *)arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMInsertBasicBlock (
- void * jarg1
- ,
-
- char * jarg2
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- char *arg2 = (char *) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- arg2 = jarg2;
-
- result = (LLVMBasicBlockRef)LLVMInsertBasicBlock(arg1,(char const *)arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDeleteBasicBlock (
- void * jarg1
- )
-{
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- LLVMDeleteBasicBlock(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetInstructionParent (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetInstructionParent(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetFirstInstruction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetFirstInstruction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetLastInstruction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBasicBlockRef arg1 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBasicBlockRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetLastInstruction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetNextInstruction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetNextInstruction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetPreviousInstruction (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (LLVMValueRef)LLVMGetPreviousInstruction(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetInstructionCallConv (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- LLVMSetInstructionCallConv(arg1,arg2);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMGetInstructionCallConv (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMGetInstructionCallConv(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddInstrAttribute (
- void * jarg1
- ,
-
- unsigned int jarg2
- ,
-
- int jarg3
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
- LLVMAttribute arg3 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- arg3 = (LLVMAttribute) jarg3;
-
- LLVMAddInstrAttribute(arg1,arg2,arg3);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMRemoveInstrAttribute (
- void * jarg1
- ,
-
- unsigned int jarg2
- ,
-
- int jarg3
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
- LLVMAttribute arg3 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- arg3 = (LLVMAttribute) jarg3;
-
- LLVMRemoveInstrAttribute(arg1,arg2,arg3);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetInstrParamAlignment (
- void * jarg1
- ,
-
- unsigned int jarg2
- ,
-
- unsigned int jarg3
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
- unsigned int arg3 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
-
- arg3 = (unsigned int) jarg3;
-
-
- LLVMSetInstrParamAlignment(arg1,arg2,arg3);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMIsTailCall (
- void * jarg1
- )
-{
- int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (int)LLVMIsTailCall(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMSetTailCall (
- void * jarg1
- ,
-
- int jarg2
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- int arg2 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (int) jarg2;
-
-
- LLVMSetTailCall(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddIncoming (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- unsigned int jarg4
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef *arg2 = (LLVMValueRef *) 0 ;
- LLVMBasicBlockRef *arg3 = (LLVMBasicBlockRef *) 0 ;
- unsigned int arg4 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef *)jarg2;
-
- arg3 = (LLVMBasicBlockRef *)jarg3;
-
-
- arg4 = (unsigned int) jarg4;
-
-
- LLVMAddIncoming(arg1,arg2,arg3,arg4);
-
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMCountIncoming (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMValueRef)jarg1;
-
- result = (unsigned int)LLVMCountIncoming(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetIncomingValue (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
- LLVMValueRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMValueRef)LLVMGetIncomingValue(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetIncomingBlock (
- void * jarg1
- ,
-
- unsigned int jarg2
- )
-{
- void * jresult ;
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- unsigned int arg2 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMValueRef)jarg1;
-
-
- arg2 = (unsigned int) jarg2;
-
-
- result = (LLVMBasicBlockRef)LLVMGetIncomingBlock(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateBuilder (
- )
-{
- void * jresult ;
- LLVMBuilderRef result;
-
- result = (LLVMBuilderRef)LLVMCreateBuilder();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMPositionBuilder (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMBasicBlockRef arg2 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMBasicBlockRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- LLVMPositionBuilder(arg1,arg2,arg3);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMPositionBuilderBefore (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- LLVMPositionBuilderBefore(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMPositionBuilderAtEnd (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMBasicBlockRef arg2 = (LLVMBasicBlockRef) 0 ;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMBasicBlockRef)jarg2;
-
- LLVMPositionBuilderAtEnd(arg1,arg2);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMGetInsertBlock (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMBasicBlockRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- result = (LLVMBasicBlockRef)LLVMGetInsertBlock(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMClearInsertionPosition (
- void * jarg1
- )
-{
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- LLVMClearInsertionPosition(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMInsertIntoBuilder (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- LLVMInsertIntoBuilder(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeBuilder (
- void * jarg1
- )
-{
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- LLVMDisposeBuilder(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildRetVoid (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- result = (LLVMValueRef)LLVMBuildRetVoid(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildRet (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMBuildRet(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildBr (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMBasicBlockRef arg2 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMBasicBlockRef)jarg2;
-
- result = (LLVMValueRef)LLVMBuildBr(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildCondBr (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef arg3 = (LLVMBasicBlockRef) 0 ;
- LLVMBasicBlockRef arg4 = (LLVMBasicBlockRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMBasicBlockRef)jarg3;
-
- arg4 = (LLVMBasicBlockRef)jarg4;
-
- result = (LLVMValueRef)LLVMBuildCondBr(arg1,arg2,arg3,arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSwitch (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- unsigned int jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef arg3 = (LLVMBasicBlockRef) 0 ;
- unsigned int arg4 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMBasicBlockRef)jarg3;
-
-
- arg4 = (unsigned int) jarg4;
-
-
- result = (LLVMValueRef)LLVMBuildSwitch(arg1,arg2,arg3,arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildInvoke (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- unsigned int jarg4
- ,
-
- void * jarg5
- ,
-
- void * jarg6
- ,
-
- char * jarg7
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef *arg3 = (LLVMValueRef *) 0 ;
- unsigned int arg4 ;
- LLVMBasicBlockRef arg5 = (LLVMBasicBlockRef) 0 ;
- LLVMBasicBlockRef arg6 = (LLVMBasicBlockRef) 0 ;
- char *arg7 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef *)jarg3;
-
-
- arg4 = (unsigned int) jarg4;
-
-
- arg5 = (LLVMBasicBlockRef)jarg5;
-
- arg6 = (LLVMBasicBlockRef)jarg6;
-
- arg7 = jarg7;
-
- result = (LLVMValueRef)LLVMBuildInvoke(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildUnwind (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- result = (LLVMValueRef)LLVMBuildUnwind(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildUnreachable (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- result = (LLVMValueRef)LLVMBuildUnreachable(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddCase (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- LLVMValueRef arg1 = (LLVMValueRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMBasicBlockRef arg3 = (LLVMBasicBlockRef) 0 ;
-
- arg1 = (LLVMValueRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMBasicBlockRef)jarg3;
-
- LLVMAddCase(arg1,arg2,arg3);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildAdd (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildAdd(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSub (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildSub(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildMul (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildMul(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildUDiv (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildUDiv(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSDiv (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildSDiv(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFDiv (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildFDiv(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildURem (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildURem(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSRem (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildSRem(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFRem (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildFRem(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildShl (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildShl(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildLShr (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildLShr(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildAShr (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildAShr(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildAnd (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildAnd(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildOr (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildOr(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildXor (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildXor(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildNeg (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMBuildNeg(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildNot (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMBuildNot(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildMalloc (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMBuildMalloc(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildArrayMalloc (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildArrayMalloc(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildAlloca (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMBuildAlloca(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildArrayAlloca (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildArrayAlloca(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFree (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (LLVMValueRef)LLVMBuildFree(arg1,arg2);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildLoad (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMBuildLoad(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildStore (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- result = (LLVMValueRef)LLVMBuildStore(arg1,arg2,arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildGEP (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- unsigned int jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef *arg3 = (LLVMValueRef *) 0 ;
- unsigned int arg4 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef *)jarg3;
-
-
- arg4 = (unsigned int) jarg4;
-
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildGEP(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildTrunc (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildTrunc(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildZExt (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildZExt(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSExt (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildSExt(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFPToUI (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildFPToUI(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFPToSI (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildFPToSI(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildUIToFP (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildUIToFP(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSIToFP (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildSIToFP(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFPTrunc (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildFPTrunc(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFPExt (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildFPExt(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildPtrToInt (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildPtrToInt(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildIntToPtr (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildIntToPtr(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildBitCast (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildBitCast(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildICmp (
- void * jarg1
- ,
-
- int jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMIntPredicate arg2 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef arg4 = (LLVMValueRef) 0 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMIntPredicate) jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = (LLVMValueRef)jarg4;
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildICmp(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildFCmp (
- void * jarg1
- ,
-
- int jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMRealPredicate arg2 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef arg4 = (LLVMValueRef) 0 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMRealPredicate) jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = (LLVMValueRef)jarg4;
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildFCmp(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildPhi (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- char * jarg3
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- char *arg3 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- arg3 = jarg3;
-
- result = (LLVMValueRef)LLVMBuildPhi(arg1,arg2,(char const *)arg3);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildCall (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- unsigned int jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef *arg3 = (LLVMValueRef *) 0 ;
- unsigned int arg4 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef *)jarg3;
-
-
- arg4 = (unsigned int) jarg4;
-
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildCall(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildSelect (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef arg4 = (LLVMValueRef) 0 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = (LLVMValueRef)jarg4;
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildSelect(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildVAArg (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMTypeRef arg3 = (LLVMTypeRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMTypeRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildVAArg(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildExtractElement (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildExtractElement(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildInsertElement (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef arg4 = (LLVMValueRef) 0 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = (LLVMValueRef)jarg4;
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildInsertElement(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildShuffleVector (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- void * jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- LLVMValueRef arg4 = (LLVMValueRef) 0 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
- arg4 = (LLVMValueRef)jarg4;
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildShuffleVector(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildExtractValue (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- ,
-
- char * jarg4
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- unsigned int arg3 ;
- char *arg4 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- arg4 = jarg4;
-
- result = (LLVMValueRef)LLVMBuildExtractValue(arg1,arg2,arg3,(char const *)arg4);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMBuildInsertValue (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- ,
-
- unsigned int jarg4
- ,
-
- char * jarg5
- )
-{
- void * jresult ;
- LLVMBuilderRef arg1 = (LLVMBuilderRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- LLVMValueRef arg3 = (LLVMValueRef) 0 ;
- unsigned int arg4 ;
- char *arg5 = (char *) 0 ;
- LLVMValueRef result;
-
- arg1 = (LLVMBuilderRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- arg3 = (LLVMValueRef)jarg3;
-
-
- arg4 = (unsigned int) jarg4;
-
-
- arg5 = jarg5;
-
- result = (LLVMValueRef)LLVMBuildInsertValue(arg1,arg2,arg3,arg4,(char const *)arg5);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateModuleProviderForExistingModule (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMModuleRef arg1 = (LLVMModuleRef) 0 ;
- LLVMModuleProviderRef result;
-
- arg1 = (LLVMModuleRef)jarg1;
-
- result = (LLVMModuleProviderRef)LLVMCreateModuleProviderForExistingModule(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeModuleProvider (
- void * jarg1
- )
-{
- LLVMModuleProviderRef arg1 = (LLVMModuleProviderRef) 0 ;
-
- arg1 = (LLVMModuleProviderRef)jarg1;
-
- LLVMDisposeModuleProvider(arg1);
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMCreateMemoryBufferWithContentsOfFile (
- char * jarg1
- ,
-
- void * jarg2
- ,
-
- void * jarg3
- )
-{
- int jresult ;
- char *arg1 = (char *) 0 ;
- LLVMMemoryBufferRef *arg2 = (LLVMMemoryBufferRef *) 0 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- arg1 = jarg1;
-
- arg2 = (LLVMMemoryBufferRef *)jarg2;
-
- arg3 = (char **)jarg3;
-
- result = (int)LLVMCreateMemoryBufferWithContentsOfFile((char const *)arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMCreateMemoryBufferWithSTDIN (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- int jresult ;
- LLVMMemoryBufferRef *arg1 = (LLVMMemoryBufferRef *) 0 ;
- char **arg2 = (char **) 0 ;
- int result;
-
- arg1 = (LLVMMemoryBufferRef *)jarg1;
-
- arg2 = (char **)jarg2;
-
- result = (int)LLVMCreateMemoryBufferWithSTDIN(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeMemoryBuffer (
- void * jarg1
- )
-{
- LLVMMemoryBufferRef arg1 = (LLVMMemoryBufferRef) 0 ;
-
- arg1 = (LLVMMemoryBufferRef)jarg1;
-
- LLVMDisposeMemoryBuffer(arg1);
-
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreatePassManager (
- )
-{
- void * jresult ;
- LLVMPassManagerRef result;
-
- result = (LLVMPassManagerRef)LLVMCreatePassManager();
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateFunctionPassManager (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMModuleProviderRef arg1 = (LLVMModuleProviderRef) 0 ;
- LLVMPassManagerRef result;
-
- arg1 = (LLVMModuleProviderRef)jarg1;
-
- result = (LLVMPassManagerRef)LLVMCreateFunctionPassManager(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMRunPassManager (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- int jresult ;
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
- LLVMModuleRef arg2 = (LLVMModuleRef) 0 ;
- int result;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- arg2 = (LLVMModuleRef)jarg2;
-
- result = (int)LLVMRunPassManager(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMInitializeFunctionPassManager (
- void * jarg1
- )
-{
- int jresult ;
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
- int result;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- result = (int)LLVMInitializeFunctionPassManager(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMRunFunctionPassManager (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- int jresult ;
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- int result;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (int)LLVMRunFunctionPassManager(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMFinalizeFunctionPassManager (
- void * jarg1
- )
-{
- int jresult ;
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
- int result;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- result = (int)LLVMFinalizeFunctionPassManager(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposePassManager (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMDisposePassManager(arg1);
-
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/target/llvm_target-binding.ads b/bindings/ada/target/llvm_target-binding.ads
deleted file mode 100644
index 61201c8d17532..0000000000000
--- a/bindings/ada/target/llvm_target-binding.ads
+++ /dev/null
@@ -1,138 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with llvm;
-with Interfaces.C.Strings;
-
-
-package LLVM_Target.Binding is
-
- LLVMBigEndian : constant := 0;
- LLVMLittleEndian : constant := 1;
-
- procedure LLVMInitializeAllTargets;
-
- function LLVMInitializeNativeTarget return Interfaces.C.int;
-
- function LLVMCreateTargetData
- (StringRep : in Interfaces.C.Strings.chars_ptr)
- return LLVM_Target.LLVMTargetDataRef;
-
- procedure LLVMAddTargetData
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMPassManagerRef);
-
- function LLVMCopyStringRepOfTargetData
- (arg_1 : in LLVM_Target.LLVMTargetDataRef)
- return Interfaces.C.Strings.chars_ptr;
-
- function LLVMByteOrder
- (arg_1 : in LLVM_Target.LLVMTargetDataRef)
- return LLVM_Target.LLVMByteOrdering;
-
- function LLVMPointerSize
- (arg_1 : in LLVM_Target.LLVMTargetDataRef)
- return Interfaces.C.unsigned;
-
- function LLVMIntPtrType
- (arg_1 : in LLVM_Target.LLVMTargetDataRef)
- return llvm.LLVMTypeRef;
-
- function LLVMSizeOfTypeInBits
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMTypeRef)
- return Interfaces.C.Extensions.unsigned_long_long;
-
- function LLVMStoreSizeOfType
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMTypeRef)
- return Interfaces.C.Extensions.unsigned_long_long;
-
- function LLVMABISizeOfType
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMTypeRef)
- return Interfaces.C.Extensions.unsigned_long_long;
-
- function LLVMABIAlignmentOfType
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMCallFrameAlignmentOfType
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMPreferredAlignmentOfType
- (arg_2_1 : in LLVM_Target.LLVMTargetDataRef;
- arg_2_2 : in llvm.LLVMTypeRef)
- return Interfaces.C.unsigned;
-
- function LLVMPreferredAlignmentOfGlobal
- (arg_1 : in LLVM_Target.LLVMTargetDataRef;
- GlobalVar : in llvm.LLVMValueRef)
- return Interfaces.C.unsigned;
-
- function LLVMElementAtOffset
- (arg_1 : in LLVM_Target.LLVMTargetDataRef;
- StructTy : in llvm.LLVMTypeRef;
- Offset : in Interfaces.C.Extensions.unsigned_long_long)
- return Interfaces.C.unsigned;
-
- function LLVMOffsetOfElement
- (arg_1 : in LLVM_Target.LLVMTargetDataRef;
- StructTy : in llvm.LLVMTypeRef;
- Element : in Interfaces.C.unsigned)
- return Interfaces.C.Extensions.unsigned_long_long;
-
- procedure LLVMInvalidateStructLayout
- (arg_1 : in LLVM_Target.LLVMTargetDataRef;
- StructTy : in llvm.LLVMTypeRef);
-
- procedure LLVMDisposeTargetData
- (arg_1 : in LLVM_Target.LLVMTargetDataRef);
-
-private
-
- pragma Import
- (C,
- LLVMInitializeAllTargets,
- "Ada_LLVMInitializeAllTargets");
- pragma Import
- (C,
- LLVMInitializeNativeTarget,
- "Ada_LLVMInitializeNativeTarget");
- pragma Import (C, LLVMCreateTargetData, "Ada_LLVMCreateTargetData");
- pragma Import (C, LLVMAddTargetData, "Ada_LLVMAddTargetData");
- pragma Import
- (C,
- LLVMCopyStringRepOfTargetData,
- "Ada_LLVMCopyStringRepOfTargetData");
- pragma Import (C, LLVMByteOrder, "Ada_LLVMByteOrder");
- pragma Import (C, LLVMPointerSize, "Ada_LLVMPointerSize");
- pragma Import (C, LLVMIntPtrType, "Ada_LLVMIntPtrType");
- pragma Import (C, LLVMSizeOfTypeInBits, "Ada_LLVMSizeOfTypeInBits");
- pragma Import (C, LLVMStoreSizeOfType, "Ada_LLVMStoreSizeOfType");
- pragma Import (C, LLVMABISizeOfType, "Ada_LLVMABISizeOfType");
- pragma Import (C, LLVMABIAlignmentOfType, "Ada_LLVMABIAlignmentOfType");
- pragma Import
- (C,
- LLVMCallFrameAlignmentOfType,
- "Ada_LLVMCallFrameAlignmentOfType");
- pragma Import
- (C,
- LLVMPreferredAlignmentOfType,
- "Ada_LLVMPreferredAlignmentOfType");
- pragma Import
- (C,
- LLVMPreferredAlignmentOfGlobal,
- "Ada_LLVMPreferredAlignmentOfGlobal");
- pragma Import (C, LLVMElementAtOffset, "Ada_LLVMElementAtOffset");
- pragma Import (C, LLVMOffsetOfElement, "Ada_LLVMOffsetOfElement");
- pragma Import
- (C,
- LLVMInvalidateStructLayout,
- "Ada_LLVMInvalidateStructLayout");
- pragma Import (C, LLVMDisposeTargetData, "Ada_LLVMDisposeTargetData");
-
-end LLVM_Target.Binding;
diff --git a/bindings/ada/target/llvm_target.ads b/bindings/ada/target/llvm_target.ads
deleted file mode 100644
index 11cb05d55b35d..0000000000000
--- a/bindings/ada/target/llvm_target.ads
+++ /dev/null
@@ -1,72 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with Interfaces.C.Extensions;
-
-
-package LLVM_Target is
-
- -- LLVMOpaqueTargetData
- --
- type LLVMOpaqueTargetData is new
- Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMOpaqueTargetData_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Target.LLVMOpaqueTargetData;
-
- type LLVMOpaqueTargetData_view is access all
- LLVM_Target.LLVMOpaqueTargetData;
-
- -- LLVMTargetDataRef
- --
- type LLVMTargetDataRef is access all LLVM_Target.LLVMOpaqueTargetData;
-
- type LLVMTargetDataRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Target.LLVMTargetDataRef;
-
- type LLVMTargetDataRef_view is access all LLVM_Target.LLVMTargetDataRef;
-
- -- LLVMStructLayout
- --
- type LLVMStructLayout is new Interfaces.C.Extensions.opaque_structure_def;
-
- type LLVMStructLayout_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Target.LLVMStructLayout;
-
- type LLVMStructLayout_view is access all LLVM_Target.LLVMStructLayout;
-
- -- LLVMStructLayoutRef
- --
- type LLVMStructLayoutRef is access all LLVM_Target.LLVMStructLayout;
-
- type LLVMStructLayoutRef_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Target.LLVMStructLayoutRef;
-
- type LLVMStructLayoutRef_view is access all LLVM_Target.LLVMStructLayoutRef;
-
- -- TargetData
- --
- type TargetData is new Interfaces.C.Extensions.incomplete_class_def;
-
- type TargetData_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Target.TargetData;
-
- type TargetData_view is access all LLVM_Target.TargetData;
-
- -- LLVMByteOrdering
- --
- type LLVMByteOrdering is new Interfaces.C.int;
-
- type LLVMByteOrdering_array is
- array (Interfaces.C.size_t range <>)
- of aliased LLVM_Target.LLVMByteOrdering;
-
- type LLVMByteOrdering_view is access all LLVM_Target.LLVMByteOrdering;
-
-
-end LLVM_Target;
diff --git a/bindings/ada/target/llvm_target_wrap.cxx b/bindings/ada/target/llvm_target_wrap.cxx
deleted file mode 100644
index 16aca8a4379a8..0000000000000
--- a/bindings/ada/target/llvm_target_wrap.cxx
+++ /dev/null
@@ -1,720 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_Target (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_Target(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-#include "llvm-c/Target.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport void SWIGSTDCALL Ada_LLVMInitializeAllTargets (
- )
-{
- LLVMInitializeAllTargets();
-
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMInitializeNativeTarget (
- )
-{
- int jresult ;
- int result;
-
- result = (int)LLVMInitializeNativeTarget();
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMCreateTargetData (
- char * jarg1
- )
-{
- void * jresult ;
- char *arg1 = (char *) 0 ;
- LLVMTargetDataRef result;
-
- arg1 = jarg1;
-
- result = (LLVMTargetDataRef)LLVMCreateTargetData((char const *)arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddTargetData (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMPassManagerRef arg2 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMPassManagerRef)jarg2;
-
- LLVMAddTargetData(arg1,arg2);
-
-
-}
-
-
-
-DllExport char * SWIGSTDCALL Ada_LLVMCopyStringRepOfTargetData (
- void * jarg1
- )
-{
- char * jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- char *result = 0 ;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- result = (char *)LLVMCopyStringRepOfTargetData(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport int SWIGSTDCALL Ada_LLVMByteOrder (
- void * jarg1
- )
-{
- int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMByteOrdering result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- result = (LLVMByteOrdering)LLVMByteOrder(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMPointerSize (
- void * jarg1
- )
-{
- unsigned int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- result = (unsigned int)LLVMPointerSize(arg1);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void * SWIGSTDCALL Ada_LLVMIntPtrType (
- void * jarg1
- )
-{
- void * jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- result = (LLVMTypeRef)LLVMIntPtrType(arg1);
- jresult = (void *) result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned long long SWIGSTDCALL Ada_LLVMSizeOfTypeInBits (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned long long jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned long long result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (unsigned long long)LLVMSizeOfTypeInBits(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned long long SWIGSTDCALL Ada_LLVMStoreSizeOfType (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned long long jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned long long result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (unsigned long long)LLVMStoreSizeOfType(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned long long SWIGSTDCALL Ada_LLVMABISizeOfType (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned long long jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned long long result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (unsigned long long)LLVMABISizeOfType(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMABIAlignmentOfType (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (unsigned int)LLVMABIAlignmentOfType(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMCallFrameAlignmentOfType (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (unsigned int)LLVMCallFrameAlignmentOfType(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMPreferredAlignmentOfType (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- result = (unsigned int)LLVMPreferredAlignmentOfType(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMPreferredAlignmentOfGlobal (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- unsigned int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMValueRef arg2 = (LLVMValueRef) 0 ;
- unsigned int result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMValueRef)jarg2;
-
- result = (unsigned int)LLVMPreferredAlignmentOfGlobal(arg1,arg2);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned int SWIGSTDCALL Ada_LLVMElementAtOffset (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned long long jarg3
- )
-{
- unsigned int jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned long long arg3 ;
- unsigned int result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
-
- arg3 = (unsigned long long) jarg3;
-
-
- result = (unsigned int)LLVMElementAtOffset(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport unsigned long long SWIGSTDCALL Ada_LLVMOffsetOfElement (
- void * jarg1
- ,
-
- void * jarg2
- ,
-
- unsigned int jarg3
- )
-{
- unsigned long long jresult ;
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
- unsigned int arg3 ;
- unsigned long long result;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
-
- arg3 = (unsigned int) jarg3;
-
-
- result = (unsigned long long)LLVMOffsetOfElement(arg1,arg2,arg3);
- jresult = result;
-
-
-
- return jresult;
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMInvalidateStructLayout (
- void * jarg1
- ,
-
- void * jarg2
- )
-{
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
- LLVMTypeRef arg2 = (LLVMTypeRef) 0 ;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- arg2 = (LLVMTypeRef)jarg2;
-
- LLVMInvalidateStructLayout(arg1,arg2);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMDisposeTargetData (
- void * jarg1
- )
-{
- LLVMTargetDataRef arg1 = (LLVMTargetDataRef) 0 ;
-
- arg1 = (LLVMTargetDataRef)jarg1;
-
- LLVMDisposeTargetData(arg1);
-
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ada/transforms/llvm_transforms-binding.ads b/bindings/ada/transforms/llvm_transforms-binding.ads
deleted file mode 100644
index 2254b6eec2c3a..0000000000000
--- a/bindings/ada/transforms/llvm_transforms-binding.ads
+++ /dev/null
@@ -1,206 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-with llvm;
-
-
-package LLVM_Transforms.Binding is
-
- procedure LLVMAddArgumentPromotionPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddConstantMergePass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddDeadArgEliminationPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddDeadTypeEliminationPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddFunctionAttrsPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddFunctionInliningPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddGlobalDCEPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddGlobalOptimizerPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddIPConstantPropagationPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLowerSetJmpPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddPruneEHPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddRaiseAllocationsPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddStripDeadPrototypesPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddStripSymbolsPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddAggressiveDCEPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddCFGSimplificationPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddCondPropagationPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddDeadStoreEliminationPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddGVNPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddIndVarSimplifyPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddInstructionCombiningPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddJumpThreadingPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLICMPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLoopDeletionPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLoopIndexSplitPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLoopRotatePass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLoopUnrollPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddLoopUnswitchPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddMemCpyOptPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddPromoteMemoryToRegisterPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddReassociatePass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddSCCPPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddScalarReplAggregatesPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddSimplifyLibCallsPass (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddTailCallEliminationPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddConstantPropagationPass
- (PM : in llvm.LLVMPassManagerRef);
-
- procedure LLVMAddDemoteMemoryToRegisterPass
- (PM : in llvm.LLVMPassManagerRef);
-
-private
-
- pragma Import
- (C,
- LLVMAddArgumentPromotionPass,
- "Ada_LLVMAddArgumentPromotionPass");
- pragma Import
- (C,
- LLVMAddConstantMergePass,
- "Ada_LLVMAddConstantMergePass");
- pragma Import
- (C,
- LLVMAddDeadArgEliminationPass,
- "Ada_LLVMAddDeadArgEliminationPass");
- pragma Import
- (C,
- LLVMAddDeadTypeEliminationPass,
- "Ada_LLVMAddDeadTypeEliminationPass");
- pragma Import
- (C,
- LLVMAddFunctionAttrsPass,
- "Ada_LLVMAddFunctionAttrsPass");
- pragma Import
- (C,
- LLVMAddFunctionInliningPass,
- "Ada_LLVMAddFunctionInliningPass");
- pragma Import (C, LLVMAddGlobalDCEPass, "Ada_LLVMAddGlobalDCEPass");
- pragma Import
- (C,
- LLVMAddGlobalOptimizerPass,
- "Ada_LLVMAddGlobalOptimizerPass");
- pragma Import
- (C,
- LLVMAddIPConstantPropagationPass,
- "Ada_LLVMAddIPConstantPropagationPass");
- pragma Import (C, LLVMAddLowerSetJmpPass, "Ada_LLVMAddLowerSetJmpPass");
- pragma Import (C, LLVMAddPruneEHPass, "Ada_LLVMAddPruneEHPass");
- pragma Import
- (C,
- LLVMAddRaiseAllocationsPass,
- "Ada_LLVMAddRaiseAllocationsPass");
- pragma Import
- (C,
- LLVMAddStripDeadPrototypesPass,
- "Ada_LLVMAddStripDeadPrototypesPass");
- pragma Import (C, LLVMAddStripSymbolsPass, "Ada_LLVMAddStripSymbolsPass");
- pragma Import
- (C,
- LLVMAddAggressiveDCEPass,
- "Ada_LLVMAddAggressiveDCEPass");
- pragma Import
- (C,
- LLVMAddCFGSimplificationPass,
- "Ada_LLVMAddCFGSimplificationPass");
- pragma Import
- (C,
- LLVMAddCondPropagationPass,
- "Ada_LLVMAddCondPropagationPass");
- pragma Import
- (C,
- LLVMAddDeadStoreEliminationPass,
- "Ada_LLVMAddDeadStoreEliminationPass");
- pragma Import (C, LLVMAddGVNPass, "Ada_LLVMAddGVNPass");
- pragma Import
- (C,
- LLVMAddIndVarSimplifyPass,
- "Ada_LLVMAddIndVarSimplifyPass");
- pragma Import
- (C,
- LLVMAddInstructionCombiningPass,
- "Ada_LLVMAddInstructionCombiningPass");
- pragma Import
- (C,
- LLVMAddJumpThreadingPass,
- "Ada_LLVMAddJumpThreadingPass");
- pragma Import (C, LLVMAddLICMPass, "Ada_LLVMAddLICMPass");
- pragma Import (C, LLVMAddLoopDeletionPass, "Ada_LLVMAddLoopDeletionPass");
- pragma Import
- (C,
- LLVMAddLoopIndexSplitPass,
- "Ada_LLVMAddLoopIndexSplitPass");
- pragma Import (C, LLVMAddLoopRotatePass, "Ada_LLVMAddLoopRotatePass");
- pragma Import (C, LLVMAddLoopUnrollPass, "Ada_LLVMAddLoopUnrollPass");
- pragma Import (C, LLVMAddLoopUnswitchPass, "Ada_LLVMAddLoopUnswitchPass");
- pragma Import (C, LLVMAddMemCpyOptPass, "Ada_LLVMAddMemCpyOptPass");
- pragma Import
- (C,
- LLVMAddPromoteMemoryToRegisterPass,
- "Ada_LLVMAddPromoteMemoryToRegisterPass");
- pragma Import (C, LLVMAddReassociatePass, "Ada_LLVMAddReassociatePass");
- pragma Import (C, LLVMAddSCCPPass, "Ada_LLVMAddSCCPPass");
- pragma Import
- (C,
- LLVMAddScalarReplAggregatesPass,
- "Ada_LLVMAddScalarReplAggregatesPass");
- pragma Import
- (C,
- LLVMAddSimplifyLibCallsPass,
- "Ada_LLVMAddSimplifyLibCallsPass");
- pragma Import
- (C,
- LLVMAddTailCallEliminationPass,
- "Ada_LLVMAddTailCallEliminationPass");
- pragma Import
- (C,
- LLVMAddConstantPropagationPass,
- "Ada_LLVMAddConstantPropagationPass");
- pragma Import
- (C,
- LLVMAddDemoteMemoryToRegisterPass,
- "Ada_LLVMAddDemoteMemoryToRegisterPass");
-
-end LLVM_Transforms.Binding;
diff --git a/bindings/ada/transforms/llvm_transforms.ads b/bindings/ada/transforms/llvm_transforms.ads
deleted file mode 100644
index 4f37aafe805c6..0000000000000
--- a/bindings/ada/transforms/llvm_transforms.ads
+++ /dev/null
@@ -1,6 +0,0 @@
--- This file is generated by SWIG. Do *not* modify by hand.
---
-
-package LLVM_Transforms is
-
-end LLVM_Transforms;
diff --git a/bindings/ada/transforms/llvm_transforms_wrap.cxx b/bindings/ada/transforms/llvm_transforms_wrap.cxx
deleted file mode 100644
index 8cb04db791aa8..0000000000000
--- a/bindings/ada/transforms/llvm_transforms_wrap.cxx
+++ /dev/null
@@ -1,828 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.36
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
-};
-
-template T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include
-#include
-#include
-#if defined(_WIN32) || defined(__CYGWIN32__)
-# define DllExport __declspec( dllexport )
-# define SWIGSTDCALL __stdcall
-#else
-# define DllExport
-# define SWIGSTDCALL
-#endif
-
-
-#ifdef __cplusplus
-# include
-#endif
-
-
-
-
-/* Support for throwing Ada exceptions from C/C++ */
-
-typedef enum
-{
- SWIG_AdaException,
- SWIG_AdaOutOfMemoryException,
- SWIG_AdaIndexOutOfRangeException,
- SWIG_AdaDivideByZeroException,
- SWIG_AdaArgumentOutOfRangeException,
- SWIG_AdaNullReferenceException
-} SWIG_AdaExceptionCodes;
-
-
-typedef void (SWIGSTDCALL* SWIG_AdaExceptionCallback_t)(const char *);
-
-
-typedef struct
-{
- SWIG_AdaExceptionCodes code;
- SWIG_AdaExceptionCallback_t callback;
-}
- SWIG_AdaExceptions_t;
-
-
-static
-SWIG_AdaExceptions_t
-SWIG_ada_exceptions[] =
-{
- { SWIG_AdaException, NULL },
- { SWIG_AdaOutOfMemoryException, NULL },
- { SWIG_AdaIndexOutOfRangeException, NULL },
- { SWIG_AdaDivideByZeroException, NULL },
- { SWIG_AdaArgumentOutOfRangeException, NULL },
- { SWIG_AdaNullReferenceException, NULL }
-};
-
-
-static
-void
-SWIG_AdaThrowException (SWIG_AdaExceptionCodes code, const char *msg)
-{
- SWIG_AdaExceptionCallback_t callback = SWIG_ada_exceptions[SWIG_AdaException].callback;
- if (code >=0 && (size_t)code < sizeof(SWIG_ada_exceptions)/sizeof(SWIG_AdaExceptions_t)) {
- callback = SWIG_ada_exceptions[code].callback;
- }
- callback(msg);
-}
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_LLVM_Transforms (SWIG_AdaExceptionCallback_t systemException,
- SWIG_AdaExceptionCallback_t outOfMemory,
- SWIG_AdaExceptionCallback_t indexOutOfRange,
- SWIG_AdaExceptionCallback_t divideByZero,
- SWIG_AdaExceptionCallback_t argumentOutOfRange,
- SWIG_AdaExceptionCallback_t nullReference)
-{
- SWIG_ada_exceptions [SWIG_AdaException].callback = systemException;
- SWIG_ada_exceptions [SWIG_AdaOutOfMemoryException].callback = outOfMemory;
- SWIG_ada_exceptions [SWIG_AdaIndexOutOfRangeException].callback = indexOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaDivideByZeroException].callback = divideByZero;
- SWIG_ada_exceptions [SWIG_AdaArgumentOutOfRangeException].callback = argumentOutOfRange;
- SWIG_ada_exceptions [SWIG_AdaNullReferenceException].callback = nullReference;
-}
-
-
-/* Callback for returning strings to Ada without leaking memory */
-
-typedef char * (SWIGSTDCALL* SWIG_AdaStringHelperCallback)(const char *);
-static SWIG_AdaStringHelperCallback SWIG_ada_string_callback = NULL;
-
-
-
-/* probably obsolete ...
-#ifdef __cplusplus
-extern "C"
-#endif
-DllExport void SWIGSTDCALL SWIGRegisterStringCallback_LLVM_Transforms(SWIG_AdaStringHelperCallback callback) {
- SWIG_ada_string_callback = callback;
-}
-*/
-
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_AdaThrowException(SWIG_AdaArgumentOutOfRangeException, msg); return nullreturn; } else
-
-
-#define protected public
-#define private public
-
-#include "llvm-c/Transforms/IPO.h"
-#include "llvm-c/Transforms/Scalar.h"
-
-
-
-// struct LLVMCtxt;
-
-
-#undef protected
-#undef private
-#ifdef __cplusplus
-extern "C" {
-#endif
-DllExport void SWIGSTDCALL Ada_LLVMAddArgumentPromotionPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddArgumentPromotionPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddConstantMergePass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddConstantMergePass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddDeadArgEliminationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddDeadArgEliminationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddDeadTypeEliminationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddDeadTypeEliminationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddFunctionAttrsPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddFunctionAttrsPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddFunctionInliningPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddFunctionInliningPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddGlobalDCEPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddGlobalDCEPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddGlobalOptimizerPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddGlobalOptimizerPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddIPConstantPropagationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddIPConstantPropagationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLowerSetJmpPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLowerSetJmpPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddPruneEHPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddPruneEHPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddRaiseAllocationsPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddRaiseAllocationsPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddStripDeadPrototypesPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddStripDeadPrototypesPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddStripSymbolsPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddStripSymbolsPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddAggressiveDCEPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddAggressiveDCEPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddCFGSimplificationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddCFGSimplificationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddCondPropagationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddCondPropagationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddDeadStoreEliminationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddDeadStoreEliminationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddGVNPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddGVNPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddIndVarSimplifyPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddIndVarSimplifyPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddInstructionCombiningPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddInstructionCombiningPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddJumpThreadingPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddJumpThreadingPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLICMPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLICMPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLoopDeletionPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLoopDeletionPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLoopIndexSplitPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLoopIndexSplitPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLoopRotatePass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLoopRotatePass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLoopUnrollPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLoopUnrollPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddLoopUnswitchPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddLoopUnswitchPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddMemCpyOptPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddMemCpyOptPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddPromoteMemoryToRegisterPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddPromoteMemoryToRegisterPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddReassociatePass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddReassociatePass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddSCCPPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddSCCPPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddScalarReplAggregatesPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddScalarReplAggregatesPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddSimplifyLibCallsPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddSimplifyLibCallsPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddTailCallEliminationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddTailCallEliminationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddConstantPropagationPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddConstantPropagationPass(arg1);
-
-
-}
-
-
-
-DllExport void SWIGSTDCALL Ada_LLVMAddDemoteMemoryToRegisterPass (
- void * jarg1
- )
-{
- LLVMPassManagerRef arg1 = (LLVMPassManagerRef) 0 ;
-
- arg1 = (LLVMPassManagerRef)jarg1;
-
- LLVMAddDemoteMemoryToRegisterPass(arg1);
-
-
-}
-
-
-
-#ifdef __cplusplus
-}
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
index 1cff422c28d40..40ecc9c08e091 100644
--- a/bindings/ocaml/Makefile.ocaml
+++ b/bindings/ocaml/Makefile.ocaml
@@ -73,8 +73,13 @@ Archive.EXE := $(strip $(OCAMLC) -cc $(CXX) $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG:%=%.
endif
# Source files
+ifndef OcamlSources1
OcamlSources1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.ml))
+endif
+
+ifndef OcamlHeaders1
OcamlHeaders1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.mli))
+endif
OcamlSources2 := $(filter-out $(ExcludeSources),$(OcamlSources1))
OcamlHeaders2 := $(filter-out $(ExcludeHeaders),$(OcamlHeaders1))
@@ -352,11 +357,11 @@ $(OutputEXE): $(ToolEXE) $(OcamlDir)/.dir
ifndef OCAMLOPT
$(ToolEXE): $(ObjectsCMO) $(OcamlDir)/.dir
$(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
- $(Verb) $(Archive.EXE) $@ $<
+ $(Verb) $(Archive.EXE) $@ $(ObjectsCMO)
else
$(ToolEXE): $(ObjectsCMX) $(OcamlDir)/.dir
$(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
- $(Verb) $(Archive.EXE) $@ $<
+ $(Verb) $(Archive.EXE) $@ $(ObjectsCMX)
endif
endif
diff --git a/bindings/ocaml/bitreader/llvm_bitreader.mli b/bindings/ocaml/bitreader/llvm_bitreader.mli
index 5e2240974af44..1d333191c1d3b 100644
--- a/bindings/ocaml/bitreader/llvm_bitreader.mli
+++ b/bindings/ocaml/bitreader/llvm_bitreader.mli
@@ -18,12 +18,12 @@ exception Error of string
memory buffer [mb] in the context [context]. Returns [m] if successful, or
raises [Error msg] otherwise, where [msg] is a description of the error
encountered. See the function [llvm::getBitcodeModule]. *)
-external get_module : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
- = "llvm_get_module"
+val get_module : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
+
(** [parse_bitcode context mb] parses the bitcode for a new module [m] from the
memory buffer [mb] in the context [context]. Returns [m] if successful, or
raises [Error msg] otherwise, where [msg] is a description of the error
encountered. See the function [llvm::ParseBitcodeFile]. *)
-external parse_bitcode : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
- = "llvm_parse_bitcode"
+val parse_bitcode : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
+
diff --git a/bindings/ocaml/executionengine/llvm_executionengine.mli b/bindings/ocaml/executionengine/llvm_executionengine.mli
index ce25f9d0ae097..166b7bcddca69 100644
--- a/bindings/ocaml/executionengine/llvm_executionengine.mli
+++ b/bindings/ocaml/executionengine/llvm_executionengine.mli
@@ -25,58 +25,58 @@ module GenericValue: sig
(** [of_float fpty n] boxes the float [n] in a float-valued generic value
according to the floating point type [fpty]. See the fields
[llvm::GenericValue::DoubleVal] and [llvm::GenericValue::FloatVal]. *)
- external of_float : Llvm.lltype -> float -> t = "llvm_genericvalue_of_float"
+ val of_float : Llvm.lltype -> float -> t
(** [of_pointer v] boxes the pointer value [v] in a generic value. See the
field [llvm::GenericValue::PointerVal]. *)
- external of_pointer : 'a -> t = "llvm_genericvalue_of_pointer"
+ val of_pointer : 'a -> t
(** [of_int32 n w] boxes the int32 [i] in a generic value with the bitwidth
[w]. See the field [llvm::GenericValue::IntVal]. *)
- external of_int32 : Llvm.lltype -> int32 -> t = "llvm_genericvalue_of_int32"
+ val of_int32 : Llvm.lltype -> int32 -> t
(** [of_int n w] boxes the int [i] in a generic value with the bitwidth
[w]. See the field [llvm::GenericValue::IntVal]. *)
- external of_int : Llvm.lltype -> int -> t = "llvm_genericvalue_of_int"
+ val of_int : Llvm.lltype -> int -> t
(** [of_natint n w] boxes the native int [i] in a generic value with the
bitwidth [w]. See the field [llvm::GenericValue::IntVal]. *)
- external of_nativeint : Llvm.lltype -> nativeint -> t
- = "llvm_genericvalue_of_nativeint"
+ val of_nativeint : Llvm.lltype -> nativeint -> t
+
(** [of_int64 n w] boxes the int64 [i] in a generic value with the bitwidth
[w]. See the field [llvm::GenericValue::IntVal]. *)
- external of_int64 : Llvm.lltype -> int64 -> t = "llvm_genericvalue_of_int64"
+ val of_int64 : Llvm.lltype -> int64 -> t
(** [as_float fpty gv] unboxes the floating point-valued generic value [gv] of
floating point type [fpty]. See the fields [llvm::GenericValue::DoubleVal]
and [llvm::GenericValue::FloatVal]. *)
- external as_float : Llvm.lltype -> t -> float = "llvm_genericvalue_as_float"
+ val as_float : Llvm.lltype -> t -> float
(** [as_pointer gv] unboxes the pointer-valued generic value [gv]. See the
field [llvm::GenericValue::PointerVal]. *)
- external as_pointer : t -> 'a = "llvm_genericvalue_as_pointer"
+ val as_pointer : t -> 'a
(** [as_int32 gv] unboxes the integer-valued generic value [gv] as an [int32].
Is invalid if [gv] has a bitwidth greater than 32 bits. See the field
[llvm::GenericValue::IntVal]. *)
- external as_int32 : t -> int32 = "llvm_genericvalue_as_int32"
+ val as_int32 : t -> int32
(** [as_int gv] unboxes the integer-valued generic value [gv] as an [int].
Is invalid if [gv] has a bitwidth greater than the host bit width (but the
most significant bit may be lost). See the field
[llvm::GenericValue::IntVal]. *)
- external as_int : t -> int = "llvm_genericvalue_as_int"
+ val as_int : t -> int
(** [as_natint gv] unboxes the integer-valued generic value [gv] as a
[nativeint]. Is invalid if [gv] has a bitwidth greater than
[nativeint]. See the field [llvm::GenericValue::IntVal]. *)
- external as_nativeint : t -> nativeint = "llvm_genericvalue_as_nativeint"
+ val as_nativeint : t -> nativeint
(** [as_int64 gv] returns the integer-valued generic value [gv] as an [int64].
Is invalid if [gv] has a bitwidth greater than [int64]. See the field
[llvm::GenericValue::IntVal]. *)
- external as_int64 : t -> int64 = "llvm_genericvalue_as_int64"
+ val as_int64 : t -> int64
end
@@ -91,73 +91,73 @@ module ExecutionEngine: sig
interpreter. Raises [Error msg] if an error occurrs. The execution engine
is not garbage collected and must be destroyed with [dispose ee].
See the function [llvm::EngineBuilder::create]. *)
- external create : Llvm.llmodule -> t = "llvm_ee_create"
+ val create : Llvm.llmodule -> t
(** [create_interpreter m] creates a new interpreter, taking ownership of the
module [m] if successful. Raises [Error msg] if an error occurrs. The
execution engine is not garbage collected and must be destroyed with
[dispose ee].
See the function [llvm::EngineBuilder::create]. *)
- external create_interpreter : Llvm.llmodule -> t = "llvm_ee_create_interpreter"
+ val create_interpreter : Llvm.llmodule -> t
(** [create_jit m optlevel] creates a new JIT (just-in-time compiler), taking
ownership of the module [m] if successful with the desired optimization
level [optlevel]. Raises [Error msg] if an error occurrs. The execution
engine is not garbage collected and must be destroyed with [dispose ee].
See the function [llvm::EngineBuilder::create]. *)
- external create_jit : Llvm.llmodule -> int -> t = "llvm_ee_create_jit"
+ val create_jit : Llvm.llmodule -> int -> t
(** [dispose ee] releases the memory used by the execution engine and must be
invoked to avoid memory leaks. *)
- external dispose : t -> unit = "llvm_ee_dispose"
+ val dispose : t -> unit
(** [add_module m ee] adds the module [m] to the execution engine [ee]. *)
- external add_module : Llvm.llmodule -> t -> unit = "llvm_ee_add_module"
+ val add_module : Llvm.llmodule -> t -> unit
(** [remove_module m ee] removes the module [m] from the execution engine
[ee], disposing of [m] and the module referenced by [mp]. Raises
[Error msg] if an error occurs. *)
- external remove_module : Llvm.llmodule -> t -> Llvm.llmodule
- = "llvm_ee_remove_module"
+ val remove_module : Llvm.llmodule -> t -> Llvm.llmodule
+
(** [find_function n ee] finds the function named [n] defined in any of the
modules owned by the execution engine [ee]. Returns [None] if the function
is not found and [Some f] otherwise. *)
- external find_function : string -> t -> Llvm.llvalue option
- = "llvm_ee_find_function"
+ val find_function : string -> t -> Llvm.llvalue option
+
(** [run_function f args ee] synchronously executes the function [f] with the
arguments [args], which must be compatible with the parameter types. *)
- external run_function : Llvm.llvalue -> GenericValue.t array -> t ->
+ val run_function : Llvm.llvalue -> GenericValue.t array -> t ->
GenericValue.t
- = "llvm_ee_run_function"
+
(** [run_static_ctors ee] executes the static constructors of each module in
the execution engine [ee]. *)
- external run_static_ctors : t -> unit = "llvm_ee_run_static_ctors"
+ val run_static_ctors : t -> unit
(** [run_static_dtors ee] executes the static destructors of each module in
the execution engine [ee]. *)
- external run_static_dtors : t -> unit = "llvm_ee_run_static_dtors"
+ val run_static_dtors : t -> unit
(** [run_function_as_main f args env ee] executes the function [f] as a main
function, passing it [argv] and [argc] according to the string array
[args], and [envp] as specified by the array [env]. Returns the integer
return value of the function. *)
- external run_function_as_main : Llvm.llvalue -> string array ->
+ val run_function_as_main : Llvm.llvalue -> string array ->
(string * string) array -> t -> int
- = "llvm_ee_run_function_as_main"
+
(** [free_machine_code f ee] releases the memory in the execution engine [ee]
used to store the machine code for the function [f]. *)
- external free_machine_code : Llvm.llvalue -> t -> unit
- = "llvm_ee_free_machine_code"
+ val free_machine_code : Llvm.llvalue -> t -> unit
+
(** [target_data ee] is the target data owned by the execution engine
[ee]. *)
- external target_data : t -> Llvm_target.TargetData.t
- = "LLVMGetExecutionEngineTargetData"
+ val target_data : t -> Llvm_target.TargetData.t
+
end
-external initialize_native_target : unit -> bool
- = "llvm_initialize_native_target"
+val initialize_native_target : unit -> bool
+
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index ba3bbe248b716..9b037aae7a46c 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -212,19 +212,19 @@ exception IoError of string
(** [create_context ()] creates a context for storing the "global" state in
LLVM. See the constructor [llvm::LLVMContext]. *)
-external create_context : unit -> llcontext = "llvm_create_context"
+val create_context : unit -> llcontext
(** [destroy_context ()] destroys a context. See the destructor
[llvm::LLVMContext::~LLVMContext]. *)
-external dispose_context : llcontext -> unit = "llvm_dispose_context"
+val dispose_context : llcontext -> unit
(** See the function [llvm::getGlobalContext]. *)
-external global_context : unit -> llcontext = "llvm_global_context"
+val global_context : unit -> llcontext
(** [mdkind_id context name] returns the MDKind ID that corresponds to the
name [name] in the context [context]. See the function
[llvm::LLVMContext::getMDKindID]. *)
-external mdkind_id : llcontext -> string -> int = "llvm_mdkind_id"
+val mdkind_id : llcontext -> string -> int
(** {6 Modules} *)
@@ -233,71 +233,71 @@ external mdkind_id : llcontext -> string -> int = "llvm_mdkind_id"
the context [context]. Modules are not garbage collected; it is mandatory
to call {!dispose_module} to free memory. See the constructor
[llvm::Module::Module]. *)
-external create_module : llcontext -> string -> llmodule = "llvm_create_module"
+val create_module : llcontext -> string -> llmodule
(** [dispose_module m] destroys a module [m] and all of the IR objects it
contained. All references to subordinate objects are invalidated;
referencing them will invoke undefined behavior. See the destructor
[llvm::Module::~Module]. *)
-external dispose_module : llmodule -> unit = "llvm_dispose_module"
+val dispose_module : llmodule -> unit
(** [target_triple m] is the target specifier for the module [m], something like
[i686-apple-darwin8]. See the method [llvm::Module::getTargetTriple]. *)
-external target_triple: llmodule -> string
- = "llvm_target_triple"
+val target_triple: llmodule -> string
+
(** [target_triple triple m] changes the target specifier for the module [m] to
the string [triple]. See the method [llvm::Module::setTargetTriple]. *)
-external set_target_triple: string -> llmodule -> unit
- = "llvm_set_target_triple"
+val set_target_triple: string -> llmodule -> unit
+
(** [data_layout m] is the data layout specifier for the module [m], something
like [e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-...-a0:0:64-f80:128:128]. See the
method [llvm::Module::getDataLayout]. *)
-external data_layout: llmodule -> string
- = "llvm_data_layout"
+val data_layout: llmodule -> string
+
(** [set_data_layout s m] changes the data layout specifier for the module [m]
to the string [s]. See the method [llvm::Module::setDataLayout]. *)
-external set_data_layout: string -> llmodule -> unit
- = "llvm_set_data_layout"
+val set_data_layout: string -> llmodule -> unit
+
(** [define_type_name name ty m] adds a named type to the module's symbol table.
Returns [true] if successful. If such a name already exists, then no entry
is added and [false] is returned. See the [llvm::Module::addTypeName]
method. *)
-external define_type_name : string -> lltype -> llmodule -> bool
- = "llvm_add_type_name"
+val define_type_name : string -> lltype -> llmodule -> bool
+
(** [delete_type_name name] removes a type name from the module's symbol
table. *)
-external delete_type_name : string -> llmodule -> unit
- = "llvm_delete_type_name"
+val delete_type_name : string -> llmodule -> unit
+
(** [type_by_name m n] returns the type in the module [m] named [n], or [None]
if it does not exist. See the method [llvm::Module::getTypeByName]. *)
-external type_by_name : llmodule -> string -> lltype option
- = "llvm_type_by_name"
+val type_by_name : llmodule -> string -> lltype option
+
(** [dump_module m] prints the .ll representation of the module [m] to standard
error. See the method [llvm::Module::dump]. *)
-external dump_module : llmodule -> unit = "llvm_dump_module"
+val dump_module : llmodule -> unit
(** [set_module_inline_asm m asm] sets the inline assembler for the module. See
the method [llvm::Module::setModuleInlineAsm]. *)
-external set_module_inline_asm : llmodule -> string -> unit
- = "llvm_set_module_inline_asm"
+val set_module_inline_asm : llmodule -> string -> unit
+
(** {6 Types} *)
(** [classify_type ty] returns the {!TypeKind.t} corresponding to the type [ty].
See the method [llvm::Type::getTypeID]. *)
-external classify_type : lltype -> TypeKind.t = "llvm_classify_type"
+val classify_type : lltype -> TypeKind.t
(** [type_context ty] returns the {!llcontext} corresponding to the type [ty].
See the method [llvm::Type::getContext]. *)
-external type_context : lltype -> llcontext = "llvm_type_context"
+val type_context : lltype -> llcontext
(** [string_of_lltype ty] returns a string describing the type [ty]. *)
val string_of_lltype : lltype -> string
@@ -306,54 +306,54 @@ val string_of_lltype : lltype -> string
(** [i1_type c] returns an integer type of bitwidth 1 in the context [c]. See
[llvm::Type::Int1Ty]. *)
-external i1_type : llcontext -> lltype = "llvm_i1_type"
+val i1_type : llcontext -> lltype
(** [i8_type c] returns an integer type of bitwidth 8 in the context [c]. See
[llvm::Type::Int8Ty]. *)
-external i8_type : llcontext -> lltype = "llvm_i8_type"
+val i8_type : llcontext -> lltype
(** [i16_type c] returns an integer type of bitwidth 16 in the context [c]. See
[llvm::Type::Int16Ty]. *)
-external i16_type : llcontext -> lltype = "llvm_i16_type"
+val i16_type : llcontext -> lltype
(** [i32_type c] returns an integer type of bitwidth 32 in the context [c]. See
[llvm::Type::Int32Ty]. *)
-external i32_type : llcontext -> lltype = "llvm_i32_type"
+val i32_type : llcontext -> lltype
(** [i64_type c] returns an integer type of bitwidth 64 in the context [c]. See
[llvm::Type::Int64Ty]. *)
-external i64_type : llcontext -> lltype = "llvm_i64_type"
+val i64_type : llcontext -> lltype
(** [integer_type c n] returns an integer type of bitwidth [n] in the context
[c]. See the method [llvm::IntegerType::get]. *)
-external integer_type : llcontext -> int -> lltype = "llvm_integer_type"
+val integer_type : llcontext -> int -> lltype
(** [integer_bitwidth c ty] returns the number of bits in the integer type [ty]
in the context [c]. See the method [llvm::IntegerType::getBitWidth]. *)
-external integer_bitwidth : lltype -> int = "llvm_integer_bitwidth"
+val integer_bitwidth : lltype -> int
(** {7 Operations on real types} *)
(** [float_type c] returns the IEEE 32-bit floating point type in the context
[c]. See [llvm::Type::FloatTy]. *)
-external float_type : llcontext -> lltype = "llvm_float_type"
+val float_type : llcontext -> lltype
(** [double_type c] returns the IEEE 64-bit floating point type in the context
[c]. See [llvm::Type::DoubleTy]. *)
-external double_type : llcontext -> lltype = "llvm_double_type"
+val double_type : llcontext -> lltype
(** [x86fp80_type c] returns the x87 80-bit floating point type in the context
[c]. See [llvm::Type::X86_FP80Ty]. *)
-external x86fp80_type : llcontext -> lltype = "llvm_x86fp80_type"
+val x86fp80_type : llcontext -> lltype
(** [fp128_type c] returns the IEEE 128-bit floating point type in the context
[c]. See [llvm::Type::FP128Ty]. *)
-external fp128_type : llcontext -> lltype = "llvm_fp128_type"
+val fp128_type : llcontext -> lltype
(** [ppc_fp128_type c] returns the PowerPC 128-bit floating point type in the
context [c]. See [llvm::Type::PPC_FP128Ty]. *)
-external ppc_fp128_type : llcontext -> lltype = "llvm_ppc_fp128_type"
+val ppc_fp128_type : llcontext -> lltype
(** {7 Operations on function types} *)
@@ -361,26 +361,26 @@ external ppc_fp128_type : llcontext -> lltype = "llvm_ppc_fp128_type"
(** [function_type ret_ty param_tys] returns the function type returning
[ret_ty] and taking [param_tys] as parameters.
See the method [llvm::FunctionType::get]. *)
-external function_type : lltype -> lltype array -> lltype = "llvm_function_type"
+val function_type : lltype -> lltype array -> lltype
(** [va_arg_function_type ret_ty param_tys] is just like
[function_type ret_ty param_tys] except that it returns the function type
which also takes a variable number of arguments.
See the method [llvm::FunctionType::get]. *)
-external var_arg_function_type : lltype -> lltype array -> lltype
- = "llvm_var_arg_function_type"
+val var_arg_function_type : lltype -> lltype array -> lltype
+
(** [is_var_arg fty] returns [true] if [fty] is a varargs function type, [false]
otherwise. See the method [llvm::FunctionType::isVarArg]. *)
-external is_var_arg : lltype -> bool = "llvm_is_var_arg"
+val is_var_arg : lltype -> bool
(** [return_type fty] gets the return type of the function type [fty].
See the method [llvm::FunctionType::getReturnType]. *)
-external return_type : lltype -> lltype = "LLVMGetReturnType"
+val return_type : lltype -> lltype
(** [param_types fty] gets the parameter types of the function type [fty].
See the method [llvm::FunctionType::getParamType]. *)
-external param_types : lltype -> lltype array = "llvm_param_types"
+val param_types : lltype -> lltype array
(** {7 Operations on struct types} *)
@@ -388,61 +388,61 @@ external param_types : lltype -> lltype array = "llvm_param_types"
(** [struct_type context tys] returns the structure type in the context
[context] containing in the types in the array [tys]. See the method
[llvm::StructType::get]. *)
-external struct_type : llcontext -> lltype array -> lltype
- = "llvm_struct_type"
+val struct_type : llcontext -> lltype array -> lltype
+
(** [packed_struct_type context ys] returns the packed structure type in the
context [context] containing in the types in the array [tys]. See the method
[llvm::StructType::get]. *)
-external packed_struct_type : llcontext -> lltype array -> lltype
- = "llvm_packed_struct_type"
+val packed_struct_type : llcontext -> lltype array -> lltype
+
(** [struct_element_types sty] returns the constituent types of the struct type
[sty]. See the method [llvm::StructType::getElementType]. *)
-external struct_element_types : lltype -> lltype array
- = "llvm_struct_element_types"
+val struct_element_types : lltype -> lltype array
+
(** [is_packed sty] returns [true] if the structure type [sty] is packed,
[false] otherwise. See the method [llvm::StructType::isPacked]. *)
-external is_packed : lltype -> bool = "llvm_is_packed"
+val is_packed : lltype -> bool
(** {7 Operations on pointer, vector, and array types} *)
(** [array_type ty n] returns the array type containing [n] elements of type
[ty]. See the method [llvm::ArrayType::get]. *)
-external array_type : lltype -> int -> lltype = "llvm_array_type"
+val array_type : lltype -> int -> lltype
(** [pointer_type ty] returns the pointer type referencing objects of type
[ty] in the default address space (0).
See the method [llvm::PointerType::getUnqual]. *)
-external pointer_type : lltype -> lltype = "llvm_pointer_type"
+val pointer_type : lltype -> lltype
(** [qualified_pointer_type ty as] returns the pointer type referencing objects
of type [ty] in address space [as].
See the method [llvm::PointerType::get]. *)
-external qualified_pointer_type : lltype -> int -> lltype
- = "llvm_qualified_pointer_type"
+val qualified_pointer_type : lltype -> int -> lltype
+
(** [vector_type ty n] returns the array type containing [n] elements of the
primitive type [ty]. See the method [llvm::ArrayType::get]. *)
-external vector_type : lltype -> int -> lltype = "llvm_vector_type"
+val vector_type : lltype -> int -> lltype
(** [element_type ty] returns the element type of the pointer, vector, or array
type [ty]. See the method [llvm::SequentialType::get]. *)
-external element_type : lltype -> lltype = "LLVMGetElementType"
+val element_type : lltype -> lltype
(** [element_type aty] returns the element count of the array type [aty].
See the method [llvm::ArrayType::getNumElements]. *)
-external array_length : lltype -> int = "llvm_array_length"
+val array_length : lltype -> int
(** [address_space pty] returns the address space qualifier of the pointer type
[pty]. See the method [llvm::PointerType::getAddressSpace]. *)
-external address_space : lltype -> int = "llvm_address_space"
+val address_space : lltype -> int
(** [element_type ty] returns the element count of the vector type [ty].
See the method [llvm::VectorType::getNumElements]. *)
-external vector_size : lltype -> int = "llvm_vector_size"
+val vector_size : lltype -> int
(** {7 Operations on other types} *)
@@ -450,15 +450,15 @@ external vector_size : lltype -> int = "llvm_vector_size"
(** [opaque_type c] creates a new opaque type distinct from any other in the
context [c]. Opaque types are useful for building recursive types in
combination with {!refine_type}. See [llvm::OpaqueType::get]. *)
-external opaque_type : llcontext -> lltype = "llvm_opaque_type"
+val opaque_type : llcontext -> lltype
(** [void_type c] creates a type of a function which does not return any
value in the context [c]. See [llvm::Type::VoidTy]. *)
-external void_type : llcontext -> lltype = "llvm_void_type"
+val void_type : llcontext -> lltype
(** [label_type c] creates a type of a basic block in the context [c]. See
[llvm::Type::LabelTy]. *)
-external label_type : llcontext -> lltype = "llvm_label_type"
+val label_type : llcontext -> lltype
(** {7 Operations on type handles} *)
@@ -466,43 +466,43 @@ external label_type : llcontext -> lltype = "llvm_label_type"
refined as a result of a call to {!refine_type}, the handle will be updated;
any bare [lltype] references will become invalid.
See the class [llvm::PATypeHolder]. *)
-external handle_to_type : lltype -> lltypehandle = "llvm_handle_to_type"
+val handle_to_type : lltype -> lltypehandle
(** [type_of_handle tyh] resolves the type handle [tyh].
See the method [llvm::PATypeHolder::get()]. *)
-external type_of_handle : lltypehandle -> lltype = "llvm_type_of_handle"
+val type_of_handle : lltypehandle -> lltype
(** [refine_type opaque_ty ty] replaces the abstract type [opaque_ty] with the
concrete type [ty] in all users. Warning: This may invalidate {!lltype}
values! Use {!lltypehandle} to manipulate potentially abstract types. See
the method [llvm::Type::refineAbstractType]. *)
-external refine_type : lltype -> lltype -> unit = "llvm_refine_type"
+val refine_type : lltype -> lltype -> unit
(* {6 Values} *)
(** [type_of v] returns the type of the value [v].
See the method [llvm::Value::getType]. *)
-external type_of : llvalue -> lltype = "llvm_type_of"
+val type_of : llvalue -> lltype
(** [value_name v] returns the name of the value [v]. For global values, this is
the symbol name. For instructions and basic blocks, it is the SSA register
name. It is meaningless for constants.
See the method [llvm::Value::getName]. *)
-external value_name : llvalue -> string = "llvm_value_name"
+val value_name : llvalue -> string
(** [set_value_name n v] sets the name of the value [v] to [n]. See the method
[llvm::Value::setName]. *)
-external set_value_name : string -> llvalue -> unit = "llvm_set_value_name"
+val set_value_name : string -> llvalue -> unit
(** [dump_value v] prints the .ll representation of the value [v] to standard
error. See the method [llvm::Value::dump]. *)
-external dump_value : llvalue -> unit = "llvm_dump_value"
+val dump_value : llvalue -> unit
(** [replace_all_uses_with old new] replaces all uses of the value [old]
* with the value [new]. See the method [llvm::Value::replaceAllUsesWith]. *)
-external replace_all_uses_with : llvalue -> llvalue -> unit
- = "LLVMReplaceAllUsesWith"
+val replace_all_uses_with : llvalue -> llvalue -> unit
+
(* {6 Uses} *)
@@ -510,19 +510,19 @@ external replace_all_uses_with : llvalue -> llvalue -> unit
(** [use_begin v] returns the first position in the use list for the value [v].
[use_begin] and [use_succ] can e used to iterate over the use list in order.
See the method [llvm::Value::use_begin]. *)
-external use_begin : llvalue -> lluse option = "llvm_use_begin"
+val use_begin : llvalue -> lluse option
(** [use_succ u] returns the use list position succeeding [u].
See the method [llvm::use_value_iterator::operator++]. *)
-external use_succ : lluse -> lluse option = "llvm_use_succ"
+val use_succ : lluse -> lluse option
(** [user u] returns the user of the use [u].
See the method [llvm::Use::getUser]. *)
-external user : lluse -> llvalue = "llvm_user"
+val user : lluse -> llvalue
(** [used_value u] returns the usee of the use [u].
See the method [llvm::Use::getUsedValue]. *)
-external used_value : lluse -> llvalue = "llvm_used_value"
+val used_value : lluse -> llvalue
(** [iter_uses f v] applies function [f] to each of the users of the value [v]
in order. Tail recursive. *)
@@ -541,46 +541,46 @@ val fold_right_uses : (lluse -> 'a -> 'a) -> llvalue -> 'a -> 'a
(** [operand v i] returns the operand at index [i] for the value [v]. See the
method [llvm::User::getOperand]. *)
-external operand : llvalue -> int -> llvalue = "llvm_operand"
+val operand : llvalue -> int -> llvalue
(** [set_operand v i o] sets the operand of the value [v] at the index [i] to
the value [o].
See the method [llvm::User::setOperand]. *)
-external set_operand : llvalue -> int -> llvalue -> unit = "llvm_set_operand"
+val set_operand : llvalue -> int -> llvalue -> unit
(** [num_operands v] returns the number of operands for the value [v].
See the method [llvm::User::getNumOperands]. *)
-external num_operands : llvalue -> int = "llvm_num_operands"
+val num_operands : llvalue -> int
(** {7 Operations on constants of (mostly) any type} *)
(** [is_constant v] returns [true] if the value [v] is a constant, [false]
otherwise. Similar to [llvm::isa]. *)
-external is_constant : llvalue -> bool = "llvm_is_constant"
+val is_constant : llvalue -> bool
(** [const_null ty] returns the constant null (zero) of the type [ty].
See the method [llvm::Constant::getNullValue]. *)
-external const_null : lltype -> llvalue = "LLVMConstNull"
+val const_null : lltype -> llvalue
(** [const_all_ones ty] returns the constant '-1' of the integer or vector type
[ty]. See the method [llvm::Constant::getAllOnesValue]. *)
-external const_all_ones : (*int|vec*)lltype -> llvalue = "LLVMConstAllOnes"
+val const_all_ones : (*int|vec*)lltype -> llvalue
(** [const_pointer_null ty] returns the constant null (zero) pointer of the type
[ty]. See the method [llvm::ConstantPointerNull::get]. *)
-external const_pointer_null : lltype -> llvalue = "LLVMConstPointerNull"
+val const_pointer_null : lltype -> llvalue
(** [undef ty] returns the undefined value of the type [ty].
See the method [llvm::UndefValue::get]. *)
-external undef : lltype -> llvalue = "LLVMGetUndef"
+val undef : lltype -> llvalue
(** [is_null v] returns [true] if the value [v] is the null (zero) value.
See the method [llvm::Constant::isNullValue]. *)
-external is_null : llvalue -> bool = "llvm_is_null"
+val is_null : llvalue -> bool
(** [is_undef v] returns [true] if the value [v] is an undefined value, [false]
otherwise. Similar to [llvm::isa]. *)
-external is_undef : llvalue -> bool = "llvm_is_undef"
+val is_undef : llvalue -> bool
(** {7 Operations on instructions} *)
@@ -588,58 +588,58 @@ external is_undef : llvalue -> bool = "llvm_is_undef"
(** [has_metadata i] returns whether or not the instruction [i] has any
metadata attached to it. See the function
[llvm::Instruction::hasMetadata]. *)
-external has_metadata : llvalue -> bool = "llvm_has_metadata"
+val has_metadata : llvalue -> bool
(** [metadata i kind] optionally returns the metadata associated with the
kind [kind] in the instruction [i] See the function
[llvm::Instruction::getMetadata]. *)
-external metadata : llvalue -> int -> llvalue option = "llvm_metadata"
+val metadata : llvalue -> int -> llvalue option
(** [set_metadata i kind md] sets the metadata [md] of kind [kind] in the
instruction [i]. See the function [llvm::Instruction::setMetadata]. *)
-external set_metadata : llvalue -> int -> llvalue -> unit = "llvm_set_metadata"
+val set_metadata : llvalue -> int -> llvalue -> unit
(** [clear_metadata i kind] clears the metadata of kind [kind] in the
instruction [i]. See the function [llvm::Instruction::setMetadata]. *)
-external clear_metadata : llvalue -> int -> unit = "llvm_clear_metadata"
+val clear_metadata : llvalue -> int -> unit
(** {7 Operations on metadata} *)
(** [mdstring c s] returns the MDString of the string [s] in the context [c].
See the method [llvm::MDNode::get]. *)
-external mdstring : llcontext -> string -> llvalue = "llvm_mdstring"
+val mdstring : llcontext -> string -> llvalue
(** [mdnode c elts] returns the MDNode containing the values [elts] in the
context [c].
See the method [llvm::MDNode::get]. *)
-external mdnode : llcontext -> llvalue array -> llvalue = "llvm_mdnode"
+val mdnode : llcontext -> llvalue array -> llvalue
(** {7 Operations on scalar constants} *)
(** [const_int ty i] returns the integer constant of type [ty] and value [i].
See the method [llvm::ConstantInt::get]. *)
-external const_int : lltype -> int -> llvalue = "llvm_const_int"
+val const_int : lltype -> int -> llvalue
(** [const_of_int64 ty i] returns the integer constant of type [ty] and value
[i]. See the method [llvm::ConstantInt::get]. *)
-external const_of_int64 : lltype -> Int64.t -> bool -> llvalue
- = "llvm_const_of_int64"
+val const_of_int64 : lltype -> Int64.t -> bool -> llvalue
+
(** [const_int_of_string ty s r] returns the integer constant of type [ty] and
* value [s], with the radix [r]. See the method [llvm::ConstantInt::get]. *)
-external const_int_of_string : lltype -> string -> int -> llvalue
- = "llvm_const_int_of_string"
+val const_int_of_string : lltype -> string -> int -> llvalue
+
(** [const_float ty n] returns the floating point constant of type [ty] and
value [n]. See the method [llvm::ConstantFP::get]. *)
-external const_float : lltype -> float -> llvalue = "llvm_const_float"
+val const_float : lltype -> float -> llvalue
(** [const_float_of_string ty s] returns the floating point constant of type
[ty] and value [n]. See the method [llvm::ConstantFP::get]. *)
-external const_float_of_string : lltype -> string -> llvalue
- = "llvm_const_float_of_string"
+val const_float_of_string : lltype -> string -> llvalue
+
(** {7 Operations on composite constants} *)
@@ -649,39 +649,39 @@ external const_float_of_string : lltype -> string -> llvalue
null-terminated (but see {!const_stringz}). This value can in turn be used
as the initializer for a global variable. See the method
[llvm::ConstantArray::get]. *)
-external const_string : llcontext -> string -> llvalue = "llvm_const_string"
+val const_string : llcontext -> string -> llvalue
(** [const_stringz c s] returns the constant [i8] array with the values of the
characters in the string [s] and a null terminator in the context [c]. This
value can in turn be used as the initializer for a global variable.
See the method [llvm::ConstantArray::get]. *)
-external const_stringz : llcontext -> string -> llvalue = "llvm_const_stringz"
+val const_stringz : llcontext -> string -> llvalue
(** [const_array ty elts] returns the constant array of type
[array_type ty (Array.length elts)] and containing the values [elts].
This value can in turn be used as the initializer for a global variable.
See the method [llvm::ConstantArray::get]. *)
-external const_array : lltype -> llvalue array -> llvalue = "llvm_const_array"
+val const_array : lltype -> llvalue array -> llvalue
(** [const_struct context elts] returns the structured constant of type
[struct_type (Array.map type_of elts)] and containing the values [elts]
in the context [context]. This value can in turn be used as the initializer
for a global variable. See the method [llvm::ConstantStruct::get]. *)
-external const_struct : llcontext -> llvalue array -> llvalue
- = "llvm_const_struct"
+val const_struct : llcontext -> llvalue array -> llvalue
+
(** [const_packed_struct context elts] returns the structured constant of
type {!packed_struct_type} [(Array.map type_of elts)] and containing the
values [elts] in the context [context]. This value can in turn be used as
the initializer for a global variable. See the method
[llvm::ConstantStruct::get]. *)
-external const_packed_struct : llcontext -> llvalue array -> llvalue
- = "llvm_const_packed_struct"
+val const_packed_struct : llcontext -> llvalue array -> llvalue
+
(** [const_vector elts] returns the vector constant of type
[vector_type (type_of elts.(0)) (Array.length elts)] and containing the
values [elts]. See the method [llvm::ConstantVector::get]. *)
-external const_vector : llvalue array -> llvalue = "llvm_const_vector"
+val const_vector : llvalue array -> llvalue
(** {7 Constant expressions} *)
@@ -690,286 +690,286 @@ external const_vector : llvalue array -> llvalue = "llvm_const_vector"
equivalent to [const_ptrtoint (const_gep (const_null (pointer_type {i8,ty}))
(const_int i32_type 0) (const_int i32_type 1)) i32_type], but considerably
more readable. See the method [llvm::ConstantExpr::getAlignOf]. *)
-external align_of : lltype -> llvalue = "LLVMAlignOf"
+val align_of : lltype -> llvalue
(** [size_of ty] returns the sizeof constant for the type [ty]. This is
equivalent to [const_ptrtoint (const_gep (const_null (pointer_type ty))
(const_int i32_type 1)) i64_type], but considerably more readable.
See the method [llvm::ConstantExpr::getSizeOf]. *)
-external size_of : lltype -> llvalue = "LLVMSizeOf"
+val size_of : lltype -> llvalue
(** [const_neg c] returns the arithmetic negation of the constant [c].
See the method [llvm::ConstantExpr::getNeg]. *)
-external const_neg : llvalue -> llvalue = "LLVMConstNeg"
+val const_neg : llvalue -> llvalue
(** [const_nsw_neg c] returns the arithmetic negation of the constant [c] with
no signed wrapping. The result is undefined if the negation overflows.
See the method [llvm::ConstantExpr::getNSWNeg]. *)
-external const_nsw_neg : llvalue -> llvalue = "LLVMConstNSWNeg"
+val const_nsw_neg : llvalue -> llvalue
(** [const_nuw_neg c] returns the arithmetic negation of the constant [c] with
no unsigned wrapping. The result is undefined if the negation overflows.
See the method [llvm::ConstantExpr::getNUWNeg]. *)
-external const_nuw_neg : llvalue -> llvalue = "LLVMConstNUWNeg"
+val const_nuw_neg : llvalue -> llvalue
(** [const_fneg c] returns the arithmetic negation of the constant float [c].
See the method [llvm::ConstantExpr::getFNeg]. *)
-external const_fneg : llvalue -> llvalue = "LLVMConstFNeg"
+val const_fneg : llvalue -> llvalue
(** [const_not c] returns the bitwise inverse of the constant [c].
See the method [llvm::ConstantExpr::getNot]. *)
-external const_not : llvalue -> llvalue = "LLVMConstNot"
+val const_not : llvalue -> llvalue
(** [const_add c1 c2] returns the constant sum of two constants.
See the method [llvm::ConstantExpr::getAdd]. *)
-external const_add : llvalue -> llvalue -> llvalue = "LLVMConstAdd"
+val const_add : llvalue -> llvalue -> llvalue
(** [const_nsw_add c1 c2] returns the constant sum of two constants with no
signed wrapping. The result is undefined if the sum overflows.
See the method [llvm::ConstantExpr::getNSWAdd]. *)
-external const_nsw_add : llvalue -> llvalue -> llvalue = "LLVMConstNSWAdd"
+val const_nsw_add : llvalue -> llvalue -> llvalue
(** [const_nuw_add c1 c2] returns the constant sum of two constants with no
unsigned wrapping. The result is undefined if the sum overflows.
See the method [llvm::ConstantExpr::getNSWAdd]. *)
-external const_nuw_add : llvalue -> llvalue -> llvalue = "LLVMConstNUWAdd"
+val const_nuw_add : llvalue -> llvalue -> llvalue
(** [const_fadd c1 c2] returns the constant sum of two constant floats.
See the method [llvm::ConstantExpr::getFAdd]. *)
-external const_fadd : llvalue -> llvalue -> llvalue = "LLVMConstFAdd"
+val const_fadd : llvalue -> llvalue -> llvalue
(** [const_sub c1 c2] returns the constant difference, [c1 - c2], of two
constants. See the method [llvm::ConstantExpr::getSub]. *)
-external const_sub : llvalue -> llvalue -> llvalue = "LLVMConstSub"
+val const_sub : llvalue -> llvalue -> llvalue
(** [const_nsw_sub c1 c2] returns the constant difference of two constants with
no signed wrapping. The result is undefined if the sum overflows.
See the method [llvm::ConstantExpr::getNSWSub]. *)
-external const_nsw_sub : llvalue -> llvalue -> llvalue = "LLVMConstNSWSub"
+val const_nsw_sub : llvalue -> llvalue -> llvalue
(** [const_nuw_sub c1 c2] returns the constant difference of two constants with
no unsigned wrapping. The result is undefined if the sum overflows.
See the method [llvm::ConstantExpr::getNSWSub]. *)
-external const_nuw_sub : llvalue -> llvalue -> llvalue = "LLVMConstNUWSub"
+val const_nuw_sub : llvalue -> llvalue -> llvalue
(** [const_fsub c1 c2] returns the constant difference, [c1 - c2], of two
constant floats. See the method [llvm::ConstantExpr::getFSub]. *)
-external const_fsub : llvalue -> llvalue -> llvalue = "LLVMConstFSub"
+val const_fsub : llvalue -> llvalue -> llvalue
(** [const_mul c1 c2] returns the constant product of two constants.
See the method [llvm::ConstantExpr::getMul]. *)
-external const_mul : llvalue -> llvalue -> llvalue = "LLVMConstMul"
+val const_mul : llvalue -> llvalue -> llvalue
(** [const_nsw_mul c1 c2] returns the constant product of two constants with
no signed wrapping. The result is undefined if the sum overflows.
See the method [llvm::ConstantExpr::getNSWMul]. *)
-external const_nsw_mul : llvalue -> llvalue -> llvalue = "LLVMConstNSWMul"
+val const_nsw_mul : llvalue -> llvalue -> llvalue
(** [const_nuw_mul c1 c2] returns the constant product of two constants with
no unsigned wrapping. The result is undefined if the sum overflows.
See the method [llvm::ConstantExpr::getNSWMul]. *)
-external const_nuw_mul : llvalue -> llvalue -> llvalue = "LLVMConstNUWMul"
+val const_nuw_mul : llvalue -> llvalue -> llvalue
(** [const_fmul c1 c2] returns the constant product of two constants floats.
See the method [llvm::ConstantExpr::getFMul]. *)
-external const_fmul : llvalue -> llvalue -> llvalue = "LLVMConstFMul"
+val const_fmul : llvalue -> llvalue -> llvalue
(** [const_udiv c1 c2] returns the constant quotient [c1 / c2] of two unsigned
integer constants.
See the method [llvm::ConstantExpr::getUDiv]. *)
-external const_udiv : llvalue -> llvalue -> llvalue = "LLVMConstUDiv"
+val const_udiv : llvalue -> llvalue -> llvalue
(** [const_sdiv c1 c2] returns the constant quotient [c1 / c2] of two signed
integer constants.
See the method [llvm::ConstantExpr::getSDiv]. *)
-external const_sdiv : llvalue -> llvalue -> llvalue = "LLVMConstSDiv"
+val const_sdiv : llvalue -> llvalue -> llvalue
(** [const_exact_sdiv c1 c2] returns the constant quotient [c1 / c2] of two
signed integer constants. The result is undefined if the result is rounded
or overflows. See the method [llvm::ConstantExpr::getExactSDiv]. *)
-external const_exact_sdiv : llvalue -> llvalue -> llvalue = "LLVMConstExactSDiv"
+val const_exact_sdiv : llvalue -> llvalue -> llvalue
(** [const_fdiv c1 c2] returns the constant quotient [c1 / c2] of two floating
point constants.
See the method [llvm::ConstantExpr::getFDiv]. *)
-external const_fdiv : llvalue -> llvalue -> llvalue = "LLVMConstFDiv"
+val const_fdiv : llvalue -> llvalue -> llvalue
(** [const_urem c1 c2] returns the constant remainder [c1 MOD c2] of two
unsigned integer constants.
See the method [llvm::ConstantExpr::getURem]. *)
-external const_urem : llvalue -> llvalue -> llvalue = "LLVMConstURem"
+val const_urem : llvalue -> llvalue -> llvalue
(** [const_srem c1 c2] returns the constant remainder [c1 MOD c2] of two
signed integer constants.
See the method [llvm::ConstantExpr::getSRem]. *)
-external const_srem : llvalue -> llvalue -> llvalue = "LLVMConstSRem"
+val const_srem : llvalue -> llvalue -> llvalue
(** [const_frem c1 c2] returns the constant remainder [c1 MOD c2] of two
signed floating point constants.
See the method [llvm::ConstantExpr::getFRem]. *)
-external const_frem : llvalue -> llvalue -> llvalue = "LLVMConstFRem"
+val const_frem : llvalue -> llvalue -> llvalue
(** [const_and c1 c2] returns the constant bitwise [AND] of two integer
constants.
See the method [llvm::ConstantExpr::getAnd]. *)
-external const_and : llvalue -> llvalue -> llvalue = "LLVMConstAnd"
+val const_and : llvalue -> llvalue -> llvalue
(** [const_or c1 c2] returns the constant bitwise [OR] of two integer
constants.
See the method [llvm::ConstantExpr::getOr]. *)
-external const_or : llvalue -> llvalue -> llvalue = "LLVMConstOr"
+val const_or : llvalue -> llvalue -> llvalue
(** [const_xor c1 c2] returns the constant bitwise [XOR] of two integer
constants.
See the method [llvm::ConstantExpr::getXor]. *)
-external const_xor : llvalue -> llvalue -> llvalue = "LLVMConstXor"
+val const_xor : llvalue -> llvalue -> llvalue
(** [const_icmp pred c1 c2] returns the constant comparison of two integer
constants, [c1 pred c2].
See the method [llvm::ConstantExpr::getICmp]. *)
-external const_icmp : Icmp.t -> llvalue -> llvalue -> llvalue
- = "llvm_const_icmp"
+val const_icmp : Icmp.t -> llvalue -> llvalue -> llvalue
+
(** [const_fcmp pred c1 c2] returns the constant comparison of two floating
point constants, [c1 pred c2].
See the method [llvm::ConstantExpr::getFCmp]. *)
-external const_fcmp : Fcmp.t -> llvalue -> llvalue -> llvalue
- = "llvm_const_fcmp"
+val const_fcmp : Fcmp.t -> llvalue -> llvalue -> llvalue
+
(** [const_shl c1 c2] returns the constant integer [c1] left-shifted by the
constant integer [c2].
See the method [llvm::ConstantExpr::getShl]. *)
-external const_shl : llvalue -> llvalue -> llvalue = "LLVMConstShl"
+val const_shl : llvalue -> llvalue -> llvalue
(** [const_lshr c1 c2] returns the constant integer [c1] right-shifted by the
constant integer [c2] with zero extension.
See the method [llvm::ConstantExpr::getLShr]. *)
-external const_lshr : llvalue -> llvalue -> llvalue = "LLVMConstLShr"
+val const_lshr : llvalue -> llvalue -> llvalue
(** [const_ashr c1 c2] returns the constant integer [c1] right-shifted by the
constant integer [c2] with sign extension.
See the method [llvm::ConstantExpr::getAShr]. *)
-external const_ashr : llvalue -> llvalue -> llvalue = "LLVMConstAShr"
+val const_ashr : llvalue -> llvalue -> llvalue
(** [const_gep pc indices] returns the constant [getElementPtr] of [p1] with the
constant integers indices from the array [indices].
See the method [llvm::ConstantExpr::getGetElementPtr]. *)
-external const_gep : llvalue -> llvalue array -> llvalue = "llvm_const_gep"
+val const_gep : llvalue -> llvalue array -> llvalue
(** [const_in_bounds_gep pc indices] returns the constant [getElementPtr] of [p1]
with the constant integers indices from the array [indices].
See the method [llvm::ConstantExpr::getInBoundsGetElementPtr]. *)
-external const_in_bounds_gep : llvalue -> llvalue array -> llvalue
- = "llvm_const_in_bounds_gep"
+val const_in_bounds_gep : llvalue -> llvalue array -> llvalue
+
(** [const_trunc c ty] returns the constant truncation of integer constant [c]
to the smaller integer type [ty].
See the method [llvm::ConstantExpr::getTrunc]. *)
-external const_trunc : llvalue -> lltype -> llvalue = "LLVMConstTrunc"
+val const_trunc : llvalue -> lltype -> llvalue
(** [const_sext c ty] returns the constant sign extension of integer constant
[c] to the larger integer type [ty].
See the method [llvm::ConstantExpr::getSExt]. *)
-external const_sext : llvalue -> lltype -> llvalue = "LLVMConstSExt"
+val const_sext : llvalue -> lltype -> llvalue
(** [const_zext c ty] returns the constant zero extension of integer constant
[c] to the larger integer type [ty].
See the method [llvm::ConstantExpr::getZExt]. *)
-external const_zext : llvalue -> lltype -> llvalue = "LLVMConstZExt"
+val const_zext : llvalue -> lltype -> llvalue
(** [const_fptrunc c ty] returns the constant truncation of floating point
constant [c] to the smaller floating point type [ty].
See the method [llvm::ConstantExpr::getFPTrunc]. *)
-external const_fptrunc : llvalue -> lltype -> llvalue = "LLVMConstFPTrunc"
+val const_fptrunc : llvalue -> lltype -> llvalue
(** [const_fpext c ty] returns the constant extension of floating point constant
[c] to the larger floating point type [ty].
See the method [llvm::ConstantExpr::getFPExt]. *)
-external const_fpext : llvalue -> lltype -> llvalue = "LLVMConstFPExt"
+val const_fpext : llvalue -> lltype -> llvalue
(** [const_uitofp c ty] returns the constant floating point conversion of
unsigned integer constant [c] to the floating point type [ty].
See the method [llvm::ConstantExpr::getUIToFP]. *)
-external const_uitofp : llvalue -> lltype -> llvalue = "LLVMConstUIToFP"
+val const_uitofp : llvalue -> lltype -> llvalue
(** [const_sitofp c ty] returns the constant floating point conversion of
signed integer constant [c] to the floating point type [ty].
See the method [llvm::ConstantExpr::getSIToFP]. *)
-external const_sitofp : llvalue -> lltype -> llvalue = "LLVMConstSIToFP"
+val const_sitofp : llvalue -> lltype -> llvalue
(** [const_fptoui c ty] returns the constant unsigned integer conversion of
floating point constant [c] to integer type [ty].
See the method [llvm::ConstantExpr::getFPToUI]. *)
-external const_fptoui : llvalue -> lltype -> llvalue = "LLVMConstFPToUI"
+val const_fptoui : llvalue -> lltype -> llvalue
(** [const_fptoui c ty] returns the constant unsigned integer conversion of
floating point constant [c] to integer type [ty].
See the method [llvm::ConstantExpr::getFPToSI]. *)
-external const_fptosi : llvalue -> lltype -> llvalue = "LLVMConstFPToSI"
+val const_fptosi : llvalue -> lltype -> llvalue
(** [const_ptrtoint c ty] returns the constant integer conversion of
pointer constant [c] to integer type [ty].
See the method [llvm::ConstantExpr::getPtrToInt]. *)
-external const_ptrtoint : llvalue -> lltype -> llvalue = "LLVMConstPtrToInt"
+val const_ptrtoint : llvalue -> lltype -> llvalue
(** [const_inttoptr c ty] returns the constant pointer conversion of
integer constant [c] to pointer type [ty].
See the method [llvm::ConstantExpr::getIntToPtr]. *)
-external const_inttoptr : llvalue -> lltype -> llvalue = "LLVMConstIntToPtr"
+val const_inttoptr : llvalue -> lltype -> llvalue
(** [const_bitcast c ty] returns the constant bitwise conversion of constant [c]
to type [ty] of equal size.
See the method [llvm::ConstantExpr::getBitCast]. *)
-external const_bitcast : llvalue -> lltype -> llvalue = "LLVMConstBitCast"
+val const_bitcast : llvalue -> lltype -> llvalue
(** [const_zext_or_bitcast c ty] returns a constant zext or bitwise cast
conversion of constant [c] to type [ty].
See the method [llvm::ConstantExpr::getZExtOrBitCast]. *)
-external const_zext_or_bitcast : llvalue -> lltype -> llvalue
- = "LLVMConstZExtOrBitCast"
+val const_zext_or_bitcast : llvalue -> lltype -> llvalue
+
(** [const_sext_or_bitcast c ty] returns a constant sext or bitwise cast
conversion of constant [c] to type [ty].
See the method [llvm::ConstantExpr::getSExtOrBitCast]. *)
-external const_sext_or_bitcast : llvalue -> lltype -> llvalue
- = "LLVMConstSExtOrBitCast"
+val const_sext_or_bitcast : llvalue -> lltype -> llvalue
+
(** [const_trunc_or_bitcast c ty] returns a constant trunc or bitwise cast
conversion of constant [c] to type [ty].
See the method [llvm::ConstantExpr::getTruncOrBitCast]. *)
-external const_trunc_or_bitcast : llvalue -> lltype -> llvalue
- = "LLVMConstTruncOrBitCast"
+val const_trunc_or_bitcast : llvalue -> lltype -> llvalue
+
(** [const_pointercast c ty] returns a constant bitcast or a pointer-to-int
cast conversion of constant [c] to type [ty] of equal size.
See the method [llvm::ConstantExpr::getPointerCast]. *)
-external const_pointercast : llvalue -> lltype -> llvalue
- = "LLVMConstPointerCast"
+val const_pointercast : llvalue -> lltype -> llvalue
+
(** [const_intcast c ty] returns a constant zext, bitcast, or trunc for integer
-> integer casts of constant [c] to type [ty].
See the method [llvm::ConstantExpr::getIntCast]. *)
-external const_intcast : llvalue -> lltype -> llvalue
- = "LLVMConstIntCast"
+val const_intcast : llvalue -> lltype -> llvalue
+
(** [const_fpcast c ty] returns a constant fpext, bitcast, or fptrunc for fp ->
fp casts of constant [c] to type [ty].
See the method [llvm::ConstantExpr::getFPCast]. *)
-external const_fpcast : llvalue -> lltype -> llvalue
- = "LLVMConstFPCast"
+val const_fpcast : llvalue -> lltype -> llvalue
+
(** [const_select cond t f] returns the constant conditional which returns value
[t] if the boolean constant [cond] is true and the value [f] otherwise.
See the method [llvm::ConstantExpr::getSelect]. *)
-external const_select : llvalue -> llvalue -> llvalue -> llvalue
- = "LLVMConstSelect"
+val const_select : llvalue -> llvalue -> llvalue -> llvalue
+
(** [const_extractelement vec i] returns the constant [i]th element of
constant vector [vec]. [i] must be a constant [i32] value unsigned less than
the size of the vector.
See the method [llvm::ConstantExpr::getExtractElement]. *)
-external const_extractelement : llvalue -> llvalue -> llvalue
- = "LLVMConstExtractElement"
+val const_extractelement : llvalue -> llvalue -> llvalue
+
(** [const_insertelement vec v i] returns the constant vector with the same
elements as constant vector [v] but the [i]th element replaced by the
@@ -977,82 +977,82 @@ external const_extractelement : llvalue -> llvalue -> llvalue
elements. [i] must be a constant [i32] value unsigned less than the size
of the vector.
See the method [llvm::ConstantExpr::getInsertElement]. *)
-external const_insertelement : llvalue -> llvalue -> llvalue -> llvalue
- = "LLVMConstInsertElement"
+val const_insertelement : llvalue -> llvalue -> llvalue -> llvalue
+
(** [const_shufflevector a b mask] returns a constant [shufflevector].
See the LLVM Language Reference for details on the [shufflevector]
instruction.
See the method [llvm::ConstantExpr::getShuffleVector]. *)
-external const_shufflevector : llvalue -> llvalue -> llvalue -> llvalue
- = "LLVMConstShuffleVector"
+val const_shufflevector : llvalue -> llvalue -> llvalue -> llvalue
+
(** [const_extractvalue agg idxs] returns the constant [idxs]th value of
constant aggregate [agg]. Each [idxs] must be less than the size of the
aggregate. See the method [llvm::ConstantExpr::getExtractValue]. *)
-external const_extractvalue : llvalue -> int array -> llvalue
- = "llvm_const_extractvalue"
+val const_extractvalue : llvalue -> int array -> llvalue
+
(** [const_insertvalue agg val idxs] inserts the value [val] in the specified
indexs [idxs] in the aggegate [agg]. Each [idxs] must be less than the size
of the aggregate. See the method [llvm::ConstantExpr::getInsertValue]. *)
-external const_insertvalue : llvalue -> llvalue -> int array -> llvalue
- = "llvm_const_insertvalue"
+val const_insertvalue : llvalue -> llvalue -> int array -> llvalue
+
(** [const_inline_asm ty asm con side align] inserts a inline assembly string.
See the method [llvm::InlineAsm::get]. *)
-external const_inline_asm : lltype -> string -> string -> bool -> bool ->
+val const_inline_asm : lltype -> string -> string -> bool -> bool ->
llvalue
- = "llvm_const_inline_asm"
+
(** [block_address f bb] returns the address of the basic block [bb] in the
function [f]. See the method [llvm::BasicBlock::get]. *)
-external block_address : llvalue -> llbasicblock -> llvalue = "LLVMBlockAddress"
+val block_address : llvalue -> llbasicblock -> llvalue
(** {7 Operations on global variables, functions, and aliases (globals)} *)
(** [global_parent g] is the enclosing module of the global value [g].
See the method [llvm::GlobalValue::getParent]. *)
-external global_parent : llvalue -> llmodule = "LLVMGetGlobalParent"
+val global_parent : llvalue -> llmodule
(** [is_declaration g] returns [true] if the global value [g] is a declaration
only. Returns [false] otherwise.
See the method [llvm::GlobalValue::isDeclaration]. *)
-external is_declaration : llvalue -> bool = "llvm_is_declaration"
+val is_declaration : llvalue -> bool
(** [linkage g] returns the linkage of the global value [g].
See the method [llvm::GlobalValue::getLinkage]. *)
-external linkage : llvalue -> Linkage.t = "llvm_linkage"
+val linkage : llvalue -> Linkage.t
(** [set_linkage l g] sets the linkage of the global value [g] to [l].
See the method [llvm::GlobalValue::setLinkage]. *)
-external set_linkage : Linkage.t -> llvalue -> unit = "llvm_set_linkage"
+val set_linkage : Linkage.t -> llvalue -> unit
(** [section g] returns the linker section of the global value [g].
See the method [llvm::GlobalValue::getSection]. *)
-external section : llvalue -> string = "llvm_section"
+val section : llvalue -> string
(** [set_section s g] sets the linker section of the global value [g] to [s].
See the method [llvm::GlobalValue::setSection]. *)
-external set_section : string -> llvalue -> unit = "llvm_set_section"
+val set_section : string -> llvalue -> unit
(** [visibility g] returns the linker visibility of the global value [g].
See the method [llvm::GlobalValue::getVisibility]. *)
-external visibility : llvalue -> Visibility.t = "llvm_visibility"
+val visibility : llvalue -> Visibility.t
(** [set_visibility v g] sets the linker visibility of the global value [g] to
[v]. See the method [llvm::GlobalValue::setVisibility]. *)
-external set_visibility : Visibility.t -> llvalue -> unit
- = "llvm_set_visibility"
+val set_visibility : Visibility.t -> llvalue -> unit
+
(** [alignment g] returns the required alignment of the global value [g].
See the method [llvm::GlobalValue::getAlignment]. *)
-external alignment : llvalue -> int = "llvm_alignment"
+val alignment : llvalue -> int
(** [set_alignment n g] sets the required alignment of the global value [g] to
[n] bytes. See the method [llvm::GlobalValue::setAlignment]. *)
-external set_alignment : int -> llvalue -> unit = "llvm_set_alignment"
+val set_alignment : int -> llvalue -> unit
(** {7 Operations on global variables} *)
@@ -1061,55 +1061,55 @@ external set_alignment : int -> llvalue -> unit = "llvm_set_alignment"
with name [name] in module [m] in the default address space (0). If such a
global variable already exists, it is returned. If the type of the existing
global differs, then a bitcast to [ty] is returned. *)
-external declare_global : lltype -> string -> llmodule -> llvalue
- = "llvm_declare_global"
+val declare_global : lltype -> string -> llmodule -> llvalue
+
(** [declare_qualified_global ty name addrspace m] returns a new global variable
of type [ty] and with name [name] in module [m] in the address space
[addrspace]. If such a global variable already exists, it is returned. If
the type of the existing global differs, then a bitcast to [ty] is
returned. *)
-external declare_qualified_global : lltype -> string -> int -> llmodule ->
+val declare_qualified_global : lltype -> string -> int -> llmodule ->
llvalue
- = "llvm_declare_qualified_global"
+
(** [define_global name init m] returns a new global with name [name] and
initializer [init] in module [m] in the default address space (0). If the
named global already exists, it is renamed.
See the constructor of [llvm::GlobalVariable]. *)
-external define_global : string -> llvalue -> llmodule -> llvalue
- = "llvm_define_global"
+val define_global : string -> llvalue -> llmodule -> llvalue
+
(** [define_qualified_global name init addrspace m] returns a new global with
name [name] and initializer [init] in module [m] in the address space
[addrspace]. If the named global already exists, it is renamed.
See the constructor of [llvm::GlobalVariable]. *)
-external define_qualified_global : string -> llvalue -> int -> llmodule ->
+val define_qualified_global : string -> llvalue -> int -> llmodule ->
llvalue
- = "llvm_define_qualified_global"
+
(** [lookup_global name m] returns [Some g] if a global variable with name
[name] exists in module [m]. If no such global exists, returns [None].
See the [llvm::GlobalVariable] constructor. *)
-external lookup_global : string -> llmodule -> llvalue option
- = "llvm_lookup_global"
+val lookup_global : string -> llmodule -> llvalue option
+
(** [delete_global gv] destroys the global variable [gv].
See the method [llvm::GlobalVariable::eraseFromParent]. *)
-external delete_global : llvalue -> unit = "llvm_delete_global"
+val delete_global : llvalue -> unit
(** [global_begin m] returns the first position in the global variable list of
the module [m]. [global_begin] and [global_succ] can be used to iterate
over the global list in order.
See the method [llvm::Module::global_begin]. *)
-external global_begin : llmodule -> (llmodule, llvalue) llpos
- = "llvm_global_begin"
+val global_begin : llmodule -> (llmodule, llvalue) llpos
+
(** [global_succ gv] returns the global variable list position succeeding
[Before gv].
See the method [llvm::Module::global_iterator::operator++]. *)
-external global_succ : llvalue -> (llmodule, llvalue) llpos
- = "llvm_global_succ"
+val global_succ : llvalue -> (llmodule, llvalue) llpos
+
(** [iter_globals f m] applies function [f] to each of the global variables of
module [m] in order. Tail recursive. *)
@@ -1123,14 +1123,14 @@ val fold_left_globals : ('a -> llvalue -> 'a) -> 'a -> llmodule -> 'a
module [m]. [global_end] and [global_pred] can be used to iterate over the
global list in reverse.
See the method [llvm::Module::global_end]. *)
-external global_end : llmodule -> (llmodule, llvalue) llrev_pos
- = "llvm_global_end"
+val global_end : llmodule -> (llmodule, llvalue) llrev_pos
+
(** [global_pred gv] returns the global variable list position preceding
[After gv].
See the method [llvm::Module::global_iterator::operator--]. *)
-external global_pred : llvalue -> (llmodule, llvalue) llrev_pos
- = "llvm_global_pred"
+val global_pred : llvalue -> (llmodule, llvalue) llrev_pos
+
(** [rev_iter_globals f m] applies function [f] to each of the global variables
of module [m] in reverse order. Tail recursive. *)
@@ -1143,37 +1143,37 @@ val fold_right_globals : (llvalue -> 'a -> 'a) -> llmodule -> 'a -> 'a
(** [is_global_constant gv] returns [true] if the global variabile [gv] is a
constant. Returns [false] otherwise.
See the method [llvm::GlobalVariable::isConstant]. *)
-external is_global_constant : llvalue -> bool = "llvm_is_global_constant"
+val is_global_constant : llvalue -> bool
(** [set_global_constant c gv] sets the global variable [gv] to be a constant if
[c] is [true] and not if [c] is [false].
See the method [llvm::GlobalVariable::setConstant]. *)
-external set_global_constant : bool -> llvalue -> unit
- = "llvm_set_global_constant"
+val set_global_constant : bool -> llvalue -> unit
+
(** [global_initializer gv] returns the initializer for the global variable
[gv]. See the method [llvm::GlobalVariable::getInitializer]. *)
-external global_initializer : llvalue -> llvalue = "LLVMGetInitializer"
+val global_initializer : llvalue -> llvalue
(** [set_initializer c gv] sets the initializer for the global variable
[gv] to the constant [c].
See the method [llvm::GlobalVariable::setInitializer]. *)
-external set_initializer : llvalue -> llvalue -> unit = "llvm_set_initializer"
+val set_initializer : llvalue -> llvalue -> unit
(** [remove_initializer gv] unsets the initializer for the global variable
[gv].
See the method [llvm::GlobalVariable::setInitializer]. *)
-external remove_initializer : llvalue -> unit = "llvm_remove_initializer"
+val remove_initializer : llvalue -> unit
(** [is_thread_local gv] returns [true] if the global variable [gv] is
thread-local and [false] otherwise.
See the method [llvm::GlobalVariable::isThreadLocal]. *)
-external is_thread_local : llvalue -> bool = "llvm_is_thread_local"
+val is_thread_local : llvalue -> bool
(** [set_thread_local c gv] sets the global variable [gv] to be thread local if
[c] is [true] and not otherwise.
See the method [llvm::GlobalVariable::setThreadLocal]. *)
-external set_thread_local : bool -> llvalue -> unit = "llvm_set_thread_local"
+val set_thread_local : bool -> llvalue -> unit
(** {7 Operations on aliases} *)
@@ -1181,8 +1181,8 @@ external set_thread_local : bool -> llvalue -> unit = "llvm_set_thread_local"
(** [add_alias m t a n] inserts an alias in the module [m] with the type [t] and
the aliasee [a] with the name [n].
See the constructor for [llvm::GlobalAlias]. *)
-external add_alias : llmodule -> lltype -> llvalue -> string -> llvalue
- = "llvm_add_alias"
+val add_alias : llmodule -> lltype -> llvalue -> string -> llvalue
+
(** {7 Operations on functions} *)
@@ -1191,38 +1191,38 @@ external add_alias : llmodule -> lltype -> llvalue -> string -> llvalue
with name [name] in module [m]. If such a function already exists,
it is returned. If the type of the existing function differs, then a bitcast
to [ty] is returned. *)
-external declare_function : string -> lltype -> llmodule -> llvalue
- = "llvm_declare_function"
+val declare_function : string -> lltype -> llmodule -> llvalue
+
(** [define_function name ty m] creates a new function with name [name] and
type [ty] in module [m]. If the named function already exists, it is
renamed. An entry basic block is created in the function.
See the constructor of [llvm::GlobalVariable]. *)
-external define_function : string -> lltype -> llmodule -> llvalue
- = "llvm_define_function"
+val define_function : string -> lltype -> llmodule -> llvalue
+
(** [lookup_function name m] returns [Some f] if a function with name
[name] exists in module [m]. If no such function exists, returns [None].
See the method [llvm::Module] constructor. *)
-external lookup_function : string -> llmodule -> llvalue option
- = "llvm_lookup_function"
+val lookup_function : string -> llmodule -> llvalue option
+
(** [delete_function f] destroys the function [f].
See the method [llvm::Function::eraseFromParent]. *)
-external delete_function : llvalue -> unit = "llvm_delete_function"
+val delete_function : llvalue -> unit
(** [function_begin m] returns the first position in the function list of the
module [m]. [function_begin] and [function_succ] can be used to iterate over
the function list in order.
See the method [llvm::Module::begin]. *)
-external function_begin : llmodule -> (llmodule, llvalue) llpos
- = "llvm_function_begin"
+val function_begin : llmodule -> (llmodule, llvalue) llpos
+
(** [function_succ gv] returns the function list position succeeding
[Before gv].
See the method [llvm::Module::iterator::operator++]. *)
-external function_succ : llvalue -> (llmodule, llvalue) llpos
- = "llvm_function_succ"
+val function_succ : llvalue -> (llmodule, llvalue) llpos
+
(** [iter_functions f m] applies function [f] to each of the functions of module
[m] in order. Tail recursive. *)
@@ -1236,13 +1236,13 @@ val fold_left_functions : ('a -> llvalue -> 'a) -> 'a -> llmodule -> 'a
the module [m]. [function_end] and [function_pred] can be used to iterate
over the function list in reverse.
See the method [llvm::Module::end]. *)
-external function_end : llmodule -> (llmodule, llvalue) llrev_pos
- = "llvm_function_end"
+val function_end : llmodule -> (llmodule, llvalue) llrev_pos
+
(** [function_pred gv] returns the function list position preceding [After gv].
See the method [llvm::Module::iterator::operator--]. *)
-external function_pred : llvalue -> (llmodule, llvalue) llrev_pos
- = "llvm_function_pred"
+val function_pred : llvalue -> (llmodule, llvalue) llrev_pos
+
(** [rev_iter_functions f fn] applies function [f] to each of the functions of
module [m] in reverse order. Tail recursive. *)
@@ -1254,26 +1254,26 @@ val fold_right_functions : (llvalue -> 'a -> 'a) -> llmodule -> 'a -> 'a
(** [is_intrinsic f] returns true if the function [f] is an intrinsic.
See the method [llvm::Function::isIntrinsic]. *)
-external is_intrinsic : llvalue -> bool = "llvm_is_intrinsic"
+val is_intrinsic : llvalue -> bool
(** [function_call_conv f] returns the calling convention of the function [f].
See the method [llvm::Function::getCallingConv]. *)
-external function_call_conv : llvalue -> int = "llvm_function_call_conv"
+val function_call_conv : llvalue -> int
(** [set_function_call_conv cc f] sets the calling convention of the function
[f] to the calling convention numbered [cc].
See the method [llvm::Function::setCallingConv]. *)
-external set_function_call_conv : int -> llvalue -> unit
- = "llvm_set_function_call_conv"
+val set_function_call_conv : int -> llvalue -> unit
+
(** [gc f] returns [Some name] if the function [f] has a garbage
collection algorithm specified and [None] otherwise.
See the method [llvm::Function::getGC]. *)
-external gc : llvalue -> string option = "llvm_gc"
+val gc : llvalue -> string option
(** [set_gc gc f] sets the collection algorithm for the function [f] to
[gc]. See the method [llvm::Function::setGC]. *)
-external set_gc : string option -> llvalue -> unit = "llvm_set_gc"
+val set_gc : string option -> llvalue -> unit
(** [add_function_attr f a] adds attribute [a] to the return type of function
[f]. *)
@@ -1287,26 +1287,26 @@ val remove_function_attr : llvalue -> Attribute.t -> unit
(** [params f] returns the parameters of function [f].
See the method [llvm::Function::getArgumentList]. *)
-external params : llvalue -> llvalue array = "llvm_params"
+val params : llvalue -> llvalue array
(** [param f n] returns the [n]th parameter of function [f].
See the method [llvm::Function::getArgumentList]. *)
-external param : llvalue -> int -> llvalue = "llvm_param"
+val param : llvalue -> int -> llvalue
(** [param_parent p] returns the parent function that owns the parameter.
See the method [llvm::Argument::getParent]. *)
-external param_parent : llvalue -> llvalue = "LLVMGetParamParent"
+val param_parent : llvalue -> llvalue
(** [param_begin f] returns the first position in the parameter list of the
function [f]. [param_begin] and [param_succ] can be used to iterate over
the parameter list in order.
See the method [llvm::Function::arg_begin]. *)
-external param_begin : llvalue -> (llvalue, llvalue) llpos = "llvm_param_begin"
+val param_begin : llvalue -> (llvalue, llvalue) llpos
(** [param_succ bb] returns the parameter list position succeeding
[Before bb].
See the method [llvm::Function::arg_iterator::operator++]. *)
-external param_succ : llvalue -> (llvalue, llvalue) llpos = "llvm_param_succ"
+val param_succ : llvalue -> (llvalue, llvalue) llpos
(** [iter_params f fn] applies function [f] to each of the parameters
of function [fn] in order. Tail recursive. *)
@@ -1320,12 +1320,12 @@ val fold_left_params : ('a -> llvalue -> 'a) -> 'a -> llvalue -> 'a
the function [f]. [param_end] and [param_pred] can be used to iterate
over the parameter list in reverse.
See the method [llvm::Function::arg_end]. *)
-external param_end : llvalue -> (llvalue, llvalue) llrev_pos = "llvm_param_end"
+val param_end : llvalue -> (llvalue, llvalue) llrev_pos
(** [param_pred gv] returns the function list position preceding [After gv].
See the method [llvm::Function::arg_iterator::operator--]. *)
-external param_pred : llvalue -> (llvalue, llvalue) llrev_pos
- = "llvm_param_pred"
+val param_pred : llvalue -> (llvalue, llvalue) llrev_pos
+
(** [rev_iter_params f fn] applies function [f] to each of the parameters
of function [fn] in reverse order. Tail recursive. *)
@@ -1342,51 +1342,51 @@ val add_param_attr : llvalue -> Attribute.t -> unit
val remove_param_attr : llvalue -> Attribute.t -> unit
(** [set_param_alignment p a] set the alignment of parameter [p] to [a]. *)
-external set_param_alignment : llvalue -> int -> unit
- = "llvm_set_param_alignment"
+val set_param_alignment : llvalue -> int -> unit
+
(** {7 Operations on basic blocks} *)
(** [basic_blocks fn] returns the basic blocks of the function [f].
See the method [llvm::Function::getBasicBlockList]. *)
-external basic_blocks : llvalue -> llbasicblock array = "llvm_basic_blocks"
+val basic_blocks : llvalue -> llbasicblock array
(** [entry_block fn] returns the entry basic block of the function [f].
See the method [llvm::Function::getEntryBlock]. *)
-external entry_block : llvalue -> llbasicblock = "LLVMGetEntryBasicBlock"
+val entry_block : llvalue -> llbasicblock
(** [delete_block bb] deletes the basic block [bb].
See the method [llvm::BasicBlock::eraseFromParent]. *)
-external delete_block : llbasicblock -> unit = "llvm_delete_block"
+val delete_block : llbasicblock -> unit
(** [append_block c name f] creates a new basic block named [name] at the end of
function [f] in the context [c].
See the constructor of [llvm::BasicBlock]. *)
-external append_block : llcontext -> string -> llvalue -> llbasicblock
- = "llvm_append_block"
+val append_block : llcontext -> string -> llvalue -> llbasicblock
+
(** [insert_block c name bb] creates a new basic block named [name] before the
basic block [bb] in the context [c].
See the constructor of [llvm::BasicBlock]. *)
-external insert_block : llcontext -> string -> llbasicblock -> llbasicblock
- = "llvm_insert_block"
+val insert_block : llcontext -> string -> llbasicblock -> llbasicblock
+
(** [block_parent bb] returns the parent function that owns the basic block.
See the method [llvm::BasicBlock::getParent]. *)
-external block_parent : llbasicblock -> llvalue = "LLVMGetBasicBlockParent"
+val block_parent : llbasicblock -> llvalue
(** [block_begin f] returns the first position in the basic block list of the
function [f]. [block_begin] and [block_succ] can be used to iterate over
the basic block list in order.
See the method [llvm::Function::begin]. *)
-external block_begin : llvalue -> (llvalue, llbasicblock) llpos
- = "llvm_block_begin"
+val block_begin : llvalue -> (llvalue, llbasicblock) llpos
+
(** [block_succ bb] returns the basic block list position succeeding
[Before bb].
See the method [llvm::Function::iterator::operator++]. *)
-external block_succ : llbasicblock -> (llvalue, llbasicblock) llpos
- = "llvm_block_succ"
+val block_succ : llbasicblock -> (llvalue, llbasicblock) llpos
+
(** [iter_blocks f fn] applies function [f] to each of the basic blocks
of function [fn] in order. Tail recursive. *)
@@ -1400,13 +1400,13 @@ val fold_left_blocks : ('a -> llbasicblock -> 'a) -> 'a -> llvalue -> 'a
the function [f]. [block_end] and [block_pred] can be used to iterate
over the basic block list in reverse.
See the method [llvm::Function::end]. *)
-external block_end : llvalue -> (llvalue, llbasicblock) llrev_pos
- = "llvm_block_end"
+val block_end : llvalue -> (llvalue, llbasicblock) llrev_pos
+
(** [block_pred gv] returns the function list position preceding [After gv].
See the method [llvm::Function::iterator::operator--]. *)
-external block_pred : llbasicblock -> (llvalue, llbasicblock) llrev_pos
- = "llvm_block_pred"
+val block_pred : llbasicblock -> (llvalue, llbasicblock) llrev_pos
+
(** [rev_iter_blocks f fn] applies function [f] to each of the basic blocks
of function [fn] in reverse order. Tail recursive. *)
@@ -1417,34 +1417,34 @@ val rev_iter_blocks : (llbasicblock -> unit) -> llvalue -> unit
val fold_right_blocks : (llbasicblock -> 'a -> 'a) -> llvalue -> 'a -> 'a
(** [value_of_block bb] losslessly casts [bb] to an [llvalue]. *)
-external value_of_block : llbasicblock -> llvalue = "LLVMBasicBlockAsValue"
+val value_of_block : llbasicblock -> llvalue
(** [value_is_block v] returns [true] if the value [v] is a basic block and
[false] otherwise.
Similar to [llvm::isa]. *)
-external value_is_block : llvalue -> bool = "llvm_value_is_block"
+val value_is_block : llvalue -> bool
(** [block_of_value v] losslessly casts [v] to an [llbasicblock]. *)
-external block_of_value : llvalue -> llbasicblock = "LLVMValueAsBasicBlock"
+val block_of_value : llvalue -> llbasicblock
(** {7 Operations on instructions} *)
(** [instr_parent i] is the enclosing basic block of the instruction [i].
See the method [llvm::Instruction::getParent]. *)
-external instr_parent : llvalue -> llbasicblock = "LLVMGetInstructionParent"
+val instr_parent : llvalue -> llbasicblock
(** [instr_begin bb] returns the first position in the instruction list of the
basic block [bb]. [instr_begin] and [instr_succ] can be used to iterate over
the instruction list in order.
See the method [llvm::BasicBlock::begin]. *)
-external instr_begin : llbasicblock -> (llbasicblock, llvalue) llpos
- = "llvm_instr_begin"
+val instr_begin : llbasicblock -> (llbasicblock, llvalue) llpos
+
(** [instr_succ i] returns the instruction list position succeeding [Before i].
See the method [llvm::BasicBlock::iterator::operator++]. *)
-external instr_succ : llvalue -> (llbasicblock, llvalue) llpos
- = "llvm_instr_succ"
+val instr_succ : llvalue -> (llbasicblock, llvalue) llpos
+
(** [iter_instrs f bb] applies function [f] to each of the instructions of basic
block [bb] in order. Tail recursive. *)
@@ -1458,13 +1458,13 @@ val fold_left_instrs: ('a -> llvalue -> 'a) -> 'a -> llbasicblock -> 'a
basic block [bb]. [instr_end] and [instr_pred] can be used to iterate over
the instruction list in reverse.
See the method [llvm::BasicBlock::end]. *)
-external instr_end : llbasicblock -> (llbasicblock, llvalue) llrev_pos
- = "llvm_instr_end"
+val instr_end : llbasicblock -> (llbasicblock, llvalue) llrev_pos
+
(** [instr_pred i] returns the instruction list position preceding [After i].
See the method [llvm::BasicBlock::iterator::operator--]. *)
-external instr_pred : llvalue -> (llbasicblock, llvalue) llrev_pos
- = "llvm_instr_pred"
+val instr_pred : llvalue -> (llbasicblock, llvalue) llrev_pos
+
(** [fold_right_instrs f bb init] is [f (... (f init fN) ...) f1] where
[f1,...,fN] are the instructions of basic block [bb]. Tail recursive. *)
@@ -1477,16 +1477,16 @@ val fold_right_instrs: (llvalue -> 'a -> 'a) -> llbasicblock -> 'a -> 'a
instruction [ci], which may be one of the values from the module
{!CallConv}. See the method [llvm::CallInst::getCallingConv] and
[llvm::InvokeInst::getCallingConv]. *)
-external instruction_call_conv: llvalue -> int
- = "llvm_instruction_call_conv"
+val instruction_call_conv: llvalue -> int
+
(** [set_instruction_call_conv cc ci] sets the calling convention for the call
or invoke instruction [ci] to the integer [cc], which can be one of the
values from the module {!CallConv}.
See the method [llvm::CallInst::setCallingConv]
and [llvm::InvokeInst::setCallingConv]. *)
-external set_instruction_call_conv: int -> llvalue -> unit
- = "llvm_set_instruction_call_conv"
+val set_instruction_call_conv: int -> llvalue -> unit
+
(** [add_instruction_param_attr ci i a] adds attribute [a] to the [i]th
parameter of the call or invoke instruction [ci]. [i]=0 denotes the return
@@ -1503,23 +1503,23 @@ val remove_instruction_param_attr : llvalue -> int -> Attribute.t -> unit
(** [is_tail_call ci] is [true] if the call instruction [ci] is flagged as
eligible for tail call optimization, [false] otherwise.
See the method [llvm::CallInst::isTailCall]. *)
-external is_tail_call : llvalue -> bool = "llvm_is_tail_call"
+val is_tail_call : llvalue -> bool
(** [set_tail_call tc ci] flags the call instruction [ci] as eligible for tail
call optimization if [tc] is [true], clears otherwise.
See the method [llvm::CallInst::setTailCall]. *)
-external set_tail_call : bool -> llvalue -> unit = "llvm_set_tail_call"
+val set_tail_call : bool -> llvalue -> unit
(** {7 Operations on phi nodes} *)
(** [add_incoming (v, bb) pn] adds the value [v] to the phi node [pn] for use
with branches from [bb]. See the method [llvm::PHINode::addIncoming]. *)
-external add_incoming : (llvalue * llbasicblock) -> llvalue -> unit
- = "llvm_add_incoming"
+val add_incoming : (llvalue * llbasicblock) -> llvalue -> unit
+
(** [incoming pn] returns the list of value-block pairs for phi node [pn].
See the method [llvm::PHINode::getIncomingValue]. *)
-external incoming : llvalue -> (llvalue * llbasicblock) list = "llvm_incoming"
+val incoming : llvalue -> (llvalue * llbasicblock) list
@@ -1529,7 +1529,7 @@ external incoming : llvalue -> (llvalue * llbasicblock) list = "llvm_incoming"
the context [context]. It is invalid to use this builder until its position
is set with {!position_before} or {!position_at_end}. See the constructor
for [llvm::LLVMBuilder]. *)
-external builder : llcontext -> llbuilder = "llvm_builder"
+val builder : llcontext -> llbuilder
(** [builder_at ip] creates an instruction builder positioned at [ip].
See the constructor for [llvm::LLVMBuilder]. *)
@@ -1546,8 +1546,8 @@ val builder_at_end : llcontext -> llbasicblock -> llbuilder
(** [position_builder ip bb] moves the instruction builder [bb] to the position
[ip].
See the constructor for [llvm::LLVMBuilder]. *)
-external position_builder : (llbasicblock, llvalue) llpos -> llbuilder -> unit
- = "llvm_position_builder"
+val position_builder : (llbasicblock, llvalue) llpos -> llbuilder -> unit
+
(** [position_before ins b] moves the instruction builder [b] to before the
instruction [isn]. See the method [llvm::LLVMBuilder::SetInsertPoint]. *)
@@ -1561,38 +1561,38 @@ val position_at_end : llbasicblock -> llbuilder -> unit
positioned to insert into. Raises [Not_Found] if the instruction builder is
uninitialized.
See the method [llvm::LLVMBuilder::GetInsertBlock]. *)
-external insertion_block : llbuilder -> llbasicblock = "llvm_insertion_block"
+val insertion_block : llbuilder -> llbasicblock
(** [insert_into_builder i name b] inserts the specified instruction [i] at the
position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::Insert]. *)
-external insert_into_builder : llvalue -> string -> llbuilder -> unit
- = "llvm_insert_into_builder"
+val insert_into_builder : llvalue -> string -> llbuilder -> unit
+
(** {7 Metadata} *)
(** [set_current_debug_location b md] sets the current debug location [md] in
the builder [b].
See the method [llvm::IRBuilder::SetDebugLocation]. *)
-external set_current_debug_location : llbuilder -> llvalue -> unit
- = "llvm_set_current_debug_location"
+val set_current_debug_location : llbuilder -> llvalue -> unit
+
(** [clear_current_debug_location b] clears the current debug location in the
builder [b]. *)
-external clear_current_debug_location : llbuilder -> unit
- = "llvm_clear_current_debug_location"
+val clear_current_debug_location : llbuilder -> unit
+
(** [current_debug_location b] returns the current debug location, or None
if none is currently set.
See the method [llvm::IRBuilder::GetDebugLocation]. *)
-external current_debug_location : llbuilder -> llvalue option
- = "llvm_current_debug_location"
+val current_debug_location : llbuilder -> llvalue option
+
(** [set_inst_debug_location b i] sets the current debug location of the builder
[b] to the instruction [i].
See the method [llvm::IRBuilder::SetInstDebugLocation]. *)
-external set_inst_debug_location : llbuilder -> llvalue -> unit
- = "llvm_set_inst_debug_location"
+val set_inst_debug_location : llbuilder -> llvalue -> unit
+
(** {7 Terminators} *)
@@ -1600,81 +1600,81 @@ external set_inst_debug_location : llbuilder -> llvalue -> unit
[ret void]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateRetVoid]. *)
-external build_ret_void : llbuilder -> llvalue = "llvm_build_ret_void"
+val build_ret_void : llbuilder -> llvalue
(** [build_ret v b] creates a
[ret %v]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateRet]. *)
-external build_ret : llvalue -> llbuilder -> llvalue = "llvm_build_ret"
+val build_ret : llvalue -> llbuilder -> llvalue
(** [build_aggregate_ret vs b] creates a
[ret {...} { %v1, %v2, ... } ]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateAggregateRet]. *)
-external build_aggregate_ret : llvalue array -> llbuilder -> llvalue
- = "llvm_build_aggregate_ret"
+val build_aggregate_ret : llvalue array -> llbuilder -> llvalue
+
(** [build_br bb b] creates a
[br %bb]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateBr]. *)
-external build_br : llbasicblock -> llbuilder -> llvalue = "llvm_build_br"
+val build_br : llbasicblock -> llbuilder -> llvalue
(** [build_cond_br cond tbb fbb b] creates a
[br %cond, %tbb, %fbb]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateCondBr]. *)
-external build_cond_br : llvalue -> llbasicblock -> llbasicblock -> llbuilder ->
- llvalue = "llvm_build_cond_br"
+val build_cond_br : llvalue -> llbasicblock -> llbasicblock -> llbuilder ->
+ llvalue
(** [build_switch case elsebb count b] creates an empty
[switch %case, %elsebb]
instruction at the position specified by the instruction builder [b] with
space reserved for [count] cases.
See the method [llvm::LLVMBuilder::CreateSwitch]. *)
-external build_switch : llvalue -> llbasicblock -> int -> llbuilder -> llvalue
- = "llvm_build_switch"
+val build_switch : llvalue -> llbasicblock -> int -> llbuilder -> llvalue
+
(** [add_case sw onval bb] causes switch instruction [sw] to branch to [bb]
when its input matches the constant [onval].
See the method [llvm::SwitchInst::addCase]. **)
-external add_case : llvalue -> llvalue -> llbasicblock -> unit
- = "llvm_add_case"
+val add_case : llvalue -> llvalue -> llbasicblock -> unit
+
(** [build_indirect_br addr count b] creates a
[indirectbr %addr]
instruction at the position specified by the instruction builder [b] with
space reserved for [count] destinations.
See the method [llvm::LLVMBuilder::CreateIndirectBr]. *)
-external build_indirect_br : llvalue -> int -> llbuilder -> llvalue
- = "llvm_build_indirect_br"
+val build_indirect_br : llvalue -> int -> llbuilder -> llvalue
+
(** [add_destination br bb] adds the basic block [bb] as a possible branch
location for the indirectbr instruction [br].
See the method [llvm::IndirectBrInst::addDestination]. **)
-external add_destination : llvalue -> llbasicblock -> unit
- = "llvm_add_destination"
+val add_destination : llvalue -> llbasicblock -> unit
+
(** [build_invoke fn args tobb unwindbb name b] creates an
[%name = invoke %fn(args) to %tobb unwind %unwindbb]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateInvoke]. *)
-external build_invoke : llvalue -> llvalue array -> llbasicblock ->
+val build_invoke : llvalue -> llvalue array -> llbasicblock ->
llbasicblock -> string -> llbuilder -> llvalue
- = "llvm_build_invoke_bc" "llvm_build_invoke_nat"
+
(** [build_unwind b] creates an
[unwind]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateUnwind]. *)
-external build_unwind : llbuilder -> llvalue = "llvm_build_unwind"
+val build_unwind : llbuilder -> llvalue
(** [build_unreachable b] creates an
[unreachable]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateUnwind]. *)
-external build_unreachable : llbuilder -> llvalue = "llvm_build_unreachable"
+val build_unreachable : llbuilder -> llvalue
(** {7 Arithmetic} *)
@@ -1683,216 +1683,216 @@ external build_unreachable : llbuilder -> llvalue = "llvm_build_unreachable"
[%name = add %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateAdd]. *)
-external build_add : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_add"
+val build_add : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_nsw_add x y name b] creates a
[%name = nsw add %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateNSWAdd]. *)
-external build_nsw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nsw_add"
+val build_nsw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_nuw_add x y name b] creates a
[%name = nuw add %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateNUWAdd]. *)
-external build_nuw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nuw_add"
+val build_nuw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_fadd x y name b] creates a
[%name = fadd %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFAdd]. *)
-external build_fadd : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_fadd"
+val build_fadd : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_sub x y name b] creates a
[%name = sub %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSub]. *)
-external build_sub : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_sub"
+val build_sub : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_nsw_sub x y name b] creates a
[%name = nsw sub %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateNSWSub]. *)
-external build_nsw_sub : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nsw_sub"
+val build_nsw_sub : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_nuw_sub x y name b] creates a
[%name = nuw sub %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateNUWSub]. *)
-external build_nuw_sub : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nuw_sub"
+val build_nuw_sub : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_fsub x y name b] creates a
[%name = fsub %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFSub]. *)
-external build_fsub : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_fsub"
+val build_fsub : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_mul x y name b] creates a
[%name = mul %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateMul]. *)
-external build_mul : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_mul"
+val build_mul : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_nsw_mul x y name b] creates a
[%name = nsw mul %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateNSWMul]. *)
-external build_nsw_mul : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nsw_mul"
+val build_nsw_mul : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_nuw_mul x y name b] creates a
[%name = nuw mul %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateNUWMul]. *)
-external build_nuw_mul : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nuw_mul"
+val build_nuw_mul : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_fmul x y name b] creates a
[%name = fmul %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFMul]. *)
-external build_fmul : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_fmul"
+val build_fmul : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_udiv x y name b] creates a
[%name = udiv %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateUDiv]. *)
-external build_udiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_udiv"
+val build_udiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_sdiv x y name b] creates a
[%name = sdiv %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSDiv]. *)
-external build_sdiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_sdiv"
+val build_sdiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_exact_sdiv x y name b] creates a
[%name = exact sdiv %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateExactSDiv]. *)
-external build_exact_sdiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_exact_sdiv"
+val build_exact_sdiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_fdiv x y name b] creates a
[%name = fdiv %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFDiv]. *)
-external build_fdiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_fdiv"
+val build_fdiv : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_urem x y name b] creates a
[%name = urem %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateURem]. *)
-external build_urem : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_urem"
+val build_urem : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_SRem x y name b] creates a
[%name = srem %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSRem]. *)
-external build_srem : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_srem"
+val build_srem : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_frem x y name b] creates a
[%name = frem %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFRem]. *)
-external build_frem : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_frem"
+val build_frem : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_shl x y name b] creates a
[%name = shl %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateShl]. *)
-external build_shl : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_shl"
+val build_shl : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_lshr x y name b] creates a
[%name = lshr %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateLShr]. *)
-external build_lshr : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_lshr"
+val build_lshr : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_ashr x y name b] creates a
[%name = ashr %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateAShr]. *)
-external build_ashr : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_ashr"
+val build_ashr : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_and x y name b] creates a
[%name = and %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateAnd]. *)
-external build_and : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_and"
+val build_and : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_or x y name b] creates a
[%name = or %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateOr]. *)
-external build_or : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_or"
+val build_or : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_xor x y name b] creates a
[%name = xor %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateXor]. *)
-external build_xor : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_xor"
+val build_xor : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** [build_neg x name b] creates a
[%name = sub 0, %x]
instruction at the position specified by the instruction builder [b].
[-0.0] is used for floating point types to compute the correct sign.
See the method [llvm::LLVMBuilder::CreateNeg]. *)
-external build_neg : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_neg"
+val build_neg : llvalue -> string -> llbuilder -> llvalue
+
(** [build_nsw_neg x name b] creates a
[%name = nsw sub 0, %x]
instruction at the position specified by the instruction builder [b].
[-0.0] is used for floating point types to compute the correct sign.
See the method [llvm::LLVMBuilder::CreateNeg]. *)
-external build_nsw_neg : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nsw_neg"
+val build_nsw_neg : llvalue -> string -> llbuilder -> llvalue
+
(** [build_nuw_neg x name b] creates a
[%name = nuw sub 0, %x]
instruction at the position specified by the instruction builder [b].
[-0.0] is used for floating point types to compute the correct sign.
See the method [llvm::LLVMBuilder::CreateNeg]. *)
-external build_nuw_neg : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_nuw_neg"
+val build_nuw_neg : llvalue -> string -> llbuilder -> llvalue
+
(** [build_fneg x name b] creates a
[%name = fsub 0, %x]
instruction at the position specified by the instruction builder [b].
[-0.0] is used for floating point types to compute the correct sign.
See the method [llvm::LLVMBuilder::CreateFNeg]. *)
-external build_fneg : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_fneg"
+val build_fneg : llvalue -> string -> llbuilder -> llvalue
+
(** [build_xor x name b] creates a
[%name = xor %x, -1]
instruction at the position specified by the instruction builder [b].
[-1] is the correct "all ones" value for the type of [x].
See the method [llvm::LLVMBuilder::CreateXor]. *)
-external build_not : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_not"
+val build_not : llvalue -> string -> llbuilder -> llvalue
+
(** {7 Memory} *)
@@ -1901,63 +1901,63 @@ external build_not : llvalue -> string -> llbuilder -> llvalue
[%name = alloca %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateAlloca]. *)
-external build_alloca : lltype -> string -> llbuilder -> llvalue
- = "llvm_build_alloca"
+val build_alloca : lltype -> string -> llbuilder -> llvalue
+
(** [build_array_alloca ty n name b] creates a
[%name = alloca %ty, %n]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateAlloca]. *)
-external build_array_alloca : lltype -> llvalue -> string -> llbuilder ->
- llvalue = "llvm_build_array_alloca"
+val build_array_alloca : lltype -> llvalue -> string -> llbuilder ->
+ llvalue
(** [build_load v name b] creates a
[%name = load %v]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateLoad]. *)
-external build_load : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_load"
+val build_load : llvalue -> string -> llbuilder -> llvalue
+
(** [build_store v p b] creates a
[store %v, %p]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateStore]. *)
-external build_store : llvalue -> llvalue -> llbuilder -> llvalue
- = "llvm_build_store"
+val build_store : llvalue -> llvalue -> llbuilder -> llvalue
+
(** [build_gep p indices name b] creates a
[%name = getelementptr %p, indices...]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateGetElementPtr]. *)
-external build_gep : llvalue -> llvalue array -> string -> llbuilder -> llvalue
- = "llvm_build_gep"
+val build_gep : llvalue -> llvalue array -> string -> llbuilder -> llvalue
+
(** [build_in_bounds_gep p indices name b] creates a
[%name = gelementptr inbounds %p, indices...]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateInBoundsGetElementPtr]. *)
-external build_in_bounds_gep : llvalue -> llvalue array -> string -> llbuilder ->
- llvalue = "llvm_build_in_bounds_gep"
+val build_in_bounds_gep : llvalue -> llvalue array -> string -> llbuilder ->
+ llvalue
(** [build_struct_gep p idx name b] creates a
[%name = getelementptr %p, 0, idx]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateStructGetElementPtr]. *)
-external build_struct_gep : llvalue -> int -> string -> llbuilder ->
- llvalue = "llvm_build_struct_gep"
+val build_struct_gep : llvalue -> int -> string -> llbuilder ->
+ llvalue
(** [build_global_string str name b] creates a series of instructions that adds
a global string at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateGlobalString]. *)
-external build_global_string : string -> string -> llbuilder -> llvalue
- = "llvm_build_global_string"
+val build_global_string : string -> string -> llbuilder -> llvalue
+
(** [build_global_stringptr str name b] creates a series of instructions that
adds a global string pointer at the position specified by the instruction
builder [b].
See the method [llvm::LLVMBuilder::CreateGlobalStringPtr]. *)
-external build_global_stringptr : string -> string -> llbuilder -> llvalue
- = "llvm_build_global_stringptr"
+val build_global_stringptr : string -> string -> llbuilder -> llvalue
+
(** {7 Casts} *)
@@ -1966,121 +1966,121 @@ external build_global_stringptr : string -> string -> llbuilder -> llvalue
[%name = trunc %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateTrunc]. *)
-external build_trunc : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_trunc"
+val build_trunc : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_zext v ty name b] creates a
[%name = zext %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateZExt]. *)
-external build_zext : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_zext"
+val build_zext : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_sext v ty name b] creates a
[%name = sext %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSExt]. *)
-external build_sext : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_sext"
+val build_sext : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_fptoui v ty name b] creates a
[%name = fptoui %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFPToUI]. *)
-external build_fptoui : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_fptoui"
+val build_fptoui : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_fptosi v ty name b] creates a
[%name = fptosi %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFPToSI]. *)
-external build_fptosi : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_fptosi"
+val build_fptosi : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_uitofp v ty name b] creates a
[%name = uitofp %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateUIToFP]. *)
-external build_uitofp : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_uitofp"
+val build_uitofp : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_sitofp v ty name b] creates a
[%name = sitofp %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSIToFP]. *)
-external build_sitofp : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_sitofp"
+val build_sitofp : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_fptrunc v ty name b] creates a
[%name = fptrunc %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFPTrunc]. *)
-external build_fptrunc : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_fptrunc"
+val build_fptrunc : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_fpext v ty name b] creates a
[%name = fpext %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFPExt]. *)
-external build_fpext : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_fpext"
+val build_fpext : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_ptrtoint v ty name b] creates a
[%name = prtotint %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreatePtrToInt]. *)
-external build_ptrtoint : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_prttoint"
+val build_ptrtoint : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_inttoptr v ty name b] creates a
[%name = inttoptr %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateIntToPtr]. *)
-external build_inttoptr : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_inttoptr"
+val build_inttoptr : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_bitcast v ty name b] creates a
[%name = bitcast %p to %ty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateBitCast]. *)
-external build_bitcast : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_bitcast"
+val build_bitcast : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_zext_or_bitcast v ty name b] creates a zext or bitcast
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateZExtOrBitCast]. *)
-external build_zext_or_bitcast : llvalue -> lltype -> string -> llbuilder ->
- llvalue = "llvm_build_zext_or_bitcast"
+val build_zext_or_bitcast : llvalue -> lltype -> string -> llbuilder ->
+ llvalue
(** [build_sext_or_bitcast v ty name b] creates a sext or bitcast
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSExtOrBitCast]. *)
-external build_sext_or_bitcast : llvalue -> lltype -> string -> llbuilder ->
- llvalue = "llvm_build_sext_or_bitcast"
+val build_sext_or_bitcast : llvalue -> lltype -> string -> llbuilder ->
+ llvalue
(** [build_trunc_or_bitcast v ty name b] creates a trunc or bitcast
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateZExtOrBitCast]. *)
-external build_trunc_or_bitcast : llvalue -> lltype -> string -> llbuilder ->
- llvalue = "llvm_build_trunc_or_bitcast"
+val build_trunc_or_bitcast : llvalue -> lltype -> string -> llbuilder ->
+ llvalue
(** [build_pointercast v ty name b] creates a bitcast or pointer-to-int
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreatePointerCast]. *)
-external build_pointercast : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_pointercast"
+val build_pointercast : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_intcast v ty name b] creates a zext, bitcast, or trunc
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateIntCast]. *)
-external build_intcast : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_intcast"
+val build_intcast : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_fpcast v ty name b] creates a fpext, bitcast, or fptrunc
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFPCast]. *)
-external build_fpcast : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_fpcast"
+val build_fpcast : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** {7 Comparisons} *)
@@ -2089,15 +2089,15 @@ external build_fpcast : llvalue -> lltype -> string -> llbuilder -> llvalue
[%name = icmp %pred %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateICmp]. *)
-external build_icmp : Icmp.t -> llvalue -> llvalue -> string ->
- llbuilder -> llvalue = "llvm_build_icmp"
+val build_icmp : Icmp.t -> llvalue -> llvalue -> string ->
+ llbuilder -> llvalue
(** [build_fcmp pred x y name b] creates a
[%name = fcmp %pred %x, %y]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateFCmp]. *)
-external build_fcmp : Fcmp.t -> llvalue -> llvalue -> string ->
- llbuilder -> llvalue = "llvm_build_fcmp"
+val build_fcmp : Fcmp.t -> llvalue -> llvalue -> string ->
+ llbuilder -> llvalue
(** {7 Miscellaneous instructions} *)
@@ -2107,85 +2107,85 @@ external build_fcmp : Fcmp.t -> llvalue -> llvalue -> string ->
instruction at the position specified by the instruction builder [b].
[incoming] is a list of [(llvalue, llbasicblock)] tuples.
See the method [llvm::LLVMBuilder::CreatePHI]. *)
-external build_phi : (llvalue * llbasicblock) list -> string -> llbuilder ->
- llvalue = "llvm_build_phi"
+val build_phi : (llvalue * llbasicblock) list -> string -> llbuilder ->
+ llvalue
(** [build_call fn args name b] creates a
[%name = call %fn(args...)]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateCall]. *)
-external build_call : llvalue -> llvalue array -> string -> llbuilder -> llvalue
- = "llvm_build_call"
+val build_call : llvalue -> llvalue array -> string -> llbuilder -> llvalue
+
(** [build_select cond thenv elsev name b] creates a
[%name = select %cond, %thenv, %elsev]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateSelect]. *)
-external build_select : llvalue -> llvalue -> llvalue -> string -> llbuilder ->
- llvalue = "llvm_build_select"
+val build_select : llvalue -> llvalue -> llvalue -> string -> llbuilder ->
+ llvalue
(** [build_va_arg valist argty name b] creates a
[%name = va_arg %valist, %argty]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateVAArg]. *)
-external build_va_arg : llvalue -> lltype -> string -> llbuilder -> llvalue
- = "llvm_build_va_arg"
+val build_va_arg : llvalue -> lltype -> string -> llbuilder -> llvalue
+
(** [build_extractelement vec i name b] creates a
[%name = extractelement %vec, %i]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateExtractElement]. *)
-external build_extractelement : llvalue -> llvalue -> string -> llbuilder ->
- llvalue = "llvm_build_extractelement"
+val build_extractelement : llvalue -> llvalue -> string -> llbuilder ->
+ llvalue
(** [build_insertelement vec elt i name b] creates a
[%name = insertelement %vec, %elt, %i]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateInsertElement]. *)
-external build_insertelement : llvalue -> llvalue -> llvalue -> string ->
- llbuilder -> llvalue = "llvm_build_insertelement"
+val build_insertelement : llvalue -> llvalue -> llvalue -> string ->
+ llbuilder -> llvalue
(** [build_shufflevector veca vecb mask name b] creates a
[%name = shufflevector %veca, %vecb, %mask]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateShuffleVector]. *)
-external build_shufflevector : llvalue -> llvalue -> llvalue -> string ->
- llbuilder -> llvalue = "llvm_build_shufflevector"
+val build_shufflevector : llvalue -> llvalue -> llvalue -> string ->
+ llbuilder -> llvalue
(** [build_insertvalue agg idx name b] creates a
[%name = extractvalue %agg, %idx]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateExtractValue]. *)
-external build_extractvalue : llvalue -> int -> string -> llbuilder -> llvalue
- = "llvm_build_extractvalue"
+val build_extractvalue : llvalue -> int -> string -> llbuilder -> llvalue
+
(** [build_insertvalue agg val idx name b] creates a
[%name = insertvalue %agg, %val, %idx]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateInsertValue]. *)
-external build_insertvalue : llvalue -> llvalue -> int -> string -> llbuilder ->
- llvalue = "llvm_build_insertvalue"
+val build_insertvalue : llvalue -> llvalue -> int -> string -> llbuilder ->
+ llvalue
(** [build_is_null val name b] creates a
[%name = icmp eq %val, null]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateIsNull]. *)
-external build_is_null : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_is_null"
+val build_is_null : llvalue -> string -> llbuilder -> llvalue
+
(** [build_is_not_null val name b] creates a
[%name = icmp ne %val, null]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateIsNotNull]. *)
-external build_is_not_null : llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_is_not_null"
+val build_is_not_null : llvalue -> string -> llbuilder -> llvalue
+
(** [build_ptrdiff lhs rhs name b] creates a series of instructions that measure
the difference between two pointer values at the position specified by the
instruction builder [b].
See the method [llvm::LLVMBuilder::CreatePtrDiff]. *)
-external build_ptrdiff : llvalue -> llvalue -> string -> llbuilder -> llvalue
- = "llvm_build_ptrdiff"
+val build_ptrdiff : llvalue -> llvalue -> string -> llbuilder -> llvalue
+
(** {6 Memory buffers} *)
@@ -2194,14 +2194,14 @@ module MemoryBuffer : sig
(** [of_file p] is the memory buffer containing the contents of the file at
path [p]. If the file could not be read, then [IoError msg] is
raised. *)
- external of_file : string -> llmemorybuffer = "llvm_memorybuffer_of_file"
+ val of_file : string -> llmemorybuffer
(** [stdin ()] is the memory buffer containing the contents of standard input.
If standard input is empty, then [IoError msg] is raised. *)
- external of_stdin : unit -> llmemorybuffer = "llvm_memorybuffer_of_stdin"
+ val of_stdin : unit -> llmemorybuffer
(** Disposes of a memory buffer. *)
- external dispose : llmemorybuffer -> unit = "llvm_memorybuffer_dispose"
+ val dispose : llmemorybuffer -> unit
end
@@ -2216,44 +2216,44 @@ module PassManager : sig
type of pipeline is suitable for link-time optimization and whole-module
transformations.
See the constructor of [llvm::PassManager]. *)
- external create : unit -> [ `Module ] t = "llvm_passmanager_create"
+ val create : unit -> [ `Module ] t
(** [PassManager.create_function m] constructs a new function-by-function
pass pipeline over the module [m]. It does not take ownership of [m].
This type of pipeline is suitable for code generation and JIT compilation
tasks.
See the constructor of [llvm::FunctionPassManager]. *)
- external create_function : llmodule -> [ `Function ] t
- = "LLVMCreateFunctionPassManager"
+ val create_function : llmodule -> [ `Function ] t
+
(** [run_module m pm] initializes, executes on the module [m], and finalizes
all of the passes scheduled in the pass manager [pm]. Returns [true] if
any of the passes modified the module, [false] otherwise.
See the [llvm::PassManager::run] method. *)
- external run_module : llmodule -> [ `Module ] t -> bool
- = "llvm_passmanager_run_module"
+ val run_module : llmodule -> [ `Module ] t -> bool
+
(** [initialize fpm] initializes all of the function passes scheduled in the
function pass manager [fpm]. Returns [true] if any of the passes modified
the module, [false] otherwise.
See the [llvm::FunctionPassManager::doInitialization] method. *)
- external initialize : [ `Function ] t -> bool = "llvm_passmanager_initialize"
+ val initialize : [ `Function ] t -> bool
(** [run_function f fpm] executes all of the function passes scheduled in the
function pass manager [fpm] over the function [f]. Returns [true] if any
of the passes modified [f], [false] otherwise.
See the [llvm::FunctionPassManager::run] method. *)
- external run_function : llvalue -> [ `Function ] t -> bool
- = "llvm_passmanager_run_function"
+ val run_function : llvalue -> [ `Function ] t -> bool
+
(** [finalize fpm] finalizes all of the function passes scheduled in in the
function pass manager [fpm]. Returns [true] if any of the passes
modified the module, [false] otherwise.
See the [llvm::FunctionPassManager::doFinalization] method. *)
- external finalize : [ `Function ] t -> bool = "llvm_passmanager_finalize"
+ val finalize : [ `Function ] t -> bool
(** Frees the memory of a pass pipeline. For function pipelines, does not free
the module.
See the destructor of [llvm::BasePassManager]. *)
- external dispose : [< any ] t -> unit = "llvm_passmanager_dispose"
+ val dispose : [< any ] t -> unit
end
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index ef2e3d66629cf..ce6cf8ea79e9a 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -264,6 +264,11 @@ CAMLprim LLVMTypeRef llvm_ppc_fp128_type(LLVMContextRef Context) {
return LLVMPPCFP128TypeInContext(Context);
}
+/* llcontext -> lltype */
+CAMLprim LLVMTypeRef llvm_x86mmx_type(LLVMContextRef Context) {
+ return LLVMX86MMXTypeInContext(Context);
+}
+
/*--... Operations on function types .......................................--*/
/* lltype -> lltype array -> lltype */
diff --git a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml
index 5699152b5a92d..276e1182d054c 100644
--- a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml
+++ b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml
@@ -39,9 +39,6 @@ external add_loop_unroll : [ unit
= "llvm_add_loop_rotation"
-external add_loop_index_split : [ unit
- = "llvm_add_loop_index_split"
external
add_memory_to_register_promotion : [ unit
diff --git a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli
index 9f95fbce9f89e..d7162c769e430 100644
--- a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli
+++ b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli
@@ -66,11 +66,6 @@ external add_loop_rotation : [ unit
= "llvm_add_loop_rotation"
-(** See the [llvm::createLoopIndexSplitPass] function. *)
-external add_loop_index_split : [ unit
- = "llvm_add_loop_index_split"
-
(** See the [llvm::createPromoteMemoryToRegisterPass] function. *)
external
add_memory_to_register_promotion : [ unit */
-CAMLprim value llvm_add_loop_index_split(LLVMPassManagerRef PM) {
- LLVMAddLoopIndexSplitPass(PM);
- return Val_unit;
-}
-
/* [ unit */
CAMLprim value llvm_add_memory_to_register_promotion(LLVMPassManagerRef PM) {
LLVMAddPromoteMemoryToRegisterPass(PM);
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index f75e5dfb26563..c2fe4317b53a7 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -1,8 +1,14 @@
+if( WIN32 AND NOT CYGWIN )
+ # We consider Cygwin as another Unix
+ set(PURE_WINDOWS 1)
+endif()
+
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckSymbolExists)
include(CheckFunctionExists)
include(CheckCXXSourceCompiles)
+include(TestBigEndian)
if( UNIX AND NOT BEOS )
# Used by check_symbol_exists:
@@ -30,6 +36,7 @@ endfunction()
# include checks
check_include_file(argz.h HAVE_ARGZ_H)
check_include_file(assert.h HAVE_ASSERT_H)
+check_include_file(ctype.h HAVE_CTYPE_H)
check_include_file(dirent.h HAVE_DIRENT_H)
check_include_file(dl.h HAVE_DL_H)
check_include_file(dld.h HAVE_DLD_H)
@@ -44,7 +51,7 @@ check_include_file(malloc.h HAVE_MALLOC_H)
check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
check_include_file(memory.h HAVE_MEMORY_H)
check_include_file(ndir.h HAVE_NDIR_H)
-if( NOT LLVM_ON_WIN32 )
+if( NOT PURE_WINDOWS )
check_include_file(pthread.h HAVE_PTHREAD_H)
endif()
check_include_file(setjmp.h HAVE_SETJMP_H)
@@ -53,6 +60,7 @@ check_include_file(stdint.h HAVE_STDINT_H)
check_include_file(stdio.h HAVE_STDIO_H)
check_include_file(stdlib.h HAVE_STDLIB_H)
check_include_file(string.h HAVE_STRING_H)
+check_include_file(strings.h HAVE_STRINGS_H)
check_include_file(sys/dir.h HAVE_SYS_DIR_H)
check_include_file(sys/dl.h HAVE_SYS_DL_H)
check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
@@ -63,15 +71,19 @@ check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(sys/time.h HAVE_SYS_TIME_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
+check_include_file(sys/uio.h HAVE_SYS_UIO_H)
check_include_file(sys/wait.h HAVE_SYS_WAIT_H)
check_include_file(termios.h HAVE_TERMIOS_H)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(utime.h HAVE_UTIME_H)
check_include_file(valgrind/valgrind.h HAVE_VALGRIND_VALGRIND_H)
check_include_file(windows.h HAVE_WINDOWS_H)
+check_include_file(fenv.h HAVE_FENV_H)
+check_include_file(mach/mach.h HAVE_MACH_MACH_H)
+check_include_file(mach-o/dyld.h HAVE_MACH_O_DYLD_H)
# library checks
-if( NOT LLVM_ON_WIN32 )
+if( NOT PURE_WINDOWS )
check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
check_library_exists(pthread pthread_getspecific "" HAVE_PTHREAD_GETSPECIFIC)
check_library_exists(pthread pthread_rwlock_init "" HAVE_PTHREAD_RWLOCK_INIT)
@@ -83,6 +95,7 @@ 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_function_exists(isatty HAVE_ISATTY)
+check_symbol_exists(index strings.h HAVE_INDEX)
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)
@@ -90,6 +103,16 @@ 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)
+if( HAVE_SETJMP_H )
+ check_symbol_exists(longjmp setjmp.h HAVE_LONGJMP)
+ check_symbol_exists(setjmp setjmp.h HAVE_SETJMP)
+ check_symbol_exists(siglongjmp setjmp.h HAVE_SIGLONGJMP)
+ check_symbol_exists(sigsetjmp setjmp.h HAVE_SIGSETJMP)
+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(mallinfo malloc.h HAVE_MALLINFO)
check_symbol_exists(malloc_zone_statistics malloc/malloc.h
@@ -97,15 +120,78 @@ check_symbol_exists(malloc_zone_statistics malloc/malloc.h
check_symbol_exists(mkdtemp "stdlib.h;unistd.h" HAVE_MKDTEMP)
check_symbol_exists(mkstemp "stdlib.h;unistd.h" HAVE_MKSTEMP)
check_symbol_exists(mktemp "stdlib.h;unistd.h" HAVE_MKTEMP)
-if( NOT LLVM_ON_WIN32 )
+check_symbol_exists(closedir "sys/types.h;dirent.h" HAVE_CLOSEDIR)
+check_symbol_exists(opendir "sys/types.h;dirent.h" HAVE_OPENDIR)
+check_symbol_exists(readdir "sys/types.h;dirent.h" HAVE_READDIR)
+check_symbol_exists(getcwd unistd.h HAVE_GETCWD)
+check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
+check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT)
+check_symbol_exists(rindex strings.h HAVE_RINDEX)
+check_symbol_exists(strchr string.h HAVE_STRCHR)
+check_symbol_exists(strcmp string.h HAVE_STRCMP)
+check_symbol_exists(strdup string.h HAVE_STRDUP)
+check_symbol_exists(strrchr string.h HAVE_STRRCHR)
+if( NOT PURE_WINDOWS )
check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK)
endif()
check_symbol_exists(sbrk unistd.h HAVE_SBRK)
+check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48)
+if( HAVE_RAND48_SRAND48 )
+ check_symbol_exists(lrand48 stdlib.h HAVE_RAND48_LRAND48)
+ if( HAVE_RAND48_LRAND48 )
+ check_symbol_exists(drand48 stdlib.h HAVE_RAND48_DRAND48)
+ if( HAVE_RAND48_DRAND48 )
+ set(HAVE_RAND48 1 CACHE INTERNAL "are srand48/lrand48/drand48 available?")
+ endif()
+ endif()
+endif()
check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)
+check_symbol_exists(strtoq stdlib.h HAVE_STRTOQ)
check_symbol_exists(strerror string.h HAVE_STRERROR)
check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)
-check_symbol_exists(strerror_s string.h HAVE_STRERROR_S)
+check_symbol_exists(strerror_s string.h HAVE_DECL_STRERROR_S)
+check_symbol_exists(memcpy string.h HAVE_MEMCPY)
+check_symbol_exists(memmove string.h HAVE_MEMMOVE)
check_symbol_exists(setenv stdlib.h HAVE_SETENV)
+if( PURE_WINDOWS )
+ check_symbol_exists(_chsize_s io.h HAVE__CHSIZE_S)
+
+ check_function_exists(_alloca HAVE__ALLOCA)
+ check_function_exists(__alloca HAVE___ALLOCA)
+ check_function_exists(__chkstk HAVE___CHKSTK)
+ check_function_exists(___chkstk HAVE____CHKSTK)
+
+ check_function_exists(__ashldi3 HAVE___ASHLDI3)
+ check_function_exists(__ashrdi3 HAVE___ASHRDI3)
+ check_function_exists(__divdi3 HAVE___DIVDI3)
+ check_function_exists(__fixdfdi HAVE___FIXDFDI)
+ check_function_exists(__fixsfdi HAVE___FIXSFDI)
+ check_function_exists(__floatdidf HAVE___FLOATDIDF)
+ check_function_exists(__lshrdi3 HAVE___LSHRDI3)
+ check_function_exists(__moddi3 HAVE___MODDI3)
+ check_function_exists(__udivdi3 HAVE___UDIVDI3)
+ check_function_exists(__umoddi3 HAVE___UMODDI3)
+
+ check_function_exists(__main HAVE___MAIN)
+ check_function_exists(__cmpdi2 HAVE___CMPDI2)
+endif()
+if( HAVE_ARGZ_H )
+ check_symbol_exists(argz_append argz.h HAVE_ARGZ_APPEND)
+ check_symbol_exists(argz_create_sep argz.h HAVE_ARGZ_CREATE_SEP)
+ check_symbol_exists(argz_insert argz.h HAVE_ARGZ_INSERT)
+ check_symbol_exists(argz_next argz.h HAVE_ARGZ_NEXT)
+ check_symbol_exists(argz_stringify argz.h HAVE_ARGZ_STRINGIFY)
+endif()
+if( HAVE_DLFCN_H )
+ if( HAVE_LIBDL )
+ list(APPEND CMAKE_REQUIRED_LIBRARIES dl)
+ endif()
+ check_symbol_exists(dlerror dlfcn.h HAVE_DLERROR)
+ check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
+ if( HAVE_LIBDL )
+ list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES dl)
+ endif()
+endif()
check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC)
if( LLVM_USING_GLIBC )
@@ -130,8 +216,10 @@ if (HAVE_STDINT_H)
set(headers ${headers} "stdint.h")
endif()
+check_type_exists(int64_t "${headers}" HAVE_INT64_T)
check_type_exists(uint64_t "${headers}" HAVE_UINT64_T)
check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T)
+check_type_exists(error_t errno.h HAVE_ERROR_T)
# available programs checks
function(llvm_find_program name)
@@ -154,16 +242,48 @@ llvm_find_program(fdp)
llvm_find_program(dot)
llvm_find_program(dotty)
+if( LLVM_ENABLE_FFI )
+ find_path(FFI_INCLUDE_PATH ffi.h PATHS ${FFI_INCLUDE_DIR})
+ if( FFI_INCLUDE_PATH )
+ set(FFI_HEADER ffi.h CACHE INTERNAL "")
+ set(HAVE_FFI_H 1 CACHE INTERNAL "")
+ else()
+ find_path(FFI_INCLUDE_PATH ffi/ffi.h PATHS ${FFI_INCLUDE_DIR})
+ if( FFI_INCLUDE_PATH )
+ set(FFI_HEADER ffi/ffi.h CACHE INTERNAL "")
+ set(HAVE_FFI_FFI_H 1 CACHE INTERNAL "")
+ endif()
+ endif()
+
+ if( NOT FFI_HEADER )
+ message(FATAL_ERROR "libffi includes are not found.")
+ endif()
+
+ find_library(FFI_LIBRARY_PATH ffi PATHS ${FFI_LIBRARY_DIR})
+ if( NOT FFI_LIBRARY_PATH )
+ message(FATAL_ERROR "libffi is not found.")
+ endif()
+
+ list(APPEND CMAKE_REQUIRED_LIBRARIES ${FFI_LIBRARY_PATH})
+ list(APPEND CMAKE_REQUIRED_INCLUDES ${FFI_INCLUDE_PATH})
+ check_symbol_exists(ffi_call ${FFI_HEADER} HAVE_FFI_CALL)
+ list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${FFI_INCLUDE_PATH})
+ list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES ${FFI_LIBRARY_PATH})
+endif( LLVM_ENABLE_FFI )
+
# Define LLVM_MULTITHREADED if gcc atomic builtins exists.
include(CheckAtomic)
-include(CheckCXXCompilerFlag)
-# On windows all code is position-independent and mingw warns if -fPIC
-# is in the command-line.
-if( NOT WIN32 )
- check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
+if( LLVM_ENABLE_PIC )
+ set(ENABLE_PIC 1)
+else()
+ set(ENABLE_PIC 0)
endif()
+include(CheckCXXCompilerFlag)
+
+check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG)
+
include(GetTargetTriple)
get_target_triple(LLVM_HOSTTRIPLE)
@@ -194,22 +314,20 @@ elseif (LLVM_NATIVE_ARCH MATCHES "arm")
set(LLVM_NATIVE_ARCH ARM)
elseif (LLVM_NATIVE_ARCH MATCHES "mips")
set(LLVM_NATIVE_ARCH Mips)
-elseif (LLVM_NATIVE_ARCH MATCHES "pic16")
- set(LLVM_NATIVE_ARCH "PIC16")
elseif (LLVM_NATIVE_ARCH MATCHES "xcore")
set(LLVM_NATIVE_ARCH XCore)
elseif (LLVM_NATIVE_ARCH MATCHES "msp430")
set(LLVM_NATIVE_ARCH MSP430)
else ()
- message(STATUS
+ message(STATUS
"Unknown architecture ${LLVM_NATIVE_ARCH}; lli will not JIT code")
set(LLVM_NATIVE_ARCH)
endif ()
-
+
if (LLVM_NATIVE_ARCH)
list(FIND LLVM_TARGETS_TO_BUILD ${LLVM_NATIVE_ARCH} NATIVE_ARCH_IDX)
if (NATIVE_ARCH_IDX EQUAL -1)
- message(STATUS
+ message(STATUS
"Native target ${LLVM_NATIVE_ARCH} is not selected; lli will not JIT code")
set(LLVM_NATIVE_ARCH)
else ()
@@ -263,19 +381,3 @@ else( ENABLE_THREADS )
endif()
set(LLVM_PREFIX ${CMAKE_INSTALL_PREFIX})
-
-configure_file(
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/config.h.cmake
- ${LLVM_BINARY_DIR}/include/llvm/Config/config.h
- )
-
-configure_file(
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/llvm-config.h.cmake
- ${LLVM_BINARY_DIR}/include/llvm/Config/llvm-config.h
- )
-
-configure_file(
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/System/DataTypes.h.cmake
- ${LLVM_BINARY_DIR}/include/llvm/System/DataTypes.h
- )
-
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 0ecd153c6be40..dfe67cded331a 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -4,11 +4,17 @@ include(LLVMConfig)
macro(add_llvm_library name)
llvm_process_sources( ALL_FILES ${ARGN} )
add_library( ${name} ${ALL_FILES} )
- set( llvm_libs ${llvm_libs} ${name} PARENT_SCOPE)
- set( llvm_lib_targets ${llvm_lib_targets} ${name} PARENT_SCOPE )
+ set_property( GLOBAL APPEND PROPERTY LLVM_LIBS ${name} )
+ set_property( GLOBAL APPEND PROPERTY LLVM_LIB_TARGETS ${name} )
if( LLVM_COMMON_DEPENDS )
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
endif( LLVM_COMMON_DEPENDS )
+
+ if( BUILD_SHARED_LIBS )
+ get_system_libs(sl)
+ target_link_libraries( ${name} ${sl} )
+ endif()
+
install(TARGETS ${name}
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
@@ -23,12 +29,20 @@ endmacro(add_llvm_library name)
macro(add_llvm_loadable_module name)
- if( NOT LLVM_ON_UNIX )
+ if( NOT LLVM_ON_UNIX OR CYGWIN )
message(STATUS "Loadable modules not supported on this platform.
${name} ignored.")
+ # Add empty "phony" target
+ add_custom_target(${name})
else()
llvm_process_sources( ALL_FILES ${ARGN} )
- add_library( ${name} MODULE ${ALL_FILES} )
+ if (MODULE)
+ set(libkind MODULE)
+ else()
+ set(libkind SHARED)
+ endif()
+
+ add_library( ${name} ${libkind} ${ALL_FILES} )
set_target_properties( ${name} PROPERTIES PREFIX "" )
if (APPLE)
@@ -60,13 +74,15 @@ macro(add_llvm_executable name)
if( LLVM_LINK_COMPONENTS )
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
endif( LLVM_LINK_COMPONENTS )
- get_system_libs(llvm_system_libs)
- if( llvm_system_libs )
- target_link_libraries(${name} ${llvm_system_libs})
- endif()
if( LLVM_COMMON_DEPENDS )
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
endif( LLVM_COMMON_DEPENDS )
+ if( NOT MINGW )
+ get_system_libs(llvm_system_libs)
+ if( llvm_system_libs )
+ target_link_libraries(${name} ${llvm_system_libs})
+ endif()
+ endif()
endmacro(add_llvm_executable name)
@@ -105,5 +121,5 @@ macro(add_llvm_target target_name)
if ( TABLEGEN_OUTPUT )
add_dependencies(LLVM${target_name} ${target_name}Table_gen)
endif (TABLEGEN_OUTPUT)
- set(CURRENT_LLVM_TARGET LLVM${target_name} PARENT_SCOPE)
+ set( CURRENT_LLVM_TARGET LLVM${target_name} )
endmacro(add_llvm_target)
diff --git a/cmake/modules/AddLLVMDefinitions.cmake b/cmake/modules/AddLLVMDefinitions.cmake
index 0f6d81f736d51..33ac9731db5db 100644
--- a/cmake/modules/AddLLVMDefinitions.cmake
+++ b/cmake/modules/AddLLVMDefinitions.cmake
@@ -1,11 +1,13 @@
-# There is no clear way of keeping track of compiler command-line
-# options chosen via `add_definitions', so we need our own method for
-# using it on tools/llvm-config/CMakeLists.txt.
-
-# Beware that there is no implementation of remove_llvm_definitions.
-
-macro(add_llvm_definitions)
- set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${ARGN}")
- add_definitions( ${ARGN} )
-endmacro(add_llvm_definitions)
-
+# There is no clear way of keeping track of compiler command-line
+# options chosen via `add_definitions', so we need our own method for
+# using it on tools/llvm-config/CMakeLists.txt.
+
+# Beware that there is no implementation of remove_llvm_definitions.
+
+macro(add_llvm_definitions)
+ # We don't want no semicolons on LLVM_DEFINITIONS:
+ foreach(arg ${ARGN})
+ set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
+ endforeach(arg)
+ add_definitions( ${ARGN} )
+endmacro(add_llvm_definitions)
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt
index 416d7f4785641..9a5566effb085 100644
--- a/cmake/modules/CMakeLists.txt
+++ b/cmake/modules/CMakeLists.txt
@@ -1,5 +1,8 @@
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake")
+get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS)
+get_property(llvm_lib_targets GLOBAL PROPERTY LLVM_LIB_TARGETS)
+
configure_file(
LLVM.cmake
${llvm_cmake_builddir}/LLVM.cmake
@@ -10,3 +13,21 @@ install(FILES
LLVMConfig.cmake
LLVMLibDeps.cmake
DESTINATION share/llvm/cmake)
+
+install(DIRECTORY .
+ DESTINATION share/llvm/cmake
+ FILES_MATCHING PATTERN *.cmake
+ PATTERN .svn EXCLUDE
+ PATTERN LLVM.cmake EXCLUDE
+ PATTERN LLVMConfig.cmake EXCLUDE
+ PATTERN LLVMLibDeps.cmake EXCLUDE
+ PATTERN FindBison.cmake EXCLUDE
+ PATTERN GetTargetTriple.cmake EXCLUDE
+ PATTERN VersionFromVCS.cmake EXCLUDE
+ PATTERN CheckAtomic.cmake EXCLUDE)
+
+install(FILES
+ ${llvm_cmake_builddir}/LLVM.cmake
+ LLVMConfig.cmake
+ LLVMLibDeps.cmake
+ DESTINATION share/llvm/cmake)
diff --git a/cmake/modules/CrossCompileLLVM.cmake b/cmake/modules/CrossCompileLLVM.cmake
index 138ff0e9fe657..98e60a54366ff 100644
--- a/cmake/modules/CrossCompileLLVM.cmake
+++ b/cmake/modules/CrossCompileLLVM.cmake
@@ -1,26 +1,26 @@
-
-if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
- set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
- set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
-
- add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
- COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
- COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
-
- add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
- COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
- WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
- DEPENDS ${CX_NATIVE_TG_DIR}
- COMMENT "Configuring native TableGen...")
-
- add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
- COMMAND ${CMAKE_BUILD_TOOL}
- DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
- WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
- COMMENT "Building native TableGen...")
- add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
-
- add_dependencies(tblgen NativeTableGen)
-
- set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
-endif()
+
+if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
+ set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
+ set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
+
+ add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
+ COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
+
+ add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
+ COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
+ WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
+ DEPENDS ${CX_NATIVE_TG_DIR}
+ COMMENT "Configuring native TableGen...")
+
+ add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
+ COMMAND ${CMAKE_BUILD_TOOL}
+ DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
+ WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
+ COMMENT "Building native TableGen...")
+ add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
+
+ add_dependencies(tblgen NativeTableGen)
+
+ set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
+endif()
diff --git a/cmake/modules/GetTargetTriple.cmake b/cmake/modules/GetTargetTriple.cmake
index ac0c009242666..f4321c9b67ec7 100644
--- a/cmake/modules/GetTargetTriple.cmake
+++ b/cmake/modules/GetTargetTriple.cmake
@@ -9,7 +9,11 @@ function( get_target_triple var )
set( value "i686-pc-win32" )
endif()
elseif( MINGW AND NOT MSYS )
- set( value "i686-pc-mingw32" )
+ if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
+ set( value "x86_64-w64-mingw32" )
+ else()
+ set( value "i686-pc-mingw32" )
+ endif()
else( MSVC )
set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
execute_process(COMMAND sh ${config_guess}
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
new file mode 100644
index 0000000000000..7ca2bd07fd539
--- /dev/null
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -0,0 +1,161 @@
+include(AddLLVMDefinitions)
+
+# Run-time build mode; It is used for unittests.
+if(MSVC_IDE)
+ # Expect "$(Configuration)", "$(OutDir)", etc.
+ # It is expanded by msbuild or similar.
+ set(RUNTIME_BUILD_MODE "${CMAKE_CFG_INTDIR}")
+elseif(NOT CMAKE_BUILD_TYPE STREQUAL "")
+ # Expect "Release" "Debug", etc.
+ # Or unittests could not run.
+ set(RUNTIME_BUILD_MODE ${CMAKE_BUILD_TYPE})
+else()
+ # It might be "."
+ set(RUNTIME_BUILD_MODE "${CMAKE_CFG_INTDIR}")
+endif()
+
+set(LIT_ARGS_DEFAULT "-sv")
+if (MSVC OR XCODE)
+ set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar")
+endif()
+set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}"
+ CACHE STRING "Default options for lit")
+
+if( LLVM_ENABLE_ASSERTIONS )
+ # MSVC doesn't like _DEBUG on release builds. See PR 4379.
+ if( NOT MSVC )
+ add_definitions( -D_DEBUG )
+ endif()
+ # On Release builds cmake automatically defines NDEBUG, so we
+ # explicitly undefine it:
+ if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
+ add_definitions( -UNDEBUG )
+ endif()
+else()
+ if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
+ if( NOT MSVC_IDE AND NOT XCODE )
+ add_definitions( -DNDEBUG )
+ endif()
+ endif()
+endif()
+
+if(WIN32)
+ if(CYGWIN)
+ set(LLVM_ON_WIN32 0)
+ set(LLVM_ON_UNIX 1)
+ else(CYGWIN)
+ set(LLVM_ON_WIN32 1)
+ set(LLVM_ON_UNIX 0)
+
+ # This is effective only on Win32 hosts to use gnuwin32 tools.
+ set(LLVM_LIT_TOOLS_DIR "" CACHE PATH "Path to GnuWin32 tools")
+ endif(CYGWIN)
+ set(LTDL_SHLIB_EXT ".dll")
+ set(EXEEXT ".exe")
+ # Maximum path length is 160 for non-unicode paths
+ set(MAXPATHLEN 160)
+else(WIN32)
+ if(UNIX)
+ set(LLVM_ON_WIN32 0)
+ set(LLVM_ON_UNIX 1)
+ if(APPLE)
+ set(LTDL_SHLIB_EXT ".dylib")
+ else(APPLE)
+ set(LTDL_SHLIB_EXT ".so")
+ endif(APPLE)
+ set(EXEEXT "")
+ # FIXME: Maximum path length is currently set to 'safe' fixed value
+ set(MAXPATHLEN 2024)
+ else(UNIX)
+ MESSAGE(SEND_ERROR "Unable to determine platform")
+ endif(UNIX)
+endif(WIN32)
+
+if( LLVM_ENABLE_PIC )
+ if( XCODE )
+ # Xcode has -mdynamic-no-pic on by default, which overrides -fPIC. I don't
+ # know how to disable this, so just force ENABLE_PIC off for now.
+ message(WARNING "-fPIC not supported with Xcode.")
+ elseif( WIN32 )
+ # On Windows all code is PIC. MinGW warns if -fPIC is used.
+ else()
+ include(CheckCXXCompilerFlag)
+ check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
+ if( SUPPORTS_FPIC_FLAG )
+ message(STATUS "Building with -fPIC")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+ set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+ else( SUPPORTS_FPIC_FLAG )
+ message(WARNING "-fPIC not supported.")
+ endif()
+ endif()
+endif()
+
+if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
+ # TODO: support other platforms and toolchains.
+ option(LLVM_BUILD_32_BITS "Build 32 bits executables and libraries." OFF)
+ if( LLVM_BUILD_32_BITS )
+ message(STATUS "Building 32 bits executables and libraries.")
+ add_llvm_definitions( -m32 )
+ list(APPEND CMAKE_EXE_LINKER_FLAGS -m32)
+ list(APPEND CMAKE_SHARED_LINKER_FLAGS -m32)
+ endif( LLVM_BUILD_32_BITS )
+endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
+
+if( MSVC )
+ include(ChooseMSVCCRT)
+
+ # Add definitions that make MSVC much less annoying.
+ add_llvm_definitions(
+ # For some reason MS wants to deprecate a bunch of standard functions...
+ -D_CRT_SECURE_NO_DEPRECATE
+ -D_CRT_SECURE_NO_WARNINGS
+ -D_CRT_NONSTDC_NO_DEPRECATE
+ -D_CRT_NONSTDC_NO_WARNINGS
+ -D_SCL_SECURE_NO_DEPRECATE
+ -D_SCL_SECURE_NO_WARNINGS
+
+ -wd4146 # Suppress 'unary minus operator applied to unsigned type, result still unsigned'
+ -wd4180 # Suppress 'qualifier applied to function type has no meaning; ignored'
+ -wd4224 # Suppress 'nonstandard extension used : formal parameter 'identifier' was previously defined as a type'
+ -wd4244 # Suppress ''argument' : conversion from 'type1' to 'type2', possible loss of data'
+ -wd4267 # Suppress ''var' : conversion from 'size_t' to 'type', possible loss of data'
+ -wd4275 # Suppress 'An exported class was derived from a class that was not exported.'
+ -wd4291 # Suppress ''declaration' : no matching operator delete found; memory will not be freed if initialization throws an exception'
+ -wd4345 # Suppress 'behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized'
+ -wd4351 # Suppress 'new behavior: elements of array 'array' will be default initialized'
+ -wd4355 # Suppress ''this' : used in base member initializer list'
+ -wd4503 # Suppress ''identifier' : decorated name length exceeded, name was truncated'
+ -wd4624 # Suppress ''derived class' : destructor could not be generated because a base class destructor is inaccessible'
+ -wd4715 # Suppress ''function' : not all control paths return a value'
+ -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)'
+ -wd4065 # Suppress 'switch statement contains 'default' but no 'case' labels'
+
+ -w14062 # Promote "enumerator in switch of enum is not handled" to level 1 warning.
+ )
+
+ # Enable warnings
+ if (LLVM_ENABLE_WARNINGS)
+ add_llvm_definitions( /W4 /Wall )
+ if (LLVM_ENABLE_PEDANTIC)
+ # No MSVC equivalent available
+ endif (LLVM_ENABLE_PEDANTIC)
+ endif (LLVM_ENABLE_WARNINGS)
+ if (LLVM_ENABLE_WERROR)
+ add_llvm_definitions( /WX )
+ endif (LLVM_ENABLE_WERROR)
+elseif( CMAKE_COMPILER_IS_GNUCXX )
+ if (LLVM_ENABLE_WARNINGS)
+ add_llvm_definitions( -Wall -W -Wno-unused-parameter -Wwrite-strings )
+ if (LLVM_ENABLE_PEDANTIC)
+ add_llvm_definitions( -pedantic -Wno-long-long )
+ endif (LLVM_ENABLE_PEDANTIC)
+ endif (LLVM_ENABLE_WARNINGS)
+ if (LLVM_ENABLE_WERROR)
+ add_llvm_definitions( -Werror )
+ endif (LLVM_ENABLE_WERROR)
+endif( MSVC )
+
+add_llvm_definitions( -D__STDC_LIMIT_MACROS )
+add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
+
diff --git a/cmake/modules/LLVM.cmake b/cmake/modules/LLVM.cmake
index 9621454f41191..d610f3e76516d 100644
--- a/cmake/modules/LLVM.cmake
+++ b/cmake/modules/LLVM.cmake
@@ -1,11 +1,15 @@
# This file provides information and services to the final user.
+set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
+
set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
set(llvm_libs @llvm_libs@)
set(llvm_lib_targets @llvm_lib_targets@)
+set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
+
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
@@ -14,6 +18,13 @@ set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
+set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
+
+set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS)
+
+set(HAVE_LIBDL @HAVE_LIBDL@)
+set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD)
+
# We try to include using the current setting of CMAKE_MODULE_PATH,
# which suppossedly was filled by the user with the directory where
# this file was installed:
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake
index e5497084be841..349544edc3352 100755
--- a/cmake/modules/LLVMConfig.cmake
+++ b/cmake/modules/LLVMConfig.cmake
@@ -59,6 +59,9 @@ endfunction(llvm_map_components_to_libraries)
function(explicit_map_components_to_libraries out_libs)
set( link_components ${ARGN} )
+ get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS)
+ string(TOUPPER "${llvm_libs}" capitalized_libs)
+ # Translate symbolic component names to real libraries:
foreach(c ${link_components})
# add codegen, asmprinter, asmparser, disassembler
list(FIND LLVM_TARGETS_TO_BUILD ${c} idx)
@@ -102,39 +105,48 @@ function(explicit_map_components_to_libraries out_libs)
elseif( c STREQUAL "all" )
list(APPEND expanded_components ${llvm_libs})
else( NOT idx LESS 0 )
- list(APPEND expanded_components LLVM${c})
+ # Canonize the component name:
+ string(TOUPPER "${c}" capitalized)
+ list(FIND capitalized_libs LLVM${capitalized} lib_idx)
+ if( lib_idx LESS 0 )
+ # The component is unkown. Maybe is an ommitted target?
+ is_llvm_target_library(${c} iltl_result)
+ if( NOT iltl_result )
+ message(FATAL_ERROR "Library `${c}' not found in list of llvm libraries.")
+ endif()
+ else( lib_idx LESS 0 )
+ list(GET llvm_libs ${lib_idx} canonical_lib)
+ list(APPEND expanded_components ${canonical_lib})
+ endif( lib_idx LESS 0 )
endif( NOT idx LESS 0 )
endforeach(c)
- # We must match capitalization.
- string(TOUPPER "${llvm_libs}" capitalized_libs)
- list(REMOVE_DUPLICATES expanded_components)
+ # Expand dependencies while topologically sorting the list of libraries:
list(LENGTH expanded_components lst_size)
- set(result "")
- while( 0 LESS ${lst_size} )
- list(GET expanded_components 0 c)
- string(TOUPPER "${c}" capitalized)
- list(FIND capitalized_libs ${capitalized} idx)
- set(add_it ON)
- if( idx LESS 0 )
- # The library is unkown. Maybe is an ommitted target?
- is_llvm_target_library(${c} iltl_result)
- if( NOT iltl_result )
- message(FATAL_ERROR "Library ${c} not found in list of llvm libraries.")
- endif()
- set(add_it OFF)
- endif( idx LESS 0 )
- list(GET llvm_libs ${idx} canonical_lib)
- list(REMOVE_ITEM result ${canonical_lib})
- foreach(c ${MSVC_LIB_DEPS_${canonical_lib}})
- list(REMOVE_ITEM expanded_components ${c})
- endforeach()
- if( add_it )
- list(APPEND result ${canonical_lib})
- list(APPEND expanded_components ${MSVC_LIB_DEPS_${canonical_lib}})
- endif()
- list(REMOVE_AT expanded_components 0)
+ set(cursor 0)
+ set(processed)
+ while( cursor LESS lst_size )
+ list(GET expanded_components ${cursor} lib)
+ list(APPEND expanded_components ${MSVC_LIB_DEPS_${lib}})
+ # Remove duplicates at the front:
+ list(REVERSE expanded_components)
+ list(REMOVE_DUPLICATES expanded_components)
+ list(REVERSE expanded_components)
+ list(APPEND processed ${lib})
+ # Find the maximum index that doesn't have to be re-processed:
+ while(NOT "${expanded_components}" MATCHES "^${processed}.*" )
+ list(REMOVE_AT processed -1)
+ endwhile()
+ list(LENGTH processed cursor)
list(LENGTH expanded_components lst_size)
- endwhile( 0 LESS ${lst_size} )
+ endwhile( cursor LESS lst_size )
+ # Return just the libraries included in this build:
+ set(result)
+ foreach(c ${expanded_components})
+ list(FIND llvm_libs ${c} lib_idx)
+ if( NOT lib_idx LESS 0 )
+ set(result ${result} ${c})
+ endif()
+ endforeach(c)
set(${out_libs} ${result} PARENT_SCOPE)
endfunction(explicit_map_components_to_libraries)
@@ -151,13 +163,13 @@ endfunction(explicit_map_components_to_libraries)
# The format generated by GenLibDeps.pl
-# libLLVMARMAsmPrinter.a: libLLVMMC.a libLLVMSupport.a
+# LLVMARMAsmPrinter.o: LLVMARMCodeGen.o libLLVMAsmPrinter.a libLLVMCodeGen.a libLLVMCore.a libLLVMSupport.a libLLVMTarget.a
# is translated to:
-# set(MSVC_LIB_DEPS_LLVMARMAsmPrinter LLVMMC LLVMSupport)
+# set(MSVC_LIB_DEPS_LLVMARMAsmPrinter LLVMARMCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMSupport LLVMTarget)
-# It is necessary to remove the `lib' prefix and the `.a' suffix.
+# It is necessary to remove the `lib' prefix and the `.a'.
# This 'sed' script should do the trick:
# sed -e s'#\.a##g' -e 's#libLLVM#LLVM#g' -e 's#: # #' -e 's#\(.*\)#set(MSVC_LIB_DEPS_\1)#' ~/llvm/tools/llvm-config/LibDeps.txt
diff --git a/cmake/modules/LLVMLibDeps.cmake b/cmake/modules/LLVMLibDeps.cmake
index e639b04e98007..afba85e45aa3f 100644
--- a/cmake/modules/LLVMLibDeps.cmake
+++ b/cmake/modules/LLVMLibDeps.cmake
@@ -1,71 +1,68 @@
-set(MSVC_LIB_DEPS_LLVMARMAsmParser LLVMARMInfo LLVMMC LLVMMCParser LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMARMAsmParser LLVMARMCodeGen LLVMARMInfo LLVMMC LLVMMCParser LLVMSupport LLVMTarget)
set(MSVC_LIB_DEPS_LLVMARMAsmPrinter LLVMMC LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMARMCodeGen LLVMARMInfo LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMARMInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMAlphaAsmPrinter LLVMAlphaInfo LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMAlphaCodeGen LLVMAlphaInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMAlphaInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMArchive LLVMBitReader LLVMCore LLVMSupport LLVMSystem)
+set(MSVC_LIB_DEPS_LLVMARMCodeGen LLVMARMAsmPrinter LLVMARMInfo LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMARMDisassembler LLVMARMCodeGen LLVMARMInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMARMInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMAlphaCodeGen LLVMAlphaInfo LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMAlphaInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMAnalysis LLVMCore LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMArchive LLVMBitReader LLVMCore LLVMSupport)
set(MSVC_LIB_DEPS_LLVMAsmParser LLVMCore LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMAsmPrinter LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMMCParser LLVMSupport LLVMSystem LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMAsmPrinter LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMMCParser LLVMSupport LLVMTarget)
set(MSVC_LIB_DEPS_LLVMBitReader LLVMCore LLVMSupport)
set(MSVC_LIB_DEPS_LLVMBitWriter LLVMCore LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMBlackfinAsmPrinter LLVMAsmPrinter LLVMBlackfinInfo LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMBlackfinCodeGen LLVMBlackfinInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMBlackfinInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMCBackend LLVMAnalysis LLVMCBackendInfo LLVMCodeGen LLVMCore LLVMMC LLVMScalarOpts LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils LLVMipa)
-set(MSVC_LIB_DEPS_LLVMCBackendInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMCellSPUAsmPrinter LLVMAsmPrinter LLVMCellSPUInfo LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMCellSPUCodeGen LLVMCellSPUInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMCellSPUInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMCodeGen LLVMAnalysis LLVMCore LLVMMC LLVMScalarOpts LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils)
-set(MSVC_LIB_DEPS_LLVMCore LLVMSupport LLVMSystem)
+set(MSVC_LIB_DEPS_LLVMBlackfinCodeGen LLVMAsmPrinter LLVMBlackfinInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMBlackfinInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMCBackend LLVMAnalysis LLVMCBackendInfo LLVMCodeGen LLVMCore LLVMMC LLVMScalarOpts LLVMSupport LLVMTarget LLVMTransformUtils LLVMipa)
+set(MSVC_LIB_DEPS_LLVMCBackendInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMCellSPUCodeGen LLVMAsmPrinter LLVMCellSPUInfo LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMCellSPUInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMCodeGen LLVMAnalysis LLVMCore LLVMMC LLVMScalarOpts LLVMSupport LLVMTarget LLVMTransformUtils)
+set(MSVC_LIB_DEPS_LLVMCore LLVMSupport)
set(MSVC_LIB_DEPS_LLVMCppBackend LLVMCore LLVMCppBackendInfo LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMCppBackendInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMExecutionEngine LLVMCore LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMInstCombine LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils)
-set(MSVC_LIB_DEPS_LLVMInstrumentation LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTransformUtils)
-set(MSVC_LIB_DEPS_LLVMInterpreter LLVMCodeGen LLVMCore LLVMExecutionEngine LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMJIT LLVMCodeGen LLVMCore LLVMExecutionEngine LLVMMC LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMLinker LLVMArchive LLVMBitReader LLVMCore LLVMSupport LLVMSystem LLVMTransformUtils)
-set(MSVC_LIB_DEPS_LLVMMBlazeAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMBlazeCodeGen LLVMMBlazeInfo LLVMMC LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMMBlazeCodeGen LLVMCodeGen LLVMCore LLVMMBlazeInfo LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMMBlazeInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMMC LLVMSupport LLVMSystem)
-set(MSVC_LIB_DEPS_LLVMMCDisassembler LLVMARMAsmParser LLVMARMCodeGen LLVMARMInfo LLVMAlphaAsmPrinter LLVMAlphaCodeGen LLVMAlphaInfo LLVMBlackfinAsmPrinter LLVMBlackfinCodeGen LLVMBlackfinInfo LLVMCBackend LLVMCBackendInfo LLVMCellSPUAsmPrinter LLVMCellSPUCodeGen LLVMCellSPUInfo LLVMCppBackend LLVMCppBackendInfo LLVMMBlazeAsmPrinter LLVMMBlazeCodeGen LLVMMBlazeInfo LLVMMC LLVMMCParser LLVMMSP430AsmPrinter LLVMMSP430CodeGen LLVMMSP430Info LLVMMipsAsmPrinter LLVMMipsCodeGen LLVMMipsInfo LLVMPIC16AsmPrinter LLVMPIC16CodeGen LLVMPIC16Info LLVMPowerPCAsmPrinter LLVMPowerPCCodeGen LLVMPowerPCInfo LLVMSparcAsmPrinter LLVMSparcCodeGen LLVMSparcInfo LLVMSupport LLVMSystem LLVMSystemZAsmPrinter LLVMSystemZCodeGen LLVMSystemZInfo LLVMX86AsmParser LLVMX86CodeGen LLVMX86Disassembler LLVMX86Info LLVMXCoreAsmPrinter LLVMXCoreCodeGen LLVMXCoreInfo)
+set(MSVC_LIB_DEPS_LLVMCppBackendInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMExecutionEngine LLVMCore LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMInstCombine LLVMAnalysis LLVMCore LLVMSupport LLVMTarget LLVMTransformUtils)
+set(MSVC_LIB_DEPS_LLVMInstrumentation LLVMAnalysis LLVMCore LLVMSupport LLVMTransformUtils)
+set(MSVC_LIB_DEPS_LLVMInterpreter LLVMCodeGen LLVMCore LLVMExecutionEngine LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMJIT LLVMCodeGen LLVMCore LLVMExecutionEngine LLVMMC LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMLinker LLVMArchive LLVMBitReader LLVMCore LLVMSupport LLVMTransformUtils)
+set(MSVC_LIB_DEPS_LLVMMBlazeAsmParser LLVMMBlazeCodeGen LLVMMBlazeInfo LLVMMC LLVMMCParser LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMMBlazeAsmPrinter LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMBlazeCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMBlazeAsmPrinter LLVMMBlazeInfo LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMMBlazeDisassembler LLVMMBlazeCodeGen LLVMMBlazeInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMBlazeInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMCDisassembler LLVMARMAsmParser LLVMARMCodeGen LLVMARMDisassembler LLVMARMInfo LLVMAlphaCodeGen LLVMAlphaInfo LLVMBlackfinCodeGen LLVMBlackfinInfo LLVMCBackend LLVMCBackendInfo LLVMCellSPUCodeGen LLVMCellSPUInfo LLVMCppBackend LLVMCppBackendInfo LLVMMBlazeAsmParser LLVMMBlazeCodeGen LLVMMBlazeDisassembler LLVMMBlazeInfo LLVMMC LLVMMCParser LLVMMSP430CodeGen LLVMMSP430Info LLVMMipsCodeGen LLVMMipsInfo LLVMPTXCodeGen LLVMPTXInfo LLVMPowerPCCodeGen LLVMPowerPCInfo LLVMSparcCodeGen LLVMSparcInfo LLVMSupport LLVMSystemZCodeGen LLVMSystemZInfo LLVMX86AsmParser LLVMX86CodeGen LLVMX86Disassembler LLVMX86Info LLVMXCoreCodeGen LLVMXCoreInfo)
+set(MSVC_LIB_DEPS_LLVMMCJIT LLVMExecutionEngine LLVMSupport LLVMTarget)
set(MSVC_LIB_DEPS_LLVMMCParser LLVMMC LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMMSP430AsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMMSP430Info LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMMSP430CodeGen LLVMCodeGen LLVMCore LLVMMC LLVMMSP430Info LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMMSP430Info LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMMipsAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMMipsCodeGen LLVMMipsInfo LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMMipsCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMMipsInfo LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMMipsInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMPIC16AsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPIC16CodeGen LLVMPIC16Info LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMPIC16CodeGen LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMPIC16Info LLVMSelectionDAG LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMPIC16Info LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMPowerPCAsmPrinter LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPowerPCInfo LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMPowerPCCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMPowerPCInfo LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMPowerPCInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMScalarOpts LLVMAnalysis LLVMCore LLVMInstCombine LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils)
-set(MSVC_LIB_DEPS_LLVMSelectionDAG LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMSparcAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSparcInfo LLVMSupport LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMSparcCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSparcInfo LLVMSupport LLVMSystem LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMSparcInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMSupport LLVMSystem)
-set(MSVC_LIB_DEPS_LLVMSystem )
-set(MSVC_LIB_DEPS_LLVMSystemZAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMSystemZInfo LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMSystemZCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystemZInfo LLVMTarget)
-set(MSVC_LIB_DEPS_LLVMSystemZInfo LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMSP430AsmPrinter LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMSP430CodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMMSP430AsmPrinter LLVMMSP430Info LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMMSP430Info LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMMipsCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMMipsInfo LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMMipsInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMObject LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMPTXCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPTXInfo LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMPTXInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMPowerPCAsmPrinter LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMPowerPCCodeGen LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPowerPCAsmPrinter LLVMPowerPCInfo LLVMSelectionDAG LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMPowerPCInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMScalarOpts LLVMAnalysis LLVMCore LLVMInstCombine LLVMSupport LLVMTarget LLVMTransformUtils)
+set(MSVC_LIB_DEPS_LLVMSelectionDAG LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget LLVMTransformUtils)
+set(MSVC_LIB_DEPS_LLVMSparcCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSparcInfo LLVMSupport LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMSparcInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMSupport )
+set(MSVC_LIB_DEPS_LLVMSystemZCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystemZInfo LLVMTarget)
+set(MSVC_LIB_DEPS_LLVMSystemZInfo LLVMMC LLVMSupport)
set(MSVC_LIB_DEPS_LLVMTarget LLVMCore LLVMMC LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMTransformUtils LLVMAnalysis LLVMCore LLVMSupport LLVMSystem LLVMTarget LLVMipa)
+set(MSVC_LIB_DEPS_LLVMTransformUtils LLVMAnalysis LLVMCore LLVMSupport LLVMTarget LLVMipa)
set(MSVC_LIB_DEPS_LLVMX86AsmParser LLVMMC LLVMMCParser LLVMSupport LLVMTarget LLVMX86Info)
-set(MSVC_LIB_DEPS_LLVMX86AsmPrinter LLVMMC LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMX86CodeGen LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget LLVMX86AsmPrinter LLVMX86Info)
+set(MSVC_LIB_DEPS_LLVMX86AsmPrinter LLVMMC LLVMSupport LLVMX86Utils)
+set(MSVC_LIB_DEPS_LLVMX86CodeGen LLVMAnalysis LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget LLVMX86AsmPrinter LLVMX86Info LLVMX86Utils)
set(MSVC_LIB_DEPS_LLVMX86Disassembler LLVMMC LLVMSupport LLVMX86Info)
-set(MSVC_LIB_DEPS_LLVMX86Info LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMXCoreAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSupport LLVMTarget LLVMXCoreInfo)
-set(MSVC_LIB_DEPS_LLVMXCoreCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget LLVMXCoreInfo)
-set(MSVC_LIB_DEPS_LLVMXCoreInfo LLVMSupport)
-set(MSVC_LIB_DEPS_LLVMipa LLVMAnalysis LLVMCore LLVMSupport LLVMSystem)
-set(MSVC_LIB_DEPS_LLVMipo LLVMAnalysis LLVMCore LLVMScalarOpts LLVMSupport LLVMSystem LLVMTarget LLVMTransformUtils LLVMipa)
+set(MSVC_LIB_DEPS_LLVMX86Info LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMX86Utils LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMXCoreCodeGen LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMSelectionDAG LLVMSupport LLVMTarget LLVMXCoreInfo)
+set(MSVC_LIB_DEPS_LLVMXCoreInfo LLVMMC LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMipa LLVMAnalysis LLVMCore LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMipo LLVMAnalysis LLVMCore LLVMScalarOpts LLVMSupport LLVMTarget LLVMTransformUtils LLVMipa)
diff --git a/cmake/modules/LLVMParseArguments.cmake b/cmake/modules/LLVMParseArguments.cmake
new file mode 100644
index 0000000000000..ce19be114b311
--- /dev/null
+++ b/cmake/modules/LLVMParseArguments.cmake
@@ -0,0 +1,80 @@
+# Copied from http://www.itk.org/Wiki/CMakeMacroParseArguments under
+# http://creativecommons.org/licenses/by/2.5/.
+#
+# The PARSE_ARGUMENTS macro will take the arguments of another macro and define
+# several variables. The first argument to PARSE_ARGUMENTS is a prefix to put on
+# all variables it creates. The second argument is a list of names, and the
+# third argument is a list of options. Both of these lists should be quoted. The
+# rest of PARSE_ARGUMENTS are arguments from another macro to be parsed.
+#
+# PARSE_ARGUMENTS(prefix arg_names options arg1 arg2...)
+#
+# For each item in options, PARSE_ARGUMENTS will create a variable with that
+# name, prefixed with prefix_. So, for example, if prefix is MY_MACRO and
+# options is OPTION1;OPTION2, then PARSE_ARGUMENTS will create the variables
+# MY_MACRO_OPTION1 and MY_MACRO_OPTION2. These variables will be set to true if
+# the option exists in the command line or false otherwise.
+#
+#For each item in arg_names, PARSE_ARGUMENTS will create a variable with that
+#name, prefixed with prefix_. Each variable will be filled with the arguments
+#that occur after the given arg_name is encountered up to the next arg_name or
+#the end of the arguments. All options are removed from these
+#lists. PARSE_ARGUMENTS also creates a prefix_DEFAULT_ARGS variable containing
+#the list of all arguments up to the first arg_name encountered.
+#
+#Here is a simple, albeit impractical, example of using PARSE_ARGUMENTS that
+#demonstrates its behavior.
+#
+# SET(arguments
+# hello OPTION3 world
+# LIST3 foo bar
+# OPTION2
+# LIST1 fuz baz
+# )
+#
+# PARSE_ARGUMENTS(ARG "LIST1;LIST2;LIST3" "OPTION1;OPTION2;OPTION3" ${arguments})
+#
+# PARSE_ARGUMENTS creates 7 variables and sets them as follows:
+# ARG_DEFAULT_ARGS: hello;world
+# ARG_LIST1: fuz;baz
+# ARG_LIST2:
+# ARG_LIST3: foo;bar
+# ARG_OPTION1: FALSE
+# ARG_OPTION2: TRUE
+# ARG_OPTION3: TRUE
+#
+# If you don't have any options, use an empty string in its place.
+# PARSE_ARGUMENTS(ARG "LIST1;LIST2;LIST3" "" ${arguments})
+# Likewise if you have no lists.
+# PARSE_ARGUMENTS(ARG "" "OPTION1;OPTION2;OPTION3" ${arguments})
+
+MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
+ SET(DEFAULT_ARGS)
+ FOREACH(arg_name ${arg_names})
+ SET(${prefix}_${arg_name})
+ ENDFOREACH(arg_name)
+ FOREACH(option ${option_names})
+ SET(${prefix}_${option} FALSE)
+ ENDFOREACH(option)
+
+ SET(current_arg_name DEFAULT_ARGS)
+ SET(current_arg_list)
+ FOREACH(arg ${ARGN})
+ SET(larg_names ${arg_names})
+ LIST(FIND larg_names "${arg}" is_arg_name)
+ IF (is_arg_name GREATER -1)
+ SET(${prefix}_${current_arg_name} ${current_arg_list})
+ SET(current_arg_name ${arg})
+ SET(current_arg_list)
+ ELSE (is_arg_name GREATER -1)
+ SET(loption_names ${option_names})
+ LIST(FIND loption_names "${arg}" is_option)
+ IF (is_option GREATER -1)
+ SET(${prefix}_${arg} TRUE)
+ ELSE (is_option GREATER -1)
+ SET(current_arg_list ${current_arg_list} ${arg})
+ ENDIF (is_option GREATER -1)
+ ENDIF (is_arg_name GREATER -1)
+ ENDFOREACH(arg)
+ SET(${prefix}_${current_arg_name} ${current_arg_list})
+ENDMACRO(PARSE_ARGUMENTS)
diff --git a/cmake/modules/LLVMProcessSources.cmake b/cmake/modules/LLVMProcessSources.cmake
index b753735cd55e7..270292ad3b863 100644
--- a/cmake/modules/LLVMProcessSources.cmake
+++ b/cmake/modules/LLVMProcessSources.cmake
@@ -1,5 +1,22 @@
include(AddFileDependencies)
+function(llvm_replace_compiler_option var old new)
+ # Replaces a compiler option or switch `old' in `var' by `new'.
+ # If `old' is not in `var', appends `new' to `var'.
+ # Example: llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELEASE "-O3" "-O2")
+ # If the option already is on the variable, don't add it:
+ if( "${${var}}" MATCHES "(^| )${new}($| )" )
+ set(n "")
+ else()
+ set(n "${new}")
+ endif()
+ if( "${${var}}" MATCHES "(^| )${old}($| )" )
+ string( REGEX REPLACE "(^| )${old}($| )" " ${n} " ${var} "${${var}}" )
+ else()
+ set( ${var} "${${var}} ${n}" )
+ endif()
+ set( ${var} "${${var}}" PARENT_SCOPE )
+endfunction(llvm_replace_compiler_option)
macro(add_td_sources srcs)
file(GLOB tds *.td)
@@ -12,7 +29,7 @@ endmacro(add_td_sources)
macro(add_header_files srcs)
- file(GLOB hds *.h)
+ file(GLOB hds *.h *.def)
if( hds )
set_source_files_properties(${hds} PROPERTIES HEADER_FILE_ONLY ON)
list(APPEND ${srcs} ${hds})
@@ -36,6 +53,25 @@ function(llvm_process_sources OUT_VAR)
add_td_sources(sources)
add_header_files(sources)
endif()
+
+ # Set common compiler options:
+ if( NOT LLVM_REQUIRES_EH )
+ if( CMAKE_COMPILER_IS_GNUCXX )
+ add_definitions( -fno-exceptions )
+ elseif( MSVC )
+ llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/EHsc" "/EHs-c-")
+ add_definitions( /D_HAS_EXCEPTIONS=0 )
+ endif()
+ endif()
+ if( NOT LLVM_REQUIRES_RTTI )
+ if( CMAKE_COMPILER_IS_GNUCXX )
+ llvm_replace_compiler_option(CMAKE_CXX_FLAGS "-frtti" "-fno-rtti")
+ elseif( MSVC )
+ llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/GR" "/GR-")
+ endif()
+ endif()
+
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" PARENT_SCOPE )
set( ${OUT_VAR} ${sources} PARENT_SCOPE )
endfunction(llvm_process_sources)
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index cf7cd1f62e522..9d67137bb42a3 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -12,14 +12,34 @@ macro(tablegen ofn)
set(LLVM_TARGET_DEFINITIONS_ABSOLUTE
${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS})
endif()
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
+ # Generate tablegen output in a temporary file.
COMMAND ${LLVM_TABLEGEN_EXE} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR}
-I ${LLVM_MAIN_SRC_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR}
${LLVM_TARGET_DEFINITIONS_ABSOLUTE}
- -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
- DEPENDS tblgen ${local_tds} ${global_tds}
+ -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
+ # The file in LLVM_TARGET_DEFINITIONS may be not in the current
+ # directory and local_tds may not contain it, so we must
+ # explicitly list it here:
+ DEPENDS ${LLVM_TABLEGEN_EXE} ${local_tds} ${global_tds}
+ ${LLVM_TARGET_DEFINITIONS_ABSOLUTE}
COMMENT "Building ${ofn}..."
)
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
+ # Only update the real output file if there are any differences.
+ # This prevents recompilation of all the files depending on it if there
+ # aren't any.
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
+ ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
+ ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
+ COMMENT ""
+ )
+
+ # `make clean' must remove all those generated files:
+ set_property(DIRECTORY APPEND
+ PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${ofn}.tmp ${ofn})
+
set(TABLEGEN_OUTPUT ${TABLEGEN_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR}/${ofn})
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${ofn}
PROPERTIES GENERATED 1)
diff --git a/cmake/modules/VersionFromVCS.cmake b/cmake/modules/VersionFromVCS.cmake
index 1016df22590da..81739be927a4e 100644
--- a/cmake/modules/VersionFromVCS.cmake
+++ b/cmake/modules/VersionFromVCS.cmake
@@ -4,13 +4,16 @@
function(add_version_info_from_vcs VERS)
set(result ${${VERS}})
- if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn )
+ if( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn" )
set(result "${result}svn")
- find_package(Subversion)
+ # FindSubversion does not work with symlinks. See PR 8437
+ if( NOT IS_SYMLINK "${CMAKE_CURRENT_SOURCE_DIR}" )
+ find_package(Subversion)
+ endif()
if( Subversion_FOUND )
subversion_wc_info( ${CMAKE_CURRENT_SOURCE_DIR} Project )
if( Project_WC_REVISION )
- set(result "${result}-r${Project_WC_REVISION}")
+ set(result "${result}-r${Project_WC_REVISION}")
endif()
endif()
elseif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git )
@@ -19,13 +22,23 @@ function(add_version_info_from_vcs VERS)
find_program(git_executable NAMES git git.exe git.cmd)
if( git_executable )
execute_process(COMMAND ${git_executable} show-ref HEAD
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- TIMEOUT 5
- RESULT_VARIABLE git_result
- OUTPUT_VARIABLE git_output)
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ TIMEOUT 5
+ RESULT_VARIABLE git_result
+ OUTPUT_VARIABLE git_output)
if( git_result EQUAL 0 )
- string(SUBSTRING ${git_output} 0 7 git_ref_id)
- set(result "${result}-${git_ref_id}")
+ string(SUBSTRING ${git_output} 0 7 git_ref_id)
+ set(result "${result}-${git_ref_id}")
+ else()
+ execute_process(COMMAND ${git_executable} svn log --limit=1 --oneline
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ TIMEOUT 5
+ RESULT_VARIABLE git_result
+ OUTPUT_VARIABLE git_output)
+ if( git_result EQUAL 0 )
+ string(REGEX MATCH r[0-9]+ git_svn_rev ${git_output})
+ set(result "${result}-svn-${git_svn_rev}")
+ endif()
endif()
endif()
endif()
diff --git a/configure b/configure
index 776de364bb20a..959822fa0e15f 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60 for llvm 2.8.
+# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
#
# Report bugs to .
#
@@ -561,8 +561,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='llvm'
PACKAGE_TARNAME='-llvm-'
-PACKAGE_VERSION='2.8'
-PACKAGE_STRING='llvm 2.8'
+PACKAGE_VERSION='2.9svn'
+PACKAGE_STRING='llvm 2.9svn'
PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
ac_unique_file="lib/VMCore/Module.cpp"
@@ -641,6 +641,8 @@ host_alias
target_alias
LLVM_COPYRIGHT
subdirs
+ENABLE_POLLY
+LLVM_HAS_POLLY
build
build_cpu
build_vendor
@@ -686,10 +688,13 @@ DEBUG_RUNTIME
DEBUG_SYMBOLS
JIT
TARGET_HAS_JIT
+ENABLE_DOCS
ENABLE_DOXYGEN
ENABLE_THREADS
+ENABLE_PTHREADS
ENABLE_PIC
ENABLE_SHARED
+ENABLE_EMBED_STDCXX
ENABLE_TIMESTAMPS
TARGETS_TO_BUILD
LLVM_ENUM_TARGETS
@@ -729,6 +734,7 @@ TWOPI
CIRCO
GV
DOTTY
+XDOT_PY
PERL
HAVE_PERL
INSTALL_PROGRAM
@@ -738,7 +744,7 @@ BZIP2
CAT
DOXYGEN
GROFF
-GZIP
+GZIPBIN
POD2HTML
POD2MAN
PDFROFF
@@ -768,10 +774,13 @@ USE_OPROFILE
HAVE_PTHREAD
HUGE_VAL_SANITY
MMAP_FILE
+LLVMCC_EMITIR_FLAG
LLVMCC1
LLVMCC1PLUS
LLVMGCCDIR
LLVMGCC_LANGS
+LLVMGCC_DRAGONEGG
+LLVMCC_DISABLEOPT_FLAGS
SHLIBEXT
SHLIBPATH_VAR
LLVM_PREFIX
@@ -816,7 +825,8 @@ projects/llvm-reopt
projects/llvm-java
projects/llvm-tv
projects/safecode
-projects/llvm-kernel'
+projects/llvm-kernel
+tools/polly'
# Initialize some variables set by options.
ac_init_help=
@@ -1318,7 +1328,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures llvm 2.8 to adapt to many kinds of systems.
+\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1384,17 +1394,18 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of llvm 2.8:";;
+ short | recursive ) echo "Configuration of llvm 2.9svn:";;
esac
cat <<\_ACEOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --enable-polly Use polly if available (default is YES)
--enable-optimized Compile with optimizations enabled (default is NO)
--enable-profiling Compile with profiling enabled (default is NO)
--enable-assertions Compile with assertion checks enabled (default is
- NO)
+ YES)
--enable-expensive-checks
Compile with expensive debug checks enabled (default
is NO)
@@ -1403,19 +1414,23 @@ Optional Features:
--enable-debug-symbols Build compiler with debug symbols (default is NO if
optimization is on and YES if it's off)
--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-threads Use threads if available (default is YES)
+ --enable-pthreads Use pthreads if available (default is YES)
--enable-pic Build LLVM with Position Independent Code (default
is YES)
--enable-shared Build a shared library and link tools against it
(default is NO)
+ --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
+ Win32 DLL (default is YES)
--enable-timestamps Enable embedding timestamp information in build
(default is YES)
--enable-targets Build specific host targets: all or
target1,target2,... Valid targets are: host, x86,
x86_64, sparc, powerpc, alpha, arm, mips, spu,
- pic16, xcore, msp430, systemz, blackfin, cbe, and
- cpp (default=all)
+ xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
+ (default=all)
--enable-cbe-printf-a Enable C Backend output with hex floating point via
%a (default is YES)
--enable-bindings Build specific language bindings:
@@ -1441,6 +1456,9 @@ Optional Packages:
--with-extra-options Specify additional options to compile LLVM with
--with-ocaml-libdir Specify install location for ocaml bindings (default
is stdlib)
+ --with-clang-resource-dir
+ Relative directory from the Clang binary for
+ resource files
--with-c-include-dirs Colon separated list of directories clang will
search for headers
--with-cxx-include-root Directory with the libstdc++ headers.
@@ -1533,7 +1551,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-llvm configure 2.8
+llvm configure 2.9svn
generated by GNU Autoconf 2.60
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1549,7 +1567,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by llvm $as_me 2.8, which was
+It was created by llvm $as_me 2.9svn, which was
generated by GNU Autoconf 2.60. Invocation command line was
$ $0 $@
@@ -2011,6 +2029,33 @@ echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically"
fi
done
+# Check whether --enable-polly was given.
+if test "${enable_polly+set}" = set; then
+ enableval=$enable_polly;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_POLLY=1
+ ;;
+ no) ENABLE_POLLY=0
+ ;;
+ default) ENABLE_POLLY=1
+ ;;
+ *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
+
+if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
+ LLVM_HAS_POLLY=1
+
+ subdirs="$subdirs tools/polly"
+
+fi
+
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
@@ -2355,12 +2400,12 @@ else
alpha*-*) llvm_cv_target_arch="Alpha" ;;
arm*-*) llvm_cv_target_arch="ARM" ;;
mips-*) llvm_cv_target_arch="Mips" ;;
- pic16-*) llvm_cv_target_arch="PIC16" ;;
xcore-*) llvm_cv_target_arch="XCore" ;;
msp430-*) llvm_cv_target_arch="MSP430" ;;
s390x-*) llvm_cv_target_arch="SystemZ" ;;
bfin-*) llvm_cv_target_arch="Blackfin" ;;
mblaze-*) llvm_cv_target_arch="MBlaze" ;;
+ ptx-*) llvm_cv_target_arch="PTX" ;;
*) llvm_cv_target_arch="Unknown" ;;
esac
fi
@@ -4699,7 +4744,7 @@ fi
if test "${enable_optimized+set}" = set; then
enableval=$enable_optimized;
else
- enableval="yes"
+ enableval=$optimize
fi
if test ${enableval} = "no" ; then
@@ -4729,7 +4774,7 @@ fi
if test "${enable_assertions+set}" = set; then
enableval=$enable_assertions;
else
- enableval="no"
+ enableval="yes"
fi
if test ${enableval} = "yes" ; then
@@ -4810,13 +4855,11 @@ else
;;
x86_64) TARGET_HAS_JIT=1
;;
- Alpha) TARGET_HAS_JIT=1
+ Alpha) TARGET_HAS_JIT=0
;;
ARM) TARGET_HAS_JIT=1
;;
Mips) TARGET_HAS_JIT=0
- ;;
- PIC16) TARGET_HAS_JIT=0
;;
XCore) TARGET_HAS_JIT=0
;;
@@ -4827,12 +4870,33 @@ else
Blackfin) TARGET_HAS_JIT=0
;;
MBlaze) TARGET_HAS_JIT=0
+ ;;
+ PTX) TARGET_HAS_JIT=0
;;
*) TARGET_HAS_JIT=0
;;
esac
fi
+# Check whether --enable-docs was given.
+if test "${enable_docs+set}" = set; then
+ enableval=$enable_docs;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_DOCS=1
+ ;;
+ no) ENABLE_DOCS=0
+ ;;
+ default) ENABLE_DOCS=1
+ ;;
+ *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
# Check whether --enable-doxygen was given.
if test "${enable_doxygen+set}" = set; then
enableval=$enable_doxygen;
@@ -4876,6 +4940,25 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+# Check whether --enable-pthreads was given.
+if test "${enable_pthreads+set}" = set; then
+ enableval=$enable_pthreads;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_PTHREADS=1
+ ;;
+ no) ENABLE_PTHREADS=0
+ ;;
+ default) ENABLE_PTHREADS=1
+ ;;
+ *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
# Check whether --enable-pic was given.
if test "${enable_pic+set}" = set; then
enableval=$enable_pic;
@@ -4919,6 +5002,25 @@ echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\""
{ (exit 1); exit 1; }; } ;;
esac
+# Check whether --enable-embed-stdcxx was given.
+if test "${enable_embed_stdcxx+set}" = set; then
+ enableval=$enable_embed_stdcxx;
+else
+ enableval=default
+fi
+
+case "$enableval" in
+ yes) ENABLE_EMBED_STDCXX=1
+ ;;
+ no) ENABLE_EMBED_STDCXX=0
+ ;;
+ default) ENABLE_EMBED_STDCXX=1
+ ;;
+ *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
+
# Check whether --enable-timestamps was given.
if test "${enable_timestamps+set}" = set; then
enableval=$enable_timestamps;
@@ -4955,7 +5057,7 @@ if test "$enableval" = host-only ; then
enableval=host
fi
case "$enableval" in
- all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
+ all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
*)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
case "$a_target" in
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
@@ -4966,7 +5068,6 @@ case "$enableval" in
arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
- pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
@@ -4974,6 +5075,7 @@ case "$enableval" in
cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
+ ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
host) case "$llvm_cv_target_arch" in
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
@@ -4984,11 +5086,11 @@ case "$enableval" in
Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
- PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
+ PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
*) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
echo "$as_me: error: Can not set target to build" >&2;}
{ (exit 1); exit 1; }; } ;;
@@ -5041,7 +5143,7 @@ LLVM_ENUM_ASM_PARSERS=""
LLVM_ENUM_DISASSEMBLERS=""
for target_to_build in $TARGETS_TO_BUILD; do
LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
- if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
+ if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
fi
if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
@@ -5274,6 +5376,20 @@ echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&
esac
+# Check whether --with-clang-resource-dir was given.
+if test "${with_clang_resource_dir+set}" = set; then
+ withval=$with_clang_resource_dir;
+else
+ withval=""
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define CLANG_RESOURCE_DIR "$withval"
+_ACEOF
+
+
+
# Check whether --with-c-include-dirs was given.
if test "${with_c_include_dirs+set}" = set; then
withval=$with_c_include_dirs;
@@ -7828,6 +7944,62 @@ cat >>confdefs.h <<_ACEOF
#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
_ACEOF
+fi
+# Extract the first word of "xdot.py", so it can be a program name with args.
+set dummy xdot.py; 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_XDOT_PY+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $XDOT_PY in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_XDOT_PY="$XDOT_PY" # 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_XDOT_PY="$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_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
+ ;;
+esac
+fi
+XDOT_PY=$ac_cv_path_XDOT_PY
+if test -n "$XDOT_PY"; then
+ { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
+echo "${ECHO_T}$XDOT_PY" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+if test "$XDOT_PY" != "echo xdot.py" ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_XDOT_PY 1
+_ACEOF
+
+ if test "$llvm_cv_os_type" = "MingW" ; then
+ XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
+ fi
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
+_ACEOF
+
fi
@@ -8146,12 +8318,12 @@ fi
set dummy gzip; 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_GZIP+set}" = set; then
+if test "${ac_cv_path_GZIPBIN+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- case $GZIP in
+ case $GZIPBIN in
[\\/]* | ?:[\\/]*)
- ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
+ ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -8161,7 +8333,7 @@ do
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_GZIP="$as_dir/$ac_word$ac_exec_ext"
+ ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
@@ -8172,10 +8344,10 @@ IFS=$as_save_IFS
;;
esac
fi
-GZIP=$ac_cv_path_GZIP
-if test -n "$GZIP"; then
- { echo "$as_me:$LINENO: result: $GZIP" >&5
-echo "${ECHO_T}$GZIP" >&6; }
+GZIPBIN=$ac_cv_path_GZIPBIN
+if test -n "$GZIPBIN"; then
+ { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
+echo "${ECHO_T}$GZIPBIN" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
@@ -11389,7 +11561,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <&5
-echo "$as_me: error: g++|icc required but not found" >&2;}
+ { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
+echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -13865,7 +14037,7 @@ _ACEOF
fi
-if test "$ENABLE_THREADS" -eq 1 ; then
+if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
@@ -16090,7 +16262,8 @@ done
-for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
+
+for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -16599,9 +16772,8 @@ fi
done
-if test "$ENABLE_THREADS" -eq 1 ; then
-for ac_header in pthread.h
+for ac_header in fenv.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -16764,24 +16936,14 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
- HAVE_PTHREAD=1
-
-else
- HAVE_PTHREAD=0
fi
done
-else
- HAVE_PTHREAD=0
-
-fi
+if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
-if test "$llvm_cv_enable_libffi" = "yes" ; then
-
-
-for ac_header in ffi.h ffi/ffi.h
+for ac_header in pthread.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -16944,15 +17106,24 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
+ HAVE_PTHREAD=1
+
+else
+ HAVE_PTHREAD=0
fi
done
+else
+ HAVE_PTHREAD=0
+
fi
+if test "$llvm_cv_enable_libffi" = "yes" ; then
-for ac_header in CrashReporterClient.h
+
+for ac_header in ffi.h ffi/ffi.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -17120,112 +17291,33 @@ fi
done
-
-
-
-
- { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
-echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
-if test "${ac_cv_huge_val_sanity+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
-
- ac_save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS=-pedantic
- if test "$cross_compiling" = yes; then
- ac_cv_huge_val_sanity=yes
-else
- 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 ()
-{
-double x = HUGE_VAL; return x != x;
- ;
- 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'
- { (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_huge_val_sanity=yes
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_huge_val_sanity=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
- CXXFLAGS=$ac_save_CXXFLAGS
- 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_huge_val_sanity" >&5
-echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
- HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
-{ echo "$as_me:$LINENO: checking for pid_t" >&5
-echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_pid_t+set}" = set; then
+for ac_header in CrashReporterClient.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
else
- cat >conftest.$ac_ext <<_ACEOF
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $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. */
$ac_includes_default
-typedef pid_t ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
- ;
- return 0;
-}
+#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
@@ -17261,31 +17353,1854 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_pid_t=yes
+ ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_pid_t=no
+ ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
-echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
-if test $ac_cv_type_pid_t = yes; then
- :
-else
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
-cat >>confdefs.h <<_ACEOF
+# Is the header present?
+{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $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 <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+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_cpp conftest.$ac_ext") 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); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ----------------------------------- ##
+## Report this to llvmbugs@cs.uiuc.edu ##
+## ----------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
+echo $ECHO_N "checking __crashreporter_info__... $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. */
+extern const char *__crashreporter_info__;
+ int main() {
+ __crashreporter_info__ = "test";
+ 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
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_CRASHREPORTER_INFO 1
+_ACEOF
+
+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; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_CRASHREPORTER_INFO 0
+_ACEOF
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+
+
+
+ { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
+echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
+if test "${ac_cv_huge_val_sanity+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
+
+ ac_save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS=-pedantic
+ if test "$cross_compiling" = yes; then
+ ac_cv_huge_val_sanity=yes
+else
+ 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 ()
+{
+double x = HUGE_VAL; return x != x;
+ ;
+ 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'
+ { (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_huge_val_sanity=yes
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_huge_val_sanity=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+ CXXFLAGS=$ac_save_CXXFLAGS
+ 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_huge_val_sanity" >&5
+echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
+ HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
+
+
+{ echo "$as_me:$LINENO: checking for pid_t" >&5
+echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_pid_t+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. */
+$ac_includes_default
+typedef pid_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+ return 0;
+if (sizeof (ac__type_new_))
+ return 0;
+ ;
+ 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_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
+ ac_cv_type_pid_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_pid_t=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
+echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
+if test $ac_cv_type_pid_t = yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF
fi
-{ echo "$as_me:$LINENO: checking for size_t" >&5
-echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_size_t+set}" = set; then
+{ echo "$as_me:$LINENO: checking for size_t" >&5
+echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_size_t+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. */
+$ac_includes_default
+typedef size_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+ return 0;
+if (sizeof (ac__type_new_))
+ return 0;
+ ;
+ 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_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
+ ac_cv_type_size_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_size_t=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
+echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
+if test $ac_cv_type_size_t = yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define size_t unsigned int
+_ACEOF
+
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define RETSIGTYPE void
+_ACEOF
+
+{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
+echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
+if test "${ac_cv_struct_tm+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. */
+#include
+#include
+
+int
+main ()
+{
+struct tm *tp; tp->tm_sec;
+ ;
+ 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_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
+ ac_cv_struct_tm=time.h
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_struct_tm=sys/time.h
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
+echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
+if test $ac_cv_struct_tm = sys/time.h; then
+
+cat >>confdefs.h <<\_ACEOF
+#define TM_IN_SYS_TIME 1
+_ACEOF
+
+fi
+
+{ echo "$as_me:$LINENO: checking for int64_t" >&5
+echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_int64_t+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. */
+$ac_includes_default
+typedef int64_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+ return 0;
+if (sizeof (ac__type_new_))
+ return 0;
+ ;
+ 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_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
+ ac_cv_type_int64_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_int64_t=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
+echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
+if test $ac_cv_type_int64_t = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_INT64_T 1
+_ACEOF
+
+
+else
+ { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
+echo "$as_me: error: Type int64_t required but not found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+{ echo "$as_me:$LINENO: checking for uint64_t" >&5
+echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_uint64_t+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. */
+$ac_includes_default
+typedef uint64_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+ return 0;
+if (sizeof (ac__type_new_))
+ return 0;
+ ;
+ 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_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
+ ac_cv_type_uint64_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_uint64_t=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
+echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
+if test $ac_cv_type_uint64_t = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_UINT64_T 1
+_ACEOF
+
+
+else
+ { echo "$as_me:$LINENO: checking for u_int64_t" >&5
+echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
+if test "${ac_cv_type_u_int64_t+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. */
+$ac_includes_default
+typedef u_int64_t ac__type_new_;
+int
+main ()
+{
+if ((ac__type_new_ *) 0)
+ return 0;
+if (sizeof (ac__type_new_))
+ return 0;
+ ;
+ 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_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
+ ac_cv_type_u_int64_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_u_int64_t=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
+echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
+if test $ac_cv_type_u_int64_t = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_U_INT64_T 1
+_ACEOF
+
+
+else
+ { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
+echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+
+
+
+
+
+
+
+
+
+
+for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+
+for ac_func in powf fmodf strtof round
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+
+
+for ac_func in 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
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+for ac_func in 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
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+
+
+
+for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+for ac_func in 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
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+
+for ac_func in 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
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case declares $ac_func.
+ For example, HP-UX 11i declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+
+
+for ac_func in 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 $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'
+ { (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
+ llvm_cv_c_printf_a=yes
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+llvmac_cv_c_printf_a=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+ 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: $llvm_cv_c_printf_a" >&5
+echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
+ if test "$llvm_cv_c_printf_a" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_PRINTF_A 1
+_ACEOF
+
+ fi
+
+
+{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in " >&5
+echo $ECHO_N "checking for srand48/lrand48/drand48 in ... $ECHO_C" >&6; }
+if test "${ac_cv_func_rand48+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 ()
+{
+srand48(0);lrand48();drand48();
+ ;
+ 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_rand48=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_rand48=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_rand48" >&5
+echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
+
+if test "$ac_cv_func_rand48" = "yes" ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_RAND48 1
+_ACEOF
+
+fi
+
+
+{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
+echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
+if test "${ac_cv_have_decl_strerror_s+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
@@ -17295,14 +19210,14 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-typedef size_t ac__type_new_;
int
main ()
{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
+#ifndef strerror_s
+ char *p = (char *) strerror_s;
+ return !p;
+#endif
+
;
return 0;
}
@@ -17341,63 +19256,243 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_size_t=yes
+ ac_cv_have_decl_strerror_s=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_size_t=no
+ ac_cv_have_decl_strerror_s=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
-echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
-if test $ac_cv_type_size_t = yes; then
- :
-else
+{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
+echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
+if test $ac_cv_have_decl_strerror_s = yes; then
cat >>confdefs.h <<_ACEOF
-#define size_t unsigned int
+#define HAVE_DECL_STRERROR_S 1
+_ACEOF
+
+
+else
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_STRERROR_S 0
_ACEOF
+
fi
-cat >>confdefs.h <<_ACEOF
-#define RETSIGTYPE void
+
+if test "$llvm_cv_os_type" = "MingW" ; then
+ { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
+echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc__alloca+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. */
-{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
-echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
-if test "${ac_cv_struct_tm+set}" = set; then
+/* 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 _alloca ();
+int
+main ()
+{
+return _alloca ();
+ ;
+ 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__alloca=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_gcc__alloca=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__alloca" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
+if test $ac_cv_lib_gcc__alloca = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE__ALLOCA 1
+_ACEOF
+
+fi
+
+ { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
+echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___alloca+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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
-#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 __alloca ();
int
main ()
{
-struct tm *tp; tp->tm_sec;
+return __alloca ();
;
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_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___alloca=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_gcc___alloca=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___alloca" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
+if test $ac_cv_lib_gcc___alloca = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___ALLOCA 1
+_ACEOF
+
+fi
+
+ { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
+echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___chkstk+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 __chkstk ();
+int
+main ()
+{
+return __chkstk ();
+ ;
+ 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
@@ -17414,7 +19509,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;;
@@ -17424,58 +19519,65 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_struct_tm=time.h
+ ac_cv_lib_gcc___chkstk=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_struct_tm=sys/time.h
+ ac_cv_lib_gcc___chkstk=no
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+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_struct_tm" >&5
-echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
-if test $ac_cv_struct_tm = sys/time.h; then
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
+if test $ac_cv_lib_gcc___chkstk = yes; then
cat >>confdefs.h <<\_ACEOF
-#define TM_IN_SYS_TIME 1
+#define HAVE___CHKSTK 1
_ACEOF
fi
-{ echo "$as_me:$LINENO: checking for int64_t" >&5
-echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_int64_t+set}" = set; then
+ { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
+echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-$ac_includes_default
-typedef int64_t ac__type_new_;
+
+/* 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 ___chkstk ();
int
main ()
{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
+return ___chkstk ();
;
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
@@ -17492,7 +19594,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;;
@@ -17502,63 +19604,66 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_int64_t=yes
+ ac_cv_lib_gcc____chkstk=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_int64_t=no
+ ac_cv_lib_gcc____chkstk=no
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+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_type_int64_t" >&5
-echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
-if test $ac_cv_type_int64_t = yes; then
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
+if test $ac_cv_lib_gcc____chkstk = yes; then
-cat >>confdefs.h <<_ACEOF
-#define HAVE_INT64_T 1
+cat >>confdefs.h <<\_ACEOF
+#define HAVE____CHKSTK 1
_ACEOF
-
-else
- { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
-echo "$as_me: error: Type int64_t required but not found" >&2;}
- { (exit 1); exit 1; }; }
fi
-{ echo "$as_me:$LINENO: checking for uint64_t" >&5
-echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_uint64_t+set}" = set; then
+
+ { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
+echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-$ac_includes_default
-typedef uint64_t ac__type_new_;
+
+/* 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 __ashldi3 ();
int
main ()
{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
+return __ashldi3 ();
;
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
@@ -17575,7 +19680,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;;
@@ -17585,58 +19690,65 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_uint64_t=yes
+ ac_cv_lib_gcc___ashldi3=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_uint64_t=no
+ ac_cv_lib_gcc___ashldi3=no
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+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_type_uint64_t" >&5
-echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
-if test $ac_cv_type_uint64_t = yes; then
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
+if test $ac_cv_lib_gcc___ashldi3 = yes; then
-cat >>confdefs.h <<_ACEOF
-#define HAVE_UINT64_T 1
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___ASHLDI3 1
_ACEOF
+fi
-else
- { echo "$as_me:$LINENO: checking for u_int64_t" >&5
-echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_u_int64_t+set}" = set; then
+ { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
+echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-$ac_includes_default
-typedef u_int64_t ac__type_new_;
+
+/* 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 __ashrdi3 ();
int
main ()
{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
+return __ashrdi3 ();
;
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
@@ -17653,7 +19765,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;;
@@ -17663,72 +19775,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_u_int64_t=yes
+ ac_cv_lib_gcc___ashrdi3=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_type_u_int64_t=no
+ ac_cv_lib_gcc___ashrdi3=no
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+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_type_u_int64_t" >&5
-echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
-if test $ac_cv_type_u_int64_t = yes; then
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
+if test $ac_cv_lib_gcc___ashrdi3 = yes; then
-cat >>confdefs.h <<_ACEOF
-#define HAVE_U_INT64_T 1
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___ASHRDI3 1
_ACEOF
-
-else
- { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
-echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
fi
-
-
-
-
-
-
-
-
-
-for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
+echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -17736,18 +19817,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __divdi3 ();
int
main ()
{
-return $ac_func ();
+return __divdi3 ();
;
return 0;
}
@@ -17786,62 +19860,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___divdi3=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
+ ac_cv_lib_gcc___divdi3=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
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
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
+if test $ac_cv_lib_gcc___divdi3 = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___DIVDI3 1
_ACEOF
fi
-done
-
-
-
-
-for ac_func in powf fmodf strtof round
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
+echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -17849,18 +19902,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __fixdfdi ();
int
main ()
{
-return $ac_func ();
+return __fixdfdi ();
;
return 0;
}
@@ -17899,63 +19945,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___fixdfdi=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
-
+ ac_cv_lib_gcc___fixdfdi=no
fi
-done
-
-
+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___fixdfdi" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
+if test $ac_cv_lib_gcc___fixdfdi = yes; then
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___FIXDFDI 1
+_ACEOF
+fi
-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
-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 for __fixsfdi in -lgcc" >&5
+echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -17963,18 +19987,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __fixsfdi ();
int
main ()
{
-return $ac_func ();
+return __fixsfdi ();
;
return 0;
}
@@ -18013,61 +20030,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___fixsfdi=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
+ ac_cv_lib_gcc___fixsfdi=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
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
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
+if test $ac_cv_lib_gcc___fixsfdi = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___FIXSFDI 1
_ACEOF
fi
-done
-
-
-
-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
-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 for __floatdidf in -lgcc" >&5
+echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -18075,18 +20072,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __floatdidf ();
int
main ()
{
-return $ac_func ();
+return __floatdidf ();
;
return 0;
}
@@ -18125,64 +20115,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___floatdidf=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
+ ac_cv_lib_gcc___floatdidf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
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
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
+if test $ac_cv_lib_gcc___floatdidf = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___FLOATDIDF 1
_ACEOF
fi
-done
-
-
-
-
-
-
-for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
-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 for __lshrdi3 in -lgcc" >&5
+echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -18190,18 +20157,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __lshrdi3 ();
int
main ()
{
-return $ac_func ();
+return __lshrdi3 ();
;
return 0;
}
@@ -18240,62 +20200,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___lshrdi3=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
+ ac_cv_lib_gcc___lshrdi3=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
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
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
+if test $ac_cv_lib_gcc___lshrdi3 = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___LSHRDI3 1
_ACEOF
fi
-done
-
-
-
-
-for ac_func in strerror strerror_r strerror_s setenv
-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 for __moddi3 in -lgcc" >&5
+echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -18303,18 +20242,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __moddi3 ();
int
main ()
{
-return $ac_func ();
+return __moddi3 ();
;
return 0;
}
@@ -18353,62 +20285,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___moddi3=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
+ ac_cv_lib_gcc___moddi3=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
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
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
+echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
+if test $ac_cv_lib_gcc___moddi3 = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___MODDI3 1
_ACEOF
fi
-done
-
-
-
-
-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
-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 for __udivdi3 in -lgcc" >&5
+echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
+if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- 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. */
-/* 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
@@ -18416,18 +20327,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __udivdi3 ();
int
main ()
{
-return $ac_func ();
+return __udivdi3 ();
;
return 0;
}
@@ -18466,62 +20370,41 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___udivdi3=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
-
+ ac_cv_lib_gcc___udivdi3=no
fi
-done
-
+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___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
-for ac_func in setjmp longjmp sigsetjmp siglongjmp
-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 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
- 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. */
-/* 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
@@ -18529,18 +20412,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#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
-
+char __umoddi3 ();
int
main ()
{
-return $ac_func ();
+return __umoddi3 ();
;
return 0;
}
@@ -18579,83 +20455,83 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
+ ac_cv_lib_gcc___umoddi3=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
+ 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
-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
+{ 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
-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
+ { 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
- cat >conftest.$ac_ext <<_ACEOF
-
- /* confdefs.h. */
+ 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
-#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 ()
{
-
-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 __main ();
;
return 0;
}
_ACEOF
-rm -f conftest$ac_exeext
+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>&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='./conftest$ac_exeext'
+ (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;;
@@ -18665,78 +20541,72 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- llvm_cv_c_printf_a=yes
+ ac_cv_lib_gcc___main=yes
else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
+ echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-( exit $ac_status )
-llvmac_cv_c_printf_a=no
+ ac_cv_lib_gcc___main=no
fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
- 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: $llvm_cv_c_printf_a" >&5
-echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
- if test "$llvm_cv_c_printf_a" = "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_PRINTF_A 1
+#define HAVE___MAIN 1
_ACEOF
- fi
-
+fi
-{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in " >&5
-echo $ECHO_N "checking for srand48/lrand48/drand48 in ... $ECHO_C" >&6; }
-if test "${ac_cv_func_rand48+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 ()
{
-srand48(0);lrand48();drand48();
+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;;
@@ -18746,7 +20616,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;;
@@ -18756,33 +20626,29 @@ 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_rand48=yes
+ ac_cv_lib_gcc___cmpdi2=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_rand48=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_rand48" >&5
-echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
-
-if test "$ac_cv_func_rand48" = "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_RAND48 1
+#define HAVE___CMPDI2 1
_ACEOF
fi
+fi
{ echo "$as_me:$LINENO: checking for isnan in " >&5
@@ -20282,15 +22148,43 @@ fi
done
+{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
+echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
+if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ llvm_cv_llvmgcc_dragonegg="no"
+if test -n "$LLVMGCC" ; then
+ cp /dev/null conftest.c
+ $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
+ if test $? -eq 0 ; then
+ llvm_cv_llvmgcc_dragonegg="yes"
+ fi
+ rm conftest.c
+fi
+fi
+{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
+echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
+
+if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
+ LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
+ LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
+else
+ LLVMCC_EMITIR_FLAG="-emit-llvm"
+ LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
+fi
+
+
+
{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
llvm_cv_llvmgcc_sanity="no"
-if test -x "$LLVMGCC" ; then
+if test -n "$LLVMGCC" ; then
cp /dev/null conftest.c
- "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
+ $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
grep 'target datalayout =' > /dev/null 2>&1
if test $? -eq 0 ; then
llvm_cv_llvmgcc_sanity="yes"
@@ -20304,18 +22198,21 @@ echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
{ echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
- llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
+ llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
LLVMCC1=$llvmcc1path
- llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
+ llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
LLVMCC1PLUS=$llvmcc1pluspath
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
LLVMGCCDIR=$llvmgccdir
- llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
+ llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
LLVMGCC_LANGS=$llvmgcclangs
+ LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
+
+
{ echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6; }
fi
@@ -20591,7 +22488,7 @@ ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
-ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
+ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
ac_config_files="$ac_config_files Makefile.config"
@@ -21045,7 +22942,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by llvm $as_me 2.8, which was
+This file was extended by llvm $as_me 2.9svn, which was
generated by GNU Autoconf 2.60. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21098,7 +22995,7 @@ Report bugs to ."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-llvm config.status 2.8
+llvm config.status 2.9svn
configured by $0, generated by GNU Autoconf 2.60,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
@@ -21217,7 +23114,7 @@ do
"include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
"include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
"include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
- "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
+ "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
"Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
"llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
"tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
@@ -21337,6 +23234,8 @@ host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
subdirs!$subdirs$ac_delim
+ENABLE_POLLY!$ENABLE_POLLY$ac_delim
+LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
@@ -21382,19 +23281,17 @@ DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
JIT!$JIT$ac_delim
TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
+ENABLE_DOCS!$ENABLE_DOCS$ac_delim
ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
ENABLE_THREADS!$ENABLE_THREADS$ac_delim
+ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
ENABLE_PIC!$ENABLE_PIC$ac_delim
ENABLE_SHARED!$ENABLE_SHARED$ac_delim
+ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
-LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
-LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
-ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
-CLANGPATH!$CLANGPATH$ac_delim
-CLANGXXPATH!$CLANGXXPATH$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -21436,6 +23333,11 @@ _ACEOF
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
+LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
+ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
+CLANGPATH!$CLANGPATH$ac_delim
+CLANGXXPATH!$CLANGXXPATH$ac_delim
ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
@@ -21466,6 +23368,7 @@ TWOPI!$TWOPI$ac_delim
CIRCO!$CIRCO$ac_delim
GV!$GV$ac_delim
DOTTY!$DOTTY$ac_delim
+XDOT_PY!$XDOT_PY$ac_delim
PERL!$PERL$ac_delim
HAVE_PERL!$HAVE_PERL$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
@@ -21475,7 +23378,7 @@ BZIP2!$BZIP2$ac_delim
CAT!$CAT$ac_delim
DOXYGEN!$DOXYGEN$ac_delim
GROFF!$GROFF$ac_delim
-GZIP!$GZIP$ac_delim
+GZIPBIN!$GZIPBIN$ac_delim
POD2HTML!$POD2HTML$ac_delim
POD2MAN!$POD2MAN$ac_delim
PDFROFF!$PDFROFF$ac_delim
@@ -21505,10 +23408,13 @@ USE_OPROFILE!$USE_OPROFILE$ac_delim
HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
MMAP_FILE!$MMAP_FILE$ac_delim
+LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
LLVMCC1!$LLVMCC1$ac_delim
LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
LLVMGCCDIR!$LLVMGCCDIR$ac_delim
LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
+LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
+LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
SHLIBEXT!$SHLIBEXT$ac_delim
SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
LLVM_PREFIX!$LLVM_PREFIX$ac_delim
@@ -21524,6 +23430,47 @@ LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
ALL_BINDINGS!$ALL_BINDINGS$ac_delim
OCAML_LIBDIR!$OCAML_LIBDIR$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
ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
RPATH!$RPATH$ac_delim
RDYNAMIC!$RDYNAMIC$ac_delim
@@ -21531,7 +23478,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` = 93; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
@@ -21549,7 +23496,7 @@ if test -n "$ac_eof"; then
fi
cat >>$CONFIG_STATUS <<_ACEOF
-cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
+cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
_ACEOF
sed '
@@ -21812,7 +23759,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" >$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/AliasAnalysis.html b/docs/AliasAnalysis.html
index cffaa8206228e..20b7e96460f30 100644
--- a/docs/AliasAnalysis.html
+++ b/docs/AliasAnalysis.html
@@ -31,7 +31,7 @@
AliasAnalysis chaining behavior
Updating analysis results for transformations
Efficiency Issues
- Pass Manager Issues
+ Limitations
@@ -188,7 +188,8 @@ that the accesses alias.
The alias method is the primary interface used to determine whether
or not two memory objects alias each other. It takes two memory objects as
-input and returns MustAlias, MayAlias, or NoAlias as appropriate.
+input and returns MustAlias, PartialAlias, MayAlias, or NoAlias as
+appropriate.
Like all AliasAnalysis interfaces, the alias method requires
that either the two pointer values be defined within the same function, or at
@@ -215,8 +216,10 @@ and reallocation.
dependencies are ignored.
The MayAlias response is used whenever the two pointers might refer to the
-same object. If the two memory objects overlap, but do not start at the same
-location, return MayAlias.
+same object.
+
+
The PartialAlias response is used when the two memory objects are known
+to be overlapping in some way, but do not start at the same address.
The MustAlias response may only be returned if the two memory objects are
guaranteed to always start at exactly the same location. A MustAlias response
@@ -461,7 +464,7 @@ analysis results updated to reflect the changes made by these transformations.
-The AliasAnalysis interface exposes two methods which are used to
+The AliasAnalysis interface exposes four methods which are used to
communicate program changes from the clients to the analysis implementations.
Various alias analysis implementations should use these methods to ensure that
their internal data structures are kept up-to-date as the program changes (for
@@ -502,6 +505,28 @@ value, then deleting the old value. This method cannot be overridden by alias
analysis implementations.
+
+The addEscapingUse method
+
+
+
The addEscapingUse method is used when the uses of a pointer
+value have changed in ways that may invalidate precomputed analysis information.
+Implementations may either use this callback to provide conservative responses
+for points whose uses have change since analysis time, or may recompute some
+or all of their internal state to continue providing accurate responses.
+
+
In general, any new use of a pointer value is considered an escaping use,
+and must be reported through this callback, except for the
+uses below:
+
+
+ - A bitcast or getelementptr of the pointer
+ - A store through the pointer (but not a store
+ of the pointer)
+ - A load through the pointer
+
+
+
Efficiency Issues
@@ -520,13 +545,13 @@ method as possible (within reason).
-
PassManager support for alternative AliasAnalysis implementation
-has some issues.
+
The AliasAnalysis infrastructure has several limitations which make
+writing a new AliasAnalysis implementation difficult.
There is no way to override the default alias analysis. It would
be very useful to be able to do something like "opt -my-aa -O2" and
@@ -555,6 +580,40 @@ silently route alias analysis queries directly to
passes between each pass, which prevents the use of FunctionPass
alias analysis passes.
+
The AliasAnalysis API does have functions for notifying
+implementations when values are deleted or copied, however these
+aren't sufficient. There are many other ways that LLVM IR can be
+modified which could be relevant to AliasAnalysis
+implementations which can not be expressed.
+
+
The AliasAnalysisDebugger utility seems to suggest that
+AliasAnalysis implementations can expect that they will be
+informed of any relevant Value before it appears in an
+alias query. However, popular clients such as GVN don't
+support this, and are known to trigger errors when run with the
+AliasAnalysisDebugger.
+
+
Due to several of the above limitations, the most obvious use for
+the AliasAnalysisCounter utility, collecting stats on all
+alias queries in a compilation, doesn't work, even if the
+AliasAnalysis implementations don't use FunctionPass.
+There's no way to set a default, much less a default sequence,
+and there's no way to preserve it.
+
+
The AliasSetTracker class (which is used by LICM
+makes a non-deterministic number of alias queries. This can cause stats
+collected by AliasAnalysisCounter to have fluctuations among
+identical runs, for example. Another consequence is that debugging
+techniques involving pausing execution after a predetermined number
+of queries can be unreliable.
+
+
Many alias queries can be reformulated in terms of other alias
+queries. When multiple AliasAnalysis queries are chained together,
+it would make sense to start those queries from the beginning of the chain,
+with care taken to avoid infinite looping, however currently an
+implementation which wants to do this can only start such queries
+from itself.
+
@@ -713,8 +772,8 @@ problem.
-
The -basicaa pass is the default LLVM alias analysis. It is an
-aggressive local analysis that "knows" many important facts:
+
The -basicaa pass is an aggressive local analysis that "knows"
+many important facts:
- Distinct globals, stack allocations, and heap allocations can never
@@ -998,7 +1057,7 @@ analysis directly.
Chris Lattner
LLVM Compiler Infrastructure
- Last modified: $Date: 2010-08-31 01:47:24 +0200 (Tue, 31 Aug 2010) $
+ Last modified: $Date: 2011-01-03 22:38:41 +0100 (Mon, 03 Jan 2011) $