Lines Matching refs:Func
53 static std::string createMASSVFuncName(Function &Func,
55 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M);
56 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
95 PPCLowerMASSVEntries::createMASSVFuncName(Function &Func, in createMASSVFuncName() argument
98 auto GenericName = Func.getName().str(); in createMASSVFuncName()
105 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases() argument
107 if (Func.getName() != "__powf4" && Func.getName() != "__powd2") in handlePowSpecialCases()
134 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument
141 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall()
144 std::string MASSVEntryName = createMASSVFuncName(Func, Subtarget); in lowerMASSVCall()
146 MASSVEntryName, Func.getFunctionType(), Func.getAttributes()); in lowerMASSVCall()
163 for (Function &Func : M) { in runOnModule()
164 if (!Func.isDeclaration()) in runOnModule()
167 if (!isMASSVFunc(Func.getName())) in runOnModule()
173 SmallVector<User *, 4> MASSVUsers(Func.users()); in runOnModule()
181 Changed |= lowerMASSVCall(CI, Func, M, Subtarget); in runOnModule()