Commit b5ce509f by Logan Chien Committed by Chris Forbes

Reactor: Cleanup indentations

Use mixed indentations so that the code are aligned regardless the tab width. Bug: b/115344057 Change-Id: I9476c1b8ba5a518787dc76f50e1805b1b9d06e82 Reviewed-on: https://swiftshader-review.googlesource.com/21028Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 4241ad73
......@@ -137,13 +137,13 @@ namespace
}
llvm::Value *lowerPMINMAX(llvm::Value *x, llvm::Value *y,
llvm::ICmpInst::Predicate pred)
llvm::ICmpInst::Predicate pred)
{
return ::builder->CreateSelect(::builder->CreateICmp(pred, x, y), x, y);
}
llvm::Value *lowerPCMP(llvm::ICmpInst::Predicate pred, llvm::Value *x,
llvm::Value *y, llvm::Type *dstTy)
llvm::Value *y, llvm::Type *dstTy)
{
return ::builder->CreateSExt(::builder->CreateICmp(pred, x, y), dstTy, "");
}
......@@ -160,7 +160,7 @@ namespace
llvm::Value *v = ::builder->CreateShuffleVector(op, undef, mask);
return sext ? ::builder->CreateSExt(v, dstTy)
: ::builder->CreateZExt(v, dstTy);
: ::builder->CreateZExt(v, dstTy);
}
llvm::Value *lowerPABS(llvm::Value *v)
......@@ -174,7 +174,7 @@ namespace
#if !defined(__i386__) && !defined(__x86_64__)
llvm::Value *lowerPFMINMAX(llvm::Value *x, llvm::Value *y,
llvm::FCmpInst::Predicate pred)
llvm::FCmpInst::Predicate pred)
{
return ::builder->CreateSelect(::builder->CreateFCmp(pred, x, y), x, y);
}
......@@ -398,7 +398,7 @@ namespace sw
public:
LLVMReactorJIT(const std::string &arch_,
const llvm::SmallVectorImpl<std::string> &mattrs_) :
const llvm::SmallVectorImpl<std::string> &mattrs_) :
arch(arch_),
mattrs(mattrs_.begin(), mattrs_.end()),
routineManager(nullptr),
......@@ -581,7 +581,7 @@ namespace sw
case SCCP: passManager->add(llvm::createSCCPPass()); break;
case ScalarReplAggregates: passManager->add(llvm::createSROAPass()); break;
default:
assert(false);
assert(false);
}
}
......
......@@ -58,7 +58,7 @@ namespace sw
{
public:
LLVMRoutine(void *ent, void (*callback)(LLVMReactorJIT *, uint64_t),
LLVMReactorJIT *jit, uint64_t key)
LLVMReactorJIT *jit, uint64_t key)
: entry(ent), dtor(callback), reactorJIT(jit), moduleKey(key)
{ }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment