Similar to Attributor::checkForAllCallSites, we now provide such
functionality for instructions of a certain opcode through
Attributor::checkForAllInstructions and the convenient wrapper
Attributor::checkForAllCallLikeInstructions. This cleans up code,
avoids duplication, and simplifies the usage of liveness information.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This is build breaking on Linux and Darwin: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/15961/steps/build/logs/stdio
Reverting.
/Users/plotfi/Projects/llvm-project/llvm/lib/Transforms/IPO/Attributor.cpp:2263:63: error: binding value of type 'const llvm::Function' to reference to type 'llvm::Function' drops 'const' qualifier auto &OpcodeInstMap = InfoCache.getOpcodeInstMapForFunction(F); ^ /Users/plotfi/Projects/llvm-project/llvm/include/llvm/Transforms/IPO/Attributor.h:336:58: note: passing argument to parameter 'F' here OpcodeInstMapTy &getOpcodeInstMapForFunction(Function &F) { ^ 1 error generated.
Comment Actions
I tested locally, saw the error (due to some rebasing), fixed it, tested, commited, and realized I didn't add the stuff somehow when I was flooded by emails... sorry for the noise.