Author: Mats Jun Larsen
Date: 2025-02-07T17:41:27Z
New Revision: c4c22a5377f41f3bcbca10a70a663b804659d2a2

URL: 
https://github.com/llvm/llvm-project/commit/c4c22a5377f41f3bcbca10a70a663b804659d2a2
DIFF: 
https://github.com/llvm/llvm-project/commit/c4c22a5377f41f3bcbca10a70a663b804659d2a2.diff

LOG: [Clang][TableGen] Use PointerType::get(Context) in MVE TableGen emitter 
(NFC) (#124782)

Follow-up to #123569

Co-authored-by: Nikita Popov <git...@npopov.com>

Added: 
    

Modified: 
    clang/utils/TableGen/MveEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/utils/TableGen/MveEmitter.cpp 
b/clang/utils/TableGen/MveEmitter.cpp
index e77679876a3af51..014b20667e03e4c 100644
--- a/clang/utils/TableGen/MveEmitter.cpp
+++ b/clang/utils/TableGen/MveEmitter.cpp
@@ -209,9 +209,7 @@ class PointerType : public Type {
       Name = "const " + Name;
     return Name + " *";
   }
-  std::string llvmName() const override {
-    return "llvm::PointerType::getUnqual(" + Pointee->llvmName() + ")";
-  }
+  std::string llvmName() const override { return "Builder.getPtrTy()"; }
   const Type *getPointeeType() const { return Pointee; }
 
   static bool classof(const Type *T) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to