[llvm-dev] Passing arguments to LTOCodeGenerator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] Passing arguments to LTOCodeGenerator

Dean Michael Berris via llvm-dev

In LTOCodeGenerator.cpp there are some options related to optimization remarks.

On MacOS, I can pass in this option to enable them: 

     -Wl,-mllvm,-lto-pass-remarks-output=remarks

 

But on Linux using 2.29.1 binutils version of gold, I try this alternative:

     -Wl,--plugin-opt,-lto-pass-remarks-output=remarks

 

But I get this error message:

LLVMgold: Unknown command line argument '--library=to-pass-remarks-output=remarks'.  Try: 'LLVMgold -he\

lp'

LLVMgold: Did you mean '-no-warn=to-pass-remarks-output=remarks'?

 

If I try this

     -Wl,--plugin-opt=lto-pass-remarks-output=remarks

 

I get

LLVMgold: Unknown command line argument 'lto-pass-remarks-output=remarks'.  Try: 'LLVMgold -help'

clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

 

Any suggestions are welcome,

Thanks

david

 

 


_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Passing arguments to LTOCodeGenerator

Dean Michael Berris via llvm-dev
I recently added support for opt remarks to the gold plugin, in r330252. The option names are:
-plugin-opt=opt-remarks-with-hotness
-plugin-opt=opt-remarks-filename=[filename]

(I used the same option names as used by lld, which unfortunately is different than the ones added to the old LTO API)

Teresa

On Thu, May 3, 2018 at 8:27 AM, David Callahan via llvm-dev <[hidden email]> wrote:

In LTOCodeGenerator.cpp there are some options related to optimization remarks.

On MacOS, I can pass in this option to enable them: 

     -Wl,-mllvm,-lto-pass-remarks-output=remarks

 

But on Linux using 2.29.1 binutils version of gold, I try this alternative:

     -Wl,--plugin-opt,-lto-pass-remarks-output=remarks

 

But I get this error message:

LLVMgold: Unknown command line argument '--library=to-pass-remarks-output=remarks'.  Try: 'LLVMgold -he\

lp'

LLVMgold: Did you mean '-no-warn=to-pass-remarks-output=remarks'?

 

If I try this

     -Wl,--plugin-opt=lto-pass-remarks-output=remarks

 

I get

LLVMgold: Unknown command line argument 'lto-pass-remarks-output=remarks'.  Try: 'LLVMgold -help'

clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

 

Any suggestions are welcome,

Thanks

david

 

 


_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev




--
Teresa Johnson | Software Engineer | [hidden email] | 408-460-2413

_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev