search for: roundtoalign

Displaying 6 results from an estimated 6 matches for "roundtoalign".

2013 Feb 26
2
[LLVMdev] Question about intrinsic function llvm.objectsize
...constant. I think the way llvm::getObjectSize() interpret "object" is wrong. Figure 1 cat -n lib/Analysis/MemoryBuiltins.cpp 344 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *TD, 345 const TargetLibraryInfo *TLI, bool RoundToAlign) { 346 if (!TD) 347 return false; 348 349 ObjectSizeOffsetVisitor Visitor(TD, TLI, Ptr->getContext(), RoundToAlign); 350 SizeOffsetType Data = Visitor.compute(const_cast<Value*>(Ptr)); 351 if (!Visitor.bothKnown(Data)) 352 return false; 353 354...
2013 Feb 27
0
[LLVMdev] Question about intrinsic function llvm.objectsize
...bjectSize() interpret "object" is wrong. > > > Figure 1 > cat -n lib/Analysis/MemoryBuiltins.cpp > 344 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, > const DataLayout *TD, > 345 const TargetLibraryInfo *TLI, bool > RoundToAlign) { > 346 if (!TD) > 347 return false; > 348 > 349 ObjectSizeOffsetVisitor Visitor(TD, TLI, Ptr->getContext(), > RoundToAlign); > 350 SizeOffsetType Data = Visitor.compute(const_cast<Value*>(Ptr)); > 351 if (!Visitor.bothKnown(Data)) > 352...
2013 Feb 27
4
[LLVMdev] Question about intrinsic function llvm.objectsize
...ed depending on where you call it from. See below. >> >> Figure 1 >> cat -n lib/Analysis/MemoryBuiltins.cpp >> 344 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *TD, >> 345 const TargetLibraryInfo *TLI, bool RoundToAlign) { >> 346 if (!TD) >> 347 return false; >> 348 >> 349 ObjectSizeOffsetVisitor Visitor(TD, TLI, Ptr->getContext(), RoundToAlign); >> 350 SizeOffsetType Data = Visitor.compute(const_cast<Value*>(Ptr)); >> 351 if (!Visitor.bothKnown(Data))...
2013 Feb 27
0
[LLVMdev] Question about intrinsic function llvm.objectsize
...ding on where you call it from. See below. >>> Figure 1 >>> cat -n lib/Analysis/MemoryBuiltins.cpp >>> 344 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *TD, >>> 345 const TargetLibraryInfo *TLI, bool RoundToAlign) { >>> 346 if (!TD) >>> 347 return false; >>> 348 >>> 349 ObjectSizeOffsetVisitor Visitor(TD, TLI, Ptr->getContext(), RoundToAlign); >>> 350 SizeOffsetType Data = Visitor.compute(const_cast<Value*>(Ptr)); >>> 351...
2013 Feb 27
2
[LLVMdev] Question about intrinsic function llvm.objectsize
...you call it from. See below. >>>> Figure 1 >>>> cat -n lib/Analysis/MemoryBuiltins.cpp >>>> 344 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *TD, >>>> 345 const TargetLibraryInfo *TLI, bool RoundToAlign) { >>>> 346 if (!TD) >>>> 347 return false; >>>> 348 >>>> 349 ObjectSizeOffsetVisitor Visitor(TD, TLI, Ptr->getContext(), RoundToAlign); >>>> 350 SizeOffsetType Data = Visitor.compute(const_cast<Value*>(Ptr)); >&...
2013 Feb 27
0
[LLVMdev] Question about intrinsic function llvm.objectsize
...See below. >>>>> Figure 1 >>>>> cat -n lib/Analysis/MemoryBuiltins.cpp >>>>> 344 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *TD, >>>>> 345 const TargetLibraryInfo *TLI, bool RoundToAlign) { >>>>> 346 if (!TD) >>>>> 347 return false; >>>>> 348 >>>>> 349 ObjectSizeOffsetVisitor Visitor(TD, TLI, Ptr->getContext(), RoundToAlign); >>>>> 350 SizeOffsetType Data = Visitor.compute(const_cast&l...