We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07152d2 + cde66e5 commit cdf6ef5Copy full SHA for cdf6ef5
llvm/lib/YkIR/YkIRWriter.cpp
@@ -57,6 +57,7 @@ enum OperandKind {
57
enum TypeKind {
58
Void = 0,
59
Integer,
60
+ Ptr,
61
UnimplementedType = 255, // YKFIXME: Will eventually be deleted.
62
};
63
@@ -238,6 +239,8 @@ class YkIRWriter {
238
239
void serialiseType(Type *Ty) {
240
if (Ty->isVoidTy()) {
241
OutStreamer.emitInt8(TypeKind::Void);
242
+ } else if (Ty->isPointerTy()) {
243
+ OutStreamer.emitInt8(TypeKind::Ptr);
244
} else if (IntegerType *ITy = dyn_cast<IntegerType>(Ty)) {
245
OutStreamer.emitInt8(TypeKind::Integer);
246
OutStreamer.emitInt32(ITy->getBitWidth());
0 commit comments