[clang] [llvm] [clang][SPIR-V] Add support for AMDGCN flavoured SPIRV (PR #89796)

Michal Paszkowski via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 5 12:35:32 PDT 2024


================
@@ -56,6 +56,10 @@ static std::string computeDataLayout(const Triple &TT) {
   if (Arch == Triple::spirv32)
     return "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-"
            "v96:128-v192:256-v256:256-v512:512-v1024:1024-G1";
+  if (TT.getVendor() == Triple::VendorType::AMD &&
----------------
michalpaszkowski wrote:

@AlexVlx Thanks for the pull request. Could you also please update the [SPIRVUsage](https://llvm.org/docs/SPIRVUsage.html) document? Any relevant information in the target triple section would be really appreciated.

https://github.com/llvm/llvm-project/pull/89796


More information about the cfe-commits mailing list