[clang] [Clang][TableGen] Use PointerType::get(Context) in MVE TableGen emitter (PR #124782)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 28 08:32:44 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Mats Jun Larsen (junlarsen)
<details>
<summary>Changes</summary>
Follow-up to #<!-- -->123569
I don't know if directly using the CodeGenModule here is the best solution. Let me know if there's something better to use.
---
Full diff: https://github.com/llvm/llvm-project/pull/124782.diff
1 Files Affected:
- (modified) clang/utils/TableGen/MveEmitter.cpp (+1-1)
``````````diff
diff --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp
index 58a4d3c22ac366..334aedbb8592b5 100644
--- a/clang/utils/TableGen/MveEmitter.cpp
+++ b/clang/utils/TableGen/MveEmitter.cpp
@@ -210,7 +210,7 @@ class PointerType : public Type {
return Name + " *";
}
std::string llvmName() const override {
- return "llvm::PointerType::getUnqual(" + Pointee->llvmName() + ")";
+ return "llvm::PointerType::getUnqual(CGM.getLLVMContext())";
}
const Type *getPointeeType() const { return Pointee; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/124782
More information about the cfe-commits
mailing list