mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 22:36:06 +00:00

Most places that call Intrinsic::getAttributes() are only interested in the function attributes, so add a separate function for that. The motivation for this is that I'd like to add the ability to specify range attributes on intrinsics, which requires knowing the function type. This avoids needing to know the type for most attribute queries.