[llvm] [IR][Instructions] Add `CallBase::getCalledFunctionName` helper (PR #127038)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 20 07:52:47 PST 2025
================
@@ -41,11 +41,10 @@ class VFDatabase {
/// a vector Function ABI.
static void getVFABIMappings(const CallInst &CI,
SmallVectorImpl<VFInfo> &Mappings) {
- if (!CI.getCalledFunction())
+ const auto ScalarName = CI.getCalledFunctionName();
----------------
nikic wrote:
```suggestion
std::optional<StringRef> ScalarName = CI.getCalledFunctionName();
```
https://github.com/llvm/llvm-project/pull/127038
More information about the llvm-commits
mailing list