[clang] [CIR] Integral types; simple global variables (PR #118743)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 5 06:28:19 PST 2024
================
@@ -74,6 +75,32 @@ class LLVMLoweringInfo {
class CIR_Op<string mnemonic, list<Trait> traits = []> :
Op<CIR_Dialect, mnemonic, traits>, LLVMLoweringInfo;
+//===----------------------------------------------------------------------===//
+// GlobalOp
+//===----------------------------------------------------------------------===//
+
+// TODO(CIR): For starters, cir.global has only name and type. The other
+// properties of a global variable will be added over time as more of ClangIR
+// is upstreamed.
+
+def GlobalOp : CIR_Op<"global"> {
+ let summary = "Declare or define a global variable";
+ let description = [{
+ ... lots of text to be added later ...
----------------
erichkeane wrote:
Would still prefer a bit of a stub here, even if it is incomplete (rather than just a 'todo') as this makes it to our documentation.
https://github.com/llvm/llvm-project/pull/118743
More information about the cfe-commits
mailing list