May 8, 2026

Goals

  • Learn about the how LLVM IR is converted to PTX.
  • Use RL to beat CoopRT by combining CoopRT and BoS prefetcher synergistically.

What I worked on

  • I finally found the exact location of the matcherTable in the llc binary.
  • Modified the ptx generation by altering the matcherTable bytes inside gdb.

Key Insights

  • Virtual adddress space of program is only built after r command is run inside gdb.
  • So altering the bytes before running r won’t achieve anything.
  • Learnt a few awk and sed tricks and documented them my notes repository.

Questions / Confusions

  • Since now I have figured out how to alter ptx generation, now I have to check whether the same llc binary used internally in triton.

Ideas / Hypotheses

  • Since the llc is binary and not a shared library, I do not need shared libraries for this attack.

Papers / Resources

  • None

Next Steps

  • Go deeper into LLVM code generation.

Introspection

  • Today was a good day, let’s hope both of ideas have their day in the sun.