Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Drop unnecessary namespaces from cast functions in plugins. NFC. 1/10#22653

Merged
kuhar merged 1 commit intoiree-org:mainfrom
kuhar:cleanup/drop-cast-namespaces-1-plugins
Nov 15, 2025
Merged

Drop unnecessary namespaces from cast functions in plugins. NFC. 1/10#22653
kuhar merged 1 commit intoiree-org:mainfrom
kuhar:cleanup/drop-cast-namespaces-1-plugins

Conversation

@kuhar
Copy link
Member

@kuhar kuhar commented Nov 15, 2025

This removes llvm:: and mlir:: namespace prefixes from casting functions (isa, cast, dyn_cast, cast_or_null, dyn_cast_or_null, isa_and_nonnull, dyn_cast_if_present, cast_if_present, isa_and_present) where they are unnecessary due to 'using' declarations in mlir/Support/LLVM.h.

These functions are brought into scope by headers like mlir/Support/LLVM.h which is included (directly or transitively) by most MLIR-based code.

This removes llvm:: and mlir:: namespace prefixes from casting functions
(isa, cast, dyn_cast, cast_or_null, dyn_cast_or_null, isa_and_nonnull,
dyn_cast_if_present, cast_if_present, isa_and_present) where they are
unnecessary due to 'using' declarations in mlir/Support/LLVM.h.

These functions are brought into scope by headers like mlir/Support/LLVM.h
which is included (directly or transitively) by most MLIR-based code.
@kuhar kuhar merged commit 13335d4 into iree-org:main Nov 15, 2025
33 of 35 checks passed
lialan added a commit that referenced this pull request Nov 17, 2025
bangtianliu pushed a commit to bangtianliu/iree that referenced this pull request Nov 19, 2025
…iree-org#22653)

This removes llvm:: and mlir:: namespace prefixes from casting functions
(isa, cast, dyn_cast, cast_or_null, dyn_cast_or_null, isa_and_nonnull,
dyn_cast_if_present, cast_if_present, isa_and_present) where they are
unnecessary due to 'using' declarations in mlir/Support/LLVM.h.

These functions are brought into scope by headers like
mlir/Support/LLVM.h which is included (directly or transitively) by most
MLIR-based code.
pstarkcdpr pushed a commit to pstarkcdpr/iree that referenced this pull request Nov 28, 2025
…iree-org#22653)

This removes llvm:: and mlir:: namespace prefixes from casting functions
(isa, cast, dyn_cast, cast_or_null, dyn_cast_or_null, isa_and_nonnull,
dyn_cast_if_present, cast_if_present, isa_and_present) where they are
unnecessary due to 'using' declarations in mlir/Support/LLVM.h.

These functions are brought into scope by headers like
mlir/Support/LLVM.h which is included (directly or transitively) by most
MLIR-based code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants