No functional changes were made. Instead, warnings were fixed, and optimizations were made
Details
Diff Detail
Event Timeline
No functional changes were made.
That doesn't sound correct. You made some constructors explicit, at the very least. Also I'm seeing some function moving from member functions to static functions, and so on.
Regardless, I don't touch this part of the codebase so I'm not sure why I'm marked as a reviewer here.
Just a couple of comments inline to keep in mind if/when you start splitting pieces of this out.
llvm/lib/IR/Function.cpp | ||
---|---|---|
692–695 | Is this an improvement? With this change (and the one to LLVMContext::setGC()), there's potentially allocation traffic with this usage pattern: std::string GC = /* ... */; F.setGC(std::move(GC)); where previously there was none. Another option might be to make this (and the called API) a StringRef, and audit callers to delay any std::string allocation until LLVMContext::setGC(). | |
llvm/lib/IR/IRPrintingPasses.cpp | ||
55–56 | When you split this out, I'd suggest using StringRef as the parameter and then Banner(Banner.str()). |
clang-tidy: warning: invalid case style for function 'LLVMGetNumOperands' [readability-identifier-naming]
not useful