Stream: cranelift

Topic: clif


view this post on Zulip Conrad Ludgate (May 07 2023 at 16:06):

Hi, I'm writing some compiler infrastructure in Rust and I intend for cranelift to be my first-party codegen/JIT backend of choice. For now, this question isn't about that, but about "CLIF".

I see a few conflicting uses online:

So, in my docs, should I use CLIF or CLIF IR

Cranelift is a code generator written in the Rust programming language that aims to be a fast code generator, which outputs machine code that runs at reasonable speeds. The Cranelift compilation model consists in compiling functions one by one, holding extra information about external entities, like external functions, memory addresses …

view this post on Zulip bjorn3 (May 07 2023 at 16:35):

I personally go with clif as short for cranelift and clif ir as short for cranelift ir.

view this post on Zulip Chris Fallin (May 08 2023 at 05:45):

FWIW, I actually tend to describe the IR itself as "CLIF" (the acronym expands to "... intermediate format", as you've noted). This is consistent with the file extension we use as well, "clif-util" that runs various actions on CLIF files, etc. The name for Cranelift is, well, Cranelift (or "CL" sometimes in my own writing but that's not terribly official)


Last updated: Dec 23 2024 at 12:05 UTC