[PATCH] D91121: [InferAddrSpace] Teach to handle assumed address space.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 08:11:42 PST 2020
hliao added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:227
+ Optional<unsigned> getAssumedAddrSpace(const Value *V) const {
+ return getTLI()->getTargetMachine().getAssumedAddrSpace(V);
----------------
hliao wrote:
> arsenm wrote:
> > We already have a -1 as an invalid addrspace, so optional isn't necessary
> OK. Do we need to document that in the IR langref? That invalid address space ID is not documented anywhere.
Shall we assume this before that reserved invalid address space ID is well-received and documented in LLVM IR ref? I will make either change in this change accordingly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91121/new/
https://reviews.llvm.org/D91121
More information about the llvm-commits
mailing list