Skip to content

Commit

Permalink
[gccjit] add #gccjit.null attribute
Browse files Browse the repository at this point in the history
Lancern committed Oct 22, 2024
1 parent 51e6ed7 commit 8c4725b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/mlir-gccjit/IR/GCCJITAttrs.td
Original file line number Diff line number Diff line change
@@ -129,6 +129,19 @@ def OneAttr : GCCJIT_Attr<"One", "one", [TypedAttrInterface]> {
let genVerifyDecl = 1;
}

def NullAttr : GCCJIT_Attr<"Null", "null", [TypedAttrInterface]> {
let summary = "An attribute containing a null pointer constant";
let description = [{
A `#gccjit.null` attribute represents a constant null pointer value of some
libgccjit pointer type.
}];

let parameters = (ins
AttributeSelfTypeParameter<"", "mlir::gccjit::PointerType">:$type);

let assemblyFormat = "";
}

//===----------------------------------------------------------------------===//
// OptLevel Attr
//===----------------------------------------------------------------------===//

0 comments on commit 8c4725b

Please sign in to comment.