xakep8 wrote: > Could you name a use case for this attribute?
Currently the CIR is lowering `const char *` and `char *` both as `!cir.ptr<!s8i>` and there is no way of distinguishing a const pointee from the other so this adds the cir.const_pointee attribute to distinguish the const pointee from the non const one. The changes that are made in this PR only preserve information on the CIR layer but are discarded on further lowering, so the only use is to preserve frontend semantics for any future consumers. https://github.com/llvm/llvm-project/pull/218114 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
