projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62cbdd5
)
Support type casting Type to itself
author
Lei Zhang
<antiagainst@google.com>
Mon, 3 Jun 2019 19:38:22 +0000
(12:38 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Tue, 4 Jun 2019 02:26:54 +0000
(19:26 -0700)
PiperOrigin-RevId:
251287045
mlir/include/mlir/IR/Types.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/Types.h
b/mlir/include/mlir/IR/Types.h
index
7f70ec2
..
de29bb4
100644
(file)
--- a/
mlir/include/mlir/IR/Types.h
+++ b/
mlir/include/mlir/IR/Types.h
@@
-137,6
+137,9
@@
public:
template <typename U> U dyn_cast_or_null() const;
template <typename U> U cast() const;
+ // Support type casting Type to itself.
+ static bool classof(Type) { return true; }
+
/// Return the classification for this type.
unsigned getKind() const;