diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp b/contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp index 04e21867d5..31059e5910 100644 --- a/contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/contrib/libs/llvm12/lib/Target/ARM/ARMAsmPrinter.cpp @@ -285,7 +285,7 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum, return false; case 'y': // Print a VFP single precision register as indexed double. if (MI->getOperand(OpNum).isReg()) { - MCRegister Reg = MI->getOperand(OpNum).getReg().asMCReg(); + MCRegister Reg = MI->getOperand(OpNum).getReg().asMCReg(); const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo(); // Find the 'd' register that has this 's' register as a sub-register, // and determine the lane number. @@ -903,7 +903,7 @@ void ARMAsmPrinter::emitMachineConstantPoolValue( MCSymbol *MCSym; if (ACPV->isLSDA()) { - MCSym = getMBBExceptionSym(MF->front()); + MCSym = getMBBExceptionSym(MF->front()); } else if (ACPV->isBlockAddress()) { const BlockAddress *BA = cast<ARMConstantPoolConstant>(ACPV)->getBlockAddress(); @@ -1897,7 +1897,7 @@ void ARMAsmPrinter::emitInstruction(const MachineInstr *MI) { // LSJLJEH: Register SrcReg = MI->getOperand(0).getReg(); Register ValReg = MI->getOperand(1).getReg(); - MCSymbol *Label = OutContext.createTempSymbol("SJLJEH"); + MCSymbol *Label = OutContext.createTempSymbol("SJLJEH"); OutStreamer->AddComment("eh_setjmp begin"); EmitToStreamer(*OutStreamer, MCInstBuilder(ARM::tMOVr) .addReg(ValReg) @@ -2180,49 +2180,49 @@ void ARMAsmPrinter::emitInstruction(const MachineInstr *MI) { case ARM::PATCHABLE_TAIL_CALL: LowerPATCHABLE_TAIL_CALL(*MI); return; - case ARM::SpeculationBarrierISBDSBEndBB: { - // Print DSB SYS + ISB - MCInst TmpInstDSB; - TmpInstDSB.setOpcode(ARM::DSB); - TmpInstDSB.addOperand(MCOperand::createImm(0xf)); - EmitToStreamer(*OutStreamer, TmpInstDSB); - MCInst TmpInstISB; - TmpInstISB.setOpcode(ARM::ISB); - TmpInstISB.addOperand(MCOperand::createImm(0xf)); - EmitToStreamer(*OutStreamer, TmpInstISB); - return; - } - case ARM::t2SpeculationBarrierISBDSBEndBB: { - // Print DSB SYS + ISB - MCInst TmpInstDSB; - TmpInstDSB.setOpcode(ARM::t2DSB); - TmpInstDSB.addOperand(MCOperand::createImm(0xf)); - TmpInstDSB.addOperand(MCOperand::createImm(ARMCC::AL)); - TmpInstDSB.addOperand(MCOperand::createReg(0)); - EmitToStreamer(*OutStreamer, TmpInstDSB); - MCInst TmpInstISB; - TmpInstISB.setOpcode(ARM::t2ISB); - TmpInstISB.addOperand(MCOperand::createImm(0xf)); - TmpInstISB.addOperand(MCOperand::createImm(ARMCC::AL)); - TmpInstISB.addOperand(MCOperand::createReg(0)); - EmitToStreamer(*OutStreamer, TmpInstISB); - return; - } - case ARM::SpeculationBarrierSBEndBB: { - // Print SB - MCInst TmpInstSB; - TmpInstSB.setOpcode(ARM::SB); - EmitToStreamer(*OutStreamer, TmpInstSB); - return; - } - case ARM::t2SpeculationBarrierSBEndBB: { - // Print SB - MCInst TmpInstSB; - TmpInstSB.setOpcode(ARM::t2SB); - EmitToStreamer(*OutStreamer, TmpInstSB); - return; - } - } + case ARM::SpeculationBarrierISBDSBEndBB: { + // Print DSB SYS + ISB + MCInst TmpInstDSB; + TmpInstDSB.setOpcode(ARM::DSB); + TmpInstDSB.addOperand(MCOperand::createImm(0xf)); + EmitToStreamer(*OutStreamer, TmpInstDSB); + MCInst TmpInstISB; + TmpInstISB.setOpcode(ARM::ISB); + TmpInstISB.addOperand(MCOperand::createImm(0xf)); + EmitToStreamer(*OutStreamer, TmpInstISB); + return; + } + case ARM::t2SpeculationBarrierISBDSBEndBB: { + // Print DSB SYS + ISB + MCInst TmpInstDSB; + TmpInstDSB.setOpcode(ARM::t2DSB); + TmpInstDSB.addOperand(MCOperand::createImm(0xf)); + TmpInstDSB.addOperand(MCOperand::createImm(ARMCC::AL)); + TmpInstDSB.addOperand(MCOperand::createReg(0)); + EmitToStreamer(*OutStreamer, TmpInstDSB); + MCInst TmpInstISB; + TmpInstISB.setOpcode(ARM::t2ISB); + TmpInstISB.addOperand(MCOperand::createImm(0xf)); + TmpInstISB.addOperand(MCOperand::createImm(ARMCC::AL)); + TmpInstISB.addOperand(MCOperand::createReg(0)); + EmitToStreamer(*OutStreamer, TmpInstISB); + return; + } + case ARM::SpeculationBarrierSBEndBB: { + // Print SB + MCInst TmpInstSB; + TmpInstSB.setOpcode(ARM::SB); + EmitToStreamer(*OutStreamer, TmpInstSB); + return; + } + case ARM::t2SpeculationBarrierSBEndBB: { + // Print SB + MCInst TmpInstSB; + TmpInstSB.setOpcode(ARM::t2SB); + EmitToStreamer(*OutStreamer, TmpInstSB); + return; + } + } MCInst TmpInst; LowerARMMachineInstrToMCInst(MI, TmpInst, *this); |