Home
last modified time | relevance | path

Searched refs:FSHFunc (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp286 Function *FSHFunc = in lowerFunnelShifts() local
289 if (!FSHFunc->empty()) { in lowerFunnelShifts()
290 FSHIntrinsic->setCalledFunction(FSHFunc); in lowerFunnelShifts()
293 BasicBlock *RotateBB = BasicBlock::Create(M->getContext(), "rotate", FSHFunc); in lowerFunnelShifts()
295 Type *Ty = FSHFunc->getReturnType(); in lowerFunnelShifts()
308 IRB.CreateURem(/*Rotate*/ FSHFunc->getArg(2), BitWidthForInsts); in lowerFunnelShifts()
313 FirstShift = IRB.CreateLShr(FSHFunc->getArg(1), RotateModVal); in lowerFunnelShifts()
317 FirstShift = IRB.CreateShl(FSHFunc->getArg(0), RotateModVal); in lowerFunnelShifts()
326 SecShift = IRB.CreateShl(FSHFunc->getArg(0), SubRotateVal); in lowerFunnelShifts()
330 SecShift = IRB.CreateLShr(FSHFunc->getArg(1), SubRotateVal); in lowerFunnelShifts()
[all …]