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