similar to: JIT: Mapping global variable in JIT'ted code to variable in running program

Displaying 20 results from an estimated 700 matches similar to: "JIT: Mapping global variable in JIT'ted code to variable in running program"

2011 Dec 28
3
[LLVMdev] InstCombine "pessimizes" trunc i8 to i1?
>> Hi! >> >> before InstCombine (llvm::createInstructionCombiningPass()) I have >> a trunc from i8 to i1 and then a select: >> >> %45 = load i8* @myGlobal, align 1 >> %tobool = trunc i8 %45 to i1 >> %cond = select i1 %tobool, float 1.000000e+00, float -1.000000e+00 >> >> after instCombine I have: >> >> %29 = load i8*
2011 Dec 29
0
[LLVMdev] InstCombine "pessimizes" trunc i8 to i1?
I think Chris is saying that the and is necessary because with your i1 trunc you're ignoring all of the high bits. The and implements that. If you don't want this behavior, don't generate the trunc in the first place and just compare the full width to zero. Reid On Wed, Dec 28, 2011 at 6:45 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de>wrote: > > >> Hi! >
2011 Dec 27
2
[LLVMdev] InstCombine "pessimizes" trunc i8 to i1?
Hi! before InstCombine (llvm::createInstructionCombiningPass()) I have a trunc from i8 to i1 and then a select: %45 = load i8* @myGlobal, align 1 %tobool = trunc i8 %45 to i1 %cond = select i1 %tobool, float 1.000000e+00, float -1.000000e+00 after instCombine I have: %29 = load i8* @myGlobal, align 1 %30 = and i8 %29, 1 %tobool = icmp ne i8 %30, 0 %cond = select i1 %tobool, float 1.000000e+00,
2011 Dec 28
0
[LLVMdev] InstCombine "pessimizes" trunc i8 to i1?
On Dec 27, 2011, at 5:09 AM, Jochen Wilhelmy wrote: > Hi! > > before InstCombine (llvm::createInstructionCombiningPass()) I have > a trunc from i8 to i1 and then a select: > > %45 = load i8* @myGlobal, align 1 > %tobool = trunc i8 %45 to i1 > %cond = select i1 %tobool, float 1.000000e+00, float -1.000000e+00 > > after instCombine I have: > > %29 = load i8*
2016 Dec 21
2
Correct way to pass int128 from LLVM to C++ function (MSVC)
Hi, I've been attempting to call a C++ function from LLVM code. The LLVM code is JIT'ted and executed from C++. Basically my idea was as follows: -- LLVM IR code - ; ModuleID = 'native' define i32 @main(i32, i8**) { code: call void @"Helper::Test"(i128 128932) ret i32 0 -- C++ code - struct int128 { uint64_t v1; uint64_t v2; // ... code omitted... *1
2016 Dec 21
0
Correct way to pass int128 from LLVM to C++ function (MSVC)
The Windows x64 ABI rules say that anything larger than 8 bytes is passed by reference.[1] Because MSVC doesn't support the __int128 type on x64, nobody has made sure that the LLVM i128 type is passed in a way that follows the local ABI rules. I think LLVM should probably pass i128 the same way it passes <2 x i64> on Win64, which is indirectly in memory. Until LLVM is fixed, you can
2011 Apr 17
2
[LLVMdev] Error compiling ConstantProp.cpp
I am using llvm-2.6 and the ConstProp.cpp file is http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html and the exact error message is: llvm[0]: Compiling ConstantProp.cpp for Release build (PIC) /home/tarun/Desktop/compiler/LLVM/llvm-2.6/include/llvm/Analysis/ConstantFolding.h: In member function ‘virtual bool<unnamed>::ConstantPropagation::runOnFunction(llvm::Function&)’:
2011 Apr 17
4
[LLVMdev] Regarding BasicBlock Cloning
The clone llvm:CloneBasicBlock copies the phi function in the replicated basic block from the original basic block. I don't want the copy of phi in relplicated block. For now I am creating .bc file with -O0 option so that it doesn't generate phi function in first place. Is this a good approach or there are some other function available for it. Tarun On Sun, Apr 17, 2011 at 5:22 AM, Eli
2011 Apr 17
0
[LLVMdev] Error compiling ConstantProp.cpp
On Sat, Apr 16, 2011 at 5:27 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote: > I am using llvm-2.6  and the ConstProp.cpp file is > http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html > > and the exact error message is: > > llvm[0]: Compiling ConstantProp.cpp for Release build  (PIC) >
2011 Apr 17
2
[LLVMdev] Error compiling ConstantProp.cpp
While compiling the ConstantProp.cpp I am getting the following error. error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*) Regards Tarun -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 May 03
2
[LLVMdev] Trace Use-Def chain
Hi, I need to get all the basic blocks that are there, in the path from definition of an instruction to use of that instruction. Regards Tarun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110503/4d3852b7/attachment.html>
2011 May 04
2
[LLVMdev] Trace Use-Def chain
On 5/3/11 4:08 PM, tarun agrawal wrote: > HI > > I know it is a very simple question not worth asking here but I am > really struggling pls help me out.. This is a question worth asking; it's just that not everyone can answer all the time. :) If all you want to do is to follow the SSA def-use chain within a single function, then this is very easy. All you have to do is use
2011 May 04
2
[LLVMdev] Trace Use-Def chain
Thanks John, I know how to iterate through def-use chains and I also have realized the need for an algorithm to do the work. But the algorithm I am able to figure out is not linear in time. It wold be a great help if someone suggest me a way to get all basic-block along all path between two instruction. On Wed, May 4, 2011 at 7:00 AM, John Criswell <criswell at illinois.edu> wrote: >
2012 Feb 25
2
[LLVMdev] Algorithm used for doing alias analysis.
Hi, I am using alias analysis to determine whether two values are alias or not. But I am not able to figure out the algorithm that is being used to determine May , Must and No Alias. Thanks and Regards Tarun Agrawal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120225/e06daae7/attachment.html>
2011 May 03
1
[LLVMdev] Error compiling ConstantProp.cpp
Hi While compiling the ConstantProp.cpp I am getting the following error. error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction( llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*) I am using llvm-2.6 and the ConstProp.cpp file is http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html and the exact error message is: llvm[0]: Compiling
2011 Apr 16
3
[LLVMdev] Regarding BasicBlock Cloning
Hi, I am writing a pass for constant propagation using graph restructuring ( code duplication). I am facing following difficulties.. 1) I need to replicate the basic block but without phi function in the replicated block. How can I do this. 2) I need to insert that basic block after and before some particular basic block. Regards Tarun Agrawal -------------- next part -------------- An HTML
2011 Apr 17
0
[LLVMdev] Error compiling ConstantProp.cpp
On Sat, Apr 16, 2011 at 5:07 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote: > While compiling the ConstantProp.cpp I am getting the following error. > > error: too few arguments to function ‘llvm::Constant* > llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const > llvm::TargetData*) If you're reporting a build error, please include the
2003 Oct 12
3
Is this Hardaware Enough for Asterisk ?
An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20031012/59c113df/attachment.htm -------------- next part -------------- Hello, We are planning to buy following Hardware for Asterisk TestBed. Please let me know if this seems fine to you. 1. IP Phones ( 5 in number) CISCO 7940/7960, SNOM 200, Pingtel xpressa 2. Wildcard T100P interface card,
2012 Jan 09
3
[LLVMdev] Dynamic Analysis
Hi, I want to find the dynamic slice of a given code. Is this already implemented in LLVM?. If not which functions are there in the LLVM to do dynamic analysis.
2011 May 03
0
[LLVMdev] Trace Use-Def chain
HI I know it is a very simple question not worth asking here but I am really struggling pls help me out.. On Tue, May 3, 2011 at 10:10 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote: > Hi, > > I need to get all the basic blocks that are there, in the path from > definition of an instruction to use of that instruction. > > > Regards > Tarun > --------------