Skip to content

liballoc_jemalloc nallocx should be ReadOnly #46046

Closed as not planned
Closed as not planned
@gnzlbg

Description

@gnzlbg

nallocx is a [[pure]] function in the GCC sense, and should have the LLVM ReadOnly attribute. I've been looking for a way to apply LLVM attributes to functions in Rust without much luck (another interesting one is ReadNone, GCC's const attribute).

Is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationC-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions