Displaying 2 results from an estimated 2 matches for "0737bfff".
2010 Sep 18
0
[LLVMdev] Converting a Constant GEP to a POD integer?
Hi Talin,
> This is all happening at link time, which means that the target machine is fully
> known by this point. So it ought to be possible to convert the field offset
> expression (including the constant GEP) into a plain integer. Any idea how to do
> this?
probably you can just run the constant folder on it (passing the target data to
the constant folder).
Ciao,
Duncan.
2010 Sep 18
2
[LLVMdev] Converting a Constant GEP to a POD integer?
Working on my garbage collector...I need to be able to convert a
ConstantExpr to a plain int at link time.
At compile time, I use ContactExpr::getOffsetOf() to calculate the offsets
for pointer fields to be traced by the collector. Since the target machine
has not yet been selected at this point, we don't yet know what the exact
offset will be, so the expression cannot be flattened into a