search for: arrayboundscheck

Displaying 9 results from an estimated 9 matches for "arrayboundscheck".

Did you mean: arrayboundschecks
2011 Jan 22
0
[LLVMdev] Pointers in Load and Store
...Type()->getElementType())) > hi=ar->getNumElements(); > But this does not recognize that operand(0) of instruction I is even > an instruction, let alone a get element pointer instruction. I have > taken the code from line 632 and line 757 of > safecode/lib/ArrayBoundsChecks/ArrayBoundCheck.cpp > > I must be doing something wrong, what is it? The problem is simple: you're looking at the wrong source file. :) More specifically, you're looking at the very antiquated static array bounds checking pass (it hasn't compiled in several years now). The f...
2011 Jan 22
2
[LLVMdev] Pointers in Load and Store
...gepI->getPointerOperandType()->getElementType())) hi=ar->getNumElements(); But this does not recognize that operand(0) of instruction I is even an instruction, let alone a get element pointer instruction. I have taken the code from line 632 and line 757 of safecode/lib/ArrayBoundsChecks/ArrayBoundCheck.cpp I must be doing something wrong, what is it? Surinder Kumar Jain PS: Yes, I will be using safecode but still I want to know why above code does not work. I am posting a separate mail wioth the title "OPT optimizations" On Fri, Jan 21, 2011 at 3:12 PM, John Cris...
2011 Jan 23
1
[LLVMdev] Pointers in Load and Store
...pe())) >>                    hi=ar->getNumElements(); > >> But this does not recognize that operand(0) of instruction I is even >> an instruction, let alone a get element pointer instruction.  I have >> taken the code from line 632 and line 757 of >> safecode/lib/ArrayBoundsChecks/ArrayBoundCheck.cpp >> >> I must be doing something wrong, what is it? > > The problem is simple: you're looking at the wrong source file. > :) > > More specifically, you're looking at the very antiquated static array bounds > checking pass (it hasn't comp...
2015 Jun 22
2
[LLVMdev] How to Obtain a DataLayout Reference Given a Function & F
...n causing the following compilation error: In file included from /Users/peterfinn/Desktop/llvm_trunk_2/projects/safecode/lib/ArrayBoundChecks/ArrayBoundCheckLocal.cpp:18: In file included from /Users/peterfinn/Desktop/build/projects/safecode/../../../llvm_trunk_2/projects/safecode/include/safecode/ArrayBoundsCheck.h:17: In file included from /Users/peterfinn/Desktop/build/projects/safecode/../../../llvm_trunk_2/projects/safecode/include/safecode/AllocatorInfo.h:21: In file included from /Users/peterfinn/Desktop/llvm_trunk_2/include/llvm/IR/Module.h:20: In file included from /Users/peterfinn/Desktop/llvm_trun...
2007 Dec 03
1
[LLVMdev] Using Function Passes from Module Passes
...s/Dominators.h:659: note: synthesized method 'llvm::FunctionPass& llvm::FunctionPass::operator=(const llvm::FunctionPass&)' first required here /home/vadve/criswell/src/llvm22/projects/safecode/lib/ArrayBoundChecks/ArrayBoundCheck.cpp: In member function 'virtual bool llvm::ABC::ArrayBoundsCheck::runOnModule(llvm::Module&)': /home/vadve/criswell/src/llvm22/projects/safecode/lib/ArrayBoundChecks/ArrayBoundCheck.cpp:905: note: synthesized method 'llvm::DominatorTree& llvm::DominatorTree::operator=(const llvm::DominatorTree&)' first required here Does anyone know what...
2011 Aug 19
1
[LLVMdev] Break operands into multiple instructions
Hi All, I am creating an instrumentation pass using LLVM libraries. I am using clang++ (version 2.9) to compile cpp code into LLVM bit code. When I generate the llvm bit code using clang++ using -O3, I get many instances of instructions that look like the following. br i1 icmp ne (i8* bitcast (i32 (i32)* @pthread_cancel to i8*), i8* null), label %bb23, label %bb25 Here three LLVM instructions
2011 Jan 21
0
[LLVMdev] Pointers in Load and Store
On 1/20/2011 10:02 PM, Surinder wrote: > When I compile C programs into llvm, it produces load instructions in > two different flavours. > > (1) %8 = load i8** %bp, align 8 > > (2) %1 = load i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, > i64 0), align 1 > > I know that %bp in first case and the entire "getelementptr inbounds > ([4 x i8]* @.str, i64
2011 Jan 21
2
[LLVMdev] Pointers in Load and Store
When I compile C programs into llvm, it produces load instructions in two different flavours. (1) %8 = load i8** %bp, align 8 (2) %1 = load i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), align 1 I know that %bp in first case and the entire "getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0)" in second case can be obtained by dump'ing I.getOperand(0)
2015 Jul 22
2
[LLVMdev] (no subject)
Hello, I have tried a lot fix this error but am not able to can you please find me a solution am trying to compile the SAFECode in Cygwin Environment to work for windows. used make -j4 command to make the files in cygwin i have got this error make[5]: Leaving directory '/home/uidr7475/Work/LLVM_OBJ/projects/safecode/tools/clang/include' /usr/bin/cp: cannot stat