search for: getindexedoffset

Displaying 5 results from an estimated 5 matches for "getindexedoffset".

2008 Aug 14
1
[LLVMdev] Proposed modification of AsmPrinter::EmitConstantValueOnly()
...This fails in EmitConstantValueOnly() because the GEP arguments are not recognized as constant (link time) expressions. It looks to me that a proper solution could be to make EmitConstantValueOnly() return its constant value and call it for each argument of the GEP which will then be passed to getIndexedOffset(). Does this sound like a reasonable solution? -Rich
2002 Sep 26
2
[LLVMdev] question about GetElementPtr Instruction
...ans we are limited to at most 256 structure fields but it also makes the bytecode representation more compact. (To remove this restriction, we may migrate to UInt in the future and use some kind of Zipf encoding to avoid increasing bytecode size in the common case.) There is a routine TargetData::GetIndexedOffset to convert any ptr + index list to the actual byte offset for a particular target machine. See llvm/include/Target/TargetData.h. --Vikram > -----Original Message----- > From: llvmdev-admin at cs.uiuc.edu [mailto:llvmdev-admin at cs.uiuc.edu]On > Behalf Of Brian R. Gaeke > Sent: Thu...
2002 Sep 27
0
[LLVMdev] Another question about GetElementPtr Instruction
...most 256 structure fields but it also makes > the bytecode representation more compact. (To remove this restriction, we > may migrate to UInt in the future and use some kind of Zipf encoding to > avoid increasing bytecode size in the common case.) > > There is a routine TargetData::GetIndexedOffset to convert any ptr + index > list to the actual byte offset for a particular target machine. See > llvm/include/Target/TargetData.h. > > --Vikram > > > > -----Original Message----- > > From: llvmdev-admin at cs.uiuc.edu [mailto:llvmdev-admin at cs.uiuc.edu]On >...
2002 Sep 25
3
[LLVMdev] question about GetElementPtr Instruction
I have a question about GetElementPtr. Suppose I have an GetElementPtr Instruction GI: %reg = getelementptr %ST* %s, uint 1, ubyte 2, ubyte 1, uint 5, uint 13 I want to check if this is the reference of a component of a structure, how can I do that? Should I check which operand of this instruction is 'ubyte' type? How can I do that in code? should I use ubyte *a =
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...) "llvm::Mangler::getNameWithPrefix(llvm::SmallVectorImpl<char>&, llvm::Twine const&, llvm::Mangler::ManglerPrefixTy)", referenced from: llvm::AsmPrinter::GetExternalSymbolSymbol(llvm::StringRef) constin libLLVMAsmPrinter.a(AsmPrinter.cpp.o) "llvm::TargetData::getIndexedOffset(llvm::Type const*, llvm::Value* const*, unsigned int) const", referenced from: LowerConstant(llvm::Constant const*, llvm::AsmPrinter&)in libLLVMAsmPrinter.a(AsmPrinter.cpp.o) SymbolicallyEvaluateGEP(llvm::Constant* const*, unsigned int, llvm::Type const*, llvm::TargetData const...