[llvm] [DirectX] Make dx.RawBuffer an op that can't be replaced (PR #154620)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 11:51:03 PDT 2025
================
@@ -847,6 +847,8 @@ class TargetExtType : public Type {
CanBeLocal = 1U << 2,
// This type may be used as an element in a vector.
CanBeVectorElement = 1U << 3,
+ // This type can not be replaced in an optimization pass.
+ NoReplacement = 1U << 4,
----------------
nikic wrote:
IsTokenLike makes sense to me. I'd combine this with adding an isTokenLikeTy() method and then using that instead of isTokenTy() in relevant places (including the IR verifier).
https://github.com/llvm/llvm-project/pull/154620
More information about the llvm-commits
mailing list