[LLVMdev] Pattern matching addrspacecast?

David Chisnall David.Chisnall at cl.cam.ac.uk
Wed Feb 5 05:53:13 PST 2014


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





More information about the llvm-dev mailing list