Skip to content

Add support for the freeze instruction #175

Open
@dpaoliello

Description

@dpaoliello

Looking at LLVM IR for some Rust code, I noticed the freeze instruction that LLVM-CBE doesn't currently support: https://llvm.org/docs/LangRef.html#freeze-instruction

I've been thinking about how we should handle this, but have run into a few issues:

  • I'm not sure how to write a trivial C/C++ program that emits this instruction.
  • I'm not sure how to indicate to a C compiler how to copy an undef/poison value and NOT mark the new value as undef/poison - could we use memcpy or a "black box" function that duplicates the value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions