[LLVMdev] want to intercept array dereferences

Gry Gunvor
Wed, 08 Apr 2015 05:36:57 -0000

Normally for int n unknown at static time, "a[n]" and
"*(a+n)" results
in an add and then a dereference.  I want instead for it to compile to
a system call that takes two arguments, a and n.  Where should I
intercept this in LLVM?

Gry