similar to: [LLVMdev] The question about how to refer an element in a pointer array by a dynamic index by IR

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] The question about how to refer an element in a pointer array by a dynamic index by IR"

2007 Feb 21
6
CPU stats problem
HI there, I?ve discovered DTrace few days ago and I?m currently stuck on a cpu stats problem. I?m trying to poll the cpu_t.cpu_acct[] array to pull idle, system and user values. So, I made this little script: ------------------------------------------------------------------------------------------------------ #!/usr/sbin/dtrace -s #pragma D option quiet this uint64_t start; this hrtime_t
2012 Jun 04
0
[LLVMdev] probleam about ThreadLocalImpl of llvm
Hi, > I am very sorry to trouble you, but I need your help about my problem about > ThreadLocalImpl in llvm of 2.8 version. this is a very old version of LLVM, I suggest you try something newer, eg the recently released version 3.1. Best wishes, Duncan. I have compiled it in Windows xp with > mingw, and have compiled skyeye(an open source project about simulator) as it > uses
2012 Jun 04
2
[LLVMdev] probleam about ThreadLocalImpl of llvm
Hi, everyone: I am very sorry to trouble you, but I need your help about my problem about ThreadLocalImpl in llvm of 2.8 version. I have compiled it in Windows xp with mingw, and have compiled skyeye(an open source project about simulator) as it uses llvm. But when I run a testcase ---- arm_hello, it came out segment fault. I used gdb.exe to trace it, it gave the following infomation: $
2012 Jun 13
2
[LLVMdev] The porting issue from llvm-2.8 to llvm-3.0
I try to port our project from llvm-2.8 to llvm-3.0, but some issue exist on the following code: #define getIntegerType(x) (IntegerType::get(_CTX(), x)) Value *int_enable = BinaryOperator::Create(Instruction::And, v_cpsr, ConstantInt::get(getIntegerType(4), 0x80), "", bb_dispatch) The llvm complains the following error message: error: incomplete type 'llvm::ConstantInt'
2008 May 08
0
[LLVMdev] Vector code
Hi Matthijs, Yes, I've turned off the link-time optimizations (otherwise it just propagates my constant vectors and immediate prints the result). :-) Here's essentially what I try to generate: void add(float z[4], float x[4], float y[4]) { z[0] = x[0] + y[0]; z[1] = x[1] + y[1]; z[2] = x[2] + y[2]; z[3] = x[3] + y[3]; } And here's part of the output from the online
2008 May 08
2
[LLVMdev] Vector code
llvm does not automatically vectorize your scalar code (as least for now). You have to write gcc generic vector code or use vector builtins. Evan On May 8, 2008, at 1:46 PM, Nicolas Capens wrote: > Hi Matthijs, > > Yes, I've turned off the link-time optimizations (otherwise it just > propagates my constant vectors and immediate prints the result). :-) > > Here's
2008 May 08
3
[LLVMdev] Vector code
Hi Nicolas (at least, I suspect your signing of your mail with "Anton" was not intentional :-p), > I assume that's the same as the online demo's "Show LLVM C++ API code" > option (http://llvm.org/demo/)? I've tried that with a structure containing > four floating-point components but it also appears to add them individually > using extract/insert. Maybe
2010 Jul 13
1
[LLVMdev] The question of sext instruction implementation
I saw the description in llvm documenattion for sext is as the following : -- sext (CST to TYPE) Sign extend a constant to another type. The bit size of CST must be smaller or equal to the bit size of TYPE. Both types must be integers. But in the code of llvm-2.6, the judge condition just allow smaller to the bit size of TYPE as the following : case Instruction::SExt: return
2010 Nov 14
2
[LLVMdev] Is it possible to run llvm on mips machine?
I like to get the support of llvm runtime so that I can run some VM that depends on llvm. I googled porting keyword and also simply try to cross compile llvm. Just like to know is it possbile ? Does any modification needed? Thanks MK -- www.skyeye.org
2011 Oct 24
1
[LLVMdev] if llvm can translate and generate the function in parallel with multithread
We try to use llvm to translate and generate the native code in parallel with multi-thread. But some various bugs will be triggered. We run the following code in multithread environment: ################## BasicBlock::Create(_CTX(), "dispatch", cpu->cur_func, 0); BranchInst::Create(bb_start, label_entry); cpu->exec_engine->getPointerToFunction ##################3 And cpu
2010 Nov 17
2
[LLVMdev] Is it possible to run llvm on mips machine?
On Wed, Nov 17, 2010 at 4:30 PM, James Molloy <James.Molloy at arm.com> wrote: > Hi, > > There are numerous emails flying around the list at the moment regarding the state of the JIT. In its current state it is infeasible to add support for another architecture (very difficult to say the least) - there are plans currently being formulated to deal with this and convert the JIT to the
2015 Mar 05
4
[LLVMdev] global variable
Hi all, I am newbie for llvm. I just create a global variable, there are some statements in my pass like: LoadInst* int64_64 = new LoadInst(pthreadPID, "", false, OptAplusOne); int64_64->setAlignment(8); int64_64->dump(); LoadInst* int32_65 = new LoadInst(gvar_int32_myFlag, "", false, OptAplusOne); int32_65->setAlignment(4);
2005 Jan 27
1
[LLVMdev] Question about inserting IR code
Hi, From the file HowToUseJIT.cpp, I learned how to insert some calcuation IR code like Add/Sub/Mul etc by using Instruction *Add = BinaryOperator::createAdd(One, ArgX, "addresult", BB); By following this way, it works well when I insert some IR code whose operand is integer type like IntTy, however, when I tried to insert similar thing whose operands are float point, I got the
2011 Mar 14
2
[LLVMdev] How to load a data from the address of unsiged long type
Now I have an address that present in a unsigned long address like the following format: Value* addr = CONST(0xc0008000) But I do not know how to read the data from the above addr varaible. I tried the following three kind of code: 1. Code: Value* addr = CONST(0xc0008000); Value* data = new LoadInst(addr, "", false, bb); Error: Segmentation fault 2. Code(
2003 Nov 21
2
[LLVMdev] Need Help With Verifier
While it is great that LLVM has an IR Verifier, its a little troublesome to use because it separates the point of detection from the source of the problem. That is, the verifier gets run on a module or function after its been built. By that point, the compiler's state has moved past the point at which the error was placed into the module or function. Trying to track down the source of the
2012 Jun 12
2
[LLVMdev] Why always abort in verifyFunction?
On Mon, Jun 11, 2012 at 5:44 PM, Joey Gouly <joel.gouly at gmail.com> wrote: > Hi Xiu, > > The Verifier pass runs a PreVerifier pass, which does not honour the > action argument, > and will always abort on a broken module, (Line 106, > lib/VMCore/Verifier.cpp) > So the argument can not be used as described as the official document? I just want to make sure of that and
2008 May 09
0
[LLVMdev] Vector code
Hi Evan, Please note that I'm not trying to compile from C code, I try to generate functions at run-time directly. I want to keep it target-independent too, so I can't use intrinsics either. Cheers, -Nicolas -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Evan Cheng Sent: Thursday, 08 May, 2008 23:31 To: LLVM
2011 May 18
3
[LLVMdev] access array problem
Hi, I want to access an array in my instrumentation code. For example: GlobalVariable: int *counter; //counter the number of load/store operations in run-time int *counterArray; //record the load/store addresses //increase the counter if a load/store is performed std::vector<Constant *>index(2); index[0] = Constant::getNullvalue(Type:getInt32Ty(Context)); index[1] =
2009 Nov 13
2
[LLVMdev] how to define a 24-bits register class
hi every one, i have a very strange cpu that have 24-bits reigsters, but i cant see i24 in machine value type? and if defining it as MVT others will be ok? thank you very much
2010 Nov 17
3
[LLVMdev] Is it possible to run llvm on mips machine?
On Wed, Nov 17, 2010 at 12:11 AM, Bruno Cardoso Lopes <bruno.cardoso at gmail.com> wrote: > Hi, > > On Sun, Nov 14, 2010 at 5:39 AM, Michael.Kang <blackfin.kang at gmail.com> wrote: >> I like to get the support of llvm runtime so that I can run some VM >> that depends on llvm. I googled porting keyword >> and also simply try to cross compile llvm. Just like