Home | History | Annotate | Download | only in SPIRV

Lines Matching refs:BF

110 isOpenCLKernel(SPIRVFunction *BF) {
111 return BF->getModule()->isEntryPoint(ExecutionModelKernel, BF->getId());
174 SPIRVFunction *BF, std::function<Metadata *(SPIRVFunctionParameter *)>Func){
177 BF->foreachArgument([&](SPIRVFunctionParameter *Arg) {
458 Value *mapFunction(SPIRVFunction *BF, Function *F) {
459 SPIRVDBG(spvdbgs() << "[mapFunction] " << *BF << " -> ";
461 FuncMap[BF] = F;
1825 SPIRVToLLVM::transFunction(SPIRVFunction *BF) {
1826 auto Loc = FuncMap.find(BF);
1830 auto IsKernel = BM->isEntryPoint(ExecutionModelKernel, BF->getId());
1831 auto Linkage = IsKernel ? GlobalValue::ExternalLinkage : transLinkageType(BF);
1832 FunctionType *FT = dyn_cast<FunctionType>(transType(BF->getFunctionType()));
1833 Function *F = dyn_cast<Function>(mapValue(BF, Function::Create(FT, Linkage,
1834 BF->getName(), M)));
1836 mapFunction(BF, F);
1842 foreachFuncCtlMask(BF, [&](Attribute::AttrKind Attr){
1849 auto BA = BF->getArgument(I->getArgNo());
1865 BF->foreachReturnValueAttr([&](SPIRVFuncParamAttrKind Kind){
1873 for (size_t I = 0, E = BF->getNumBasicBlock(); I != E; ++I) {
1874 transValue(BF->getBasicBlock(I), F, nullptr);
1877 for (size_t I = 0, E = BF->getNumBasicBlock(); I != E; ++I) {
1878 SPIRVBasicBlock *BBB = BF->getBasicBlock(I);
2142 SPIRVFunction *BF = BM->getFunction(I);
2143 if (!isOpenCLKernel(BF))
2145 if (BF->getExecutionMode(ExecutionModeContractionOff)) {
2172 SPIRVFunction *BF = BM->getFunction(I);
2173 Function *F = static_cast<Function *>(getTranslatedValue(BF));
2182 SPIR_MD_KERNEL_ARG_ADDR_SPACE, BF,
2195 SPIR_MD_KERNEL_ARG_ACCESS_QUAL, BF,
2211 SPIR_MD_KERNEL_ARG_TYPE, BF,
2217 SPIR_MD_KERNEL_ARG_TYPE_QUAL, BF,
2244 SPIR_MD_KERNEL_ARG_BASE_TYPE, BF,
2251 BF->foreachArgument([&](SPIRVFunctionParameter *Arg){
2256 SPIR_MD_KERNEL_ARG_NAME, BF,
2262 if (auto EM = BF->getExecutionMode(ExecutionModeLocalSize)) {
2267 if (auto EM = BF->getExecutionMode(ExecutionModeLocalSizeHint)) {
2272 if (auto EM = BF->getExecutionMode(ExecutionModeVecTypeHint)) {