Make DataLayout a plain object, not a pass.

Press ? to show keyboard shortcuts.
Committed
rafaelFeb 25 2014, 9:30 AM
Parents
rL202167: Pretty Printer: Fix printing of conversion operator decls and calls.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

Make DataLayout a plain object, not a pass.

Instead, have a DataLayoutPass that holds one. This will allow parts of LLVM
don't don't handle passes to also use DataLayout.

Changes (60)

HistoryBrowseChangePath
HistoryBrowseModifiedllvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp
HistoryBrowseModifiedllvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp
HistoryBrowseModifiedllvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp
HistoryBrowseModifiedllvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp
HistoryBrowseModifiedllvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp
HistoryBrowseModifiedllvm/trunk/include/llvm/IR/DataLayout.h
HistoryBrowseModifiedllvm/trunk/include/llvm/InitializePasses.h
HistoryBrowseModifiedllvm/trunk/lib/Analysis/AliasAnalysis.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/IPA/InlineCost.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/IVUsers.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/LazyValueInfo.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/Lint.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/NoAliasAnalysis.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/ScalarEvolution.cpp
HistoryBrowseModifiedllvm/trunk/lib/Analysis/TargetTransformInfo.cpp
HistoryBrowseModifiedllvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
HistoryBrowseModifiedllvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp
HistoryBrowseModifiedllvm/trunk/lib/IR/DataLayout.cpp
HistoryBrowseModifiedllvm/trunk/lib/LTO/LTOCodeGenerator.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/NVPTX/NVPTXAllocaHoisting.h
HistoryBrowseModifiedllvm/trunk/lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/NVPTX/NVPTXLowerAggrCopies.h
HistoryBrowseModifiedllvm/trunk/lib/Target/PowerPC/PPCCTRLoops.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/Target.cpp
HistoryBrowseModifiedllvm/trunk/lib/Target/TargetMachineC.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/IPO/Inliner.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/ConstantProp.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/GVN.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/LICM.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/SCCP.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/SROA.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Utils/SimplifyInstructions.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
HistoryBrowseModifiedllvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
HistoryBrowseModifiedllvm/trunk/tools/llc/llc.cpp
HistoryBrowseModifiedllvm/trunk/tools/llvm-extract/llvm-extract.cpp
HistoryBrowseModifiedllvm/trunk/tools/opt/opt.cpp
HistoryBrowseModifiedllvm/trunk/unittests/IR/LegacyPassManagerTest.cpp

rL202168

llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp

Loading...

llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp

Loading...

llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp

Loading...

llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp

Loading...

llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp

Loading...

llvm/trunk/include/llvm/IR/DataLayout.h

Loading...

llvm/trunk/include/llvm/InitializePasses.h

Loading...

llvm/trunk/lib/Analysis/AliasAnalysis.cpp

Loading...

llvm/trunk/lib/Analysis/IPA/InlineCost.cpp

Loading...

llvm/trunk/lib/Analysis/IVUsers.cpp

Loading...

llvm/trunk/lib/Analysis/LazyValueInfo.cpp

Loading...

llvm/trunk/lib/Analysis/Lint.cpp

Loading...

llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Loading...

llvm/trunk/lib/Analysis/NoAliasAnalysis.cpp

Loading...

llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Loading...

llvm/trunk/lib/Analysis/TargetTransformInfo.cpp

Loading...

llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp

Loading...

llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.cpp

Loading...

llvm/trunk/lib/IR/DataLayout.cpp

Loading...

llvm/trunk/lib/LTO/LTOCodeGenerator.cpp

Loading...

llvm/trunk/lib/Target/NVPTX/NVPTXAllocaHoisting.h

Loading...

llvm/trunk/lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp

Loading...

llvm/trunk/lib/Target/NVPTX/NVPTXLowerAggrCopies.h

Loading...

llvm/trunk/lib/Target/PowerPC/PPCCTRLoops.cpp

Loading...

llvm/trunk/lib/Target/Target.cpp

Loading...

llvm/trunk/lib/Target/TargetMachineC.cpp

Loading...

llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp

Loading...

llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp

Loading...

llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Loading...

llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp

Loading...

llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Loading...

llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Loading...

llvm/trunk/lib/Transforms/Instrumentation/BoundsChecking.cpp

Loading...

llvm/trunk/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

Loading...

llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Loading...

llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/ConstantProp.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/GVN.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/LICM.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/LoopInstSimplify.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/SROA.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/SimplifyCFGPass.cpp

Loading...

llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp

Loading...

llvm/trunk/lib/Transforms/Utils/SimplifyInstructions.cpp

Loading...

llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp

Loading...

llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Loading...

llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp

Loading...

llvm/trunk/tools/llc/llc.cpp

Loading...

llvm/trunk/tools/llvm-extract/llvm-extract.cpp

Loading...

llvm/trunk/tools/opt/opt.cpp

Loading...

llvm/trunk/unittests/IR/LegacyPassManagerTest.cpp

Loading...

Add Comment