Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp152 Function *FSHFunc = in lowerFunnelShifts() local
155 if (!FSHFunc->empty()) { in lowerFunnelShifts()
156 FSHIntrinsic->setCalledFunction(FSHFunc); in lowerFunnelShifts()
159 BasicBlock *RotateBB = BasicBlock::Create(M->getContext(), "rotate", FSHFunc); in lowerFunnelShifts()
161 Type *Ty = FSHFunc->getReturnType(); in lowerFunnelShifts()
174 IRB.CreateURem(/*Rotate*/ FSHFunc->getArg(2), BitWidthForInsts); in lowerFunnelShifts()
179 FirstShift = IRB.CreateLShr(FSHFunc->getArg(1), RotateModVal); in lowerFunnelShifts()
183 FirstShift = IRB.CreateShl(FSHFunc->getArg(0), RotateModVal); in lowerFunnelShifts()
192 SecShift = IRB.CreateShl(FSHFunc->getArg(0), SubRotateVal); in lowerFunnelShifts()
196 SecShift = IRB.CreateLShr(FSHFunc->getArg(1), SubRotateVal); in lowerFunnelShifts()
[all …]