Skip to content

Commit 4279205

Browse files
committed
[clang] remove debug messages
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 8e50cab commit 4279205

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "llvm/ADT/StringExtras.h"
2020
#include "llvm/Support/ErrorHandling.h"
2121
#include "llvm/Support/SipHash.h"
22-
#include "llvm/Support/raw_ostream.h"
2322
#include <cmath>
2423

2524
namespace clang {
@@ -3015,14 +3014,6 @@ static llvm::APFloat apply_x86_sqrt(llvm::APFloat Val,
30153014

30163015
static bool interp__builtin_x86_sqrt(InterpState &S, CodePtr OpPC,
30173016
const CallExpr *Call, unsigned ID) {
3018-
llvm::errs() << "Entering x86 sqrtpd/ps interpretbuiltin\n";
3019-
3020-
llvm::errs() << "BI__builtin_ia32_sqrtpd512 "
3021-
<< X86::BI__builtin_ia32_sqrtpd512 << '\n';
3022-
llvm::errs() << "BI__builtin_ia32_sqrtps512 "
3023-
<< X86::BI__builtin_ia32_sqrtps512 << '\n';
3024-
llvm::errs() << "Current ID " << ID << '\n';
3025-
llvm::errs() << "GetNumArgs " << Call->getNumArgs() << '\n';
30263017
unsigned NumArgs = Call->getNumArgs();
30273018
assert(NumArgs == 1 || NumArgs == 2);
30283019
const Expr *ArgExpr = Call->getArg(0);
@@ -3062,7 +3053,6 @@ static bool interp__builtin_x86_sqrt(InterpState &S, CodePtr OpPC,
30623053

30633054
// Vector case
30643055
assert(ArgTy->isVectorType());
3065-
llvm::errs() << "Considering this as a vector\n";
30663056
const auto *VT = ArgTy->castAs<VectorType>();
30673057

30683058
const Pointer &Arg = S.Stk.pop<Pointer>();
@@ -3088,7 +3078,6 @@ static bool interp__builtin_x86_sqrt(InterpState &S, CodePtr OpPC,
30883078

30893079
bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
30903080
uint32_t BuiltinID) {
3091-
llvm::errs() << "Inside Interpretbuiltin for " << Call << "\n";
30923081
if (!S.getASTContext().BuiltinInfo.isConstantEvaluated(BuiltinID))
30933082
return Invalid(S, OpPC);
30943083

clang/lib/AST/ExprConstant.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12242,7 +12242,6 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1224212242
case X86::BI__builtin_ia32_sqrtps256:
1224312243
case X86::BI__builtin_ia32_sqrtps512:
1224412244
case X86::BI__builtin_ia32_sqrtpd512: {
12245-
llvm::errs() << "We are inside sqrtpd/sqrtps\n";
1224612245
APValue Source;
1224712246
if (!EvaluateAsRValue(Info, E->getArg(0), Source))
1224812247
return false;
@@ -12254,10 +12253,7 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1225412253
SmallVector<APValue, 4> ResultElements;
1225512254
ResultElements.reserve(SourceLen);
1225612255

12257-
llvm::errs() << "SourceLen " << SourceLen << '\n';
12258-
1225912256
for (unsigned EltNum = 0; EltNum < SourceLen; ++EltNum) {
12260-
llvm::errs() << "We are inside for loop\n";
1226112257
APValue CurrentEle = Source.getVectorElt(EltNum);
1226212258
if (DestEltTy->isFloatingType()) {
1226312259
llvm::APFloat Value = CurrentEle.getFloat();
@@ -12271,16 +12267,12 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1227112267
auto RetStatus = TempValue.convert(
1227212268
Semantics, llvm::RoundingMode::NearestTiesToEven, &LosesInfo);
1227312269
Value = TempValue;
12274-
// llvm::errs() << "Pushing " << SqrtValue << ' ' << Value2 << " to
12275-
// resultelements\n";
1227612270
}
1227712271
ResultElements.push_back(APValue(Value));
1227812272
} else {
1227912273
return false;
1228012274
}
1228112275
}
12282-
llvm::errs() << "Outside the loop, about to exit " << "res size "
12283-
<< ResultElements.size() << "\n";
1228412276
return Success(APValue(ResultElements.data(), ResultElements.size()), E);
1228512277
}
1228612278
}

0 commit comments

Comments
 (0)