Skip to content

Commit 1882bf1

Browse files
committed
fixup! clang-format
1 parent db02fce commit 1882bf1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ std::string TreePredicateFn::getPredCode() const {
966966
if (isAtomic()) {
967967
if (getMemoryVT() == nullptr && getAddressSpaces() == nullptr &&
968968
// FIXME: Should atomic loads be IsLoad, IsAtomic, or both?
969-
!isNonExtLoad() && !isAnyExtLoad() && !isZeroExtLoad() && !isSignExtLoad() &&
970-
!isAtomicOrderingMonotonic() &&
969+
!isNonExtLoad() && !isAnyExtLoad() && !isZeroExtLoad() &&
970+
!isSignExtLoad() && !isAtomicOrderingMonotonic() &&
971971
!isAtomicOrderingAcquire() && !isAtomicOrderingRelease() &&
972972
!isAtomicOrderingAcquireRelease() &&
973973
!isAtomicOrderingSequentiallyConsistent() &&
@@ -1074,10 +1074,12 @@ std::string TreePredicateFn::getPredCode() const {
10741074
"return false;\n";
10751075

10761076
if (isAtomic()) {
1077-
if ((isNonExtLoad() + isAnyExtLoad() + isSignExtLoad() + isZeroExtLoad()) > 1)
1078-
PrintFatalError(getOrigPatFragRecord()->getRecord()->getLoc(),
1079-
"IsNonExtLoad, IsAnyExtLoad, IsSignExtLoad, and IsZeroExtLoad are "
1080-
"mutually exclusive");
1077+
if ((isNonExtLoad() + isAnyExtLoad() + isSignExtLoad() + isZeroExtLoad()) >
1078+
1)
1079+
PrintFatalError(
1080+
getOrigPatFragRecord()->getRecord()->getLoc(),
1081+
"IsNonExtLoad, IsAnyExtLoad, IsSignExtLoad, and IsZeroExtLoad are "
1082+
"mutually exclusive");
10811083

10821084
if (isNonExtLoad())
10831085
Code += "if (cast<AtomicSDNode>(N)->getExtensionType() != "

0 commit comments

Comments
 (0)