[mlir] Update Values to use new casting infra
authorNick Kreeger <nick.kreeger@gmail.com>
Fri, 14 Oct 2022 16:56:35 +0000 (11:56 -0500)
committerNick Kreeger <nick.kreeger@gmail.com>
Fri, 14 Oct 2022 16:56:35 +0000 (11:56 -0500)
commitf1f3612417a89f797ec2d6d405dd30d6890bef9e
treed1b31ebbbd261bda0837917f680eddfa8c3a7f0e
parentce1a2ccf94602d0424d472044ed23611e8397ef4
[mlir] Update Values to use new casting infra

This allows for using the llvm namespace cast methods instead of the ones on the Value class. The Value class method are kept for now, but we'll want to remove these eventually (with a really long lead time).

Related change: https://reviews.llvm.org/D134327

Differential Revision: https://reviews.llvm.org/D135870
mlir/include/mlir/IR/Value.h
mlir/lib/AsmParser/AsmParserState.cpp
mlir/lib/AsmParser/Parser.cpp
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/IR/Dominance.cpp