aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorThurston Dang <thurston@google.com>2025-01-22 18:17:14 -0800
committerGitHub <noreply@github.com>2025-01-22 18:17:14 -0800
commit9cefa3e6fccf30959433b96a8a275417b1429f4e (patch)
treec24b53e243eb69b1c52f790a5964de755387780b /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent15c2d4baf17292b4966d335846b30c50063f0265 (diff)
downloadllvm-9cefa3e6fccf30959433b96a8a275417b1429f4e.zip
llvm-9cefa3e6fccf30959433b96a8a275417b1429f4e.tar.gz
llvm-9cefa3e6fccf30959433b96a8a275417b1429f4e.tar.bz2
[msan] Generalize handleIntrinsicByApplyingToShadow by adding bitcasting (#123474)
`handleIntrinsicByApplyingToShadow` (introduced in https://github.com/llvm/llvm-project/pull/114490) requires that the intrinsic supports integer-ish operands; this is not the case for all intrinsics. This patch generalizes the function to bitcast the shadow arguments to be the same type as the original intrinsic, thus guaranteeing that the intrinsic exists. Additionally, it casts the computed shadow to be an appropriate shadow type. This function assumes that the intrinsic will handle arbitrary bit-patterns (for example, if the intrinsic accepts floats for var1, we assume that it works normally even if inputs are NaNs etc.).
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions