aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorgysit <gysit@google.com>2022-02-14 12:12:15 +0000
committergysit <gysit@google.com>2022-02-14 12:14:12 +0000
commitd50571ab07e1fc1761cf2a884459fe4892ec75f1 (patch)
tree65f62e3eeae86bf4b1df8b5cf2ae7b12e2857b80 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent880e87580a219996f96ebf2cc9be9740f1a99a4c (diff)
downloadllvm-d50571ab07e1fc1761cf2a884459fe4892ec75f1.zip
llvm-d50571ab07e1fc1761cf2a884459fe4892ec75f1.tar.gz
llvm-d50571ab07e1fc1761cf2a884459fe4892ec75f1.tar.bz2
[mlir][OpDSL] Add default value to index attributes.
Index attributes had no default value, which means the attribute values had to be set on the operation. This revision adds a default parameter to `IndexAttrDef`. After the change, every index attribute has to define a default value. For example, we may define the following strides attribute: ``` ``` When using the operation the default stride is used if the strides attribute is not set. The mechanism is implemented using `DefaultValuedAttr`. Additionally, the revision uses the naming index attribute instead of attribute more consistently, which is a preparation for follow up revisions that will introduce function attributes. Depends On D119125 Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D119126
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions