Allow attaching a type to StringAttr.
authorRiver Riddle <riverriddle@google.com>
Thu, 27 Jun 2019 16:12:19 +0000 (09:12 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 27 Jun 2019 16:13:44 +0000 (09:13 -0700)
commitbda669beea2c6de2e832533bf79fa0add6425d0c
tree69c63043d296ab3cf8ee683335a251d8d91df86d
parentc48675fd8772ad9c05697203bd61372f0dc9d5bb
Allow attaching a type to StringAttr.

Some dialects allow for string types, and this allows for reusing StringAttr for constants of these types.

PiperOrigin-RevId: 255413948
mlir/g3doc/LangRef.md
mlir/include/mlir/IR/Attributes.h
mlir/include/mlir/IR/Builders.h
mlir/lib/IR/AttributeDetail.h
mlir/lib/IR/Attributes.cpp
mlir/lib/IR/Builders.cpp
mlir/lib/Parser/Parser.cpp
mlir/lib/SPIRV/SPIRVOps.cpp
mlir/test/IR/parser.mlir
mlir/test/SPIRV/ops.mlir