| /freebsd/contrib/llvm-project/llvm/lib/DWARFCFIChecker/ |
| H A D | DWARFCFIState.cpp | 27 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 D | DWARFCFIFunctionFrameAnalyzer.cpp | 19 bool IsEH, ArrayRef<MCCFIInstruction> Prologue) { in startFunctionFrame() 24 const MCInst &Inst, ArrayRef<MCCFIInstruction> Directives) { in emitInstructionAndDirectives()
|
| H A D | DWARFCFIAnalysis.cpp | 85 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 D | DWARFCFIFunctionFrameStreamer.cpp | 37 ArrayRef<MCCFIInstruction> Directives; in updateReceiver() 39 Directives = ArrayRef<MCCFIInstruction>(LastFrame->Instructions); in updateReceiver()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | CFIInstBuilder.h | 54 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 D | MCDwarf.h | 509 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 D | MCAsmInfo.h | 30 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 D | CFIInstrInserter.cpp | 183 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 D | MachineOperand.cpp | 673 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 D | AsmPrinterDwarf.cpp | 205 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 D | MCStreamer.cpp | 432 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 D | MCDwarf.cpp | 1352 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 D | MSP430FrameLowering.cpp | 46 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 D | MSP430MCTargetDesc.cpp | 57 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa( in createMSP430MCAsmInfo() 62 MCCFIInstruction Inst2 = MCCFIInstruction::createOffset( in createMSP430MCAsmInfo()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFCFIChecker/ |
| H A D | DWARFCFIFunctionFrameReceiver.h | 21 class MCCFIInstruction; variable 41 ArrayRef<MCCFIInstruction> Prologue) {} in startFunctionFrame() 45 ArrayRef<MCCFIInstruction> Directives) {} in emitInstructionAndDirectives()
|
| H A D | DWARFCFIState.h | 40 LLVM_ABI void update(const MCCFIInstruction &Directive); 43 dwarf::CFIProgram convert(MCCFIInstruction Directive);
|
| H A D | DWARFCFIFunctionFrameAnalyzer.h | 38 ArrayRef<MCCFIInstruction> Prologue) override; 41 ArrayRef<MCCFIInstruction> Directives) override;
|
| H A D | DWARFCFIAnalysis.h | 79 bool IsEH, ArrayRef<MCCFIInstruction> Prologue); 82 ArrayRef<MCCFIInstruction> Directives);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/ |
| H A D | SparcMCTargetDesc.cpp | 54 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 D | AArch64AsmBackend.cpp | 590 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 D | M68kMCTargetDesc.cpp | 84 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa( in createM68kMCAsmInfo() 89 Inst = MCCFIInstruction::createOffset( in createM68kMCAsmInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
| H A D | XtensaFrameLowering.cpp | 123 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 D | M68kFrameLowering.cpp | 265 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 D | ARCMCTargetDesc.cpp | 61 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa(nullptr, ARC::SP, 0); in createARCMCAsmInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEMCTargetDesc.cpp | 41 MCCFIInstruction Inst = MCCFIInstruction::cfiDefCfa(nullptr, Reg, 0); in createVEMCAsmInfo()
|