mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 10:53:55 +00:00
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
This commit is contained in:
parent
e02fce0ac9
commit
965883ad85
@ -560,7 +560,7 @@ void *MCJITHelper::getPointerToFunction(Function *F) {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
OpenModule->setDataLayout(*NewEngine->getDataLayout());
|
||||
OpenModule->setDataLayout(NewEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
FPM->add(createBasicAliasAnalysisPass());
|
||||
// Promote allocas to registers.
|
||||
|
@ -913,7 +913,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
// Do simple "peephole" optimizations and bit-twiddling optzns.
|
||||
|
@ -1034,7 +1034,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
// Do simple "peephole" optimizations and bit-twiddling optzns.
|
||||
|
@ -1211,7 +1211,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
// Promote allocas to registers.
|
||||
|
@ -1462,7 +1462,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
#if 0
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
|
Loading…
x
Reference in New Issue
Block a user