search for: ljti0_0

Displaying 3 results from an estimated 3 matches for "ljti0_0".

Did you mean: lcpi0_0
2013 Aug 06
1
[LLVMdev] Patching jump tables at run-time
...: : for which the following assembly code gets generated: jmpq *.LJTI0_0(,%rdi,8) : .LJTI0_0: .quad .LBB0_2...
2017 Dec 27
1
Convert MachineInstr to MCInst in AsmPrinter.cpp
...to do that? If that is not possible, then, I would like to know if a given MachineInstr is an *lea *instruction and I would like to know if the symbol involved with this lea instruction is a jump-table. For instance, given a MachineInstr, I would like to know if it is of the following form. *leaq LJTI0_0(%rip), %rax* Also, say, I want to add custom labels (some string) while generating assembly right before emitting such *lea *instructions, how do I do that given that OutStreamer->EmitLabel() takes MCSymbol as an argument and not a string/StringRef? *My goal: *To find lea instructions correspo...
2018 Mar 23
5
RFC: Speculative Load Hardening (a Spectre variant #1 mitigation)
...al jump tables, this is easily arranged by testing the input to the jump table within each destination: ``` pushq %rax xorl %eax, %eax # Zero out initial predicate state. movq $-1, %r8 # Put all-ones mask into a register. jmpq *.LJTI0_0(,%rdi,8) # Indirect jump through table. .LBB0_2: # %sw.bb testq $0, %rdi # Validate index used for jump table. cmovneq %r8, %rax # Conditionally update predicate state. ... jmp _Z4leaki...