aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorChangpeng Fang <changpeng.fang@amd.com>2024-02-20 16:03:54 -0800
committerGitHub <noreply@github.com>2024-02-20 16:03:54 -0800
commitd3fcf310310ddfea1acf0d54bb7574ea2f6d9077 (patch)
tree24fbddd95f5b4adc91c6940846d788fee6c00d6f /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parent3ff805540173b83d73b673b39ac5760fc19bac15 (diff)
downloadllvm-d3fcf310310ddfea1acf0d54bb7574ea2f6d9077.zip
llvm-d3fcf310310ddfea1acf0d54bb7574ea2f6d9077.tar.gz
llvm-d3fcf310310ddfea1acf0d54bb7574ea2f6d9077.tar.bz2
AMDGPU: Use HasFP8ConversionInsts appropriately, NFC (#82433)
The corresponding fp8 conversion instructions are available for a subtarget when and only when the subtarget "HasFP8ConversionInsts". We should not assume all the future subtargets (gfx12+) have FP8ConversionInsts. In this patch, we use OtherPredicates to carry HasFP8ConversionInsts feature. This is because SubtargetPredicate is not copied from pseudos to reals for DPP16 and DPP6. To avoid overriding OtherPredicates in a few places, we use the newly introduced True16Predicate to hold UseRealTrue16Insts instead. This work repalces the inadvertently closed pull request: https://github.com/llvm/llvm-project/pull/82024
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions