Displaying 3 results from an estimated 3 matches for "work_demo".
2017 Apr 08
2
How to insert vector type input parameter for function in C/C++ API?
...turn type, input parameters) for
IRBuiler by C/C++ APIs?
I don't see any example online and please let me know if anybody has
examples.
SOURCE:
#include "immintrin.h"
__m256i sum(__m256i a, __m256i b) {
return a+b;
}
TARGET:
michael at michael-Precision-Tower-3420:~/Year_2017/work_DEMO$ cat avx2_add2.ll
; ModuleID = 'avx2_add2.c'
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-windows-cygnus"
; Function Attrs: nounwind
define <4 x i64> @sum(<4 x i64> %a, <4 x i64> %b) #0 {
%1 = alloca <...
2017 Apr 08
3
How to insert vector type input parameter for function in C/C++ API?
...>>
>>>> SOURCE:
>>>> #include "immintrin.h"
>>>> __m256i sum(__m256i a, __m256i b) {
>>>> return a+b;
>>>> }
>>>>
>>>> TARGET:
>>>> michael at michael-Precision-Tower-3420:~/Year_2017/work_DEMO$ cat
>>>> avx2_add2.ll
>>>> ; ModuleID = 'avx2_add2.c'
>>>> target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
>>>> target triple = "x86_64-unknown-windows-cygnus"
>>>>
>>>> ; Function Attrs...
2017 Apr 08
2
How to insert vector type input parameter for function in C/C++ API?
...let me know if anybody has
>> examples.
>>
>>
>>
>> SOURCE:
>> #include "immintrin.h"
>> __m256i sum(__m256i a, __m256i b) {
>> return a+b;
>> }
>>
>> TARGET:
>> michael at michael-Precision-Tower-3420:~/Year_2017/work_DEMO$ cat
>> avx2_add2.ll
>> ; ModuleID = 'avx2_add2.c'
>> target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
>> target triple = "x86_64-unknown-windows-cygnus"
>>
>> ; Function Attrs: nounwind
>> define <4 x i64> @sum(...