llvm.org GIT mirror llvm / 965883a
Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242416 91177308-0d34-0410-b5e6-96231b3b80d8 Mehdi Amini 4 years ago
5 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
559559
560560 // Set up the optimizer pipeline. Start with registering info about how the
561561 // target lays out data structures.
562 OpenModule->setDataLayout(*NewEngine->getDataLayout());
562 OpenModule->setDataLayout(NewEngine->getDataLayout());
563563 // Provide basic AliasAnalysis support for GVN.
564564 FPM->add(createBasicAliasAnalysisPass());
565565 // Promote allocas to registers.
912912
913913 // Set up the optimizer pipeline. Start with registering info about how the
914914 // target lays out data structures.
915 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
915 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
916916 // Provide basic AliasAnalysis support for GVN.
917917 OurFPM.add(createBasicAliasAnalysisPass());
918918 // Do simple "peephole" optimizations and bit-twiddling optzns.
10331033
10341034 // Set up the optimizer pipeline. Start with registering info about how the
10351035 // target lays out data structures.
1036 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
1036 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
10371037 // Provide basic AliasAnalysis support for GVN.
10381038 OurFPM.add(createBasicAliasAnalysisPass());
10391039 // Do simple "peephole" optimizations and bit-twiddling optzns.
12101210
12111211 // Set up the optimizer pipeline. Start with registering info about how the
12121212 // target lays out data structures.
1213 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
1213 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
12141214 // Provide basic AliasAnalysis support for GVN.
12151215 OurFPM.add(createBasicAliasAnalysisPass());
12161216 // Promote allocas to registers.
14611461
14621462 // Set up the optimizer pipeline. Start with registering info about how the
14631463 // target lays out data structures.
1464 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
1464 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
14651465 #if 0
14661466 // Provide basic AliasAnalysis support for GVN.
14671467 OurFPM.add(createBasicAliasAnalysisPass());