[CIR] Add cir.builtin_int_cast operation to replace uses of builtin.unrealized_conversion_cast#201592
Open
jsjodin wants to merge 3 commits into
Open
[CIR] Add cir.builtin_int_cast operation to replace uses of builtin.unrealized_conversion_cast#201592jsjodin wants to merge 3 commits into
jsjodin wants to merge 3 commits into
Conversation
This patch adds a new operation to allow casting between CIR integer types and builtin integer/index types. This operation works in both directions.
This patch adds lowering of the cli.builtin_int_cast to the LLVM IR dialect.
This patch changes the OpenACC codegen to use the cir.builtin_int_cast op instead of the unrealized conversion casts.
|
@llvm/pr-subscribers-clang @llvm/pr-subscribers-clangir Author: Jan Leyonberg (jsjodin) ChangesThis patch adds a new operation builtin_int_cast to handle casting between CIR integer types and builtin integer types. This will replace the current use of the builtin.unrealized_conversion_cast since this operation is only intended to be used temporarily when doing transformations. Assisted-by: Cursor/Claude Opus 4.8 High Patch is 1.07 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/201592.diff 74 Files Affected:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch adds a new operation builtin_int_cast to handle casting between CIR integer types and builtin integer types. This will replace the current use of the builtin.unrealized_conversion_cast since this operation is only intended to be used temporarily when doing transformations.
Assisted-by: Cursor/Claude Opus 4.8 High