Displaying 4 results from an estimated 4 matches for "getintnti".
Did you mean:
getintnty
2012 Nov 09
1
[LLVMdev] Do I need to calculate padding by myself to construct a StructType ?
I am using LLVM C++ API to generate IR for some structure data.
For example:
struct 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:
2018 Jul 20
2
LLVM FunctionType cannot be returned as VectorType?
Dear all,
I am using LLVM C++ API to generate 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
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
Hi Stefan,
Thank you very much for answering my question!
I followed your suggestion but the function still cannot return the correct
result. I also set target-feature attributes for my function. I am using
LLVM 6.0.
It only prints out some random large numbers but the correct answer is
supposed to be all 0.
Can you please help me figure out what's going on here? Any help will be
greatly
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
Hi Joshua,
Thanks for your great comment. I made up a ConstantVector in IR. Then I
successfully use AVX intrinsics to retrieve the returned vector data. The
remaining thing is that how to pass the vectors to LLVM function using
intrinsics. Do you have any suggestions? Please forgive me if the question
is too naive.
I pasted below two IR I used. The first one works. The second one doesn't.