Displaying 2 results from an estimated 2 matches for "7f2d6688".
2015 Jan 02
2
[LLVMdev] Evaluation of offsetof() macro
Hi!
LLVM has a class, ConstantExpr, that is very handy for compile-time
evaluation of const expressions. Unfortunately I cannot find any methods
in it that would be helpful in evaluation of expressions similar to this:
(uintptr_t)(&(*(TYPE*)0).FIELD), which is basically the implementation of
the offsetof(TYPE, FIELD) macro. Specifically, there seem to be no
provisions for dereferencing a
2015 Jan 02
2
[LLVMdev] Evaluation of offsetof() macro
...:getFieldIndex method is used to determine the offset for a
> particular field.
>
So it handles all const expression evaluation in the front-end?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150102/7f2d6688/attachment.html>