Lines Matching refs:F
64 bool IsFunctionMallocLike(Function *F,
73 void setDoesNotAccessMemory(Function &F) { in setDoesNotAccessMemory()
74 if (!F.doesNotAccessMemory()) { in setDoesNotAccessMemory()
75 F.setDoesNotAccessMemory(); in setDoesNotAccessMemory()
80 void setOnlyReadsMemory(Function &F) { in setOnlyReadsMemory()
81 if (!F.onlyReadsMemory()) { in setOnlyReadsMemory()
82 F.setOnlyReadsMemory(); in setOnlyReadsMemory()
87 void setDoesNotThrow(Function &F) { in setDoesNotThrow()
88 if (!F.doesNotThrow()) { in setDoesNotThrow()
89 F.setDoesNotThrow(); in setDoesNotThrow()
94 void setDoesNotCapture(Function &F, unsigned n) { in setDoesNotCapture()
95 if (!F.doesNotCapture(n)) { in setDoesNotCapture()
96 F.setDoesNotCapture(n); in setDoesNotCapture()
101 void setOnlyReadsMemory(Function &F, unsigned n) { in setOnlyReadsMemory()
102 if (!F.onlyReadsMemory(n)) { in setOnlyReadsMemory()
103 F.setOnlyReadsMemory(n); in setOnlyReadsMemory()
108 void setDoesNotAlias(Function &F, unsigned n) { in setDoesNotAlias()
109 if (!F.doesNotAlias(n)) { in setDoesNotAlias()
110 F.setDoesNotAlias(n); in setDoesNotAlias()
118 bool inferPrototypeAttributes(Function &F);
162 Function *F = (*I)->getFunction(); in AddReadAttrs() local
164 if (!F || F->hasFnAttribute(Attribute::OptimizeNone)) in AddReadAttrs()
169 AliasAnalysis::ModRefBehavior MRB = AA->getModRefBehavior(F); in AddReadAttrs()
176 if (F->isDeclaration() || F->mayBeOverridden()) { in AddReadAttrs()
186 for (inst_iterator II = inst_begin(F), E = inst_end(F); II != E; ++II) { in AddReadAttrs()
268 Function *F = (*I)->getFunction(); in AddReadAttrs() local
270 if (F->doesNotAccessMemory()) in AddReadAttrs()
274 if (F->onlyReadsMemory() && ReadsMemory) in AddReadAttrs()
284 F->removeAttributes(AttributeSet::FunctionIndex, in AddReadAttrs()
285 AttributeSet::get(F->getContext(), in AddReadAttrs()
289 F->addAttribute(AttributeSet::FunctionIndex, in AddReadAttrs()
355 Function *F = CS.getCalledFunction(); in captured() local
356 if (!F || !SCCNodes.count(F)) { Captured = true; return true; } in captured()
359 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); in captured()
363 assert(F->isVarArg() && "More params than args in non-varargs call"); in captured()
473 Function *F = CS.getCalledFunction(); in determinePointerReadAttrs() local
474 if (!F) { in determinePointerReadAttrs()
483 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); in determinePointerReadAttrs()
488 assert(F->isVarArg() && in determinePointerReadAttrs()
530 Function *F = (*I)->getFunction(); in AddArgumentAttrs() local
531 if (F && !F->isDeclaration() && !F->mayBeOverridden() && in AddArgumentAttrs()
532 !F->hasFnAttribute(Attribute::OptimizeNone)) in AddArgumentAttrs()
533 SCCNodes.insert(F); in AddArgumentAttrs()
544 Function *F = (*I)->getFunction(); in AddArgumentAttrs() local
546 if (!F || F->hasFnAttribute(Attribute::OptimizeNone)) in AddArgumentAttrs()
553 if (F->isDeclaration() || F->mayBeOverridden()) in AddArgumentAttrs()
558 if (F->onlyReadsMemory() && F->doesNotThrow() && in AddArgumentAttrs()
559 F->getReturnType()->isVoidTy()) { in AddArgumentAttrs()
560 for (Function::arg_iterator A = F->arg_begin(), E = F->arg_end(); in AddArgumentAttrs()
563 A->addAttr(AttributeSet::get(F->getContext(), A->getArgNo() + 1, B)); in AddArgumentAttrs()
571 for (Function::arg_iterator A = F->arg_begin(), E = F->arg_end(); in AddArgumentAttrs()
581 A->addAttr(AttributeSet::get(F->getContext(), A->getArgNo()+1, B)); in AddArgumentAttrs()
722 bool FunctionAttrs::IsFunctionMallocLike(Function *F, in IsFunctionMallocLike() argument
725 for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) in IsFunctionMallocLike()
798 Function *F = (*I)->getFunction(); in AddNoAliasAttrs() local
800 if (!F || F->hasFnAttribute(Attribute::OptimizeNone)) in AddNoAliasAttrs()
805 if (F->doesNotAlias(0)) in AddNoAliasAttrs()
810 if (F->isDeclaration() || F->mayBeOverridden()) in AddNoAliasAttrs()
815 if (!F->getReturnType()->isPointerTy()) in AddNoAliasAttrs()
818 if (!IsFunctionMallocLike(F, SCCNodes)) in AddNoAliasAttrs()
824 Function *F = (*I)->getFunction(); in AddNoAliasAttrs() local
825 if (F->doesNotAlias(0) || !F->getReturnType()->isPointerTy()) in AddNoAliasAttrs()
828 F->setDoesNotAlias(0); in AddNoAliasAttrs()
839 bool FunctionAttrs::inferPrototypeAttributes(Function &F) { in inferPrototypeAttributes() argument
840 if (F.hasFnAttribute(Attribute::OptimizeNone)) in inferPrototypeAttributes()
843 FunctionType *FTy = F.getFunctionType(); in inferPrototypeAttributes()
845 if (!(TLI->getLibFunc(F.getName(), TheLibFunc) && TLI->has(TheLibFunc))) in inferPrototypeAttributes()
852 setOnlyReadsMemory(F); in inferPrototypeAttributes()
853 setDoesNotThrow(F); in inferPrototypeAttributes()
854 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
862 setOnlyReadsMemory(F); in inferPrototypeAttributes()
863 setDoesNotThrow(F); in inferPrototypeAttributes()
875 setDoesNotThrow(F); in inferPrototypeAttributes()
876 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
877 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
888 setDoesNotThrow(F); in inferPrototypeAttributes()
889 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
890 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
897 setDoesNotThrow(F); in inferPrototypeAttributes()
898 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
899 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
900 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
913 setOnlyReadsMemory(F); in inferPrototypeAttributes()
914 setDoesNotThrow(F); in inferPrototypeAttributes()
915 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
916 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
922 setOnlyReadsMemory(F); in inferPrototypeAttributes()
923 setDoesNotThrow(F); in inferPrototypeAttributes()
924 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
930 setDoesNotThrow(F); in inferPrototypeAttributes()
931 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
932 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
937 setDoesNotThrow(F); in inferPrototypeAttributes()
938 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
939 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
945 setDoesNotThrow(F); in inferPrototypeAttributes()
946 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
953 setDoesNotThrow(F); in inferPrototypeAttributes()
954 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
955 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
956 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
964 setDoesNotThrow(F); in inferPrototypeAttributes()
965 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
966 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
967 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
974 setDoesNotThrow(F); in inferPrototypeAttributes()
975 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
976 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
977 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
978 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
985 setDoesNotThrow(F); in inferPrototypeAttributes()
986 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
987 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
988 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
995 setDoesNotThrow(F); in inferPrototypeAttributes()
996 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
997 setDoesNotCapture(F, 3); in inferPrototypeAttributes()
998 setOnlyReadsMemory(F, 3); in inferPrototypeAttributes()
1005 setDoesNotThrow(F); in inferPrototypeAttributes()
1006 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1007 setDoesNotCapture(F, 3); in inferPrototypeAttributes()
1008 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1015 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1016 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1022 setDoesNotThrow(F); in inferPrototypeAttributes()
1023 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1030 setOnlyReadsMemory(F); in inferPrototypeAttributes()
1031 setDoesNotThrow(F); in inferPrototypeAttributes()
1032 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1033 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1039 setOnlyReadsMemory(F); in inferPrototypeAttributes()
1040 setDoesNotThrow(F); in inferPrototypeAttributes()
1048 setDoesNotThrow(F); in inferPrototypeAttributes()
1049 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1057 setDoesNotThrow(F); in inferPrototypeAttributes()
1058 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1059 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1064 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1070 setDoesNotThrow(F); in inferPrototypeAttributes()
1071 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1072 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1078 setDoesNotThrow(F); in inferPrototypeAttributes()
1079 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1086 setDoesNotThrow(F); in inferPrototypeAttributes()
1087 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1088 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1095 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1101 setDoesNotThrow(F); in inferPrototypeAttributes()
1102 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1110 setDoesNotThrow(F); in inferPrototypeAttributes()
1111 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1112 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1119 setDoesNotThrow(F); in inferPrototypeAttributes()
1120 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1121 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1122 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1123 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1130 setDoesNotThrow(F); in inferPrototypeAttributes()
1131 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1132 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1133 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1139 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1140 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1147 setDoesNotThrow(F); in inferPrototypeAttributes()
1148 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1149 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1150 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1157 setDoesNotThrow(F); in inferPrototypeAttributes()
1158 setOnlyReadsMemory(F); in inferPrototypeAttributes()
1159 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1160 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1165 setDoesNotThrow(F); in inferPrototypeAttributes()
1166 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1172 setDoesNotThrow(F); in inferPrototypeAttributes()
1173 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1179 setDoesNotThrow(F); in inferPrototypeAttributes()
1180 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1181 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1188 setDoesNotThrow(F); in inferPrototypeAttributes()
1189 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1197 setDoesNotThrow(F); in inferPrototypeAttributes()
1198 setOnlyReadsMemory(F); in inferPrototypeAttributes()
1199 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1204 setDoesNotThrow(F); in inferPrototypeAttributes()
1205 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1206 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1214 setDoesNotThrow(F); in inferPrototypeAttributes()
1215 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1216 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1217 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1218 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1219 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1226 setDoesNotThrow(F); in inferPrototypeAttributes()
1227 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1228 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1229 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1247 setDoesNotThrow(F); in inferPrototypeAttributes()
1248 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1253 setDoesNotThrow(F); in inferPrototypeAttributes()
1254 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1255 setOnlyReadsMemory(F); in inferPrototypeAttributes()
1265 setDoesNotThrow(F); in inferPrototypeAttributes()
1266 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1273 setDoesNotThrow(F); in inferPrototypeAttributes()
1274 setDoesNotCapture(F, 3); in inferPrototypeAttributes()
1281 setDoesNotThrow(F); in inferPrototypeAttributes()
1282 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1283 setDoesNotCapture(F, 4); in inferPrototypeAttributes()
1290 setDoesNotThrow(F); in inferPrototypeAttributes()
1291 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1292 setDoesNotCapture(F, 4); in inferPrototypeAttributes()
1299 setDoesNotThrow(F); in inferPrototypeAttributes()
1300 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1301 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1302 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1310 setDoesNotThrow(F); in inferPrototypeAttributes()
1311 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1312 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1313 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1320 setDoesNotThrow(F); in inferPrototypeAttributes()
1321 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1322 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1329 setDoesNotThrow(F); in inferPrototypeAttributes()
1330 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1335 setDoesNotThrow(F); in inferPrototypeAttributes()
1336 setOnlyReadsMemory(F); in inferPrototypeAttributes()
1337 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1341 setDoesNotThrow(F); in inferPrototypeAttributes()
1346 setDoesNotThrow(F); in inferPrototypeAttributes()
1347 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1352 setDoesNotThrow(F); in inferPrototypeAttributes()
1353 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1354 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1359 setDoesNotThrow(F); in inferPrototypeAttributes()
1360 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1365 setDoesNotThrow(F); in inferPrototypeAttributes()
1366 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1371 setDoesNotThrow(F); in inferPrototypeAttributes()
1372 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1373 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1378 setDoesNotThrow(F); in inferPrototypeAttributes()
1379 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1380 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1388 setDoesNotThrow(F); in inferPrototypeAttributes()
1389 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1390 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1391 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1392 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1397 setDoesNotThrow(F); in inferPrototypeAttributes()
1398 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1405 setDoesNotThrow(F); in inferPrototypeAttributes()
1406 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1407 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1413 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1419 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1420 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1423 setDoesNotThrow(F); in inferPrototypeAttributes()
1431 setDoesNotThrow(F); in inferPrototypeAttributes()
1432 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1433 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1434 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1435 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1436 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1441 setDoesNotThrow(F); in inferPrototypeAttributes()
1442 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1447 setDoesNotThrow(F); in inferPrototypeAttributes()
1448 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1449 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1456 setDoesNotThrow(F); in inferPrototypeAttributes()
1457 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1458 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1459 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1460 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1467 setDoesNotThrow(F); in inferPrototypeAttributes()
1468 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1469 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1470 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1475 setDoesNotThrow(F); in inferPrototypeAttributes()
1476 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1481 setDoesNotThrow(F); in inferPrototypeAttributes()
1482 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1483 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1491 setDoesNotThrow(F); in inferPrototypeAttributes()
1492 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1493 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1494 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1501 setDoesNotThrow(F); in inferPrototypeAttributes()
1502 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1503 setDoesNotCapture(F, 3); in inferPrototypeAttributes()
1504 setOnlyReadsMemory(F, 3); in inferPrototypeAttributes()
1510 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1511 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1518 setDoesNotThrow(F); in inferPrototypeAttributes()
1519 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1520 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1521 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1526 setDoesNotThrow(F); in inferPrototypeAttributes()
1527 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1532 setDoesNotThrow(F); in inferPrototypeAttributes()
1533 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1539 setDoesNotThrow(F); in inferPrototypeAttributes()
1540 setDoesNotAccessMemory(F); in inferPrototypeAttributes()
1547 setDoesNotThrow(F); in inferPrototypeAttributes()
1548 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1549 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1550 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1555 setDoesNotThrow(F); in inferPrototypeAttributes()
1556 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1557 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1563 setDoesNotCapture(F, 4); in inferPrototypeAttributes()
1571 setDoesNotThrow(F); in inferPrototypeAttributes()
1572 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1573 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1574 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1580 setDoesNotThrow(F); in inferPrototypeAttributes()
1581 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1582 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1587 setDoesNotThrow(F); in inferPrototypeAttributes()
1588 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1593 setDoesNotThrow(F); in inferPrototypeAttributes()
1594 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1600 setDoesNotThrow(F); in inferPrototypeAttributes()
1601 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1602 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1611 setDoesNotThrow(F); in inferPrototypeAttributes()
1612 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1613 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1614 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1621 setDoesNotThrow(F); in inferPrototypeAttributes()
1622 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1623 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1624 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1625 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1633 setDoesNotThrow(F); in inferPrototypeAttributes()
1634 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1635 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1636 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1637 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1638 setOnlyReadsMemory(F, 2); in inferPrototypeAttributes()
1644 setDoesNotThrow(F); in inferPrototypeAttributes()
1645 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1650 setDoesNotThrow(F); in inferPrototypeAttributes()
1651 setDoesNotAlias(F, 0); in inferPrototypeAttributes()
1657 setDoesNotThrow(F); in inferPrototypeAttributes()
1658 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1664 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1665 setOnlyReadsMemory(F, 1); in inferPrototypeAttributes()
1674 setDoesNotThrow(F); in inferPrototypeAttributes()
1675 setDoesNotCapture(F, 1); in inferPrototypeAttributes()
1676 setDoesNotCapture(F, 2); in inferPrototypeAttributes()
1694 Function *F = (*I)->getFunction(); in annotateLibraryCalls() local
1696 if (F && F->isDeclaration()) in annotateLibraryCalls()
1697 MadeChange |= inferPrototypeAttributes(*F); in annotateLibraryCalls()