[LLVMdev] MemoryBuffer
Chris Lattner
clattner at apple.com
Thu Sep 24 16:39:35 PDT 2009
On Sep 24, 2009, at 3:57 PM, OvermindDL1 wrote:
>>> freeze for a sec. It would also be nice to not require that as you
>>> could create a MemoryBuffer that references some *part* of an
>>> existing
>>> MemoryBuffer that does not have a nul as the defreferenced end
>>> pointer
>>> that you are giving in it. Mostly I just do not understand why this
>>> restriction exists, so I am just looking for comprehension.
>
> Out of curiosity, what code in Clang is optimized by doing a pointer
> derefence then compare to 0, rather then just comparing two points
> directly? Does not seem that efficient when laid out like that, which
> is why I am curious what code actually is helped by that pattern?
The code is out there, go read it :)
-Chris
More information about the llvm-dev
mailing list