3 ms·
In LLVM terms, it's referring to these kinds of stores: @vval = constant double 1.0, align 8 define void @foo(double *val) { store double %val, doub
by jcranmer 7y ago
In LLVM terms, it's referring to these kinds of stores:
@vval = constant double 1.0, align 8
define void @foo(double *val) {
store double %val, double @cval, align 8
|
At the LLVM level, the "const" qualifier to pointers and other non-global values get reflected nowhere in the type system. But if you declare a const global variable, that variable gets placed in a read-only data section.
- cryptonector 7y agoGot it. Thanks!