ssahasra wrote:

> After digging into it a bit more, I think I understand what you mean. If I 
> define a `hip_barrier` type, I can set it as the AS of the named barrier type 
> in the ASTContext directly, and it should "just work", or at least work much 
> more smoothly. I'll look into it more and try to get a patch up, thanks

The name `LangAS::hip_barrier` makes me a teeny weeny bit uncomfortable, 
because the need for yet another address space is new, and there may be some 
pivot later. Would it make sense to make a generic name that suggests "this is 
a non-memory resource named using a pointer" that isn't necessarily limited to 
just named barriers? And then lower it specifically to `addrspace(13)` in LLVM 
IR by examining the type?

https://github.com/llvm/llvm-project/pull/195612
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to