search for: getintnty

Displaying 4 results from an estimated 4 matches for "getintnty".

Did you mean: getint8ty
2012 Nov 09
1
[LLVMdev] Do I need to calculate padding by myself to construct a StructType ?
...ct mystruct {int a:1; int b:2; unsigned long c} = {{1, 2, 3}}; I read the document and tried the demo cgi, it seems the API requires user to handle padding and value combination for the initializer by themselves. Is there any way to create the struct more simply like this: fields.push_back(Type::getIntNTy(context, 1)); fields.push_back(Type::getIntNTy(context, 2)); fields.push_back(Type::getIntNTy(context, 64)); structTy.setBody(fields, false /* isPacked*/); It's really tough to do layout work and it's very likely to cause bugs. Combining the values for the initializer is also not easy. As...
2018 Jul 20
2
LLVM FunctionType cannot be returned as VectorType?
...te some code. In particular, I am dealing with AVX2 SIMD API which uses __m256i. My function input types a set of vectors and return type is also a vector. /////////////////////////////////////////////////////////////////////////////////////////// arguments.push_back(VectorType::get(IntegerType::getIntNTy(TheContext, 64), 4));//int64*4 = __m256i FunctionType * proto = FunctionType::get(VectorType::get(IntegerType::getIntNTy(TheContext, 64), 4),//int64*4 = __m256i arguments, false); //////////////////////////////////////////////...
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
...upposed to be all 0. Can you please help me figure out what's going on here? Any help will be greatly appreciated. /////////////////////////////////////////////////////////////////////////////////////////// My function prototype definition: auto vectorDataType = VectorType::get(IntegerType::getIntNTy(TheContext, 64), 4); std::vector<Type *> vecArguments; for (Uint64 nodeId = startOfLeaves; nodeId < numNodes; ++nodeId) { vecArguments.push_back(vectorDataType); } proto = FunctionType::...
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
...hat's going on here? Any help will be > greatly appreciated. > > > /////////////////////////////////////////////////////////////////////////////////////////// > > > > My function prototype definition: > > > > auto vectorDataType = VectorType::get(IntegerType::getIntNTy(TheContext, > 64), 4); > > std::vector<Type *> vecArguments; > > for (Uint64 nodeId = startOfLeaves; nodeId < numNodes; > ++nodeId) { > > vecArguments.push_back(vectorDataType); > >...