Add the skeleton for the Mips constant island pass.

It will only be used for Mips 16 at this time.
 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reed Kotler
2013-02-27 03:33:58 +00:00
parent 8df7c39976
commit d056dc0aae
4 changed files with 89 additions and 0 deletions

View File

@ -116,6 +116,8 @@ bool MipsPassConfig::addPreEmitPass() {
// NOTE: long branch has not been implemented for mips16.
if (TM.getSubtarget<MipsSubtarget>().hasStandardEncoding())
addPass(createMipsLongBranchPass(TM));
if (TM.getSubtarget<MipsSubtarget>().inMips16Mode())
addPass(createMipsConstantIslandPass(TM));
return true;
}