@@ -1609,8 +1609,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
1609
1609
if (BVar->isBuiltin (&BVKind))
1610
1610
BV->setName (prefixSPIRVName (SPIRVBuiltInNameMap::map (BVKind)));
1611
1611
auto *LVar = new GlobalVariable (*M, Ty, IsConst, LinkageTy,
1612
- /* Initializer=*/ nullptr , BV->getName (), 0 ,
1613
- GlobalVariable::NotThreadLocal, AddrSpace);
1612
+ /* Initializer=*/ nullptr , BV->getName (), 0 ,
1613
+ GlobalVariable::NotThreadLocal, AddrSpace);
1614
1614
auto *Res = mapValue (BV, LVar);
1615
1615
if (Init)
1616
1616
Initializer = dyn_cast<Constant>(transValue (Init, F, BB, false ));
@@ -1907,7 +1907,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
1907
1907
auto *Vector = transValue (VTS->getVector (), F, BB);
1908
1908
auto *VecTy = cast<FixedVectorType>(Vector->getType ());
1909
1909
unsigned VecSize = VecTy->getNumElements ();
1910
- auto *NewVec = Builder.CreateVectorSplat (VecSize, Scalar, Scalar->getName ());
1910
+ auto *NewVec =
1911
+ Builder.CreateVectorSplat (VecSize, Scalar, Scalar->getName ());
1911
1912
NewVec->takeName (Scalar);
1912
1913
auto *Scale = Builder.CreateFMul (Vector, NewVec, " scale" );
1913
1914
return mapValue (BV, Scale);
@@ -1963,7 +1964,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
1963
1964
uint64_t ColNum = Matrix->getType ()->getArrayNumElements ();
1964
1965
auto *ColType = cast<ArrayType>(Matrix->getType ())->getElementType ();
1965
1966
auto VecSize = cast<FixedVectorType>(ColType)->getNumElements ();
1966
- auto *NewVec = Builder.CreateVectorSplat (VecSize, Scalar, Scalar->getName ());
1967
+ auto *NewVec =
1968
+ Builder.CreateVectorSplat (VecSize, Scalar, Scalar->getName ());
1967
1969
NewVec->takeName (Scalar);
1968
1970
1969
1971
Value *V = UndefValue::get (Matrix->getType ());
@@ -2339,8 +2341,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
2339
2341
case OpFunctionCall: {
2340
2342
SPIRVFunctionCall *BC = static_cast <SPIRVFunctionCall *>(BV);
2341
2343
auto *Call = CallInst::Create (transFunction (BC->getFunction ()),
2342
- transValue (BC->getArgumentValues (), F, BB),
2343
- BC->getName (), BB);
2344
+ transValue (BC->getArgumentValues (), F, BB),
2345
+ BC->getName (), BB);
2344
2346
setCallingConv (Call);
2345
2347
setAttrByCalledFunc (Call);
2346
2348
return mapValue (BV, Call);
@@ -2458,7 +2460,7 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
2458
2460
case OpFNegate: {
2459
2461
SPIRVUnary *BC = static_cast <SPIRVUnary *>(BV);
2460
2462
auto *Neg = UnaryOperator::CreateFNeg (transValue (BC->getOperand (0 ), F, BB),
2461
- BV->getName (), BB);
2463
+ BV->getName (), BB);
2462
2464
applyFPFastMathModeDecorations (BV, Neg);
2463
2465
return mapValue (BV, Neg);
2464
2466
}
@@ -4064,7 +4066,8 @@ bool SPIRVToLLVM::transMetadata() {
4064
4066
}
4065
4067
// Generate metadata for intel_reqd_sub_group_size
4066
4068
if (auto *EM = BF->getExecutionMode (ExecutionModeSubgroupSize)) {
4067
- auto *SizeMD = ConstantAsMetadata::get (getUInt32 (M, EM->getLiterals ()[0 ]));
4069
+ auto *SizeMD =
4070
+ ConstantAsMetadata::get (getUInt32 (M, EM->getLiterals ()[0 ]));
4068
4071
F->setMetadata (kSPIR2MD ::SubgroupSize, MDNode::get (*Context, SizeMD));
4069
4072
}
4070
4073
// Generate metadata for max_work_group_size
0 commit comments