Lines Matching defs:fileLoc
91 explicit EncodingReader(ArrayRef<uint8_t> contents, Location fileLoc)
92 : buffer(contents), dataIt(buffer.begin()), fileLoc(fileLoc) {}
93 explicit EncodingReader(StringRef contents, Location fileLoc)
96 fileLoc) {}
138 return ::emitError(fileLoc).append(std::forward<Args>(args)...);
140 InFlightDiagnostic emitError() const { return ::emitError(fileLoc); }
293 Location getLoc() const { return fileLoc; }
331 Location fileLoc;
374 LogicalResult initialize(Location fileLoc, ArrayRef<uint8_t> sectionData);
406 LogicalResult StringSectionReader::initialize(Location fileLoc,
408 EncodingReader stringReader(sectionData, fileLoc);
539 initialize(Location fileLoc, const ParserConfig &config,
639 parseResourceGroup(Location fileLoc, bool allowEmpty,
674 EncodingReader entryReader(data, fileLoc);
689 Location fileLoc, const ParserConfig &config,
694 EncodingReader resourceReader(sectionData, fileLoc);
695 EncodingReader offsetReader(offsetSectionData, fileLoc);
713 return parseResourceGroup(fileLoc, allowEmpty, offsetReader, resourceReader,
728 emitWarning(fileLoc) << "ignoring unknown external resources for '" << key
737 MLIRContext *ctx = fileLoc->getContext();
806 uint64_t &bytecodeVersion, Location fileLoc,
809 dialectsMap(dialectsMap), fileLoc(fileLoc),
899 Location fileLoc;
1056 LogicalResult initialize(Location fileLoc, ArrayRef<uint8_t> sectionData) {
1059 EncodingReader propReader(sectionData, fileLoc);
1067 EncodingReader offsetsReader(propertiesBuffers, fileLoc);
1084 LogicalResult read(Location fileLoc, DialectReader &dialectReader,
1103 fileLoc);
1111 StringRef(rawProperties.begin(), rawProperties.size()), fileLoc);
1137 EncodingReader offsetReader(offsetSectionData, fileLoc);
1196 emitError(fileLoc) << "invalid " << entryType << " index: " << index;
1206 EncodingReader reader(entry.data, fileLoc);
1232 MLIRContext *context = fileLoc->getContext();
1256 if (failed(entry.dialect->load(dialectReader, fileLoc.getContext())))
1318 Impl(Location fileLoc, const ParserConfig &config, bool lazyLoading,
1321 : config(config), fileLoc(fileLoc), lazyLoading(lazyLoading),
1323 fileLoc, config),
1567 Location fileLoc;
1633 EncodingReader reader(buffer.getBuffer(), fileLoc);
1682 fileLoc, *sectionDatas[bytecode::Section::kString])))
1688 fileLoc, *sectionDatas[bytecode::Section::kProperties])))
1772 EncodingReader sectionReader(sectionData, fileLoc);
1806 emitError(fileLoc, "expected dialect version section");
1884 return emitError(fileLoc, "unexpected resource offset section when "
1887 fileLoc,
1898 return resourceReader.initialize(fileLoc, config, dialects, stringReader,
2067 EncodingReader reader(sectionData, fileLoc);
2073 OwningOpRef<ModuleOp> moduleOp = ModuleOp::create(fileLoc);
2165 return emitError(fileLoc, "expected IR section for region");
2167 std::make_unique<EncodingReader>(sectionData, fileLoc);
2248 return emitError(fileLoc,
2259 propertiesReader.read(fileLoc, dialectReader, &*opName, opState)))