Home
last modified time | relevance | path

Searched refs:CFI (Results 1 – 25 of 130) sorted by relevance

123456

/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Ddwarf-frame.ll12 ; CHECK-NO-CFI-LABEL: test_basic:
13 ; CHECK-NO-CFI: .fnstart
15 ; CHECK-NO-CFI-NOT: .cfi_startproc
16 ; CHECK-NO-CFI: @ %bb.0:
21 ; CHECK-NO-CFI: mov r11, sp
23 ; CHECK-NO-CFI-NOT: .cfi_endproc
24 ; CHECK-NO-CFI: .fnend
27 ; CHECK-ALWAYS-CFI: .fnstart
30 ; CHECK-ALWAYS-CFI: @ %bb.0:
35 ; CHECK-ALWAYS-CFI: mov r11, sp
[all …]
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/Breakpad/Inputs/
H A Dstack-cfi-parsing.syms11 STACK CFI INIT 0 2 .cfa: $rsp .ra: .cfa $rbp: $rsp
12 STACK CFI 1 $rbp: $rax $rbx: $rcx
13 STACK CFI INIT 2 1 $r47: $r42
14 STACK CFI INIT 3 1 $rbp:
15 STACK CFI INIT 4 1 $rbp
16 STACK CFI INIT 5 1 $rbp: $rbx $rsp:
17 STACK CFI INIT 6 1 $rbp: $rsp:
18 STACK CFI INIT 7 1 .cfa: $rsp
19 STACK CFI bogus
20 STACK CFI INIT 9 1 .cfa: $rbp .ra: $rax
H A Dstack-cfi-arm.syms4 STACK CFI INIT 0 2 .cfa: sp 0 + .ra: lr
5 STACK CFI 2 .cfa: sp 8 + .ra: .cfa -4 + ^ r7: .cfa -8 + ^
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineOperand.cpp616 switch (CFI.getOperation()) { in printCFI()
619 if (MCSymbol *Label = CFI.getLabel()) in printCFI()
625 if (MCSymbol *Label = CFI.getLabel()) in printCFI()
638 OS << ", " << CFI.getOffset(); in printCFI()
650 OS << CFI.getOffset(); in printCFI()
657 OS << ", " << CFI.getOffset(); in printCFI()
664 OS << ", " << CFI.getOffset(); in printCFI()
665 OS << ", " << CFI.getAddressSpace(); in printCFI()
672 OS << ", " << CFI.getOffset(); in printCFI()
678 OS << CFI.getOffset(); in printCFI()
[all …]
H A DCFIInstrInserter.cpp194 switch (CFI.getOperation()) { in calculateOutgoingCFAInfo()
196 SetRegister = CFI.getRegister(); in calculateOutgoingCFAInfo()
199 SetOffset = CFI.getOffset(); in calculateOutgoingCFAInfo()
202 SetOffset += CFI.getOffset(); in calculateOutgoingCFAInfo()
205 SetRegister = CFI.getRegister(); in calculateOutgoingCFAInfo()
206 SetOffset = CFI.getOffset(); in calculateOutgoingCFAInfo()
209 CSROffset = CFI.getOffset(); in calculateOutgoingCFAInfo()
212 CSRReg = CFI.getRegister2(); in calculateOutgoingCFAInfo()
215 CSROffset = CFI.getOffset() - SetOffset; in calculateOutgoingCFAInfo()
218 CSRRestored.set(CFI.getRegister()); in calculateOutgoingCFAInfo()
[all …]
/llvm-project-15.0.7/llvm/docs/
H A DCFIVerify.rst12 mechanisms implemented by Clang's *Control Flow Integrity* (CFI) schemes
14 indirect control flow operations are protected by CFI, and should output these
18 framework, where modifications to the compiler ensure that CFI protection
32 framework, ensuring updates to the compiler that reduce CFI coverage on
38 This tool will continuously validate that CFI directives are properly
41 present in linker or compiler do not subvert CFI protections in the final
46 the compiler implementation of CFI (e.g. indirect jumps to facilitate switch
49 It may be possible in the future to extend this tool to flag unnecessary CFI
50 directives (e.g. CFI directives around a static call to a non-polymorphic base
70 conditional jump target should be the CFI trap. If an indirect control flow
[all …]
/llvm-project-15.0.7/bolt/test/X86/
H A Dsctc-bug4.test8 CHECK-NEXT: CFI State : 0
14 CHECK-NEXT: CFI State: 0
17 CHECK-NEXT: CFI State : 0
21 CHECK-NEXT: CFI State: 0
24 CHECK-NEXT: CFI State : 0
H A Dshrinkwrapping-insertcfi.s1 # This test reproduces the issue with inserting updated CFI in shrink wrapping
16 # Check that CFI is successfully inserted into the first basic block:
20 # CHECK: 00000000: !CFI {{.*}}
27 # !CFI OpOffset for reg3/rbx is inserted into this block.
/llvm-project-15.0.7/clang/docs/
H A DControlFlowIntegrity.rst16 Clang includes an implementation of a number of control flow integrity (CFI)
22 To enable Clang's available CFI schemes, use the flag ``-fsanitize=cfi``.
29 be structured such that certain object files are compiled with CFI
80 least one CFI scheme is enabled.
87 <controlling-code-generation>` flag to cause CFI to print a diagnostic
101 Forward-Edge CFI for Virtual Calls
250 relevant for users of cross-DSO CFI:
282 for CFI. For example, this is necessary when a function's address
334 This scheme is currently not compatible with cross-DSO CFI or the
349 # Suppress all CFI checking for code in a file.
[all …]
/llvm-project-15.0.7/lldb/test/Shell/ObjectFile/Breakpad/Inputs/
H A Didentification-linux.syms4 STACK CFI INIT 1000 6 .cfa: $rsp 8 + .ra: .cfa -8 + ^
5 STACK CFI 1001 $rbp: .cfa -16 + ^ .cfa: $rsp 16 +
6 STACK CFI 1004 .cfa: $rbp 16 +
H A Didentification-macosx.syms4 STACK CFI INIT f30 6 .cfa: $rsp 8 + .ra: .cfa -8 + ^
5 STACK CFI f31 $rbp: .cfa -16 + ^ .cfa: $rsp 16 +
6 STACK CFI f34 .cfa: $rbp 16 +
H A Dsections.syms10 STACK CFI INIT 1010 10 .cfa: $rsp 8 + .ra: .cfa -8 + ^
11 STACK CFI 1011 $rbp: .cfa -16 + ^ .cfa: $rsp 16 +
12 STACK CFI 1014 .cfa: $rbp 16 +
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYFrameLowering.cpp80 CSKYMachineFunctionInfo *CFI = MF.getInfo<CSKYMachineFunctionInfo>(); in emitPrologue() local
112 unsigned spillAreaSize = CFI->getCalleeSaveAreaSize(); in emitPrologue()
114 uint64_t ActualSize = spillAreaSize + CFI->getVarArgsSaveSize(); in emitPrologue()
225 CSKYMachineFunctionInfo *CFI = MF.getInfo<CSKYMachineFunctionInfo>(); in emitEpilogue() local
251 CFI->getCalleeSaveAreaSize() + CFI->getVarArgsSaveSize(); in emitEpilogue()
433 CFI->setCalleeSaveAreaSize(CSStackSize); in determineCalleeSaves()
439 if (BigFrame || CFI->isCRSpilled() || !STI.hasE2()) { in determineCalleeSaves()
453 CFI->setLRIsSpilled(SavedRegs.test(CSKY::R15)); in determineCalleeSaves()
599 Offset += CFI->getVarArgsSaveSize() + CFI->getCalleeSaveAreaSize(); in getFrameIndexReference()
607 Offset += CFI->getVarArgsSaveSize() + CFI->getCalleeSaveAreaSize(); in getFrameIndexReference()
[all …]
/llvm-project-15.0.7/llvm/test/ExecutionEngine/JITLink/AArch64/
H A DELF_aarch64_ehframe.s10 # CHECK: Processing CFI record at
12 # CHECK: Processing CFI record at
16 # CHECK: Processing CFI record at
19 # CHECK: Processing CFI record at
25 # CHECK: Processing CFI record at
H A DMachO_arm64_ehframe.s10 # CHECK: Processing CFI record at
12 # CHECK: Processing CFI record at
16 # CHECK: Processing CFI record at
19 # CHECK: Processing CFI record at
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dcfi-inserter-check-order.ll5 ; Confirm that passes that can add CFI instructions run before CFI instruction inserter.
8 ; CHECK: Check CFA info and insert CFI instructions if needed
H A Dwin-funclet-cfi.ll36 ; Destructors need CFI but they shouldn't use the .seh_handler directive.
42 ; Emit CFI for pushing RBP.
47 ; Emit CFI for allocating from the stack pointer.
72 ; Emit CFI for pushing RBP.
77 ; Emit CFI for allocating from the stack pointer.
H A Dpatchable-prologue.ll3 …fy-machineinstrs -show-mc-encoding -mtriple=i386 < %s | FileCheck %s --check-prefixes=32,32CFI,XCHG
23 ; 32CFI-NEXT: .cfi_startproc
45 ; 32CFI-NEXT: .cfi_startproc
67 ; 32CFI-NEXT: .cfi_startproc
91 ; 32CFI-NEXT: .cfi_startproc
111 ; 32CFI-NEXT: .cfi_startproc
H A Dmachine-outliner-cfi-tail-some.mir4 # Outlining CFI instructions is unsafe if we cannot outline all of the CFI
6 # CFI instructions since function foo has a CFI Instruction that would not
/llvm-project-15.0.7/bolt/lib/Passes/
H A DRegReAssign.cpp73 const MCCFIInstruction *CFI = Function.getCFIFor(Inst); in swap() local
74 if (Changed.count(CFI)) in swap()
76 Changed.insert(CFI); in swap()
78 switch (CFI->getOperation()) { in swap()
80 const unsigned CFIReg2 = CFI->getRegister2(); in swap()
85 nullptr, CFI->getRegister(), in swap()
92 nullptr, CFI->getRegister(), in swap()
108 if (CFI->getOperation() != MCCFIInstruction::OpEscape) { in swap()
109 CFIReg = CFI->getRegister(); in swap()
112 readDWARFExpressionTargetReg(CFI->getValues()); in swap()
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/Breakpad/
H A Dstack-cfi-parsing.test7 # CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
8 # CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
10 # CHECK-NEXT: This UnwindPlan originally sourced from breakpad STACK CFI
48 # CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
49 # CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
H A Dunwind-via-stack-cfi.test9 # CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
10 # CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
12 # CHECK-NEXT: This UnwindPlan originally sourced from breakpad STACK CFI
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dmachine-outliner-cfi-tail-some.mir4 # Outlining CFI instructions is unsafe if we cannot outline all of the CFI
6 # CFI instructions since function foo has a CFI Instruction that would not
/llvm-project-15.0.7/libunwind/docs/
H A Dindex.rst49 FreeBSD i386, x86_64, ARM64 Clang DWARF CFI
52 Linux i386, x86_64, ARM64 Clang, GCC DWARF CFI
53 macOS i386, x86_64 Clang, GCC DWARF CFI
54 NetBSD x86_64 Clang, GCC DWARF CFI
55 Windows i386, x86_64, ARM, ARM64 Clang DWARF CFI
/llvm-project-15.0.7/lldb/test/Shell/ObjectFile/Breakpad/
H A Dsections.test76 CHECK-NEXT: Name: STACK CFI
84 …143 4B204346 4920494E 49542031 30313020 3130202E 6366613A 20247273 |STACK CFI INIT 1010 10 .cfa: …
85 … 2B202E72 613A202E 63666120 2D38202B 205E0A53 5441434B 20434649 |p 8 + .ra: .cfa -8 + ^.STACK CFI|
87 … 3136202B 0A535441 434B2043 46492031 30313420 2E636661 3A202472 |rsp 16 +.STACK CFI 1014 .cfa: $r|

123456