Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/LoongArch/LoongArchMCInstLower.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | case MachineOperand::MO_RegisterMask: | ||||
// Regmasks are like implicit defs. | // Regmasks are like implicit defs. | ||||
return false; | return false; | ||||
case MachineOperand::MO_Immediate: | case MachineOperand::MO_Immediate: | ||||
MCOp = MCOperand::createImm(MO.getImm()); | MCOp = MCOperand::createImm(MO.getImm()); | ||||
break; | break; | ||||
case MachineOperand::MO_GlobalAddress: | case MachineOperand::MO_GlobalAddress: | ||||
MCOp = lowerSymbolOperand(MO, AP.getSymbolPreferLocal(*MO.getGlobal()), AP); | MCOp = lowerSymbolOperand(MO, AP.getSymbolPreferLocal(*MO.getGlobal()), AP); | ||||
break; | break; | ||||
// TODO: lower special operands | |||||
case MachineOperand::MO_MachineBasicBlock: | case MachineOperand::MO_MachineBasicBlock: | ||||
MCOp = lowerSymbolOperand(MO, MO.getMBB()->getSymbol(), AP); | |||||
break; | |||||
// TODO: lower special operands | |||||
case MachineOperand::MO_BlockAddress: | case MachineOperand::MO_BlockAddress: | ||||
case MachineOperand::MO_ExternalSymbol: | case MachineOperand::MO_ExternalSymbol: | ||||
case MachineOperand::MO_ConstantPoolIndex: | case MachineOperand::MO_ConstantPoolIndex: | ||||
case MachineOperand::MO_JumpTableIndex: | case MachineOperand::MO_JumpTableIndex: | ||||
break; | break; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
Show All 12 Lines |