Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] LLVM Instruction to ICmpInst conversion"
2012 Dec 21
0
[LLVMdev] llvm segfault Instruction::getOpcode
Hello,
I get a segfault and I cannot find the reason. The main computation is done
in "
`struct patternDC : public FunctionPass`
" but I also have
class ifChecker {
public:
virtual bool operEquiv(Instruction *I1, Instruction *I2);
};
I have in
bool patternDC::runOnFunction(Function &F) {
...
ifChecker* CC=new ifChecker();
if (
2013 Jan 08
1
[LLVMdev] LLVM seg fault : dereference an uninitialized pointer Instruction*
Hello everyone,
I encounter a segfault problem in my LLVM function pass. I think the
problem is that I dereference an uninitialized pointer from an array of
Instruction* elements which results in undefined behavior. The array is :
Instruction** ifsInstrArray = new Instruction*[100];
The problem appears only sometimes (during runOnFunction && visiting
BasicBlocks and Instructions).
2013 Jan 28
1
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hi Alexandru,
> The compilation error is : `error: ‘LD100’ was not declared in this scope.`
>
> On Mon, Jan 28, 2013 at 11:31 AM, Alexandru Ionut Diaconescu <
> alexandruionutdiaconescu at gmail.com> wrote:
>
>> Hello everyone,
>>
>> Can you please tell me if it is possible in LLVM to cast a `Value*` to an
>> `Instruction*/LoadInst*` if for example
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
The compilation error is : `error: ‘LD100’ was not declared in this scope.`
On Mon, Jan 28, 2013 at 11:31 AM, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
> Hello everyone,
>
> Can you please tell me if it is possible in LLVM to cast a `Value*` to an
> `Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is true?
> In my
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
Alexandru Ionut Diaconescu wrote:
> Hello everyone,
>
> Can you please tell me if it is possible in LLVM to cast a `Value*` to
> an `Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is
> true?
http://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-templates
In my particular piece of code:
>
> Value* V1 =
2013 Jan 28
5
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hello everyone,
Can you please tell me if it is possible in LLVM to cast a `Value*` to an
`Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is true?
In my particular piece of code:
Value* V1 = icmpInstrArray[i]->getOperand(0);
Value* V2 = icmpInstrArray[i]->getOperand(1);
if (isa<LoadInst>(V1) || isa<LoadInst>(V2)){
...
2005 Oct 23
1
Script for metropolitan
The script is corect ?
#!/bin/bash
/sbin/iptables -F -t mangle
/sbin/iptables -X
/sbin/iptables -t mangle -N mark_horiz_src
/sbin/iptables -t mangle -N mark_horiz_dst
/sbin/iptables -t mangle -A PREROUTING -i eth0 -j mark_horiz_src
/sbin/iptables -t mangle -A PREROUTING -i eth1 -j mark_horiz_dst
/sbin/iptables -t mangle -A OUTPUT -o eth0 -j mark_horiz_dst
/usr/local/bin/mipclasses -s
2012 Dec 21
0
[LLVMdev] LLVM getBasicBlockIndex() or equivalent
Hello everyone !
I have some problems of getting the index of a basic block.
for (Function::iterator II = F.begin(), EE = F.end(); II != EE; ++II, ++ii)
{ BasicBlock* BB=II;
I have segfaults or cannot use complex structures of several methods that I
found in LLVM. Do you know how to use as simply as possible the methods
found at :
http://llvm.org/doxygen/Instructions_8h_source.html#l02136
2011 Oct 12
2
[LLVMdev] insert ICmpInst/BranchIns in Pass?
In a pass I would like to insert a ICmpInst/BranchInst pair to check
if 2 GlobalVariables are equal or not. If they are not I would like to
call a function. I've tried splitting the current block and then
inserting before the existing instructions, but for some reason this
seems to ruin the iterator(i). What is the correct way todo something
like this?
void checkShadowPtr(Module &M,
2011 Sep 28
3
[LLVMdev] ICmpInst example?
I'm trying to come up with a simple example of using ICmpInst in a
Pass. On each of the branches(true, false) I'd like to call a separate
function and then resume(to the code that was already there).
In this example i is a inst_iterator to Instruction the Pass is
currently on. Now it segfaults opt before I can even get a dump() on
it. Does anyone see what I am doing wrong?
BasicBlock
2010 Apr 17
1
[LLVMdev] SCEV expression for ICmpInst
Be careful about oversimplifying signed integer comparisons -- integer arithmetic can easily overflow, so you cannot transform A > B to A - B > 0. The compare instructions in most processors do not simply subtract and test the most significant bit; they compute what the sign of the difference would be in extended precision.
On Apr 17, 2010, at 1:00 PM, llvmdev-request at cs.uiuc.edu wrote:
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
Hi,
as discussed in [1], this series adds a new getprogname module.
All it does is providing a getprogname function, much like what is
found on e.g. *BSD systems, and using it in gnulib instead of progname.
Also, using it explicitly by modules avoids gnulib users the need of
either use the progname module (GPL), or to provide program_name (and
call set_program_name manually, which is not always
2011 Oct 12
0
[LLVMdev] insert ICmpInst/BranchIns in Pass?
On Tue, Oct 11, 2011 at 7:22 PM, ret val <retval386 at gmail.com> wrote:
> In a pass I would like to insert a ICmpInst/BranchInst pair to check
> if 2 GlobalVariables are equal or not. If they are not I would like to
> call a function. I've tried splitting the current block and then
> inserting before the existing instructions, but for some reason this
> seems to ruin the
2011 Sep 28
0
[LLVMdev] ICmpInst example?
On Tue, Sep 27, 2011 at 7:28 PM, ret val <retval386 at gmail.com> wrote:
> I'm trying to come up with a simple example of using ICmpInst in a
> Pass. On each of the branches(true, false) I'd like to call a separate
> function and then resume(to the code that was already there).
>
> In this example i is a inst_iterator to Instruction the Pass is
> currently on. Now
2010 Apr 17
2
[LLVMdev] SCEV expression for ICmpInst
Hi,
i am playing the ScalarEvolution these days. i found the the ScalarEvolution
will simply return a SCEVUnknow for a ICmpInst, so i think maybe great to
add a new kind of SCEV to the ScalarEvolution framework.
for example, if i run ScalarEvolution on the bc file generate from the
following C source file:
int f(int a, int b, int c, int d) {
return (2 * a + 5 * c + 2) > (4 * d - 3*b
2005 Jun 28
0
Re: Questin regarding HTB
Yes sure here they are:
The first one that i have received 2day and does not work almost at all:
#!/bin/bash
ETH_IN="eth1"
ETH_OUT="eth0"
BANDA_TOTALA="2Mbit"
# pentru neclasificati ar trebui sa fie banda minima - 1k - aici ar trebui
sa ajunga trafic necunoscut,
# care nu e organizat in shape-uri
BANDA_NECLASIFICATI="8kbit"
#Shape generale
/sbin/tc
2010 Jun 28
2
[LLVMdev] help
%0 = icmp eq i32 %y, 0
In the above instruction how can i know that the comparison is equality
comparison??
--Rajwinder Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100628/8d8e5cb1/attachment.html>
2010 Jun 06
19
Collecting _all_ ssh keys
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello,
I read and find a way (well, there seems to be several equal
implementations) to collect the ssh keys of machines. However they all
give only the choice to choose between the key formats.
But is there a way to collect both keys of a machine, the rsa _and_ the
dss key (and maybe the rsa1 too)? I didn''t find a way to solve this as
2016 Feb 07
3
[PATCH] strlen -> strnlen optimization
This addition converts strlen() calls to strnlen() when the result is
compared to a constant. For example, the following:
strlen(s) < 5
Becomes:
strnlen(s, 5) < 5
That way, we don't have to walk through the entire string. There is the
added overhead of maintaining a counter when using strnlen(), but I
thought I'd start with the general case. It may make sense to only use
this
2013 Jan 15
2
[LLVMdev] [cfe-dev] no-alias generated as result of restrict function arguments
On Wed, Dec 12, 2012 at 01:59:55PM -0800, Dan Gohman wrote:
> The bug here isn't in clang's use of noalias or in BasicAliasAnalysis'
> implementation of noalias; it's in the code that's optimizing the
> icmp.
Let's come back to this. The attached patch decouples InstSimplify from
the alias analysis and provides the conservative logic for when pointers
are not