[clang] [libclc] [llvm] [openmp] [Clang] `__attribute__((assume))` refactor (PR #84934)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed May 8 09:26:29 PDT 2024


erichkeane 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.

https://github.com/llvm/llvm-project/pull/84934


More information about the cfe-commits mailing list