Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp164 Function *FSHFunc = in lowerFunnelShifts() local
167 if (!FSHFunc->empty()) { in lowerFunnelShifts()
168 FSHIntrinsic->setCalledFunction(FSHFunc); in lowerFunnelShifts()
171 BasicBlock *RotateBB = BasicBlock::Create(M->getContext(), "rotate", FSHFunc); in lowerFunnelShifts()
173 Type *Ty = FSHFunc->getReturnType(); in lowerFunnelShifts()
186 IRB.CreateURem(/*Rotate*/ FSHFunc->getArg(2), BitWidthForInsts); in lowerFunnelShifts()
191 FirstShift = IRB.CreateLShr(FSHFunc->getArg(1), RotateModVal); in lowerFunnelShifts()
195 FirstShift = IRB.CreateShl(FSHFunc->getArg(0), RotateModVal); in lowerFunnelShifts()
204 SecShift = IRB.CreateShl(FSHFunc->getArg(0), SubRotateVal); in lowerFunnelShifts()
208 SecShift = IRB.CreateLShr(FSHFunc->getArg(1), SubRotateVal); in lowerFunnelShifts()
[all …]