[llvm] [TableGen, CodeGen, CHERI] Add support for the cPTR wildcard value type. (PR #158426)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 21 20:18:30 PDT 2025


================
@@ -816,6 +818,11 @@ void TypeInfer::expandOverloads(TypeSetByHwMode::SetType &Out,
   if (Out.count(MVT::pAny)) {
     Out.erase(MVT::pAny);
     Out.insert(MVT::iPTR);
+    for (MVT T : MVT::cheri_capability_valuetypes()) {
+      if (Legal.count(T)) {
+        Out.insert(MVT::cPTR);
+      }
----------------
arsenm wrote:

```suggestion
      if (Legal.count(T))
        Out.insert(MVT::cPTR);
```

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


More information about the llvm-commits mailing list