Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] intrinsic"
2012 Mar 28
0
[LLVMdev] intrinsic
> Here is my problem:
> what does instrinsic / intrinsic function really means?
You probably need to look at http://llvm.org/docs/ExtendingLLVM.html.
Simply put, when you want to extend LLVM IR, say adding a new LLVM
instruction, you have better try to add a intrinsic function [1] which has
the same effect as the instruction you want to add.
I don't think they are the same
2012 Mar 28
1
[LLVMdev] Removing Intrinsic Functions
There are a few instrinsic functions I would like to remove, is this
possible? For example, the llvm.lifetime and llvm.dbg instrinsics?
You can't simply iterate over the funciton and remove the call
instructions, this causes issues. Is there a known structured way of doing
this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 May 12
3
sum elements in the vector
> why in order to add this particular instruction (sum elements in a vector) I need to add an insrinsic?
Adding intrinsic is not the only way, it is one of the way and user WILL-NOT be required to invoke
It specifically.
Currently LLVM does not have any instruction to directly represent “sum of elements in a vector” and
generate your particular instruction.However, you can do it without
2016 Apr 04
7
sum elements in the vector
My target has an instruction that adds up all elements in the vector and
stores the result in a register. I'm trying to implement it in my compiler
but I'm not sure even where to start.
I did look at other targets, but they don't seem to have anything like it (
I could be wrong. My experience with LLVM is limited, so if I missed it,
I'd appreciate if someone could point it out ).
2016 May 16
4
sum elements in the vector
This would be really cool. We have several instructions that perform horizontal vector operations, and have to use built-ins to select them as there is no easy way of expressing them in a TD file. Some like SUM for a ‘v4i32’ are easy enough to express with a pattern fragment, SUM ‘v8i16’ takes TableGen a long time to compute, but SUM ‘v16i8’ resulted in TableGen disappearing into itself for
2016 May 09
0
sum elements in the vector
I'm a little confused. Here is why.
I was able to add a vector add instruction to my target without using any
intrinsics and without adding any new instructions to LLVM. So here is my
question: how come I managed to add a new vector instruction without adding
an intrinsic and why in order to add this particular instruction (sum
elements in a vector) I need to add an insrinsic?
Another
2016 May 16
0
sum elements in the vector
I'm starting to think we should directly implement horizontal operations on
vector types.
My suspicion is that coming up with a nice model for this would help us a
lot with things like:
- Idiom recognition of reduction patterns that use horizontal arithmetic
- Ability to use horizontal operations in SLPVectorizer
- Significantly easier cost modeling of vectorizing loops with reductions
in
2015 Jan 07
4
[LLVMdev] ARM disassembler
Hi,
I am newbie for LLVM. I need some help,
I want to disassemble ARM binaries and perform some operation on LLVM IR
and again back to generate ARM binary from modified ARM LLVM IR. How I can
proceed for the same.
Any tool or document will be highly appreciated.
Thanks and Regards,
Deep
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Feb 22
2
[LLVMdev] Intrinsic annotation doesn't work with C++ files
Hi all,
I need to use annotate inside the C++ code and want to know why doesn't it
work? How can I modify my sources to use annotate inside the C++ code too?
Thanks in advance.
Sincerely,
Hripsime.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120222/21e75ec8/attachment.html>
2016 Jan 23
2
Decompilation and the SSA form
Hi,
Is decompilation possible in general to the SSA form for binaries? I assume
one has to make certain assumptions about code in general to get tools like
these to work. For example if code like with dlsym or jit heap allocated
functions can be incorporated at runtime it would seem that in general it
is quite difficult to ascertain the boundaries of a basic block and insert
the correct phi
2012 Jul 16
2
[LLVMdev] what is "intrinsic"?
hi,
i found the term "intrinsic" in some LLVM docs i am reading, and
nowhere explains what that means.
i did try to google, but nothing helpful came up. anybody please help?
many thanks,
Jun
2015 Mar 13
2
[LLVMdev] Lifting ASM to IR
> On Thu, Mar 12, 2015 at 05:44:02PM -0700, Daniel Dilts wrote:
>> Does there exist a tool that could lift a binary (assembly for some
>> supported target) to LLVM IR? If there isn't, does this seem like
>> something that would be feasible?
There's plenty of variations on the idea: Revgen/S2E, Fracture, Dagger
(my own), libcpu, several closed-source ones used by
2009 Dec 08
2
[LLVMdev] LLVM intrinsic for SSE ANDPS instruction
Hi,
LLVM is used to have an llvm.x86.and_ps instrinsic for the ANDPS
instruction, but it seems to be gone, and it is a bit hard to
synthetize it from vector instructions, since 'and' only works on vectors of
integer types. Would a patch be accepted which adds this and related
instructions back ?
Zoltan
-------------- next part --------------
An HTML attachment was
2018 Sep 24
4
Writing simple intrinsic in clang
I want to write a simple backend-specific instrinsic that will just call an
instruction. How should I do that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180924/7faeeb3d/attachment.html>
2007 Mar 31
6
[LLVMdev] About implementing new intrinsic
Hi,
I want to implement a new intrinsic in llvm that will denote a
parallel section within a function. I followed the documentation for
extending llvm (http://llvm.org/docs/ExtendingLLVM.html) but there is
something about the working mechanism that is not clear for me.
1. Why do we have to add support for the C backend? Is this only
necessary to transform the llvm assembly (bytecode) into C code
2016 Mar 05
2
[AMDGPU] non-hsa intrinsic with hsa target
Dear Developers,
I compiled a OpenCL kernel before (on Nov. last year) like
__kernel void g(__global float* array)
{
array[get_global_id(0)] = 1;
}
with libclc, which would originally use the instrinsics like
llvm.r600.read.local.size.x().
I executed the generated object file with one version of the hsa-runtime
[1] provided by Mr. Stellard, when there was more than one workgroup, the
output
2013 Oct 31
3
[LLVMdev] llvm.sqrt intrinsic undefined behaviour
Hi all,
I'm working on a language in which I would like all operations to be
well defined. (and efficient)
I want to define a sqrt function in my language, that will return NaN
for arguments < 0, and NaN for a NaN argument.
As far as I know, these semantics map nicely to the SQRTPS SSE
instruction, which seems to return NaN on arguments < 0.
However, the LLVM lang ref states
2015 Mar 13
3
[LLVMdev] Lifting ASM to IR
On 3/12/15 8:14 PM, Daniel Dilts wrote:
> On Thu, Mar 12, 2015 at 6:33 PM, Ahmed Bougacha
> <ahmed.bougacha at gmail.com <mailto:ahmed.bougacha at gmail.com>> wrote:
>
> > On Thu, Mar 12, 2015 at 05:44:02PM -0700, Daniel Dilts wrote:
> >> Does there exist a tool that could lift a binary (assembly for some
> >> supported target) to LLVM IR?
2012 Feb 24
0
[LLVMdev] Intrinsic annotation doesn't work with C++ files
Hello again,
I really need to know how to make llvm understand the annotate in C++ code
or to write a new Intrinsic by myself. I tried to add a new Intrinsic
corresponding to the ExtendingLLVM doc instructions, but it is too opaque
and I faild.
Please, advise me if you can.
Sincerely,
Hripsime.
On Wed, Feb 22, 2012 at 6:35 PM, Hripsime Matevosyan
<hripsime.m at gmail.com>wrote:
> Hi
2012 May 18
3
[LLVMdev] Adding a New Instruction to LLVM IR
Hello;
I was planning to add a new instruction to the LLVM IR (and later to MIPS
backend) for TLS(Thread level speculation) support. For this I tried to
follow the steps described in http://llvm.org/docs/ExtendingLLVM dot
html#instruction.
But I could not find any llvm/lib/AsmParser/Lexer.l
and llvm/lib/AsmParser/llvmAsmParser.y file in both the svn repository and
the source code downloaded