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.cpp293 Function *FSHFunc = in lowerFunnelShifts() local
296 if (!FSHFunc->empty()) { in lowerFunnelShifts()
297 FSHIntrinsic->setCalledFunction(FSHFunc); in lowerFunnelShifts()
300 BasicBlock *RotateBB = BasicBlock::Create(M->getContext(), "rotate", FSHFunc); in lowerFunnelShifts()
302 Type *Ty = FSHFunc->getReturnType(); in lowerFunnelShifts()
315 IRB.CreateURem(/*Rotate*/ FSHFunc->getArg(2), BitWidthForInsts); in lowerFunnelShifts()
320 FirstShift = IRB.CreateLShr(FSHFunc->getArg(1), RotateModVal); in lowerFunnelShifts()
324 FirstShift = IRB.CreateShl(FSHFunc->getArg(0), RotateModVal); in lowerFunnelShifts()
333 SecShift = IRB.CreateShl(FSHFunc->getArg(0), SubRotateVal); in lowerFunnelShifts()
337 SecShift = IRB.CreateLShr(FSHFunc->getArg(1), SubRotateVal); in lowerFunnelShifts()
[all …]