aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorJoshua Cranmer <joshua.cranmer@intel.com>2022-08-04 10:41:11 -0400
committerJoshua Cranmer <joshua.cranmer@intel.com>2022-08-04 10:41:11 -0400
commit2138c906458ed37f0f833b1c7dda1bc6c6be8236 (patch)
tree5a88fe58c8c46ff1724369d1ea3ddcc6094b4bd1 /llvm/lib/IR/Core.cpp
parent448adfee05b737a26dda34e7ae2cd4948760fff0 (diff)
downloadllvm-2138c906458ed37f0f833b1c7dda1bc6c6be8236.zip
llvm-2138c906458ed37f0f833b1c7dda1bc6c6be8236.tar.gz
llvm-2138c906458ed37f0f833b1c7dda1bc6c6be8236.tar.bz2
[IR] Move support for dxil::TypedPointerType to LLVM core IR.
This allows the construct to be shared between different backends. However, it still remains illegal to use TypedPointerType in LLVM IR--the type is intended to remain an auxiliary type, not a real LLVM type. So no support is provided for LLVM-C, nor bitcode, nor LLVM assembly (besides the bare minimum needed to make Type->dump() work properly). Reviewed By: beanz, nikic, aeubanks Differential Revision: https://reviews.llvm.org/D130592
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 08b7b0e..59c9f2f 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -541,8 +541,8 @@ LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty) {
return LLVMTokenTypeKind;
case Type::ScalableVectorTyID:
return LLVMScalableVectorTypeKind;
- case Type::DXILPointerTyID:
- llvm_unreachable("DXIL pointers are unsupported via the C API");
+ case Type::TypedPointerTyID:
+ llvm_unreachable("Typed pointers are unsupported via the C API");
}
llvm_unreachable("Unhandled TypeID.");
}