Displaying 20 results from an estimated 20000 matches similar to: "convert load with load from getElementPtr"
2016 Dec 28
1
llvm pass
I want to insert new alloca Instruction after existing alloca Instruction
in llvm pass so what attribute to be passed at last in following
newallocaI = new AllocaInst(llvm::Type::getInt32PtrTy(context,0), //type
0, // ArraySize
8, // Alignment
2016 Sep 28
5
ERROR:Segmentation fault
Hi Developer,
In my processor I am not using registers so I wrote Simple register.td file
with bare minimum functions.
But when I am registering my target with llvm it is showing "*Segmentation
Fault(core dumped)*" Error and also same error while generating table-gen
for asm-writer.
Some one told comment out EditRegesterName function. because this error is
due to EditRegisterName it
2016 Sep 23
2
Runtime error
Hi Developer,
I have wrote simple program called test.c as follows.
*int a, b;int main() {a=10;b=10;return a+b;}*
Compiled with clang command to produce test.ll file which is attached below,
*$clang -cc1 test.c -emit-llvm*
Now If I want to run with my own target for selection with *llc* with
command as follow getting error,
*COMMAND:$ ./llc -view-dag-combine1-dags -march=toy
2016 Nov 23
3
Generation of IR for MyTarget
Hi Developers,
I have written C program and want to generate IR file for Specific Target I
have tried with following command but got a error as follows,
COMMAND:
*clang -S -emit-llvm -march=leg ~/llc-test-examples/ex9.c -o
~/llc-test-examples/ex9.ll*
ERROR:
*error: unknown target CPU 'leg'*
So any please help me what all other step should I do previously to get my
*leg* target in clang.
2016 Nov 07
2
About trigonometric Instructions
HI developers,
I want to add trigonometric instructions in my instrinfo.td files how can
i directly map these instructions in .td files. Please help me Guys.For
Sin, Cos, Tan and Cot Instructions.
If I used llvm.sin.* as SDNode Then it is error as llvm variable is not
defined SO please Help me.
Thanks and Regards
Varun
-------------- next part --------------
An HTML attachment was scrubbed...
2016 Oct 28
1
Error while generating codeemmiter.inc
Hi Developer,
While generating CodeEmitter.inc I got following error which i am attaching
as screen short as follows
Please help me guys.
If you want other info I will provide you guys
Thanks and Regards
Varun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161028/29ec72e6/attachment-0001.html>
2008 May 02
4
[LLVMdev] Pointer sizes, GetElementPtr, and offset sizes
The LLVA and LLVM papers motivate the GetElementPtr instruction by arguing
that it abstracts implementation details, in particular pointer size, from
the compiler. While it does this fine for pointer addresses, it does not
manage it for address offsets. Consider the following code:
$ cat test.c
int main() {
int *x[2];
int **y = &x[1];
return (y - x);
}
$ llvm-gcc -O3 -c test.c
2008 May 02
0
[LLVMdev] Pointer sizes, GetElementPtr, and offset sizes
On Fri, May 2, 2008 at 1:22 PM, Marc de Kruijf <dekruijf at cs.wisc.edu> wrote:
> The LLVA and LLVM papers motivate the GetElementPtr instruction by arguing
> that it abstracts implementation details, in particular pointer size, from
> the compiler. While it does this fine for pointer addresses, it does not
> manage it for address offsets. Consider the following code:
>
>
2009 Jul 22
2
[LLVMdev] proposed new rule for getelementptr
On Jul 22, 2009, at 12:33 PM, David Greene wrote:
> On Wednesday 22 July 2009 13:30, Dan Gohman wrote:
>
>
>> - A pointer value formed by a ptrtoint is associated with all
>> address
>>
>> ranges of all pointer values that contribute (directly or
>>
>> indirectly) to the computation of the pointer's value.
>>
>
> Do you mean
2009 Jul 22
0
[LLVMdev] proposed new rule for getelementptr
On Wednesday 22 July 2009 13:30, Dan Gohman wrote:
> - A pointer value formed by a ptrtoint is associated with all address
> ranges of all pointer values that contribute (directly or
> indirectly) to the computation of the pointer's value.
Do you mean inttoptr here? And that "all pointer values that contribute
(directly or indirectly) to the computation of the
2013 Oct 14
0
[LLVMdev] Building for a specific target, corei7
Hi Varun,
I see the point of your question, but I'm not the best person to answer from that perspective.
Nadav Rotem is the owner of the x86 backend, and he can probably give you a more complete answer than I could.
Thanks,
Andy
From: Varun Agrawal [mailto:vagrawal at cs.stonybrook.edu]
Sent: Friday, October 11, 2013 8:48 PM
To: Kaylor, Andrew; llvmdev at cs.uiuc.edu
Subject: RE: Building
2019 Feb 24
3
getelementptr inbounds with offset 0
Hi all,
What exactly are the rules for `getelementptr inbounds` with offset 0?
In Rust, we are relying on the fact that if we use, for example, `inttoptr` to
turn `4` into a pointer, we can then do `getelementptr inbounds` with offset 0
on that without LLVM deducing that there actually is any dereferencable memory
at location 4. The argument is that we can think of there being a zero-sized
2013 Oct 12
2
[LLVMdev] Building for a specific target, corei7
Hi Andrew,
I think I diluted my question. My question was not related to MCJIT.
I ran the following 4 scenarios:
(1)gcc -mcpu=corei7 tetris.c -o tetris
(2)gcc -mcpu=athlon64 tetris.c -o tetris
(3)clang -march=corei7 tetris.c -o tetris
(4)clang -march=athlon64 tetris.c -o tetris
In (1) and (2), I see difference in order of instructions in the output binaries, which I expected because every CPU
2006 Feb 01
2
IE memory fix leak.
By default the prototype.js gives us the function
/* prevent memory leaks in IE */
Event.observe(window, ''unload'', Event.unloadCache, false);
But there is no unload event in out application as the content of the div
keeps changing using the Ajax.Updater function. To handle such a scenario,
we''ve added the following lines of code to prototype.js
/* prevent
2017 Oct 26
2
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
Hi Hal,
Thanks for your hint!
$ /opt/llvm-svn/bin/opt -S -internalize
-internalize-public-api-list=main -globaldce hello3.ll -o
hello3.dce.ll it works :)
But I argue that `main` Function should be inserted into ExternalNames
by default:
Index: lib/Transforms/IPO/Internalize.cpp
===================================================================
--- lib/Transforms/IPO/Internalize.cpp
2009 Jul 22
0
[LLVMdev] proposed new rule for getelementptr
On Wednesday 22 July 2009 15:05, Dan Gohman wrote:
> The intent is to cover code like this:
>
> %p = alloca i32
> %q = inttoptr i64 0123456789 to i32*
>
> Here, %p and %q are assumed to be non-aliasing. This kind of thing
> is used by some JITs; they allocate objects via custom mechanisms
> and then tell LLVM IR about the address of the objects via magic
>
2006 Jan 28
4
Unspecified error in prototype.js
Hi,
1. I have 2 panes, each having approximately 45-50 slides, all the
slide images are 110x82 pixels in size, enclosed in their respective div''s.
2. These divs are further enclosed in a parent div, which is defined as
a Sortable on page load.
3. There is a destination div on the RHS also.
Sortable.create("div_leftDiv", {ghosting:true, revert: true,
dropOnEmpty:true,
2013 Oct 11
0
[LLVMdev] Building for a specific target, corei7
Hi Varun,
Have you tried your experiment with icc by any chance?
The MCJIT component does not assume that you will be executing the generated code on the host system because it can be used to generate code for external targets. However, you can specify the CPU by calling setCPU() on the EngineBuilder object before creating your execution engine. (You can use sys::getHostCPUName() to figure out
2012 Jul 31
3
[LLVMdev] [DragonEgg] Mysterious FRAME coming from gimple to LLVM
Hi Duncan,
A DragonEgg/GCC-related question: do you know where these strange FRAME
tokens originate from (e.g. %struct.FRAME.matmul)? Compiling simple Fortran
code with DragonEgg:
> cat matmul.f90
subroutine matmul(nx, ny, nz)
implicit none
integer :: nx, ny, nz
real, dimension(nx, ny) :: A
real, dimension(ny, nz) :: B
real, dimension(nx, nz) :: C
integer :: i, j, k
real,
2006 Feb 07
1
onHover: can u explain me this function ?
In Sortables, we have a function onHover:
onHover: function(element, dropon, overlap) {
if(overlap>0.5) {
Sortable.mark(dropon, ''before'');
if(dropon.previousSibling != element) {
var oldParentNode = element.parentNode;
element.style.visibility = "hidden"; // fix gecko rendering