Lines Matching refs:Func
55 static std::string createMASSVFuncName(Function &Func,
57 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M);
58 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
97 PPCLowerMASSVEntries::createMASSVFuncName(Function &Func, in createMASSVFuncName() argument
100 auto GenericName = Func.getName().str(); in createMASSVFuncName()
107 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases() argument
109 if (Func.getName() != "__powf4" && Func.getName() != "__powd2") in handlePowSpecialCases()
136 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument
143 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall()
146 std::string MASSVEntryName = createMASSVFuncName(Func, Subtarget); in lowerMASSVCall()
148 MASSVEntryName, Func.getFunctionType(), Func.getAttributes()); in lowerMASSVCall()
165 for (Function &Func : M) { in runOnModule()
166 if (!Func.isDeclaration()) in runOnModule()
169 if (!isMASSVFunc(Func.getName())) in runOnModule()
175 SmallVector<User *, 4> MASSVUsers(Func.users()); in runOnModule()
183 Changed |= lowerMASSVCall(CI, Func, M, Subtarget); in runOnModule()