tiny.smt.choir.names.attr_names
Defined in choir.names.
The keys of the seven attributes the dialect's operations carry.
API (7)
Values and defaults
Public values and defaults.
amount: The key of the number of positions a rotation turns a bit-vector,amount, held as an integer attribute.extra: The key of the number of bits an extension adds,extra, held as an integer attribute.group: The key of an assertion's group label,group, held as a string attribute.high: The key of the highest bit position an extraction keeps,high, held as an integer attribute.low: The key of the lowest bit position an extraction keeps,low, held as an integer attribute.name: The key of a name,name, held as a string attribute.value: The key of a constant's value,value.
Source
Source: lib/smt/src/choir/names.zig:44
zig
/// The keys of the seven attributes the dialect's operations carry. The operation structs of/// `SmtDialect` set and read every attribute under these keys, and a caller that reads an attribute/// straight from an `ir.Operation` uses the same key. Each operation's specification lists the keys/// of its attributes, and its struct's getters read the attributes back. The namespace and the/// `dialect` file re-export it.pub const attr_names = struct { /// The key of a name, `name`, held as a string attribute. The structs of variables, function /// applications and assertions store and read a name under this key. It names a variable /// (`VarOp`), the function an application applies (`ApplyOp`), and an assertion (`AssertOp`). pub const name = "name"; /// The key of an assertion's group label, `group`, held as a string attribute. /// `AssertOp.createGrouped` stores an assertion's group label under this key, and /// `AssertOp.getGroup` reads it back. pub const group = "group"; /// The key of a constant's value, `value`. The two constant operations store their value under /// this key, and their `getValue` functions read it back. `BoolConstOp` holds the value as a /// Boolean attribute. `BitVecConstOp` holds the value as decimal text in a string attribute. pub const value = "value"; /// The key of the highest bit position an extraction keeps, `high`, held as an integer /// attribute. `BvExtractOp.create` stores the extraction's upper bit position under this key, /// and `BvExtractOp.getHigh` reads it back. pub const high = "high"; /// The key of the lowest bit position an extraction keeps, `low`, held as an integer attribute. /// `BvExtractOp.create` stores the extraction's lower bit position under this key, and /// `BvExtractOp.getLow` reads it back. pub const low = "low"; /// The key of the number of bits an extension adds, `extra`, held as an integer attribute. The /// zero and sign extension operations store the number of added bits under this key, and their /// `getExtra` functions read it back. `BvZeroExtOp` and `BvSignExtOp` carry it. pub const extra = "extra"; /// The key of the number of positions a rotation turns a bit-vector, `amount`, held as an /// integer attribute. The two rotation operations store the rotation amount under this key, and /// their `getAmount` functions read it back. `BvRotlOp` and `BvRotrOp` carry it. pub const amount = "amount";};Also reachable as
choir.attr_names, choir.dialect.attr_names.
Audit
| Definitions | 8 |
|---|---|
| Public names | 24 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |