[llvm-dev] Extending StoreInst/LoadInst

Jeroen Dobbelaere via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 31 23:23:16 PDT 2018


Hi Bekket,

This side channel is something that will be added to almost _all_ load/store instructions.
Implementing it by an intrinsic (either, mimicking the load/store, or right before the pointer value) has too much impact on existing analysis and optimizations.

The behavior of it can be viewed as some extra 'metadata' (similar to !scope and !noalias), except that it refers to an expression (like '%3) instead of a metadata entry.

Greetings,

Jeroen Dobbelaere

> Hi Jeroen,
> 
> Intrinsic functions would be a good way to model vendor specific features.
> 
> In your case, for example, you can create your own memory load intrinsic
> function, and one of the function arguments would be your side channel
> Value*.
> 
> Hope this helps
> 
> Best,
> Bekket McClane
> 
[...]



More information about the llvm-dev mailing list