Skip to content

Conversation

@valadaptive
Copy link
Contributor

This is a prerequisite to being able to turn it into an intrinsic.

This is a prerequisite to being able to turn it into an intrinsic.
@llvmbot llvmbot added the llvm:analysis Includes value tracking, cost tables and constant folding label Dec 4, 2025
@llvmbot
Copy link
Member

llvmbot commented Dec 4, 2025

@llvm/pr-subscribers-llvm-analysis

Author: None (valadaptive)

Changes

This is a prerequisite to being able to turn it into an intrinsic.


Full diff: https://github.com/llvm/llvm-project/pull/170689.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Analysis/TargetLibraryInfo.h (+1)
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
index 0f98af69f12c6..a88497beb20ae 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
@@ -417,6 +417,7 @@ class TargetLibraryInfo {
     case LibFunc_nearbyint:    case LibFunc_nearbyintf: case LibFunc_nearbyintl:
     case LibFunc_rint:         case LibFunc_rintf:      case LibFunc_rintl:
     case LibFunc_round:        case LibFunc_roundf:     case LibFunc_roundl:
+    case LibFunc_roundeven:    case LibFunc_roundevenf: case LibFunc_roundevenl:
     case LibFunc_sin:          case LibFunc_sinf:       case LibFunc_sinl:
     case LibFunc_sinh:         case LibFunc_sinhf:      case LibFunc_sinhl:
     case LibFunc_sqrt:         case LibFunc_sqrtf:      case LibFunc_sqrtl:

@valadaptive
Copy link
Contributor Author

I'm not sure how to add tests for this, since it seems to all be target-specific. I did add tests that cover this behavior as part of #170018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llvm:analysis Includes value tracking, cost tables and constant folding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants