@@ -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 ());
@@ -2338,8 +2340,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
2338
2340
case OpFunctionCall: {
2339
2341
SPIRVFunctionCall *BC = static_cast <SPIRVFunctionCall *>(BV);
2340
2342
auto *Call = CallInst::Create (transFunction (BC->getFunction ()),
2341
- transValue (BC->getArgumentValues (), F, BB),
2342
- BC->getName (), BB);
2343
+ transValue (BC->getArgumentValues (), F, BB),
2344
+ BC->getName (), BB);
2343
2345
setCallingConv (Call);
2344
2346
setAttrByCalledFunc (Call);
2345
2347
return mapValue (BV, Call);
@@ -2457,7 +2459,7 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
2457
2459
case OpFNegate: {
2458
2460
SPIRVUnary *BC = static_cast <SPIRVUnary *>(BV);
2459
2461
auto *Neg = UnaryOperator::CreateFNeg (transValue (BC->getOperand (0 ), F, BB),
2460
- BV->getName (), BB);
2462
+ BV->getName (), BB);
2461
2463
applyFPFastMathModeDecorations (BV, Neg);
2462
2464
return mapValue (BV, Neg);
2463
2465
}
@@ -4089,7 +4091,8 @@ bool SPIRVToLLVM::transMetadata() {
4089
4091
}
4090
4092
// Generate metadata for intel_reqd_sub_group_size
4091
4093
if (auto *EM = BF->getExecutionMode (ExecutionModeSubgroupSize)) {
4092
- auto *SizeMD = ConstantAsMetadata::get (getUInt32 (M, EM->getLiterals ()[0 ]));
4094
+ auto *SizeMD =
4095
+ ConstantAsMetadata::get (getUInt32 (M, EM->getLiterals ()[0 ]));
4093
4096
F->setMetadata (kSPIR2MD ::SubgroupSize, MDNode::get (*Context, SizeMD));
4094
4097
}
4095
4098
// Generate metadata for max_work_group_size
0 commit comments