rjodinchr wrote:

> > It has nothing to do with OpenMP. The goal was just to get something in the 
> > llvm IR that we could check for. The `assume` attribute allows us to pass a 
> > string that we can then check in a llvm pass.
> 
> Could you investigate whether 'annotate' would do what you want? IIRC, the 
> point of it is to just pass a string onto the AST/IR.

At the moment, I did not manage to have annotation working. It's because 
annotation is an indirect link to the function. Thus it does not stick around 
when I link modules.

Maybe the easiest way would be to add a real attribute for clspv?

https://github.com/llvm/llvm-project/pull/84934
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to