[PATCH] [AsmPrinter] handles addrspacecast in lowerConstant
Jingyue Wu
jingyue at google.com
Fri Apr 17 11:36:54 PDT 2015
An alternative is to have NVPTXFavorNonGenericAddrSpaces <http://llvm.org/docs/doxygen/html/NVPTXFavorNonGenericAddrSpaces_8cpp_source.html> to canonicalize `ConstantExpr` `gep(addrspacecast(` to `addrspacecast(gep(` (this pass currently canonicalizes only `Instruction`s and `ConstantExpr`s that are reachable from `load` or `store`), and then NVPTXAsmPrinter can just handle shallower patterns.
http://reviews.llvm.org/D9063
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list