Home
last modified time | relevance | path

Searched refs:MCCFIInstruction (Results 1 – 25 of 65) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/DWARFCFIChecker/
H A DDWARFCFIState.cpp27 void DWARFCFIState::update(const MCCFIInstruction &Directive) { in update()
62 dwarf::CFIProgram DWARFCFIState::convert(MCCFIInstruction Directive) { in convert()
69 case MCCFIInstruction::OpSameValue: in convert()
72 case MCCFIInstruction::OpRememberState: in convert()
81 case MCCFIInstruction::OpRestoreState: in convert()
90 case MCCFIInstruction::OpOffset: in convert()
94 case MCCFIInstruction::OpLLVMDefAspaceCfa: in convert()
98 case MCCFIInstruction::OpDefCfaRegister: in convert()
102 case MCCFIInstruction::OpDefCfaOffset: in convert()
105 case MCCFIInstruction::OpDefCfa: in convert()
[all …]
H A DDWARFCFIFunctionFrameAnalyzer.cpp19 bool IsEH, ArrayRef<MCCFIInstruction> Prologue) { in startFunctionFrame()
24 const MCInst &Inst, ArrayRef<MCCFIInstruction> Directives) { in emitInstructionAndDirectives()
H A DDWARFCFIAnalysis.cpp85 ArrayRef<MCCFIInstruction> Prologue) in DWARFCFIAnalysis()
98 State.update(MCCFIInstruction::createSameValue(nullptr, Reg)); in DWARFCFIAnalysis()
102 State.update(MCCFIInstruction::createUndefined( in DWARFCFIAnalysis()
118 State.update(MCCFIInstruction::createOffset(nullptr, CFA.Reg, 0)); in DWARFCFIAnalysis()
126 ArrayRef<MCCFIInstruction> Directives) { in update()
H A DDWARFCFIFunctionFrameStreamer.cpp37 ArrayRef<MCCFIInstruction> Directives; in updateReceiver()
39 Directives = ArrayRef<MCCFIInstruction>(LastFrame->Instructions); in updateReceiver()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DCFIInstBuilder.h54 void insertCFIInst(const MCCFIInstruction &CFIInst) const { in insertCFIInst()
61 insertCFIInst(MCCFIInstruction::cfiDefCfa( in buildDefCFA()
66 insertCFIInst(MCCFIInstruction::createDefCfaRegister( in buildDefCFARegister()
71 insertCFIInst(MCCFIInstruction::cfiDefCfaOffset(Label, Offset));
75 insertCFIInst(MCCFIInstruction::createAdjustCfaOffset(nullptr, Adjustment)); in buildAdjustCFAOffset()
79 insertCFIInst(MCCFIInstruction::createOffset( in buildOffset()
84 insertCFIInst(MCCFIInstruction::createNegateRAState(nullptr)); in buildNegateRAState()
88 insertCFIInst(MCCFIInstruction::createNegateRAStateWithPC(nullptr)); in buildNegateRAStateWithPC()
92 insertCFIInst(MCCFIInstruction::createRegister( in buildRegister()
98 insertCFIInst(MCCFIInstruction::createWindowSave(nullptr)); in buildWindowSave()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCDwarf.h509 class MCCFIInstruction {
557 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int64_t O, SMLoc Loc,
564 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R1, unsigned R2, SMLoc Loc) in MCCFIInstruction() function
569 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int64_t O, unsigned AS, in MCCFIInstruction() function
576 MCCFIInstruction(OpType Op, MCSymbol *L, MCSymbol *CfiLabel, SMLoc Loc) in MCCFIInstruction() function
585 static MCCFIInstruction cfiDefCfa(MCSymbol *L, unsigned Register,
587 return MCCFIInstruction(OpDefCfa, L, Register, Offset, Loc);
592 static MCCFIInstruction createDefCfaRegister(MCSymbol *L, unsigned Register,
594 return MCCFIInstruction(OpDefCfaRegister, L, Register, INT64_C(0), Loc);
600 static MCCFIInstruction cfiDefCfaOffset(MCSymbol *L, int64_t Offset,
[all …]
H A DMCAsmInfo.h30 class MCCFIInstruction; variable
396 std::vector<MCCFIInstruction> InitialFrameState;
668 void addInitialFrameState(const MCCFIInstruction &Inst);
670 const std::vector<MCCFIInstruction> &getInitialFrameState() const { in getInitialFrameState()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCFIInstrInserter.cpp183 const std::vector<MCCFIInstruction> &Instrs = MF->getFrameInstructions(); in calculateOutgoingCFAInfo()
198 const MCCFIInstruction &CFI = Instrs[CFIIndex]; in calculateOutgoingCFAInfo()
200 case MCCFIInstruction::OpDefCfaRegister: in calculateOutgoingCFAInfo()
203 case MCCFIInstruction::OpDefCfaOffset: in calculateOutgoingCFAInfo()
206 case MCCFIInstruction::OpAdjustCfaOffset: in calculateOutgoingCFAInfo()
209 case MCCFIInstruction::OpDefCfa: in calculateOutgoingCFAInfo()
213 case MCCFIInstruction::OpOffset: in calculateOutgoingCFAInfo()
216 case MCCFIInstruction::OpRegister: in calculateOutgoingCFAInfo()
219 case MCCFIInstruction::OpRelOffset: in calculateOutgoingCFAInfo()
222 case MCCFIInstruction::OpRestore: in calculateOutgoingCFAInfo()
[all …]
H A DMachineOperand.cpp673 static void printCFI(raw_ostream &OS, const MCCFIInstruction &CFI, in printCFI()
676 case MCCFIInstruction::OpSameValue: in printCFI()
682 case MCCFIInstruction::OpRememberState: in printCFI()
687 case MCCFIInstruction::OpRestoreState: in printCFI()
692 case MCCFIInstruction::OpOffset: in printCFI()
699 case MCCFIInstruction::OpDefCfaRegister: in printCFI()
705 case MCCFIInstruction::OpDefCfaOffset: in printCFI()
711 case MCCFIInstruction::OpDefCfa: in printCFI()
718 case MCCFIInstruction::OpLLVMDefAspaceCfa: in printCFI()
726 case MCCFIInstruction::OpRelOffset: in printCFI()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterDwarf.cpp205 void AsmPrinter::emitCFIInstruction(const MCCFIInstruction &Inst) const { in emitCFIInstruction()
210 case MCCFIInstruction::OpDefCfaOffset: in emitCFIInstruction()
213 case MCCFIInstruction::OpAdjustCfaOffset: in emitCFIInstruction()
216 case MCCFIInstruction::OpDefCfa: in emitCFIInstruction()
219 case MCCFIInstruction::OpDefCfaRegister: in emitCFIInstruction()
222 case MCCFIInstruction::OpLLVMDefAspaceCfa: in emitCFIInstruction()
226 case MCCFIInstruction::OpOffset: in emitCFIInstruction()
229 case MCCFIInstruction::OpRegister: in emitCFIInstruction()
232 case MCCFIInstruction::OpWindowSave: in emitCFIInstruction()
235 case MCCFIInstruction::OpNegateRAState: in emitCFIInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCStreamer.cpp432 for (const MCCFIInstruction& Inst : MAI->getInitialFrameState()) { in emitCFIStartProc()
433 if (Inst.getOperation() == MCCFIInstruction::OpDefCfa || in emitCFIStartProc()
434 Inst.getOperation() == MCCFIInstruction::OpDefCfaRegister || in emitCFIStartProc()
435 Inst.getOperation() == MCCFIInstruction::OpLLVMDefAspaceCfa) { in emitCFIStartProc()
484 MCCFIInstruction Instruction = in emitCFIDefCfa()
485 MCCFIInstruction::cfiDefCfa(Label, Register, Offset, Loc); in emitCFIDefCfa()
495 MCCFIInstruction Instruction = in emitCFIDefCfaOffset()
496 MCCFIInstruction::cfiDefCfaOffset(Label, Offset); in emitCFIDefCfaOffset()
505 MCCFIInstruction Instruction = in emitCFIAdjustCfaOffset()
506 MCCFIInstruction::createAdjustCfaOffset(Label, Adjustment, Loc); in emitCFIAdjustCfaOffset()
[all …]
H A DMCDwarf.cpp1352 void emitCFIInstructions(ArrayRef<MCCFIInstruction> Instrs,
1354 void emitCFIInstruction(const MCCFIInstruction &Instr);
1363 void FrameEmitterImpl::emitCFIInstruction(const MCCFIInstruction &Instr) { in emitCFIInstruction()
1368 case MCCFIInstruction::OpRegister: { in emitCFIInstruction()
1380 case MCCFIInstruction::OpWindowSave: in emitCFIInstruction()
1384 case MCCFIInstruction::OpNegateRAState: in emitCFIInstruction()
1388 case MCCFIInstruction::OpNegateRAStateWithPC: in emitCFIInstruction()
1392 case MCCFIInstruction::OpUndefined: { in emitCFIInstruction()
1398 case MCCFIInstruction::OpAdjustCfaOffset: in emitCFIInstruction()
1399 case MCCFIInstruction::OpDefCfaOffset: { in emitCFIInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp46 const MCCFIInstruction &CFIInst, in BuildCFI()
73 MCCFIInstruction::createOffset(nullptr, DwarfReg, Offset)); in emitCalleeSavedFrameMoves()
76 MCCFIInstruction::createRestore(nullptr, DwarfReg)); in emitCalleeSavedFrameMoves()
115 MCCFIInstruction::cfiDefCfaOffset(nullptr, -2 * stackGrowth), in emitPrologue()
122 MCCFIInstruction::createOffset(nullptr, DwarfFramePtr, 2 * stackGrowth), in emitPrologue()
133 MCCFIInstruction::createDefCfaRegister(nullptr, DwarfFramePtr), in emitPrologue()
153 MCCFIInstruction::cfiDefCfaOffset(nullptr, -StackOffset), in emitPrologue()
183 MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize - stackGrowth), in emitPrologue()
225 MCCFIInstruction::cfiDefCfa(nullptr, DwarfStackPtr, 2), in emitEpilogue()
231 MCCFIInstruction::createRestore(nullptr, DwarfFramePtr), in emitEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430MCTargetDesc.cpp57 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa( in createMSP430MCAsmInfo()
62 MCCFIInstruction Inst2 = MCCFIInstruction::createOffset( in createMSP430MCAsmInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFCFIChecker/
H A DDWARFCFIFunctionFrameReceiver.h21 class MCCFIInstruction; variable
41 ArrayRef<MCCFIInstruction> Prologue) {} in startFunctionFrame()
45 ArrayRef<MCCFIInstruction> Directives) {} in emitInstructionAndDirectives()
H A DDWARFCFIState.h40 LLVM_ABI void update(const MCCFIInstruction &Directive);
43 dwarf::CFIProgram convert(MCCFIInstruction Directive);
H A DDWARFCFIFunctionFrameAnalyzer.h38 ArrayRef<MCCFIInstruction> Prologue) override;
41 ArrayRef<MCCFIInstruction> Directives) override;
H A DDWARFCFIAnalysis.h79 bool IsEH, ArrayRef<MCCFIInstruction> Prologue);
82 ArrayRef<MCCFIInstruction> Directives);
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCTargetDesc.cpp54 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa(nullptr, Reg, 0); in createSparcMCAsmInfo()
64 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa(nullptr, Reg, 2047); in createSparcV9MCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AsmBackend.cpp590 ArrayRef<MCCFIInstruction> Instrs = FI->Instructions; in generateCompactUnwindEncoding()
603 const MCCFIInstruction &Inst = Instrs[i]; in generateCompactUnwindEncoding()
609 case MCCFIInstruction::OpDefCfa: { in generateCompactUnwindEncoding()
624 const MCCFIInstruction &LRPush = Instrs[++i]; in generateCompactUnwindEncoding()
625 if (LRPush.getOperation() != MCCFIInstruction::OpOffset) in generateCompactUnwindEncoding()
627 const MCCFIInstruction &FPPush = Instrs[++i]; in generateCompactUnwindEncoding()
628 if (FPPush.getOperation() != MCCFIInstruction::OpOffset) in generateCompactUnwindEncoding()
649 case MCCFIInstruction::OpDefCfaOffset: { in generateCompactUnwindEncoding()
655 case MCCFIInstruction::OpOffset: { in generateCompactUnwindEncoding()
666 const MCCFIInstruction &Inst2 = Instrs[++i]; in generateCompactUnwindEncoding()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kMCTargetDesc.cpp84 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa( in createM68kMCAsmInfo()
89 Inst = MCCFIInstruction::createOffset( in createM68kMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaFrameLowering.cpp123 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa( in emitPrologue()
131 MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
145 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
186 unsigned CFIIndex = MF.addFrameInst(MCCFIInstruction::createOffset( in emitPrologue()
203 MF.addFrameInst(MCCFIInstruction::createDefCfaRegister( in emitPrologue()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kFrameLowering.cpp265 MCCFIInstruction::createGnuArgsSize(nullptr, Amount)); in eliminateCallFramePseudoInstr()
280 MCCFIInstruction::createAdjustCfaOffset(nullptr, -InternalAmt)); in eliminateCallFramePseudoInstr()
311 MCCFIInstruction::createAdjustCfaOffset(nullptr, CfaAdjustment)); in eliminateCallFramePseudoInstr()
443 const MCCFIInstruction &CFIInst) const { in BuildCFI()
469 MCCFIInstruction::createOffset(nullptr, DwarfReg, Offset)); in emitPrologueCalleeSavedFrameMoves()
556 MCCFIInstruction::cfiDefCfaOffset(nullptr, 2 * stackGrowth)); in emitPrologue()
562 MCCFIInstruction::createOffset(nullptr, DwarfFramePtr, in emitPrologue()
571 MCCFIInstruction::createDefCfaRegister(nullptr, DwarfFramePtr)); in emitPrologue()
596 MCCFIInstruction::cfiDefCfaOffset(nullptr, StackOffset)); in emitPrologue()
647 MCCFIInstruction::cfiDefCfaOffset(nullptr, -StackSize + stackGrowth)); in emitPrologue()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/MCTargetDesc/
H A DARCMCTargetDesc.cpp61 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa(nullptr, ARC::SP, 0); in createARCMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEMCTargetDesc.cpp41 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa(nullptr, Reg, 0); in createVEMCAsmInfo()

123