diff options
author | Archibald Elliott <archibald.elliott@arm.com> | 2022-08-17 18:05:12 +0100 |
---|---|---|
committer | Archibald Elliott <archibald.elliott@arm.com> | 2022-08-19 09:11:17 +0100 |
commit | 3a729069e463440035284ae6a27798b2573223de (patch) | |
tree | 9e76659f552a3f20a4209a8b7c47a4212ca6cee0 /libcxx/include/__algorithm/generate.h | |
parent | 8b50ffe9fdc3cd457796857d3661e34490ef0490 (diff) | |
download | llvm-3a729069e463440035284ae6a27798b2573223de.zip llvm-3a729069e463440035284ae6a27798b2573223de.tar.gz llvm-3a729069e463440035284ae6a27798b2573223de.tar.bz2 |
[IR] Update llvm.prefetch to match docs
The current llvm.prefetch intrinsic docs state "The rw, locality and
cache type arguments must be constant integers."
This change:
- Makes arg 3 (cache type) an ImmArg
- Improves the verifier error messages to reference the incorrect
argument.
- Fixes two tests which contradict the docs.
This is needed as the lowering to GlobalISel is different for ImmArgs
compared to other constants. The non-ImmArgs create a G_CONSTANT MIR
instruction, the for ImmArgs the constant is put directly on the
intrinsic's MIR instruction as an immediate.
Differential Revision: https://reviews.llvm.org/D132042
Diffstat (limited to 'libcxx/include/__algorithm/generate.h')
0 files changed, 0 insertions, 0 deletions