[llvm] [DirectX] Add support for Raw Buffer Loads and Stores for scalars and vectors of doubles and i64s in SM6.2 and earlier (PR #146627)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 08:00:04 PDT 2025
================
@@ -71,12 +71,23 @@ static bool isIntrinsicExpansion(Function &F) {
case Intrinsic::vector_reduce_add:
case Intrinsic::vector_reduce_fadd:
return true;
+ case Intrinsic::dx_resource_load_rawbuffer:
+ if (F.getParent()->getTargetTriple().getDXILVersion() > VersionTuple(1, 2))
+ return false;
+ // fallthrough to check if double or i64
+ LLVM_FALLTHROUGH;
----------------
farzonl wrote:
Do we need to do a fall through, couldn't this just be return true?
https://github.com/llvm/llvm-project/pull/146627
More information about the llvm-commits
mailing list