This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add `const` qualifier for static arrays
ClosedPublic

Authored by antiagainst on Jan 17 2020, 7:15 AM.

Details

Summary

This makes the local variable implies to have the correct
type to satisfy ArrayRef's constructor:

/*implicit*/ constexpr ArrayRef(const T (&Arr)[N])

Hopefully this should please GCC 5.

Diff Detail

Event Timeline

antiagainst created this revision.Jan 17 2020, 7:15 AM

Unit tests: pass. 61955 tests passed, 0 failed and 783 were skipped.

clang-tidy: unknown.

clang-format: pass.

Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

antiagainst added a reviewer: benvanik.
ftynse accepted this revision.Jan 17 2020, 8:24 AM
This revision is now accepted and ready to land.Jan 17 2020, 8:24 AM

I think you can push fixes for upstream breakages, especially in the part you own, without pre-review.

I think you can push fixes for upstream breakages, especially in the part you own, without pre-review.

Oh, that's good to know. Thanks for the info!

This revision was automatically updated to reflect the committed changes.

https://llvm.org/docs/DeveloperPolicy.html#code-reviews point 3

Code can be reviewed either before it is committed or after. We expect major changes to be reviewed before being committed, but smaller changes (or changes where the developer owns the component) can be reviewed after commit.