[flang-commits] [flang] [mlir] [MLIR][LLVMIR][DLTI] Add #llvm.target, #llvm.data_layout and TargetAttrInterface (PR #145899)
Krzysztof Drewniak via flang-commits
flang-commits at lists.llvm.org
Wed Aug 13 15:39:14 PDT 2025
================
@@ -657,7 +657,7 @@ void DLTIDialect::initialize() {
LogicalResult DLTIDialect::verifyOperationAttribute(Operation *op,
NamedAttribute attr) {
if (attr.getName() == DLTIDialect::kDataLayoutAttrName) {
- if (!llvm::isa<DataLayoutSpecAttr>(attr.getValue())) {
+ if (!llvm::dyn_cast<DataLayoutSpecInterface>(attr.getValue())) {
----------------
krzysz00 wrote:
This can still be an `isa<>`, I think
https://github.com/llvm/llvm-project/pull/145899
More information about the flang-commits
mailing list