Profile Guide Optimization on LDC2 -emit-llvm

Nicholas Wilson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Mar 27 15:41:59 PDT 2017


On Monday, 27 March 2017 at 17:50:28 UTC, Prasun Anand wrote:
> On Monday, 27 March 2017 at 12:33:04 UTC, David Nadlinger wrote:
>> Hi,
>>
>> On 27 Mar 2017, at 8:28, Prasun Anand via digitalmars-d-ldc 
>> wrote:
>>> [...]
>>
>> -emit-llvm causes Clang to emit bitcode instead of object 
>> files, and LLVM IR instead of textual assembly. The LDC 
>> equivalents are -output-ll and -output-bc, respectively.
>>
>> I don't think I have used the report you mention myself, so 
>> I'm unsure how it relates to that – could you give an example 
>> or a link to the corresponding Clang documentation?
>>
>>  — David
>
> Thanks David,
>
> I was looking for how to output bc files and LLVM IR.
>
> Sorry, I am new to LLVM naming conventions. So, I was referring 
> to bitcode and LLVM IR as reports.
>
> Regards,
> Prasun

`-output-bc` and `-output-ll`


More information about the digitalmars-d-ldc mailing list