llvm.org GIT mirror llvm / 2b4b44e
Move TargetData to DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165401 91177308-0d34-0410-b5e6-96231b3b80d8 Micah Villmow 7 years ago
9 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
5656 #include "llvm/PassManager.h"
5757 #include "llvm/Intrinsics.h"
5858 #include "llvm/Analysis/Verifier.h"
59 #include "llvm/Target/TargetData.h"
59 #include "llvm/DataLayout.h"
6060 #include "llvm/Target/TargetOptions.h"
6161 #include "llvm/Transforms/Scalar.h"
6262 #include "llvm/Support/Dwarf.h"
19441944 // Set up the optimizer pipeline.
19451945 // Start with registering info about how the
19461946 // target lays out data structures.
1947 fpm.add(new llvm::TargetData(*executionEngine->getTargetData()));
1947 fpm.add(new llvm::DataLayout(*executionEngine->getDataLayout()));
19481948
19491949 // Optimizations turned on
19501950 #ifdef ADD_OPT_PASSES
66 #include "llvm/PassManager.h"
77 #include "llvm/Analysis/Verifier.h"
88 #include "llvm/Analysis/Passes.h"
9 #include "llvm/Target/TargetData.h"
9 #include "llvm/DataLayout.h"
1010 #include "llvm/Transforms/Scalar.h"
1111 #include "llvm/Support/TargetSelect.h"
1212 #include
583583
584584 // Set up the optimizer pipeline. Start with registering info about how the
585585 // target lays out data structures.
586 OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData()));
586 OurFPM.add(new DataLayout(*TheExecutionEngine->getDataLayout()));
587587 // Provide basic AliasAnalysis support for GVN.
588588 OurFPM.add(createBasicAliasAnalysisPass());
589589 // Do simple "peephole" optimizations and bit-twiddling optzns.
66 #include "llvm/PassManager.h"
77 #include "llvm/Analysis/Verifier.h"
88 #include "llvm/Analysis/Passes.h"
9 #include "llvm/Target/TargetData.h"
9 #include "llvm/DataLayout.h"
1010 #include "llvm/Transforms/Scalar.h"
1111 #include "llvm/Support/TargetSelect.h"
1212 #include
828828
829829 // Set up the optimizer pipeline. Start with registering info about how the
830830 // target lays out data structures.
831 OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData()));
831 OurFPM.add(new DataLayout(*TheExecutionEngine->getDataLayout()));
832832 // Provide basic AliasAnalysis support for GVN.
833833 OurFPM.add(createBasicAliasAnalysisPass());
834834 // Do simple "peephole" optimizations and bit-twiddling optzns.
66 #include "llvm/PassManager.h"
77 #include "llvm/Analysis/Verifier.h"
88 #include "llvm/Analysis/Passes.h"
9 #include "llvm/Target/TargetData.h"
9 #include "llvm/DataLayout.h"
1010 #include "llvm/Transforms/Scalar.h"
1111 #include "llvm/Support/TargetSelect.h"
1212 #include
946946
947947 // Set up the optimizer pipeline. Start with registering info about how the
948948 // target lays out data structures.
949 OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData()));
949 OurFPM.add(new DataLayout(*TheExecutionEngine->getDataLayout()));
950950 // Provide basic AliasAnalysis support for GVN.
951951 OurFPM.add(createBasicAliasAnalysisPass());
952952 // Do simple "peephole" optimizations and bit-twiddling optzns.
66 #include "llvm/PassManager.h"
77 #include "llvm/Analysis/Verifier.h"
88 #include "llvm/Analysis/Passes.h"
9 #include "llvm/Target/TargetData.h"
9 #include "llvm/DataLayout.h"
1010 #include "llvm/Transforms/Scalar.h"
1111 #include "llvm/Support/TargetSelect.h"
1212 #include
11101110
11111111 // Set up the optimizer pipeline. Start with registering info about how the
11121112 // target lays out data structures.
1113 OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData()));
1113 OurFPM.add(new DataLayout(*TheExecutionEngine->getDataLayout()));
11141114 // Provide basic AliasAnalysis support for GVN.
11151115 OurFPM.add(createBasicAliasAnalysisPass());
11161116 // Promote allocas to registers.
2626
2727 (* Set up the optimizer pipeline. Start with registering info about how the
2828 * target lays out data structures. *)
29 TargetData.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
29 DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
3030
3131 (* Do simple "peephole" optimizations and bit-twiddling optzn. *)
3232 add_instruction_combination the_fpm;
2626
2727 (* Set up the optimizer pipeline. Start with registering info about how the
2828 * target lays out data structures. *)
29 TargetData.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
29 DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
3030
3131 (* Do simple "peephole" optimizations and bit-twiddling optzn. *)
3232 add_instruction_combination the_fpm;
2626
2727 (* Set up the optimizer pipeline. Start with registering info about how the
2828 * target lays out data structures. *)
29 TargetData.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
29 DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
3030
3131 (* Do simple "peephole" optimizations and bit-twiddling optzn. *)
3232 add_instruction_combination the_fpm;
2727
2828 (* Set up the optimizer pipeline. Start with registering info about how the
2929 * target lays out data structures. *)
30 TargetData.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
30 DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
3131
3232 (* Promote allocas to registers. *)
3333 add_memory_to_register_promotion the_fpm;