MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / getTypeKind

Function getTypeKind

src/compiler/reflection/IntrospectStructPass.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40enum class TypeKind { Other = 0, Pointer = 1, IntegerType = 2, FloatType = 3 };
41
42TypeKind getTypeKind(llvm::Type* T) {
43 if(T->isPointerTy())
44 return TypeKind::Pointer;
45 else if(T->isFloatingPointTy())
46 return TypeKind::FloatType;
47 else if(T->isIntegerTy())
48 return TypeKind::IntegerType;
49 return TypeKind::Other;
50}
51
52TypeInformation getTypeInformation(llvm::Type* T, llvm::Module& M) {
53 TypeInformation TI;

Callers 1

getTypeInformationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected