Skip to content

Emit memory attribute for readonly non-pure inline asm #146761

@nikic

Description

@nikic

I came across this comment:

// LLVM doesn't have an attribute to represent ReadOnly + SideEffect

This does exist nowadays in the form of memory(read, inaccessiblemem: readwrite).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-inline-assemblyArea: Inline assembly (`asm!(…)`)C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchI-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions