Add transpose intrinsic

Fixed: tint:860
Change-Id: I899e280807503064fbabaafe02d37de4187b3298
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53805
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton
2021-06-09 14:32:14 +00:00
parent 950809f534
commit 0a2b5f22d4
56 changed files with 3391 additions and 1639 deletions

View File

@@ -229,6 +229,9 @@ IntrinsicType ParseIntrinsicType(const std::string& name) {
if (name == "tanh") {
return IntrinsicType::kTanh;
}
if (name == "transpose") {
return IntrinsicType::kTranspose;
}
if (name == "trunc") {
return IntrinsicType::kTrunc;
}
@@ -424,6 +427,8 @@ const char* str(IntrinsicType i) {
return "tan";
case IntrinsicType::kTanh:
return "tanh";
case IntrinsicType::kTranspose:
return "transpose";
case IntrinsicType::kTrunc:
return "trunc";
case IntrinsicType::kUnpack2x16float:

View File

@@ -100,6 +100,7 @@ enum class IntrinsicType {
kStorageBarrier,
kTan,
kTanh,
kTranspose,
kTrunc,
kUnpack2x16float,
kUnpack2x16snorm,