search for: ar_type

Displaying 1 result from an estimated 1 matches for "ar_type".

Did you mean: r_type
2013 Jan 27
2
[LLVMdev] Passing an array to an external function
...SmallVector<Constant*, 2> counts; counts.push_back(ConstantInt::get(Type::getInt32Ty(BB->getContext()),32, false)); counts.push_back(ConstantInt::get(Type::getInt32Ty(BB->getContext()),12, false)); //Array with 2 integers ArrayType* ar_type = llvm::ArrayType::get(llvm::Type::getInt32Ty(BI->getContext()),2); Value* array = ConstantArray::get(&(*ar_type), counts); //Indicies std::vector<Value*> ids(1); ids.push_back(Con...