Author: Henrich Lauko Date: 2026-03-16T06:51:11+01:00 New Revision: e7041d41605ae2c8f41d80d4f4e8b8c4a605ca94
URL: https://github.com/llvm/llvm-project/commit/e7041d41605ae2c8f41d80d4f4e8b8c4a605ca94 DIFF: https://github.com/llvm/llvm-project/commit/e7041d41605ae2c8f41d80d4f4e8b8c4a605ca94.diff LOG: [CIR] Add Pure trait to IsFPClassOp (#186625) IsFPClassOp is a pure classification check on a floating-point value with no memory effects. Added: Modified: clang/include/clang/CIR/Dialect/IR/CIROps.td Removed: ################################################################################ diff --git a/clang/include/clang/CIR/Dialect/IR/CIROps.td b/clang/include/clang/CIR/Dialect/IR/CIROps.td index e7cb11be08f01..d4f0b96cf215c 100644 --- a/clang/include/clang/CIR/Dialect/IR/CIROps.td +++ b/clang/include/clang/CIR/Dialect/IR/CIROps.td @@ -5706,7 +5706,7 @@ def FPClassTestEnum : CIR_I32EnumAttr<"FPClassTest", "floating-point class test let cppNamespace = "::cir"; } -def CIR_IsFPClassOp : CIR_Op<"is_fp_class"> { +def CIR_IsFPClassOp : CIR_Op<"is_fp_class", [Pure]> { let summary = "Corresponding to the `__builtin_fpclassify` builtin function in clang"; let description = [{ _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
