search for: isvalidoffset

Displaying 3 results from an estimated 3 matches for "isvalidoffset".

2014 Oct 23
2
[LLVMdev] On DataExtractor isValidOffset* interface
...d I found one thing in the comments that seems wrong. >From include/llvm/Support/DataExtractor.h: 336 /// Test the validity of \a offset. 337 /// 338 /// @return 339 /// \b true if \a offset is a valid offset into the data in this 340 /// object, \b false otherwise. 341 bool isValidOffset(uint32_t offset) const { return Data.size() > offset; } 342 343 /// Test the availability of \a length bytes of data from \a offset. 344 /// 345 /// @return 346 /// \b true if \a offset is a valid offset and there are \a 347 /// length bytes available at that offset, \b false o...
2013 Feb 06
0
[LLVMdev] [llvm] r174463 - Initial support for DWARF CFI parsing and dumping in LLVM
...&Offset); >> + errs().write_hex(c); errs() << " "; >> + } >> + errs() << "\n"; >> +} >> + >> + >> +void DWARFDebugFrame::parse(DataExtractor Data) { >> + uint32_t Offset = 0; >> + >> + while (Data.isValidOffset(Offset)) { >> + uint32_t StartOffset = Offset; >> + >> + bool IsDWARF64 = false; >> + uint64_t Length = Data.getU32(&Offset); >> + uint64_t Id; >> + >> + if (Length == UINT32_MAX) { >> + // DWARF-64 is distinguished by the firs...
2012 Apr 19
0
[LLVMdev] Target Dependent Hexagon Packetizer patch
...; +&& (I->getOpcode() == Hexagon::STrid >> + || I->getOpcode() == Hexagon::STriw >> + || I->getOpcode() == Hexagon::STrib) >> +&& I->getOperand(0).getReg() == QRI->getStackRegister() >> +&& QII->isValidOffset(I->getOpcode(), >> + I->getOperand(1).getImm() - >> + (FrameSize + HEXAGON_LRFP_SIZE))) >> + { >> + GlueAllocframeStore = true; >> + // Since this store is to be glued with...