[llvm] [BOLT][AArch64] Implemented createDummyReturnFunction. (PR #96626)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 01:44:44 PDT 2024


================
@@ -1582,6 +1607,12 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
     return Instrs;
   }
 
+  InstructionListType createDummyReturnFunction(MCContext *Ctx) const override {
----------------
paschalis-mpeis wrote:

True, and initially I was tempted to do this. But then I thought it might be better for other targets to be explicitly aware of this workaround that gets used by Instrumentation.

Another argument, is that it might let new targets omit such a test. This could have been true for AArch64 if it was handled already like that. To be a better example, I've improved the AArch64 in my latest patch.

These are my thoughts, and not an absolute opinion. What do you think?

https://github.com/llvm/llvm-project/pull/96626


More information about the llvm-commits mailing list