diff options
| author | River Riddle <riddleriver@gmail.com> | 2020-04-14 14:53:50 -0700 |
|---|---|---|
| committer | River Riddle <riddleriver@gmail.com> | 2020-04-14 15:14:41 -0700 |
| commit | ebf190fcda0b8b4e9de405ba13ddbc679550644b (patch) | |
| tree | f0fcb67051d1cf7a900e01273d78c77c2df83e31 /mlir/lib/TableGen/Operator.cpp | |
| parent | 2f21a579665d44330b964cb47eece8bb9ab5a90c (diff) | |
[llvm][ADT] Move TypeSwitch class from MLIR to LLVM
This class implements a switch-like dispatch statement for a value of 'T' using dyn_cast functionality. Each `Case<T>` takes a callable to be invoked if the root value isa<T>, the callable is invoked with the result of dyn_cast<T>() as a parameter.
Differential Revision: https://reviews.llvm.org/D78070
Diffstat (limited to 'mlir/lib/TableGen/Operator.cpp')
| -rw-r--r-- | mlir/lib/TableGen/Operator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/TableGen/Operator.cpp b/mlir/lib/TableGen/Operator.cpp index a6bed62948b7..808ba7aabc76 100644 --- a/mlir/lib/TableGen/Operator.cpp +++ b/mlir/lib/TableGen/Operator.cpp @@ -11,11 +11,11 @@ //===----------------------------------------------------------------------===// #include "mlir/TableGen/Operator.h" -#include "mlir/ADT/TypeSwitch.h" #include "mlir/TableGen/OpTrait.h" #include "mlir/TableGen/Predicate.h" #include "mlir/TableGen/Type.h" #include "llvm/ADT/SmallPtrSet.h" +#include "llvm/ADT/TypeSwitch.h" #include "llvm/Support/Debug.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/TableGen/Error.h" |
