1#ifndef PROTEUS_FRONTEND_TYPEMAP_HPP
2#define PROTEUS_FRONTEND_TYPEMAP_HPP
4#include <llvm/IR/DerivedTypes.h>
5#include <llvm/IR/LLVMContext.h>
6#include <llvm/IR/Type.h>
29 return ArrayType::get(Type::getFloatTy(Ctx),
NElem);
43 return ArrayType::get(Type::getDoubleTy(Ctx),
NElem);
57 return ArrayType::get(Type::getInt64Ty(Ctx),
NElem);
73 return ArrayType::get(Type::getInt32Ty(Ctx),
NElem);
89 return ArrayType::get(Type::getInt32Ty(Ctx),
NElem);
97 return PointerType::getUnqual(Ctx);
101 return Type::getInt32Ty(Ctx);
107 return PointerType::getUnqual(Ctx);
111 return Type::getInt32Ty(Ctx);
123 return ArrayType::get(Type::getInt1Ty(Ctx),
NElem);
131 return PointerType::getUnqual(Ctx);
135 return Type::getDoubleTy(Ctx);
141 return PointerType::getUnqual(Ctx);
145 return Type::getDoubleTy(Ctx);
151 return PointerType::getUnqual(Ctx);
155 return Type::getFloatTy(Ctx);
Definition BuiltinsCUDA.cpp:4
T getRuntimeConstantValue(void *Arg)
Definition CompilerInterfaceRuntimeConstantInfo.h:114
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:116
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:118
static Type * get(llvm::LLVMContext &Ctx, size_t NElem)
Definition TypeMap.hpp:122
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:126
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:38
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:36
static Type * getPointerElemType(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:144
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:140
static Type * getPointerElemType(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:134
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:130
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:46
static Type * get(llvm::LLVMContext &Ctx, size_t NElem)
Definition TypeMap.hpp:42
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:24
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:22
static Type * getPointerElemType(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:154
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:150
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:32
static Type * get(llvm::LLVMContext &Ctx, size_t NElem)
Definition TypeMap.hpp:28
static bool isSigned()
Definition TypeMap.hpp:68
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:64
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:66
static Type * getPointerElemType(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:100
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:96
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:76
static Type * get(llvm::LLVMContext &Ctx, size_t NElem)
Definition TypeMap.hpp:72
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:50
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:52
static Type * get(llvm::LLVMContext &Ctx, size_t NElem)
Definition TypeMap.hpp:56
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:60
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:80
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:82
static bool isSigned()
Definition TypeMap.hpp:84
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:106
static Type * getPointerElemType(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:110
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:92
static Type * get(llvm::LLVMContext &Ctx, size_t NElem)
Definition TypeMap.hpp:88
static Type * get(llvm::LLVMContext &Ctx)
Definition TypeMap.hpp:16
static Type * getPointerElemType(llvm::LLVMContext &)
Definition TypeMap.hpp:18
Definition TypeMap.hpp:13