llvm-6502/lib/IR
Rafael Espindola 356deb5ecd Use DataLayout from the module when easily available.
Eventually DataLayoutPass should go away, but for now that is the only easy
way to get a DataLayout in some APIs. This patch only changes the ones that
have easy access to a Module.

One interesting issue with sometimes using DataLayoutPass and sometimes
fetching it from the Module is that we have to make sure they are equivalent.
We can get most of the way there by always constructing the pass with a Module.
In fact, the pass could be changed to point to an external DataLayout instead
of owning one to make this stricter.

Unfortunately, the C api passes a DataLayout, so it has to be up to the caller
to make sure the pass and the module are in sync.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202204 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-25 23:25:17 +00:00
..
AsmWriter.cpp Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
AsmWriter.h Revert "Give internal classes hidden visibility." 2013-09-11 18:05:11 +00:00
AttributeImpl.h [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
Attributes.cpp Begin adding docs and IR-level support for the inalloca attribute 2013-12-19 02:14:12 +00:00
AutoUpgrade.cpp Report a warning when dropping outdated debug info metadata. 2014-01-16 01:51:12 +00:00
BasicBlock.cpp Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
CMakeLists.txt [PM] Rename this source file to something a bit more generic before 2014-01-09 02:39:45 +00:00
ConstantFold.cpp Fold vector selects with undef elements in the condition. Fixes PR18319. 2013-12-31 19:30:47 +00:00
ConstantFold.h
Constants.cpp Add a const lookup routine to get a BlockAddress constant if there is 2014-01-19 02:13:50 +00:00
ConstantsContext.h Revert "Give internal classes hidden visibility." 2013-09-11 18:05:11 +00:00
Core.cpp Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
DataLayout.cpp Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
DebugInfo.cpp DebugInfo: Remove dead code, DICompositeType::addMember(DIDescriptor D) 2013-12-27 19:11:52 +00:00
DebugLoc.cpp Test commit 2014-02-05 14:23:18 +00:00
DiagnosticInfo.cpp Fix wording of warning message about invalid debug info. 2014-02-04 23:49:02 +00:00
DiagnosticPrinter.cpp Report a warning when dropping outdated debug info metadata. 2014-01-16 01:51:12 +00:00
DIBuilder.cpp DIBuilder: simplify array generation to produce true zero-length arrays 2014-02-03 23:08:54 +00:00
Dominators.cpp Remove unnecessary typename. 2014-02-16 14:12:35 +00:00
Function.cpp Add an inalloca flag to allocas 2014-01-17 23:58:17 +00:00
GCOV.cpp Replace the F_Binary flag with a F_Text one. 2014-02-24 18:20:12 +00:00
Globals.cpp Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
GVMaterializer.cpp
InlineAsm.cpp Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. 2013-02-12 21:21:59 +00:00
Instruction.cpp Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Instructions.cpp Bug 18228 - Fix accepting bitcasts between vectors of pointers with a 2014-01-22 19:21:33 +00:00
IntrinsicInst.cpp
IRBuilder.cpp
IRPrintingPasses.cpp [PM] Add module and function printing passes for the new pass manager. 2014-01-12 12:15:39 +00:00
LeakDetector.cpp
LeaksContext.h Revert "Give internal classes hidden visibility." 2013-09-11 18:05:11 +00:00
LegacyPassManager.cpp [PM] Simplify the interface exposed for IR printing passes. 2014-01-12 11:30:46 +00:00
LLVMBuild.txt
LLVMContext.cpp Switch the LLVM error reporting on the new diagnostic system. 2014-02-22 00:34:11 +00:00
LLVMContextImpl.cpp Add warning capabilities in LLVM. 2013-12-17 17:47:22 +00:00
LLVMContextImpl.h Add a const lookup routine to get a BlockAddress constant if there is 2014-01-19 02:13:50 +00:00
Makefile Actually update the CMake and Makefile builds correctly, and update the 2013-01-02 12:09:16 +00:00
Mangler.cpp Add back r201608, r201622, r201624 and r201625 2014-02-19 17:23:20 +00:00
Metadata.cpp Fix pr14893. 2014-01-28 16:56:46 +00:00
Module.cpp Fix resetting the DataLayout in a Module. 2014-02-25 22:23:04 +00:00
Pass.cpp Disable most IR-level transform passes on functions marked 'optnone'. 2014-02-06 00:07:05 +00:00
PassManager.cpp [PM] Don't require analysis results to be const in the new pass manager. 2014-02-05 21:41:42 +00:00
PassRegistry.cpp [opt][PassInfo] Allow opt to run passes that need target machine. 2014-01-16 21:44:34 +00:00
SymbolTableListTraitsImpl.h
Type.cpp Mark some Type and EVT methods as LLVM_READONLY. 2013-12-28 16:17:26 +00:00
TypeFinder.cpp TypeFinder: prefer iterative algorithm to keep stack usage low. 2013-10-16 04:10:06 +00:00
Use.cpp Fix Casting 2013-01-14 21:04:37 +00:00
User.cpp
Value.cpp Make it explicit that nulls are not allowed in names. 2013-11-19 21:12:39 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp Add v4f16 to supported value types. 2013-10-03 03:29:21 +00:00
Verifier.cpp Check that GlobalAliases don't have section or alignment. 2014-02-13 18:26:41 +00:00