[all-commits] [llvm/llvm-project] fcb159: [IR] Migrate away from PointerUnion::{is, get} (NFC...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Fri Dec 13 08:01:07 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fcb1591b46f12b8908a8cdb252611708820102f8
https://github.com/llvm/llvm-project/commit/fcb1591b46f12b8908a8cdb252611708820102f8
Author: Kazu Hirata <kazu at google.com>
Date: 2024-12-13 (Fri, 13 Dec 2024)
Changed paths:
M mlir/lib/IR/AffineMap.cpp
M mlir/lib/IR/Builders.cpp
M mlir/lib/IR/OperationSupport.cpp
M mlir/lib/IR/Region.cpp
M mlir/lib/IR/SymbolTable.cpp
M mlir/lib/IR/TypeRange.cpp
M mlir/lib/IR/Verifier.cpp
Log Message:
-----------
[IR] Migrate away from PointerUnion::{is,get} (NFC) (#119802)
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
// isa<T>, cast<T> and the llvm::dyn_cast<T>
I'm not touching PointerUnion::dyn_cast for now because it's a bit
complicated; we could blindly migrate it to dyn_cast_if_present, but
we should probably use dyn_cast when the operand is known to be
non-null.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list