ir_to_llvm.cpp | 98 llvm::IRBuilder<> bld; member in class:ir_to_llvm_visitor 107 (llvm::BasicBlock*)0)), bb(0), bld(ctx), gglCtx(GGLCtx), shaderSuffix(suffix), 111 llvm::PointerType * const floatVecPtrType = llvm::PointerType::get(llvm::VectorType::get(bld.getFloatTy(),4), 0); 196 v = bld.CreateConstGEP1_32(inputs, var->location); 197 v = bld.CreateBitCast(v, llvm::PointerType::get(llvm_type(var->type), 0), var->name); 202 v = bld.CreateConstGEP1_32(outputs, var->location); 203 v = bld.CreateBitCast(v, llvm::PointerType::get(llvm_type(var->type), 0), var->name); 208 v = bld.CreateConstGEP1_32(constants, var->location); 209 v = bld.CreateBitCast(v, llvm::PointerType::get(llvm_type(var->type), 0), var->name); 214 v = bld.CreateAlloca(type, 0, var->name) [all...] |