Skip to content

Commit bf32374

Browse files
committed
Add comments
1 parent 40a3c93 commit bf32374

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/IR/Intrinsics.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,8 @@ let IntrProperties = [IntrNoMem, IntrSpeculatable, IntrNoCreateUndefOrPoison] in
10871087
def int_arithmetic_fence : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>],
10881088
[IntrNoMem]>;
10891089

1090-
// If the value doesn't fit an unspecified value is returned (but this
1091-
// is not poison).
1090+
// If the value doesn't fit an unspecified value is returned, but this
1091+
// is not poison so we can still mark these as IntrNoCreateUndefOrPoison.
10921092
def int_lround : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyfloat_ty]>;
10931093
def int_llround : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyfloat_ty]>;
10941094
def int_lrint : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyfloat_ty]>;
@@ -1102,6 +1102,7 @@ let IntrProperties = [IntrNoMem, IntrSpeculatable, IntrNoCreateUndefOrPoison] in
11021102
def int_frexp : DefaultAttrsIntrinsic<[llvm_anyfloat_ty, llvm_anyint_ty], [LLVMMatchType<0>]>;
11031103
}
11041104

1105+
// TODO: Move all of these into the IntrNoCreateUndefOrPoison case above.
11051106
let IntrProperties = [IntrNoMem, IntrSpeculatable] in {
11061107
// These functions do not read memory, but are sensitive to the
11071108
// rounding mode. LLVM purposely does not model changes to the FP

0 commit comments

Comments
 (0)