search for: extendingllvm

Displaying 20 results from an estimated 75 matches for "extendingllvm".

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 from the website. Could you tell me what are the files that need to be modified to add a new token to parse my instructio...
2016 Jul 05
2
Adding a NOP bitcode instruction
Hi, I'm trying to follow the instructions on how to add a new bitcode instruction: http://llvm.org/docs/ExtendingLLVM.html This is my first foray into the guts of LLVM and I'm not sure I'm doing things the right way. I came up with a patch that adds a NOP (no operation) that will work with llvm-as, llvm-dis, and lli. It would be nice if one of the experts could take a look and give some quick feedback: ht...
2018 May 14
2
Adding new a new type
I was reading: https://llvm.org/docs/ExtendingLLVM.html And am heeding the warnings that come with new (derived) types. I'm trying to use LLVM to model chemicals. More specifically, there are several reactive groups that exist: salts, bases, acids, etc. that adequately represent their respective values. I, for obvious reasons, want to manif...
2014 Oct 27
4
[LLVMdev] Adding masked vector load and store intrinsics
we just follow a common recommendation to start with intrinsics: http://llvm.org/docs/ExtendingLLVM.html - Elena From: Owen Anderson [mailto:resistor at mac.com] Sent: Sunday, October 26, 2014 23:57 To: Demikhovsky, Elena Cc: llvmdev at cs.uiuc.edu; dag at cray.com Subject: Re: [LLVMdev] Adding masked vector load and store intrinsics What is the motivation for using intrinsics versu...
2014 Oct 05
2
[LLVMdev] extending LLVM - basic block reordering
​Hi. I want to change order of code basic blocks in memory. I visited " http://llvm.org/docs/ExtendingLLVM.html" page and it advised me to ask it before any effort. What parts of LLVM help me and how? I am a newbie on LLVM. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141005/908e517a/attachment.htm...
2019 Mar 26
2
Implement LLVM Intrinsics in C/LLVM IR
Have you looked at these? https://llvm.org/docs/LangRef.html https://llvm.org/docs/ExtendingLLVM.html On Tue, Mar 26, 2019 at 9:06 AM div code via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Of course, in this sense they are not platform-dependent. I just want to > write a semantics-correct version of such intrinsics and let my static > analyzer goes smoothly. > > On...
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 by using the library APIs? 2. Is the support that we add for the specific target the...
2011 Jun 30
1
[LLVMdev] SDNode enum
Hi, The document for "Adding a new SelectionDAG node" ( @ http://llvm.org/releases/2.9/docs/ExtendingLLVM.html#sdnode ) says, "1. include/llvm/CodeGen/SelectionDAGNodes.h: Add an enum value for the new SelectionDAG node." Where exactly shall one add the info for new SelectionDAG ? I dont see enums for other SDnodes too. Please help. Regards, Ankur
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>
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 all, > > I need to use annotate inside the C++ code and want to know why doesn't it...
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 as GCC built-in. Regards, chenwj [1] http://llvm.org/doc...
2012 Mar 28
3
[LLVMdev] intrinsic
Hi,all. I've been reading the llvm source code for some days. Here is my problem: what does instrinsic / intrinsic function really means? Are these "the function belong to llvm and just belong to llvm"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2018 May 14
0
Adding new a new type
On 5/14/2018 4:18 PM, Jason Ott via llvm-dev wrote: > I was reading: https://llvm.org/docs/ExtendingLLVM.html > > And am heeding the warnings that come with new (derived) types. > > I'm trying to use LLVM to model chemicals.  More specifically, there > are several reactive groups that exist: salts, bases, acids, etc. that > adequately represent their respective values.  I, for...
2012 Jul 13
4
[LLVMdev] adding new data types to llvm
Hello . I would like to add new custom data type to llvm C parser, I use LLVM/Clang version 3.1. Adding new type instructions from llvm.org site are out of date (http://llvm.org/docs/ExtendingLLVM.html#type). Could you please provide me with guidance? Thanks in advance, Edvard  -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120713/a4cd12db/attachment.html>
2016 Oct 30
2
Adding assembly instructions to LLVM
...n my C code I'm going to use inline assembly, so the only thing I need from LLVM is to recognize the instruction and put it in the binary in the right place with correct input values/register addresses. I tried to add a simple ADD instruction, following the instructions in http://llvm.org/docs/ExtendingLLVM.html#adding-a-new-instruction and just duplicating everything I saw for the ADD instruction for my instruction. The problem is that this page doesn't explain where I should add the opcode for my instruction. I've been reading the documents and the source code for several days now and I fee...
2018 May 14
3
Adding new a new type
...s that up to a python script and handle typing up there. I just want to make sure this is accurate. On Mon, May 14, 2018 at 4:27 PM, Friedman, Eli <efriedma at codeaurora.org> wrote: > On 5/14/2018 4:18 PM, Jason Ott via llvm-dev wrote: > >> I was reading: https://llvm.org/docs/ExtendingLLVM.html >> >> And am heeding the warnings that come with new (derived) types. >> >> I'm trying to use LLVM to model chemicals. More specifically, there are >> several reactive groups that exist: salts, bases, acids, etc. that >> adequately represent their respe...
2016 May 28
4
sum elements in the vector
...gt; 4. Provide default expansion of the xyz() intrinsic >> >> 5. Legalize type and/or operation >> >> 6. Provide Lowering of intrinsic/SDNode to generate your target >> instruction >> >> >> >> You can visit http://llvm.org/docs/ExtendingLLVM.html for details. >> >> >> >> Regards, >> >> Shahid >> >> >> >> >> >> >> >> *From:* llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] *On Behalf Of *Rail >> Shafigulin via llvm-dev >> *Sent:* Monday,...
2005 May 11
0
[LLVMdev] avoid live range overlap of "vector" registers
...of date and doesn't make a ton of sense for your application. I would suggest that you implement it in the context of the SelectionDAG framework that all of the code generators either currently use or are moving to. I updated the documentation here: http://llvm.cs.uiuc.edu/ChrisLLVM/docs/ExtendingLLVM.html#intrinsic This will allow you to do something like this: %i32v4 = type <4 x uint> %f32v4 = type <4 x float> declare %f32v4 %swizzle(%f32v4 %In, %i32v4 %Form) %G = external global %f32v4 void %test() { %A = load %f32v4* %G %B = call %f32v4 %swizzle(%f32v4 %A,...
2016 May 27
0
sum elements in the vector
...> SelectionDagBuilder.cpp > > 4. Provide default expansion of the xyz() intrinsic > > 5. Legalize type and/or operation > > 6. Provide Lowering of intrinsic/SDNode to generate your target > instruction > > > > You can visit http://llvm.org/docs/ExtendingLLVM.html for details. > > > > Regards, > > Shahid > > > > > > > > *From:* llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] *On Behalf Of *Rail > Shafigulin via llvm-dev > *Sent:* Monday, April 04, 2016 11:00 PM > *To:* Das, Dibyendu > *Cc:* llvm...
2017 Dec 11
2
New x86 instruction with opcode 0x0F 0x7A
...cept the existence of the new instruction passed in inline assembly and output the correct opcode and registers. I chose the two-byte opcode 0x0F 0x7A and I would like the instruction to have the same operands and return values as CVTPS2PI instruction. I have found this link (https://llvm.org/docs/ExtendingLLVM.html) which claims "Before you invest a significant amount of effort into a non-trivial extension, *ask on the list*" so that's what I'm doing. I would like to know which of the solutions would work in my case and what's the easiest way to achieve my goal. Thank you very much...