[llvm-dev] Get constants of undefined types in IR
Iulia Stirb via llvm-dev
llvm-dev at lists.llvm.org
Sat Aug 31 06:54:51 PDT 2019
I would like to obtain a constant that is initialized with a value of type cpu_set_t, a type which is defined by Pthreads. The problem is that a variable of this type cannot be cast to an int value, even in C source code. I tried get methods from Constant or ConstantInt classes, but with no result.
How can I obtain such constant object in IR?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev