[PATCH] [AsmPrinter] handles addrspacecast in lowerConstant
justin.holewinski at gmail.com
Mon Apr 20 05:36:08 PDT 2015
Handling this aspect of PTX has always been a PITA. Internally, we customize lowerConstant to handle this case and create an MCExpr subclass (`NVPTXGenericMCSymbolRefExpr`) that handles the printing of "`generic(<symbolref>)`". Something like this will be needed upstream. Our internal version is a bit of a hack, so I'll want to come up with something cleaner for upstream. If you don't have time to tackle that, I'll try to put something together soon.
More information about the llvm-commits