[PATCH] D147697: [IR] Add TargetExtTypeClass
Nicolai Hähnle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 04:45:32 PDT 2023
nhaehnle added inline comments.
================
Comment at: llvm/include/llvm/IR/TargetExtType.h:51-59
+ /// Given a partially initialized type, return the layout type (defaults to
+ /// void, indicating that the type can't be laid out in memory).
+ using GetLayoutTypeFn = Type *(TargetExtType *T);
+ GetLayoutTypeFn *GetLayoutType = nullptr;
+
+ /// Given a partially initialized type, return the type properties (defaults
+ /// to 0).
----------------
nhaehnle wrote:
> jcranmer-intel wrote:
> > I question the need for these to be function pointers rather than instance properties. (The verifier function does need to be its own function).
> This is basically the same question as before. If we decide that these properties should be fixed on a per-type-name basis, then yes, we can just make them member variables here. Otherwise, they need to be fallbacks.
s/fallbacks/callbacks/
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147697/new/
https://reviews.llvm.org/D147697
More information about the llvm-commits
mailing list