Lines Matching refs:Builtin
137 case Builtin::BI__builtin___CFStringMakeConstantString:
143 case Builtin::BI__builtin_stdarg_start:
144 case Builtin::BI__builtin_va_start:
145 case Builtin::BI__va_start:
149 case Builtin::BI__builtin_isgreater:
150 case Builtin::BI__builtin_isgreaterequal:
151 case Builtin::BI__builtin_isless:
152 case Builtin::BI__builtin_islessequal:
153 case Builtin::BI__builtin_islessgreater:
154 case Builtin::BI__builtin_isunordered:
158 case Builtin::BI__builtin_fpclassify:
162 case Builtin::BI__builtin_isfinite:
163 case Builtin::BI__builtin_isinf:
164 case Builtin::BI__builtin_isinf_sign:
165 case Builtin::BI__builtin_isnan:
166 case Builtin::BI__builtin_isnormal:
170 case Builtin::BI__builtin_shufflevector:
174 case Builtin::BI__builtin_prefetch:
178 case Builtin::BI__builtin_object_size:
182 case Builtin::BI__builtin_longjmp:
187 case Builtin::BI__builtin_classify_type:
191 case Builtin::BI__builtin_constant_p:
195 case Builtin::BI__sync_fetch_and_add:
196 case Builtin::BI__sync_fetch_and_add_1:
197 case Builtin::BI__sync_fetch_and_add_2:
198 case Builtin::BI__sync_fetch_and_add_4:
199 case Builtin::BI__sync_fetch_and_add_8:
200 case Builtin::BI__sync_fetch_and_add_16:
201 case Builtin::BI__sync_fetch_and_sub:
202 case Builtin::BI__sync_fetch_and_sub_1:
203 case Builtin::BI__sync_fetch_and_sub_2:
204 case Builtin::BI__sync_fetch_and_sub_4:
205 case Builtin::BI__sync_fetch_and_sub_8:
206 case Builtin::BI__sync_fetch_and_sub_16:
207 case Builtin::BI__sync_fetch_and_or:
208 case Builtin::BI__sync_fetch_and_or_1:
209 case Builtin::BI__sync_fetch_and_or_2:
210 case Builtin::BI__sync_fetch_and_or_4:
211 case Builtin::BI__sync_fetch_and_or_8:
212 case Builtin::BI__sync_fetch_and_or_16:
213 case Builtin::BI__sync_fetch_and_and:
214 case Builtin::BI__sync_fetch_and_and_1:
215 case Builtin::BI__sync_fetch_and_and_2:
216 case Builtin::BI__sync_fetch_and_and_4:
217 case Builtin::BI__sync_fetch_and_and_8:
218 case Builtin::BI__sync_fetch_and_and_16:
219 case Builtin::BI__sync_fetch_and_xor:
220 case Builtin::BI__sync_fetch_and_xor_1:
221 case Builtin::BI__sync_fetch_and_xor_2:
222 case Builtin::BI__sync_fetch_and_xor_4:
223 case Builtin::BI__sync_fetch_and_xor_8:
224 case Builtin::BI__sync_fetch_and_xor_16:
225 case Builtin::BI__sync_add_and_fetch:
226 case Builtin::BI__sync_add_and_fetch_1:
227 case Builtin::BI__sync_add_and_fetch_2:
228 case Builtin::BI__sync_add_and_fetch_4:
229 case Builtin::BI__sync_add_and_fetch_8:
230 case Builtin::BI__sync_add_and_fetch_16:
231 case Builtin::BI__sync_sub_and_fetch:
232 case Builtin::BI__sync_sub_and_fetch_1:
233 case Builtin::BI__sync_sub_and_fetch_2:
234 case Builtin::BI__sync_sub_and_fetch_4:
235 case Builtin::BI__sync_sub_and_fetch_8:
236 case Builtin::BI__sync_sub_and_fetch_16:
237 case Builtin::BI__sync_and_and_fetch:
238 case Builtin::BI__sync_and_and_fetch_1:
239 case Builtin::BI__sync_and_and_fetch_2:
240 case Builtin::BI__sync_and_and_fetch_4:
241 case Builtin::BI__sync_and_and_fetch_8:
242 case Builtin::BI__sync_and_and_fetch_16:
243 case Builtin::BI__sync_or_and_fetch:
244 case Builtin::BI__sync_or_and_fetch_1:
245 case Builtin::BI__sync_or_and_fetch_2:
246 case Builtin::BI__sync_or_and_fetch_4:
247 case Builtin::BI__sync_or_and_fetch_8:
248 case Builtin::BI__sync_or_and_fetch_16:
249 case Builtin::BI__sync_xor_and_fetch:
250 case Builtin::BI__sync_xor_and_fetch_1:
251 case Builtin::BI__sync_xor_and_fetch_2:
252 case Builtin::BI__sync_xor_and_fetch_4:
253 case Builtin::BI__sync_xor_and_fetch_8:
254 case Builtin::BI__sync_xor_and_fetch_16:
255 case Builtin::BI__sync_val_compare_and_swap:
256 case Builtin::BI__sync_val_compare_and_swap_1:
257 case Builtin::BI__sync_val_compare_and_swap_2:
258 case Builtin::BI__sync_val_compare_and_swap_4:
259 case Builtin::BI__sync_val_compare_and_swap_8:
260 case Builtin::BI__sync_val_compare_and_swap_16:
261 case Builtin::BI__sync_bool_compare_and_swap:
262 case Builtin::BI__sync_bool_compare_and_swap_1:
263 case Builtin::BI__sync_bool_compare_and_swap_2:
264 case Builtin::BI__sync_bool_compare_and_swap_4:
265 case Builtin::BI__sync_bool_compare_and_swap_8:
266 case Builtin::BI__sync_bool_compare_and_swap_16:
267 case Builtin::BI__sync_lock_test_and_set:
268 case Builtin::BI__sync_lock_test_and_set_1:
269 case Builtin::BI__sync_lock_test_and_set_2:
270 case Builtin::BI__sync_lock_test_and_set_4:
271 case Builtin::BI__sync_lock_test_and_set_8:
272 case Builtin::BI__sync_lock_test_and_set_16:
273 case Builtin::BI__sync_lock_release:
274 case Builtin::BI__sync_lock_release_1:
275 case Builtin::BI__sync_lock_release_2:
276 case Builtin::BI__sync_lock_release_4:
277 case Builtin::BI__sync_lock_release_8:
278 case Builtin::BI__sync_lock_release_16:
279 case Builtin::BI__sync_swap:
280 case Builtin::BI__sync_swap_1:
281 case Builtin::BI__sync_swap_2:
282 case Builtin::BI__sync_swap_4:
283 case Builtin::BI__sync_swap_8:
284 case Builtin::BI__sync_swap_16:
288 case Builtin::BI##ID: \
291 case Builtin::BI__builtin_annotation:
295 case Builtin::BI__builtin_addressof:
299 case Builtin::BI__builtin_operator_new:
300 case Builtin::BI__builtin_operator_delete:
303 << (BuiltinID == Builtin::BI__builtin_operator_new
317 if (BuiltinID >= Builtin::FirstTSBuiltin) {
846 if (CMId == Builtin::BIstrlcpy || CMId == Builtin::BIstrlcat)
848 else if (CMId == Builtin::BIstrncat)
1349 { Builtin::BI##x##_1, Builtin::BI##x##_2, Builtin::BI##x##_4, \
1350 Builtin::BI##x##_8, Builtin::BI##x##_16 }
1395 case Builtin::BI__sync_fetch_and_add:
1396 case Builtin::BI__sync_fetch_and_add_1:
1397 case Builtin::BI__sync_fetch_and_add_2:
1398 case Builtin::BI__sync_fetch_and_add_4:
1399 case Builtin::BI__sync_fetch_and_add_8:
1400 case Builtin::BI__sync_fetch_and_add_16:
1404 case Builtin::BI__sync_fetch_and_sub:
1405 case Builtin::BI__sync_fetch_and_sub_1:
1406 case Builtin::BI__sync_fetch_and_sub_2:
1407 case Builtin::BI__sync_fetch_and_sub_4:
1408 case Builtin::BI__sync_fetch_and_sub_8:
1409 case Builtin::BI__sync_fetch_and_sub_16:
1413 case Builtin::BI__sync_fetch_and_or:
1414 case Builtin::BI__sync_fetch_and_or_1:
1415 case Builtin::BI__sync_fetch_and_or_2:
1416 case Builtin::BI__sync_fetch_and_or_4:
1417 case Builtin::BI__sync_fetch_and_or_8:
1418 case Builtin::BI__sync_fetch_and_or_16:
1422 case Builtin::BI__sync_fetch_and_and:
1423 case Builtin::BI__sync_fetch_and_and_1:
1424 case Builtin::BI__sync_fetch_and_and_2:
1425 case Builtin::BI__sync_fetch_and_and_4:
1426 case Builtin::BI__sync_fetch_and_and_8:
1427 case Builtin::BI__sync_fetch_and_and_16:
1431 case Builtin::BI__sync_fetch_and_xor:
1432 case Builtin::BI__sync_fetch_and_xor_1:
1433 case Builtin::BI__sync_fetch_and_xor_2:
1434 case Builtin::BI__sync_fetch_and_xor_4:
1435 case Builtin::BI__sync_fetch_and_xor_8:
1436 case Builtin::BI__sync_fetch_and_xor_16:
1440 case Builtin::BI__sync_add_and_fetch:
1441 case Builtin::BI__sync_add_and_fetch_1:
1442 case Builtin::BI__sync_add_and_fetch_2:
1443 case Builtin::BI__sync_add_and_fetch_4:
1444 case Builtin::BI__sync_add_and_fetch_8:
1445 case Builtin::BI__sync_add_and_fetch_16:
1449 case Builtin::BI__sync_sub_and_fetch:
1450 case Builtin::BI__sync_sub_and_fetch_1:
1451 case Builtin::BI__sync_sub_and_fetch_2:
1452 case Builtin::BI__sync_sub_and_fetch_4:
1453 case Builtin::BI__sync_sub_and_fetch_8:
1454 case Builtin::BI__sync_sub_and_fetch_16:
1458 case Builtin::BI__sync_and_and_fetch:
1459 case Builtin::BI__sync_and_and_fetch_1:
1460 case Builtin::BI__sync_and_and_fetch_2:
1461 case Builtin::BI__sync_and_and_fetch_4:
1462 case Builtin::BI__sync_and_and_fetch_8:
1463 case Builtin::BI__sync_and_and_fetch_16:
1467 case Builtin::BI__sync_or_and_fetch:
1468 case Builtin::BI__sync_or_and_fetch_1:
1469 case Builtin::BI__sync_or_and_fetch_2:
1470 case Builtin::BI__sync_or_and_fetch_4:
1471 case Builtin::BI__sync_or_and_fetch_8:
1472 case Builtin::BI__sync_or_and_fetch_16:
1476 case Builtin::BI__sync_xor_and_fetch:
1477 case Builtin::BI__sync_xor_and_fetch_1:
1478 case Builtin::BI__sync_xor_and_fetch_2:
1479 case Builtin::BI__sync_xor_and_fetch_4:
1480 case Builtin::BI__sync_xor_and_fetch_8:
1481 case Builtin::BI__sync_xor_and_fetch_16:
1485 case Builtin::BI__sync_val_compare_and_swap:
1486 case Builtin::BI__sync_val_compare_and_swap_1:
1487 case Builtin::BI__sync_val_compare_and_swap_2:
1488 case Builtin::BI__sync_val_compare_and_swap_4:
1489 case Builtin::BI__sync_val_compare_and_swap_8:
1490 case Builtin::BI__sync_val_compare_and_swap_16:
1495 case Builtin::BI__sync_bool_compare_and_swap:
1496 case Builtin::BI__sync_bool_compare_and_swap_1:
1497 case Builtin::BI__sync_bool_compare_and_swap_2:
1498 case Builtin::BI__sync_bool_compare_and_swap_4:
1499 case Builtin::BI__sync_bool_compare_and_swap_8:
1500 case Builtin::BI__sync_bool_compare_and_swap_16:
1506 case Builtin::BI__sync_lock_test_and_set:
1507 case Builtin::BI__sync_lock_test_and_set_1:
1508 case Builtin::BI__sync_lock_test_and_set_2:
1509 case Builtin::BI__sync_lock_test_and_set_4:
1510 case Builtin::BI__sync_lock_test_and_set_8:
1511 case Builtin::BI__sync_lock_test_and_set_16:
1515 case Builtin::BI__sync_lock_release:
1516 case Builtin::BI__sync_lock_release_1:
1517 case Builtin::BI__sync_lock_release_2:
1518 case Builtin::BI__sync_lock_release_4:
1519 case Builtin::BI__sync_lock_release_8:
1520 case Builtin::BI__sync_lock_release_16:
1526 case Builtin::BI__sync_swap:
1527 case Builtin::BI__sync_swap_1:
1528 case Builtin::BI__sync_swap_2:
1529 case Builtin::BI__sync_swap_4:
1530 case Builtin::BI__sync_swap_8:
1531 case Builtin::BI__sync_swap_16:
2158 if (BuiltinID == Builtin::BI__builtin___CFStringMakeConstantString ||
2159 BuiltinID == Builtin::BI__builtin___NSStringMakeConstantString) {
3590 case Builtin::BI__builtin_abs:
3591 return Builtin::BI__builtin_labs;
3592 case Builtin::BI__builtin_labs:
3593 return Builtin::BI__builtin_llabs;
3594 case Builtin::BI__builtin_llabs:
3597 case Builtin::BI__builtin_fabsf:
3598 return Builtin::BI__builtin_fabs;
3599 case Builtin::BI__builtin_fabs:
3600 return Builtin::BI__builtin_fabsl;
3601 case Builtin::BI__builtin_fabsl:
3604 case Builtin::BI__builtin_cabsf:
3605 return Builtin::BI__builtin_cabs;
3606 case Builtin::BI__builtin_cabs:
3607 return Builtin::BI__builtin_cabsl;
3608 case Builtin::BI__builtin_cabsl:
3611 case Builtin::BIabs:
3612 return Builtin::BIlabs;
3613 case Builtin::BIlabs:
3614 return Builtin::BIllabs;
3615 case Builtin::BIllabs:
3618 case Builtin::BIfabsf:
3619 return Builtin::BIfabs;
3620 case Builtin::BIfabs:
3621 return Builtin::BIfabsl;
3622 case Builtin::BIfabsl:
3625 case Builtin::BIcabsf:
3626 return Builtin::BIcabs;
3627 case Builtin::BIcabs:
3628 return Builtin::BIcabsl;
3629 case Builtin::BIcabsl:
3702 case Builtin::BI__builtin_fabsf:
3703 case Builtin::BI__builtin_fabs:
3704 case Builtin::BI__builtin_fabsl:
3705 case Builtin::BI__builtin_cabsf:
3706 case Builtin::BI__builtin_cabs:
3707 case Builtin::BI__builtin_cabsl:
3708 return Builtin::BI__builtin_abs;
3709 case Builtin::BIfabsf:
3710 case Builtin::BIfabs:
3711 case Builtin::BIfabsl:
3712 case Builtin::BIcabsf:
3713 case Builtin::BIcabs:
3714 case Builtin::BIcabsl:
3715 return Builtin::BIabs;
3721 case Builtin::BI__builtin_abs:
3722 case Builtin::BI__builtin_labs:
3723 case Builtin::BI__builtin_llabs:
3724 case Builtin::BI__builtin_cabsf:
3725 case Builtin::BI__builtin_cabs:
3726 case Builtin::BI__builtin_cabsl:
3727 return Builtin::BI__builtin_fabsf;
3728 case Builtin::BIabs:
3729 case Builtin::BIlabs:
3730 case Builtin::BIllabs:
3731 case Builtin::BIcabsf:
3732 case Builtin::BIcabs:
3733 case Builtin::BIcabsl:
3734 return Builtin::BIfabsf;
3740 case Builtin::BI__builtin_abs:
3741 case Builtin::BI__builtin_labs:
3742 case Builtin::BI__builtin_llabs:
3743 case Builtin::BI__builtin_fabsf:
3744 case Builtin::BI__builtin_fabs:
3745 case Builtin::BI__builtin_fabsl:
3746 return Builtin::BI__builtin_cabsf;
3747 case Builtin::BIabs:
3748 case Builtin::BIlabs:
3749 case Builtin::BIllabs:
3750 case Builtin::BIfabsf:
3751 case Builtin::BIfabs:
3752 case Builtin::BIfabsl:
3753 return Builtin::BIcabsf;
3767 case Builtin::BI__builtin_abs:
3768 case Builtin::BI__builtin_fabs:
3769 case Builtin::BI__builtin_fabsf:
3770 case Builtin::BI__builtin_fabsl:
3771 case Builtin::BI__builtin_labs:
3772 case Builtin::BI__builtin_llabs:
3773 case Builtin::BI__builtin_cabs:
3774 case Builtin::BI__builtin_cabsf:
3775 case Builtin::BI__builtin_cabsl:
3776 case Builtin::BIabs:
3777 case Builtin::BIlabs:
3778 case Builtin::BIllabs:
3779 case Builtin::BIfabs:
3780 case Builtin::BIfabsf:
3781 case Builtin::BIfabsl:
3782 case Builtin::BIcabs:
3783 case Builtin::BIcabsf:
3784 case Builtin::BIcabsl:
3787 llvm_unreachable("Unknown Builtin type");
4063 unsigned ExpectedNumArgs = (BId == Builtin::BIstrndup ? 2 : 3);
4067 unsigned LastArg = (BId == Builtin::BImemset ||
4068 BId == Builtin::BIstrndup ? 1 : 2);
4069 unsigned LenArg = (BId == Builtin::BIstrndup ? 1 : 2);
4176 if (ArgIdx != 0 || BId == Builtin::BImemcmp) {
4177 if (BId == Builtin::BImemcpy)
4179 else if(BId == Builtin::BImemmove)
4181 else if (BId == Builtin::BImemcmp)
4188 << (BId == Builtin::BImemcmp ? ArgIdx + 2 : ArgIdx)
4192 BId != Builtin::BImemset)
4271 if (SizeCall->getBuiltinCallee() == Builtin::BIstrlen &&
4327 if (!FD || FD->getMemoryFunctionKind() != Builtin::BIstrlen)
5914 // Builtin FP kinds are ordered by increasing FP rank.