[LLVMdev] Pattern matching addrspacecast?
Matt Arsenault
Matthew.Arsenault at amd.com
Wed Feb 5 10:56:31 PST 2014
On 02/05/2014 05:53 AM, David Chisnall wrote:
> Hi all,
>
> the addrspacecast stuff has landed and I'm now seeing failures in our back end because clang is emitting them, they're travelling through the IR to the SelectionDAG, and there's nothing to match them. Trying to match them, I get an error from TableGen saying:
>
> Variable not defined: 'addrspacecast'
>
> If I try to set a custom OperationAction in the target lowering class for ISD::ADDRSPACECAST, I never see LowerOperation invoked with that opcode (or with any other unknown operations). So what is the correct way of matching these nodes?
>
> David
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
Hi,
I haven't tried to use it either of those ways, and selected it
manually. Here is a patch I started working on a while ago that haven't
finished that does select it.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140203/204018.html
-Matt
More information about the llvm-dev
mailing list