search for: ezengbin

Displaying 20 results from an estimated 26 matches for "ezengbin".

2011 Sep 23
3
[LLVMdev] statically link pass to clang
Hi all, A question about statically linking a pass to clang instead of dynamically loading it at runtime. I am stumped on this bug for a while. I inserted a pass under lib/Transforms/mypass directory, registered it with INITIALIZE_PASS and defined createMyPass in the pass. Also I added file mypass.h in include/llvm/Transforms/ to expose the accessor functions that expose my passes. Entries are
2011 Oct 06
1
[LLVMdev] A potential bug
If int_guard_load returns a pointer based on the passed-in pointer, it captures it (at least according to the definition of "capture" which NoCapture uses). -Eli On Thu, Oct 6, 2011 at 2:26 PM, Zeng Bin <ezengbin at gmail.com> wrote: > It does not do anything. It is an abstract function which transforms a > pointer and returns another pointer of the same type. It does not visit > memory or capture the pointer parameter. > > On Thu, Oct 6, 2011 at 2:22 PM, Eli Friedman <eli.friedman at g...
2011 Oct 06
2
[LLVMdev] A potential bug
On Thu, Oct 6, 2011 at 2:20 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > On Thu, Oct 6, 2011 at 2:12 PM, Zeng Bin <ezengbin at gmail.com> wrote: >> Hi all, >> >> There might be a bug in DeadStoreElimination.cpp. This pass eliminates >> stores backwards aggressively in an end BB. It does not check dependencies >> on stores in an end BB though. For example, in this code snippet: >>  ...
2011 Oct 06
0
[LLVMdev] A potential bug
.... It does not visit memory or capture the pointer parameter. On Thu, Oct 6, 2011 at 2:22 PM, Eli Friedman <eli.friedman at gmail.com> wrote: > On Thu, Oct 6, 2011 at 2:20 PM, Eli Friedman <eli.friedman at gmail.com> > wrote: > > On Thu, Oct 6, 2011 at 2:12 PM, Zeng Bin <ezengbin at gmail.com> wrote: > >> Hi all, > >> > >> There might be a bug in DeadStoreElimination.cpp. This pass eliminates > >> stores backwards aggressively in an end BB. It does not check > dependencies > >> on stores in an end BB though. For example, in...
2011 Sep 26
0
[LLVMdev] statically link pass to clang
2011/9/27 Zeng Bin <ezengbin at gmail.com>: > > > On Sun, Sep 25, 2011 at 8:45 PM, NAKAMURA Takumi <geek4civic at gmail.com> > wrote: >> >> 2011/9/24 Zeng Bin <ezengbin at gmail.com>: >> > A question about statically linking a pass to clang instead of >> > dynamically &g...
2010 Sep 24
2
[LLVMdev] libstdc++.so.6 problem
Hi all, I am really stumped on this problem. I googled and could not find any solution. Here is the problem. I compiled and installed glibc-2.5-20090518 in a local directory with gcc version 4.1.2. I compiled glibc-2.5 because I wanted to test glibc-2.5 on gcc first llvm-gcc. However, after I installed glibc, llvm-gcc does not work any more. It reported this error message:
2011 Oct 06
0
[LLVMdev] A potential bug
On Thu, Oct 6, 2011 at 2:12 PM, Zeng Bin <ezengbin at gmail.com> wrote: > Hi all, > > There might be a bug in DeadStoreElimination.cpp. This pass eliminates > stores backwards aggressively in an end BB. It does not check dependencies > on stores in an end BB though. For example, in this code snippet: >   ... > 1.  %sum.safe_...
2011 Oct 06
2
[LLVMdev] A potential bug
Hi all, There might be a bug in DeadStoreElimination.cpp. This pass eliminates stores backwards aggressively in an end BB. It does not check dependencies on stores in an end BB though. For example, in this code snippet: ... 1. %sum.safe_r47.pre-phi = phi i64* [ %sum.safe_r47.pre, %entry.for.end_crit_edge ], [ %sum.safe_r42, %for.body ] 2. %call9 = call i32 @gettimeofday(%struct.timeval* %end,
2010 Sep 24
1
[LLVMdev] GLIBCXX_3.4.9 not found
Hi all, I am really stumped on this problem. I googled and could not find any solution. Here is the problem. I compiled and installed glibc-2.5-20090518 in a local directory with gcc version 4.1.2. I compiled glibc-2.5 because I wanted to test glibc-2.5 on gcc first llvm-gcc. However, after I installed glibc, llvm-gcc does not work any more. It reported this error message:
2011 Feb 01
1
[LLVMdev] X86 Instructions on LLVM
Hi all, Just a quick question about X86 instructions inside LLVM. I found it hard to do one-to-one mapping from the instructions in X86GenInstInfo.inc to the instructions in the intel Manual. For example, what instructions are DIVR_F32m and DIVR_F64m mapped to in the intel manual? It would be great if there is some docs about the X86 instructions. Thanks tons! Bin
2011 Sep 27
0
[LLVMdev] statically link pass to clang
Bin, please don't send only to me, but CC to llvmdev. or you would not receive 3rd person's answer. 2011/9/27 Zeng Bin <ezengbin at gmail.com>: > Thanks a lot for the info. Now my passes are linked into clang. Is there a > way to pass a parameter to clang to turn off my passes? With opt, you can > disable a pass by command line switch -mypass. Can you do that with clang? Try to ask on cfe-dev ;) ..Takumi
2012 Apr 05
1
[LLVMdev] Metadata for MachineInstr
Hi all, Just a quick question about passing information all the way down to machine code level. Metadata provides an excellent vehicle to pass extra ad-hoc information along the compilation pipeline. However, If I understand correctly, it seems that MachineInstr does not support metadata, by which I mean metadata cannot be attached to MachineInstr's by now. Metadata can be bundled with
2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion and use/def list update
...sert(mbb) will place where the block will be inserted > relative to other blocks, but the numbering is not in ascending > ordering. > > (1) mbb->setNumber( mf->addToMBBNumbering( mbb ) ); > > My 2 cents, > Jeff Kunkel > > On Wed, Oct 20, 2010 at 1:52 PM, Bin Zeng<ezengbin at gmail.com> wrote: >> Hi all, >> >> I am really stumped on a problem for long. I could not figure out why. >> That is why i am here. OK, here is the problem: >> I tried to insert a MachineBasicBlock into a function. Here is the code >> snippet: >> &...
2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion
Hi all, I am really stumped on a problem for long. I could not figure out why. That is why i am here. OK, here is the problem: I tried to insert a MachineBasicBlock into a function. Here is the code snippet: // insert a machine basic block with the error_label into MF and before I // Pred is the predecessor of the block to be inserted // the new basic block is inserted right before I void
2010 Aug 09
1
[LLVMdev] Stack trace - clang
Hi, I am new to LLVM and am trying to modify clang for some work. I tried to insert an instruction: prefetchnta $100 at the beginning of a function. I encountered a problem when I tried to debug it with gdb. There was an assertion failure and printed some information without stack trace. The process has been finished when it printed the information. I tried to set a breakpoint at the
2010 Aug 30
1
[LLVMdev] Whole program optimization
Hi folks, I am trying to do some whole program optimization. Would you please tell me how to access the other modules in llvm-gcc? For example, I am going to compile all the C source files in a directory with: llvm-gcc *.c -O3 -o gzip How can I visit the other modules during compilation? Is there any command switch? Thanks tons. Bin
2010 Sep 27
1
[LLVMdev] glibc compilation
Hi All, Did anyone try to compile glibc with llvm-gcc or clang? I tried to configure glibc with CC=llvm-gcc and it failed with this message: ... checking for a BSD-compatible install... /usr/bin//install -c checking whether ln -s works... yes checking for gcc... llvm-gcc checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See
2010 Nov 10
0
[LLVMdev] Liveness analysis on MachineBasicBlock
Hi all, I am trying to compute the liveness information for each MachineInstr in each MachineBasicBlock. I am not sure if it is correct. Here is how I compute the info. For each MachineBasicBlock MBB compute the LiveOuts of MBB by unioning all the LiveIns of its successors for each MachineInstr MI = MBB->rbegin() to MBB->rend() compute the LiveOuts of each MI by
2011 Jan 06
1
[LLVMdev] Pass to compute livein info
Hi all, Is there a pass that computes livein information for each MachineBasicBlock? I tried to find such a pass but could not find any. I am trying to use the livein information to get dead registers to insert some instructions right before code emission but the livein information seems to be invalidated by some pass. I might need to recompute the livein information before my pass. Thanks a
2011 Mar 03
2
[LLVMdev] MachineOperand type
Hi all, I have a question about the types of MachineOperand. There are 12 different types of MachineOperand such as MO_Register, MO_Immediate and so on. Some of the names are self-explanatory such as MO_Register and MO_Immediate. Some of them are a little confusing such as MO_FrameIndex, MO_ConstantPoolIndex and so on. For example, what is the different between MO_ExternalSymbol and