mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user