Lines Matching full:part

3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
46 // number of parts and part data itself is not required to be padded. in readInteger()
63 Error DXContainer::parseDXILHeader(StringRef Part) { in parseDXILHeader() argument
65 return parseFailed("More than one DXIL part is present in the file"); in parseDXILHeader()
66 const char *Current = Part.begin(); in parseDXILHeader()
68 if (Error Err = readStruct(Part, Current, Header)) in parseDXILHeader()
75 Error DXContainer::parseShaderFeatureFlags(StringRef Part) { in parseShaderFeatureFlags() argument
77 return parseFailed("More than one SFI0 part is present in the file"); in parseShaderFeatureFlags()
79 if (Error Err = readInteger(Part, Part.begin(), FlagValue)) in parseShaderFeatureFlags()
85 Error DXContainer::parseHash(StringRef Part) { in parseHash() argument
87 return parseFailed("More than one HASH part is present in the file"); in parseHash()
89 if (Error Err = readStruct(Part, Part.begin(), ReadHash)) in parseHash()
95 Error DXContainer::parsePSVInfo(StringRef Part) { in parsePSVInfo() argument
97 return parseFailed("More than one PSV0 part is present in the file"); in parsePSVInfo()
98 PSVInfo = DirectX::PSVRuntimeInfo(Part); in parsePSVInfo()
104 Error DirectX::Signature::initialize(StringRef Part) { in initialize() argument
106 if (Error Err = readStruct(Part, Part.begin(), SigHeader)) in initialize()
110 if (Part.size() < Size + SigHeader.FirstParamOffset) in initialize()
111 return parseFailed("Signature parameters extend beyond the part boundary"); in initialize()
113 Parameters.Data = Part.substr(SigHeader.FirstParamOffset, Size); in initialize()
116 StringTable = Part.substr(SigHeader.FirstParamOffset + Size); in initialize()
124 "end of the part data"); in initialize()
133 for (uint32_t Part = 0; Part < Header.PartCount; ++Part) { in parsePartOffsets() local
140 "Part offset for part {0} begins before the previous part ends", in parsePartOffsets()
141 Part) in parsePartOffsets()
145 return parseFailed("Part offset points beyond boundary of the file"); in parsePartOffsets()
146 // To prevent overflow when reading the part name, we subtract the part name in parsePartOffsets()
148 // file header is larger than the part header we can't reach this code in parsePartOffsets()
149 // unless the buffer is at least as large as a part header, so this in parsePartOffsets()
152 return parseFailed("File not large enough to read part name"); in parsePartOffsets()
161 PartSize, "part size")) in parsePartOffsets()
200 // out of the program header in the DXIL part. in parsePartOffsets()
204 "information without DXIL part."); in parsePartOffsets()
225 cantFail(readStruct(Buffer, Current, IteratorState.Part)); in updateIteratorImpl()
227 StringRef(Current + sizeof(dxbc::PartHeader), IteratorState.Part.Size); in updateIteratorImpl()
243 "Pipeline state data extends beyond the bounds of the part"); in parse()
299 "Resource binding data extends beyond the bounds of the part"); in parse()
354 "Signature elements extend beyond the size of the part"); in parse()