[LLVMdev] How should LLVM interpreter handle llvm.objectsize.i64
echristo at gmail.com
Thu May 9 13:14:58 PDT 2013
My suggestion would be to always lower to "unknown". See the code in,
IIRC, codegenprepare (or fast-isel) that does this.
On Thu, May 9, 2013 at 7:03 AM, Issac Torvalds <lyh.kernel at gmail.com> wrote:
> Hello LLVMer,
> I use dragonegg to generate LLVM bitcode. Then I use LLVM interpreter to
> execute what I get from compilation. However an error occurred and the error
> message is:
> "LLVM ERROR: Code generator does not support intrinsic function
> As far as I know, objectsize intrinsic is equivalent to gcc built-in
> __builtin_object_size. But I don't call __builtin_object_size explicitly in
> source code. Maybe headers what I include call the built-in somewhere. How
> I eliminate such built-in function call in LLVM bitcode, or what code should
> add into IntrinsicLowering.cpp to handle this problem.
> Any suggestion or comment is welcomed.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev