Skip to content

[IR] Add llvm.masked.load.first.fault intrinsic#156470

Open
huntergr-arm wants to merge 7 commits intollvm:mainfrom
huntergr-arm:speculative-load-intrinsic
Open

[IR] Add llvm.masked.load.first.fault intrinsic#156470
huntergr-arm wants to merge 7 commits intollvm:mainfrom
huntergr-arm:speculative-load-intrinsic

Conversation

@huntergr-arm
Copy link
Copy Markdown
Collaborator

@huntergr-arm huntergr-arm commented Sep 2, 2025

In order to support loading from addresses which may not be valid at
runtime without generating faults, we introduce the first fault load
intrinsic. Loading with this intrinsic will only generate a fault for
invalid accesses on the first element of the vector. Any subsequent
fault will be suppressed and the corresponding data will be poison.

This PR contains target-independent scalarization of the intrinsic so
that generic codegen works.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants