search for: insertbitcastbefore

Displaying 4 results from an estimated 4 matches for "insertbitcastbefore".

2008 Jul 21
2
[LLVMdev] Casting between address spaces and address space semantics
...GetElementPtrInst>(*I)) { + if (I.getOperandNo() != GetElementPtrInst::getPointerOperandIndex()) + return 0; + } else if (!isa<LoadInst>(*I)) { + // Can't handle other instructions + return 0; + } + } + // Insert a new bitcast, if needed + Value *NewVal = InsertBitCastBefore(CI.getOperand(0), NTy, CI); + + for (User::use_iterator I = CI.use_begin(), E = CI.use_end(); I != E; ++I) { + Instruction *NewInst; + Instruction *OldInst = cast<Instruction>(*I); + // Declare this here, so we can reuse the dyn_cast + GetElementPtrInst *GEP = NULL; + // Cre...
2008 Jul 21
0
[LLVMdev] Casting between address spaces and address space semantics
...erandNo() != > GetElementPtrInst::getPointerOperandIndex()) > + return 0; > + } else if (!isa<LoadInst>(*I)) { > + // Can't handle other instructions > + return 0; > + } > + } > + // Insert a new bitcast, if needed > + Value *NewVal = InsertBitCastBefore(CI.getOperand(0), NTy, CI); > + > + for (User::use_iterator I = CI.use_begin(), E = CI.use_end(); I ! > = E; ++I) { > + Instruction *NewInst; > + Instruction *OldInst = cast<Instruction>(*I); > + // Declare this here, so we can reuse the dyn_cast > + GetElem...
2008 Jul 18
0
[LLVMdev] Casting between address spaces and address space semantics
Hi Eli, Mon Ping, > In ISO/IEC WG14 n1169 on the C extensions to support embedded > processors, any two address spaces must be disjoint, must be > equivalent, or must be nested. Ah, that standard is a lot clearer on this subject than the DSP-C one I read was. > As Eli indicated, the actual relationship is platform specific depending on > what makes the most sense for
2008 Jul 17
4
[LLVMdev] Casting between address spaces and address space semantics
In ISO/IEC WG14 n1169 on the C extensions to support embedded processors, any two address spaces must be disjoint, must be equivalent, or must be nested. As Eli indicated, the actual relationship is platform specific depending on what makes the most sense for your hardware and how the program will behave will depend on that relationship. -- Mon Ping On Jul 17, 2008, at 7:25 AM, Eli