Displaying 8 results from an estimated 8 matches similar to: "LLVM FunctionType cannot be returned as VectorType?"
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.
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:
2017 Apr 08
3
How to insert vector type input parameter for function in C/C++ API?
Fantastic! It's working! Thank you so much Craig!!!
On Fri, Apr 7, 2017 at 6:05 PM, Craig Topper <craig.topper at gmail.com> wrote:
> It should be VectorType::get(Type::getInt32Ty(Context),4). You need the
> word "get" after VectorType::
>
> ~Craig
>
> On Fri, Apr 7, 2017 at 6:01 PM, Michael Choi <choimichael103 at gmail.com>
> wrote:
>
2017 Apr 08
2
How to insert vector type input parameter for function in C/C++ API?
I am working on AVX2 code generation by LLVM framework.
I want to generate LLVM-IR code for the following code by C/C++ API from
LLVM framework. I am using LLVM3.8.
Basically, I want to generate TARGET (Refer to below) LLVM-IR code for
SOURCE function by C/C++ API.
As you see below, the AVX2 data type is __m256i which is vector type. How
can I indicate vector type (function return type, input
2017 Apr 08
2
How to insert vector type input parameter for function in C/C++ API?
Thank you so much Craig!
I tried it. But still complaining. Here is the error message during
compilation.
HowToUseJIT_SIMD_FuncProto.cpp:94:55: error: expected unqualified-id
VectorType::(Type::getInt32Ty(Context),4),
THIS IS MY CODE:
LLVMContext Context;
std::unique_ptr<Module> Owner = make_unique<Module>("test", Context);
Module *M = Owner.get();
Function
2020 May 19
5
[PATCHv2] SSE2/SSSE3 optimized version of get_checksum1() for x86-64
I've read up some more on the subject, and it seems the proper way to
do this with GCC is g++ and target attributes. I've refactored the
patch that way, and it indeed uses SSSE3 automatically on supporting
CPUs, regardless of the build host, so this should be ideal both for
home builders and distros.
Getting the code to build right in c++ mode (checksum_sse2.cpp only)
was a bit of an
2019 Jun 10
2
[RFC] Expose user provided vector function for auto-vectorization.
> What is a `"logically"-widened alwaysinline wrapper for the vector function`? Can you provide an example? Also, what is the `tricky processing` you are referring to that the vectorizer should care about?
For the case mentioned earlier:
float MyAdd(float* a, int b) { return *a + b; }
__declspec(vector_variant(implements(MyAdd(float *a, int b)),