Go to the documentation of this file.
22 return make_error<CodeViewError>(
24 "Cross Scope Exports section is an invalid size!");
27 return Reader.
readArray(References, Size);
37 Mappings[Local] = Global;
46 for (
const auto &
M : Mappings) {
This is an optimization pass for GlobalISel generic memory operations.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
We currently emits eax Perhaps this is what we really should generate is Is imull three or four cycles eax eax The current instruction priority is based on pattern complexity The former is more complex because it folds a load so the latter will not be emitted Perhaps we should use AddedComplexity to give LEA32r a higher priority We should always try to match LEA first since the LEA matching code does some estimate to determine whether the match is profitable if we care more about code then imull is better It s two bytes shorter than movl leal On a Pentium M
Provides write only access to a subclass of WritableBinaryStream.
static ErrorSuccess success()
Create a success value.
uint64_t bytesRemaining() const
Error commit(BinaryStreamWriter &Writer) const override
void addMapping(uint32_t Local, uint32_t Global)
Provides read only access to a subclass of BinaryStream.
uint32_t calculateSerializedSize() const override
Error initialize(BinaryStreamReader Reader)
Lightweight error class with error context and mandatory checking.
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.