similar to: [LLVMdev] An explanation to ConstantInt

Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] An explanation to ConstantInt"

2013 Jan 20
1
[LLVMdev] Get the value of a GlobalVariable
Hi, I am executing a C program using JIT. When the program exits, the control comes back to my program which initiates the JIT. Now, I want to read the value(not the LLVM nomenclature) of a global variable (not the LLVM nomenclature). I am able to get the global variable, using the following command: GlobalVariable *my_global = Mod->getNamedGlobal("MY_GLOBAL"); I want to know 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
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
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
2013 Oct 11
2
[LLVMdev] Building for a specific target, corei7
Hi, I am using the LLVM JIT infrastructure (MCJIT). I wanted to see if there are any performance gains as the compiler can detect the target CPU at runtime. But, I didn't see any improvement (I compile with -no-mmx and -no-sse). I then tried an experiment, where I compiled the program with clang-3.3, with and without specifying the target cpu as "corei7". I was shocked to see that
2011 Jul 27
1
Interest in developement as a student
Hello. I am an undergraduate student studying computer science and I am interested in working in your Open Source projects. I read about you from TeachingOpenSource.org. I am, however, new to Open Source project development thus I am seeking a mentor and an opportunity to present my skills and make valuable contributions to your projects. Thanking you. -- Varun Agrawal B.Tech-II Computer
2011 Jul 13
2
[LLVMdev] overflow check
Hi, I have three constants (B, C and V) and V = B + C. I want to find out if B + C wraps around. The way I'll do it is, assuming B and C are both positive, to check if V < B or C. For this I need the values of B, C and V. I tried using APInt as below. *** If (isa<Constant> (B) && isa<Constant> (C) && isa<Constant>(V)) { ConstantInt *CV =
2013 Mar 17
0
[LLVMdev] Problem with executing recompileAndRelinkFunction successively
Hi, I am trying to recompile a function during runtime, using JIT compilation (not MCJIT). I choose JIT over MCJIT, because I only want to modify a single function and not the whole module. I am successfully able to recompile the function, but after that, the original function definition is lost. And if I try to recompile, it recompiles with the new function definition. I figured out two
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
2012 Feb 09
2
[LLVMdev] Your commit 149912 "Remove some dead code and tidy things up"...
Hi Chris, this was a very tempting commit to make, unfortunately it broke pattern matching of vectors of booleans. The problem is that a ConstantDataVector is only formed if the element type is one of i8, i16, etc. So vectors of funky types, or not so funky types like i1, are no longer matched. I noticed this while working on PR11948. The good thing is that the testcase there no longer crashes
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 Jun 25
4
[LLVMdev] get value
Hi Cristianno, Thank you, it works :) with an extra cast:                                     Value *v ......                                     ConstantInt* RR = (ConstantInt *)v;                                     uint64_t VV = (RR->getValue()).getLimitedValue();                                     errs()<<"\nRR  "<<VV<<"\n";
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
2012 Feb 10
0
[LLVMdev] Your commit 149912 "Remove some dead code and tidy things up"...
On Feb 9, 2012, at 1:22 PM, Duncan Sands wrote: > Hi Chris, this was a very tempting commit to make, unfortunately it broke > pattern matching of vectors of booleans. The problem is that a > ConstantDataVector is only formed if the element type is one of i8, i16, etc. > So vectors of funky types, or not so funky types like i1, are no longer > matched. I noticed this while working
2012 Feb 10
1
[LLVMdev] Your commit 149912 "Remove some dead code and tidy things up"...
Hi Chris, >> Hi Chris, this was a very tempting commit to make, unfortunately it broke >> pattern matching of vectors of booleans. The problem is that a >> ConstantDataVector is only formed if the element type is one of i8, i16, etc. >> So vectors of funky types, or not so funky types like i1, are no longer >> matched. I noticed this while working on PR11948. The
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
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.
2014 May 25
1
traffic distribution not happening in centos 6.5
Hi, I am experimenting with libnetfilter_queue. libnetfilter_queue is a userspace library providing an API to packets that have been queued by the kernel packet filter. I am using sample code(nfqnl_test.c) available on netfilter.org. I have generated two binaries (queue0 and queue1) using that nfqnl_test.c sample code. These binaries are working as per expected behaviour in case of Centos 6.2
2013 Aug 01
1
Xen "xenconsole error"
Hi, I was trying to attach console to my virtual node created by xen but I am getting the following error: *varun:~# xm console xenDomain1* *xenconsole: Could not read tty from store: No such file or directory.* I have tried starting the xenconsoled service but still I am facing the same problem. Can anyone please help me out with this one? Regards, Varun
2020 Jul 23
2
Explicitly spelling out the lack of stability for the C++ API in the Developer Policy?
Hi Nicolai, I think there are two distinct, somewhat loosely connected questions here: 1. Spelling out the (existing, implicit) policy explicitly in the documentation. 2. What the actual policy is and potentially changing it to make things easier for downstream. I started this thread with the intention of tackling 1 and not 2. I think the conversation around 2 is much harder as it will require