Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AMDGPU] Generic lowering for rint and nearbyint #69596

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

Acim-Maravic
Copy link
Contributor

The are three different rounding intrinsics, that are brought down to same instruction.

@Acim-Maravic
Copy link
Contributor Author

Continuation of: https://reviews.llvm.org/D159271

@github-actions
Copy link

github-actions bot commented Oct 19, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

@@ -1888,6 +1888,14 @@ class MachineIRBuilder {
return buildInstr(TargetOpcode::G_FRINT, {Dst}, {Src0}, Flags);
}

/// Build and insert \p Dst = G_INTRINSIC_ROUNDEVEN \p Src0, \p Src1
MachineInstrBuilder
buildintrinsicRoundeven(const DstOp &Dst, const SrcOp &Src0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalization is off. I'd also probably just drop the intrinsic part from the name (we should also drop it from the opcode name)

@Acim-Maravic Acim-Maravic force-pushed the froundeven branch 4 times, most recently from 0ec3761 to 213dbcc Compare November 13, 2023 15:51
There are three different rounding intrinsics, that are brought down to same instruction.
@mbrkusanin mbrkusanin merged commit f313852 into llvm:main Nov 14, 2023
3 checks passed
zahiraam pushed a commit to zahiraam/llvm-project that referenced this pull request Nov 20, 2023
The are three different rounding intrinsics, that are brought down to
same instruction.

Co-authored-by: Acim Maravic <acim.maravic@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants