Displaying 2 results from an estimated 2 matches for "emittargetcodeforunreachable".
2014 Apr 14
2
[LLVMdev] Emit code for 'unreachable'
I am not seeing this happening, at least not for unreachables that
follow calls to 'noreturn' functions.
On Apr 14, 2014, at 3:48 AM, Anton Korobeynikov <anton at korobeynikov.info> wrote:
> Hello
>
> x86 backend emits ud2 instruction in this case
>
> On Mon, Apr 14, 2014 at 1:46 PM, Vadim Chugunov <vadimcn at gmail.com> wrote:
>> Hi,
>> Is it
2014 Apr 15
2
[LLVMdev] Emit code for 'unreachable'
...e looked through LLVM codegen code and found that
> SelectionDAGBuilder::visitUnreachable() is basically a no-op. So I don't
> see how it could have generated anything...
>
> What would be the right way to go about adding this functionality?
> Right now I am thinking to add 'EmitTargetCodeForUnreachable()' method to
> TargetSelectionDAGInfo class, so that targets can emit code for
> 'unreachable', if they need that. Does that sound right?
>
Personally I'm in favor, but others may disagree. Right now clang inserts
calls to llvm.trap(), and that's how we get ud2'...