Page MenuHomeFreeBSD

Use upstream suffixes for LLVM IR
ClosedPublic

Authored by dim on Oct 22 2016, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 10:09 AM
Unknown Object (File)
Wed, Dec 4, 9:49 AM
Unknown Object (File)
Nov 18 2024, 8:56 AM
Unknown Object (File)
Oct 21 2024, 7:15 PM
Unknown Object (File)
Oct 5 2024, 8:43 PM
Unknown Object (File)
Oct 3 2024, 2:21 AM
Unknown Object (File)
Oct 3 2024, 1:24 AM
Unknown Object (File)
Sep 28 2024, 2:58 PM
Subscribers

Details

Summary

In rS307676 several make rules were added for LLVM IR files, both in
text and binary format. Unfortunately these use different suffixes from
what upstream uses:

  • Text IR has upstream suffix ".ll", while rS307676 uses ".llo"
  • Binary IR has upstream suffix ".bc", while rS307676 uses ".bco"

Let's change these to what upstream uses instead.

Diff Detail

Event Timeline

dim retitled this revision from to Use upstream suffixes for LLVM IR.
dim updated this object.
dim edited the test plan for this revision. (Show Details)
dim added reviewers: emaste, imp, jonathan, rwatson.
emaste edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 22 2016, 10:41 PM
This revision was automatically updated to reflect the committed changes.

The distinction between .bc and .bco was actually purposeful. The next step in the process is to add IR build rules for whole programs, and then we might end up with conflicts between the IR file that's analogous to cp.o and the IR file that's analogous to the cp binary (i.e., the result of llvm-link). So, we used .bco as the bitcode suffix that's analogous to .o (much like .pico is the PIC suffix for .o files).

That said, we might be ok if we stick to program IR names like cp.full.bc... we shall see. We may need to revisit this commit in the future.