| 40 | enum class TypeKind { Other = 0, Pointer = 1, IntegerType = 2, FloatType = 3 }; |
| 41 | |
| 42 | TypeKind 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 | |
| 52 | TypeInformation getTypeInformation(llvm::Type* T, llvm::Module& M) { |
| 53 | TypeInformation TI; |
no outgoing calls
no test coverage detected