From: Dylan McKay Date: Mon, 7 Nov 2016 06:02:55 +0000 (+0000) Subject: [AVR] Enable the ISel, frame analyzer, and alloca passes X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c988b334b6a97a87b887df7aa22500961faf7701;p=platform%2Fupstream%2Fllvm.git [AVR] Enable the ISel, frame analyzer, and alloca passes llvm-svn: 286095 --- diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.cpp b/llvm/lib/Target/AVR/AVRTargetMachine.cpp index f630a5d..e1a6727 100644 --- a/llvm/lib/Target/AVR/AVRTargetMachine.cpp +++ b/llvm/lib/Target/AVR/AVRTargetMachine.cpp @@ -93,15 +93,21 @@ const AVRSubtarget *AVRTargetMachine::getSubtargetImpl(const Function &) const { //===----------------------------------------------------------------------===// bool AVRPassConfig::addInstSelector() { + // Install an instruction selector. + addPass(createAVRISelDag(getAVRTargetMachine(), getOptLevel())); + // Create the frame analyzer pass used by the PEI pass. + addPass(createAVRFrameAnalyzerPass()); + return false; } void AVRPassConfig::addPreRegAlloc() { + // Create the dynalloc SP save/restore pass to handle variable sized allocas. + addPass(createAVRDynAllocaSRPass()); } void AVRPassConfig::addPreSched2() { } -void AVRPassConfig::addPreEmitPass() { -} +void AVRPassConfig::addPreEmitPass() { } } // end of namespace llvm