Skip to content

Commit 8b9373e

Browse files
committed
Address Comments
1 parent 7ff1043 commit 8b9373e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Non-comprehensive list of changes in this release
115115
-------------------------------------------------
116116
- Added ``__builtin_elementwise_fshl`` and ``__builtin_elementwise_fshr``.
117117

118-
- Added `__builtin_elementwise_abs`.
118+
- ``__builtin_elementwise_abs`` can now be used in constant expression.
119119

120120
- Added ``__builtin_elementwise_minnumnum`` and ``__builtin_elementwise_maxnumnum``.
121121

clang/lib/AST/ExprConstant.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11634,12 +11634,6 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1163411634
APValue(APSInt(Elt.reverseBits(),
1163511635
DestEltTy->isUnsignedIntegerOrEnumerationType())));
1163611636
break;
11637-
case Builtin::BI__builtin_elementwise_abs: {
11638-
APInt Val = Source.getVectorElt(EltNum).getInt().abs();
11639-
ResultElements.push_back(APValue(
11640-
APSInt(Val, DestEltTy->isUnsignedIntegerOrEnumerationType())));
11641-
break;
11642-
}
1164311637
}
1164411638
}
1164511639

0 commit comments

Comments
 (0)