Skip to content

Commit 9a3c012

Browse files
committed
Fix format
1 parent 24e8486 commit 9a3c012

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,8 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
403403
SmallVector<OperandBundleDef, 1> OB;
404404
if (CGM.shouldEmitConvergenceTokens()) {
405405
assert(EntryFn->isConvergent());
406-
llvm::Value *
407-
I = B.CreateIntrinsic(llvm::Intrinsic::experimental_convergence_entry, {},
408-
{});
406+
llvm::Value *I = B.CreateIntrinsic(
407+
llvm::Intrinsic::experimental_convergence_entry, {}, {});
409408
llvm::Value *bundleArgs[] = {I};
410409
OB.emplace_back("convergencectrl", bundleArgs);
411410
}
@@ -480,8 +479,8 @@ void CGHLSLRuntime::generateGlobalCtorDtorCalls() {
480479
for (auto &F : M.functions()) {
481480
if (!F.hasFnAttribute("hlsl.shader"))
482481
continue;
483-
auto* Token = getConvergenceToken(F.getEntryBlock());
484-
Instruction* IP = Token ? Token : &*F.getEntryBlock().begin();
482+
auto *Token = getConvergenceToken(F.getEntryBlock());
483+
Instruction *IP = Token ? Token : &*F.getEntryBlock().begin();
485484
IRBuilder<> B(IP);
486485
std::vector<OperandBundleDef> OB;
487486
if (Token) {
@@ -513,7 +512,7 @@ llvm::Instruction *CGHLSLRuntime::getConvergenceToken(BasicBlock &BB) {
513512
return nullptr;
514513

515514
auto E = BB.end();
516-
for(auto I = BB.begin(); I != E; ++I) {
515+
for (auto I = BB.begin(); I != E; ++I) {
517516
auto *II = dyn_cast<llvm::IntrinsicInst>(&*I);
518517
if (II && llvm::isConvergenceControlIntrinsic(II->getIntrinsicID())) {
519518
return II;

0 commit comments

Comments
 (0)