Commit Graph

3808 Commits

Author SHA1 Message Date
Alan Zhao
9743701ed5
Explicitly #include <utility> in spirv_target_env.cpp (#5159)
spirv_target_env.cpp uses std::pair, which is defined in utility.
Right now, this compiles because utility is provided via transitive
includes in other C++ standard library headers provided by the
implementation. However, these transitive includes are not guaranteed to
exist, and won't exist in certain cases (e.g. compiling against LLVM's
libc++ with modules enabled.)
2023-03-15 13:15:29 +01:00
Nathan Gauër
25f6c0cea5
Revert "Add workflow for github releases. (#5145)" (#5156)
This reverts commit 25b7608cbe.
2023-03-13 18:04:19 +00:00
github-actions[bot]
a45a4cd218
Roll external/googletest/ 038e392eb..391ce627d (1 commit) (#5153)
038e392ebd...391ce627de

$ git log 038e392eb..391ce627d --date=short --no-merges --format='%ad %ae %s'
2023-03-11 absl-team Internal Code Change

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-03-13 18:04:00 +00:00
dependabot[bot]
a1f5556517
build(deps): bump y18n from 4.0.0 to 4.0.3 in /tools/sva (#5155)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3)

---
updated-dependencies:
- dependency-name: y18n
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 16:08:19 +00:00
Nathan Gauër
25b7608cbe
Add workflow for github releases. (#5145)
* prepare workflow

* remove release branch
2023-03-13 16:55:55 +01:00
Nathan Gauër
fcd53c8ed2
Add spirv-dump tool (#5146)
* dump: add tool skeleton.

This tool aims to be used a bit like objdump (hence the name).
Allowing the user to dump some info from a spirv-binary.

* add test structure for spirv-dump

* add spirv-dump to bazel build file

* fix licenses

* fix compilation with ubsan

* remove fdiagnostics

* rename dump to objdump

* move tests to test/tools

* rename dump to objdump for bazel
2023-03-13 16:39:42 +01:00
Nathan Gauër
7cefd5f5f8
Change default permissions for workflows (#5149)
* change default workflow permission to read-all

Fixes #5147

* permission: content read-only

* remove bad changes
2023-03-13 16:18:01 +01:00
Nathan Gauër
44d72a9b36
Prepare release v2023.2 (#5151) 2023-03-13 11:33:58 +01:00
github-actions[bot]
fba26fd606
roll deps (#5152)
* Roll external/googletest/ 50e07d1c9..038e392eb (1 commit)

50e07d1c92...038e392ebd

$ git log 50e07d1c9..038e392eb --date=short --no-merges --format='%ad %ae %s'
2023-03-10 lawrencews [gtest] Drop custom-rolled heterogeneous comparator functors in favor of C++ standard ones

Created with:
  roll-dep external/googletest

* Roll external/re2/ f0402c039..b059ae85c (1 commit)

f0402c0397...b059ae85c8

$ git log f0402c039..b059ae85c --date=short --no-merges --format='%ad %ae %s'
2023-03-10 junyer Move inst_ out of the blob of memory for a State.

Created with:
  roll-dep external/re2

---------

Co-authored-by: GitHub Actions[bot] <>
2023-03-11 12:15:52 +00:00
github-actions[bot]
01828dac77
Roll external/googletest/ 48a1b1105..50e07d1c9 (1 commit) (#5148)
48a1b11058...50e07d1c92

$ git log 48a1b1105..50e07d1c9 --date=short --no-merges --format='%ad %ae %s'
2023-03-09 absl-team Apply clang-tidy fixes

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-03-10 11:43:34 +01:00
Nathan Gauër
b029037aaa
Revert changes around CHANGES file. (#5143)
* Revert "build: allow update_build to generate fake version (#5098)"

This reverts commit 7823b8ff4a.

* Revert "build: stop parsing CHANGES file. (#5067)"

This reverts commit fcfc3c580c.
2023-03-09 18:24:20 +01:00
github-actions[bot]
c069a5c7ee
roll deps (#5144)
* Roll external/googletest/ a798c2f10..48a1b1105 (2 commits)

a798c2f102...48a1b11058

$ git log a798c2f10..48a1b1105 --date=short --no-merges --format='%ad %ae %s'
2023-03-08 absl-team Add a comment to clarify Fuchsia process launcher requirement.
2023-03-07 absl-team Apply clang-tidy fixes

Created with:
  roll-dep external/googletest

* Roll external/spirv-headers/ 295cf5fb3..1feaf4414 (9 commits)

295cf5fb3b...1feaf4414e

$ git log 295cf5fb3..1feaf4414 --date=short --no-merges --format='%ad %ae %s'
2023-03-08 arvind.sudarsanam Fix error in merge conflict resolution
2023-03-06 ben.ashbaugh headers support for SPV_INTEL_bfloat16_conversion
2023-03-03 arvind.sudarsanam Add parameters
2023-03-03 arvind.sudarsanam Remove redundant extensions entry
2023-03-02 arvind.sudarsanam Add support for SPV_INTEL_fpga_latency_control extension
2023-03-01 wooykim SPV_QCOM_image_processing
2023-03-01 wooykim SPV_QCOM_image_processing
2023-02-14 wooykim SPV_QCOM_image_processing
2023-02-14 wooykim SPV_QCOM_image_processing

Created with:
  roll-dep external/spirv-headers

---------

Co-authored-by: GitHub Actions[bot] <>
2023-03-09 11:06:41 +01:00
Nathan Gauër
42267721e1
build: tool to generate a CHANGELOG from tags (#5136)
This small utility parses the CHANGES file to generate
a CHANGELOG that can be used for GitHub releases.

This will be used by the GitHub workflow to make releases
automatic.

Given a CHANGES file path, a tag, the script extract the
editorialized changelog, and writes it to a given output file.
2023-03-08 16:12:41 +01:00
github-actions[bot]
db0c3d83dc
Roll external/googletest/ e1ee0fa3e..a798c2f10 (4 commits) (#5142)
e1ee0fa3e1...a798c2f102

$ git log e1ee0fa3e..a798c2f10 --date=short --no-merges --format='%ad %ae %s'
2023-03-07 tomhughes Add -Wundef to the CI scripts when building with Bazel
2023-03-07 tomhughes Fix compilation of googletest-printers-test.cc when using -Wundef
2023-03-07 absl-team Suppress std::string DLL interface warning introduced in commit f063cd25c90cbd4089a0ff96f5991df4f2721338
2023-03-07 absl-team Internal Code Change

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-03-08 12:11:38 +00:00
James Price
690a9a4060
Add explicit deduction guide for FlagRegistration (#5141)
This fixes a -Wctad-maybe-unsupported error.
2023-03-07 16:44:56 -05:00
github-actions[bot]
3033cf428e
Roll external/googletest/ cead3d57c..e1ee0fa3e (9 commits) (#5140)
cead3d57c9...e1ee0fa3e1

$ git log cead3d57c..e1ee0fa3e --date=short --no-merges --format='%ad %ae %s'
2023-03-06 dinor Fix indentation syntax error in feature request issue template
2023-03-03 tomhughes Fix compilation with -Wundef.
2023-03-03 tomhughes Always specify definitions for internal macros
2023-03-03 tomhughes Remove GTEST_FOR_GOOGLE_ macro
2023-03-03 tomhughes Replace "#if GTEST_HAS_ABSL" with "#ifdef GTEST_HAS_ABSL"
2023-03-03 tomhughes Use "#ifdef" with public macros
2023-03-03 tomhughes Only define GTEST_IS_THREADSAFE to 1, not 0
2023-03-03 tomhughes Always specify definitions for internal macros
2023-03-03 tomhughes Use "#ifdef GTEST_OS_..." instead of "#if GTEST_OS_..."

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-03-07 14:35:53 +00:00
github-actions[bot]
016bb3ae7f
roll deps (#5139)
* Roll external/googletest/ 2d4f20876..cead3d57c (1 commit)

2d4f208765...cead3d57c9

$ git log 2d4f20876..cead3d57c --date=short --no-merges --format='%ad %ae %s'
2023-03-03 absl-team Internal Code Change

Created with:
  roll-dep external/googletest

* Roll external/re2/ 3a8436ac4..f0402c039 (1 commit)

3a8436ac43...f0402c0397

$ git log 3a8436ac4..f0402c039 --date=short --no-merges --format='%ad %ae %s'
2023-03-03 junyer Update a comment in `DFA::WorkqToCachedState()`.

Created with:
  roll-dep external/re2

---------

Co-authored-by: GitHub Actions[bot] <>
2023-03-04 17:40:04 +00:00
Nathan Gauër
7cb5898e1d
diff: refactorize flag parsing (#5133)
* diff: refactorize flag parsing

Remove custom flag parsing to use the common one.

* remove superfluous ;
2023-03-03 16:55:00 +01:00
Ralf Habacker
e0df12997f
Fix using invalid install path for cmake support files with MINGW platform (#5128) (#5129) 2023-03-03 15:53:23 +00:00
Ralf Habacker
3eff21366e
Fix MinGW build error (#4935) (#5127)
This commit fixes the following build error when the source code is build
with MinGW gcc 12 and compiler switch '-Werror=maybe-uninitialized' is
added:

    'file.{anonymous}::OutputFile::old_mode_' may be used uninitialized
     in this function [-Werror=maybe-uninitialized]
2023-03-03 15:53:08 +00:00
Laura Hermanns
bd83b772c3
Fix operand index out of bounds when folding OpCompositeExtract. (#5107)
GetExtractOperandsForElementOfCompositeConstruct() states "Returns the
empty vector if |result_index| is out-of-bounds", but violates that
contract for non-vector result types.
2023-03-03 15:52:49 +00:00
David Neto
5fe3bbe77d
Update Effcee so it doesn't hardcode C++11 (#5137) 2023-03-03 14:30:13 +00:00
github-actions[bot]
6c714f191e
Roll external/googletest/ c7d0bc830..2d4f20876 (3 commits) (#5130)
* Roll external/googletest/ c7d0bc830..2d4f20876 (3 commits)

c7d0bc8309...2d4f208765

$ git log c7d0bc830..2d4f20876 --date=short --no-merges --format='%ad %ae %s'
2023-02-28 absl-team   Rephrase the description of TEST_F() arguments for clarity.
2023-02-27 absl-team Eliminate argv list action parameter.
2023-02-19 39726720+VuPhamVan Fix typo

Created with:
  roll-dep external/googletest

* Roll external/spirv-headers/ aa331ab0f..295cf5fb3 (6 commits)

aa331ab0ff...295cf5fb3b

$ git log aa331ab0f..295cf5fb3 --date=short --no-merges --format='%ad %ae %s'
2023-03-01 abhishek2.tiwari update parameter name to match spec in grammar file
2023-02-23 abhishek2.tiwari move FPGAKernelAttributesv2INTEL to capability section in all files
2023-02-08 abhishek2.tiwari correct file entry position for FPGAKernelAttributesv2INTEL
2023-02-07 abhishek2.tiwari add FPGAKernelAttributesv2INTEL to all files
2023-01-27 abhishek2.tiwari address review comment
2023-01-26 abhishek2.tiwari add RegisterMapInterfaceINTEL

Created with:
  roll-dep external/spirv-headers

---------

Co-authored-by: GitHub Actions[bot] <>
2023-03-02 19:53:51 +00:00
Nathan Gauër
d6c707676d
linter: refactorize linter flag parsing (#5134)
Change custom flag parsing to the built-in one.
2023-03-02 15:17:34 +01:00
Nathan Gauër
8cee461986
tools: add uint32_t flags parsing (#5131)
* tools: add uint32_t flags parsing

This will be required to refactorize other tools.
2023-03-02 15:16:32 +01:00
Nathan Gauër
970ba4e8b0
linker: refactorize flag parsing (#5132)
replace the old parser with the common utility.
2023-03-01 18:50:42 +01:00
github-actions[bot]
9d71fb6764
Roll external/googletest/ 3d787f5a0..c7d0bc830 (4 commits) (#5126)
3d787f5a0d...c7d0bc8309

$ git log 3d787f5a0..c7d0bc830 --date=short --no-merges --format='%ad %ae %s'
2023-02-27 phoebeliang Reorder printers list.
2023-02-27 absl-team   Reformat to current g3doc style guide. No content changes.
2023-02-21 sergionso Fix error in_death_test_child_process: undeclared identifier
2023-02-02 benayang Update testing.md

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-28 11:59:21 +00:00
Nathan Gauër
9d4c95a574
build: fix build.gn missing comma (#5125)
Broke build using this file.
2023-02-27 20:45:43 +01:00
Nathan Gauër
2e0f4b52c9
tools: refactorize tools flags parsing. (#5111)
* tools: refactorize tools flags parsing.

Each SPIR-V tool was handing their own flag parsing. This PR
adds a new flag parsing utility that should be flexible enough
for our usage, but generic enough so it can be shared across tools while
remaining simple to use.

* cfg: replace cfg option parsing with the new one.

* change spirv-dis parsing + title + summary

* clang format

* flags: fix static init fiasco & remove help

Static initialization order is important, and was
working just by sheer luck.

Also removing the help generation tooling. It's less flexible than the
hand-written string, and making it as-good and as-flexible brings too
much complexity.

* review feedback
2023-02-27 18:45:14 +01:00
github-actions[bot]
3b2ea1a422
Roll external/googletest/ 39a26e12d..3d787f5a0 (2 commits) (#5123)
39a26e12d6...3d787f5a0d

$ git log 39a26e12d..3d787f5a0 --date=short --no-merges --format='%ad %ae %s'
2023-02-24 absl-team Add `const` qualifier to `gtest_sentinel` which doesn't change.
2023-02-23 absl-team Added a missing semicolon for GTEST_FLAG_SET code snippet.

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-25 18:54:35 +00:00
alan-baker
b955c468b1
Add missing header include (#5124)
* Found during an internal build
2023-02-24 13:21:53 -05:00
alan-baker
5d2bc6f064
Fix removal of dependent non-semantic instructions (#5122)
Fixes #5121

* If the non-semantic info instructions depended on other moved
  instructions the def/use manager would get corrupted.
2023-02-24 01:10:35 +00:00
github-actions[bot]
4183faa2ec
Roll external/googletest/ 750d67d80..39a26e12d (2 commits) (#5120)
750d67d809...39a26e12d6

$ git log 750d67d80..39a26e12d --date=short --no-merges --format='%ad %ae %s'
2023-02-22 dinor Avoid redundant declaration of static constexpr members in c++17
2023-02-22 dinor Update googletest's test docker containers

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-23 12:14:28 +00:00
Bruce Dawson
2cf48e9534
Allow invoking git.bat as git on Windows (#5118)
In a Chromium build environment on Windows git is supplied by
depot_tools as git.bat. This was causing build errors on Windows that
are most easily reproduced with this command:

  gn gen out\default && gn clean out\default && ninja -C out\default spirv-as

The errors included:

[12:55:40][ERROR   ] Failed to run "['git', 'tag', '--sort=-v:refname']" in "C:\src\chromium\src\third_party\vulkan-deps\spirv-tools\src": [WinError 2] The system cannot find the file specified
[12:55:40][WARNING ] Could not deduce latest release version from history.

This is because 'git' does not resolve to git.bat unless shell=True is
passed to subprocess.Popen. This change passes shell=True but only on
Windows which resolves these errors.
2023-02-23 03:24:34 +00:00
github-actions[bot]
9017cfcf62
Roll external/googletest/ 7a7231c44..750d67d80 (1 commit) (#5119)
7a7231c442...750d67d809

$ git log 7a7231c44..750d67d80 --date=short --no-merges --format='%ad %ae %s'
2023-02-21 tomhughes Remove int64_t cast in RecordProperty

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-22 11:23:34 +00:00
github-actions[bot]
8bcaad28f7
Roll external/re2/ 9049cd28d..3a8436ac4 (1 commit) (#5117)
9049cd28d7...3a8436ac43

$ git log 9049cd28d..3a8436ac4 --date=short --no-merges --format='%ad %ae %s'
2023-02-20 junyer Fuzz `RE2::Set` and `FilteredRE2`.

Created with:
  roll-dep external/re2

Co-authored-by: GitHub Actions[bot] <>
2023-02-21 13:44:37 +00:00
Nathan Gauër
987a5f1367
build: change the way we set cxx version for bazel. (#5114)
Before, we did set cxx version to c++17 using COPTS in our bazel files.
This was wrong, and part of the dependencies were then built with the
default standard version. This was not an issue until we moved to c++17.

Then, we decided to use the bazel --cxxopt=-std=c++17, but this was only
valid for nix platforms.
The last option left is to ask the user to specify the standard
when building using bazel.
2023-02-20 11:11:16 +01:00
github-actions[bot]
69ed5adf10
Roll external/googletest/ f063cd25c..7a7231c44 (1 commit) (#5116)
f063cd25c9...7a7231c442

$ git log f063cd25c..7a7231c44 --date=short --no-merges --format='%ad %ae %s'
2023-02-16 absl-team Fix link in ReportUninterestingCall message

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-17 14:45:07 +00:00
github-actions[bot]
c9947cc8d5
Roll external/googletest/ 2057566e4..f063cd25c (1 commit) (#5115)
2057566e4e...f063cd25c9

$ git log 2057566e4..f063cd25c --date=short --no-merges --format='%ad %ae %s'
2023-02-15 absl-team Remove strdup usage

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-16 13:11:36 +00:00
Dave Airlie
956114df28
opt: fix spirv ABI on Linux again. (#5113)
Breaking the ABI for this API isn't worth it when the fix is so simple.
2023-02-15 20:11:30 +00:00
Kévin Petit
f4343515ad
Remove duplicate lists of constant and type opcodes (#5106)
Adding a new type instruction required making the same change in two
places.

Also remove IsCompileTimeConstantInst that was used in a single place
and replace its use by an expression that better conveys the intent.

Change-Id: I49330b74bd34a35db6369c438c053224805c18e0

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2023-02-15 20:09:55 +00:00
github-actions[bot]
95f93810bb
Roll external/googletest/ b80a07ffe..2057566e4 (1 commit) (#5112)
b80a07ffe6...2057566e4e

$ git log b80a07ffe..2057566e4 --date=short --no-merges --format='%ad %ae %s'
2023-02-14 absl-team Remove some filesystem APIs and tests under !GTEST_HAS_FILE_SYSTEM

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-15 12:11:14 +00:00
Nathan Gauër
b84c86f718
libspirv.cpp: adds c++ api for spvBinaryParse (#5109)
This commit adds a C++ wrapper above the current spvBinaryParse
function. I tried to match it 1:1, except for 2 things:
 - std::function<>& are used. No more function pointers, allowing
   context capture.
 - spv_result_t replaced with a boolean, to match other C++ apis.

Callbacks still return a spv_result_t because the underlying implem
relies on that. The convertion from spv_result_t to boolean is only done
at the boundary.

Signed-off-by: Nathan Gauër <brioche@google.com>
2023-02-14 14:08:20 -05:00
github-actions[bot]
e150e716ff
roll deps (#5110)
* Roll external/googletest/ b73f27fd1..b80a07ffe (1 commit)

b73f27fd16...b80a07ffe6

$ git log b73f27fd1..b80a07ffe --date=short --no-merges --format='%ad %ae %s'
2023-02-13 absl-team Avoid reliance on <any> header without RTTI on MSVC

Created with:
  roll-dep external/googletest

* Roll external/re2/ 891fa6684..9049cd28d (2 commits)

891fa66846...9049cd28d7

$ git log 891fa6684..9049cd28d --date=short --no-merges --format='%ad %ae %s'
2023-02-13 junyer Add the `RE2_BUILD_FRAMEWORK` option to build RE2 as a framework.
2023-02-13 junyer Use `PUBLIC_HEADER` to install headers.

Created with:
  roll-dep external/re2

---------

Co-authored-by: GitHub Actions[bot] <>
2023-02-14 04:04:34 +00:00
github-actions[bot]
7221381361
Roll external/re2/ b025c6a3a..891fa6684 (1 commit) (#5108)
b025c6a3ae...891fa66846

$ git log b025c6a3a..891fa6684 --date=short --no-merges --format='%ad %ae %s'
2023-02-10 junyer Fix a typographical error.

Created with:
  roll-dep external/re2

Co-authored-by: GitHub Actions[bot] <>
2023-02-12 00:29:44 +00:00
github-actions[bot]
5b48c549b0
Roll external/googletest/ 0570e2d93..b73f27fd1 (1 commit) (#5105)
0570e2d930...b73f27fd16

$ git log 0570e2d93..b73f27fd1 --date=short --no-merges --format='%ad %ae %s'
2023-02-08 tomhughes Fix _MSC_VER check

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-09 13:16:56 +00:00
Kevin Lubick
dfcbf310af
Change exec_tools -> tools for local genrule (#5104) 2023-02-08 09:20:47 -05:00
github-actions[bot]
b0504f9905
Roll external/googletest/ 3d568bdda..0570e2d93 (2 commits) (#5102)
3d568bdda5...0570e2d930

$ git log 3d568bdda..0570e2d93 --date=short --no-merges --format='%ad %ae %s'
2023-02-07 tomhughes Remove GTEST_USES_PCRE references
2023-02-07 mvels Fix GTEST_HAS_ABSL define check for [-Werror=undef] compilations

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-08 12:48:50 +00:00
github-actions[bot]
c965624e34
Roll external/googletest/ 2f2e72bae..3d568bdda (1 commit) (#5100)
2f2e72bae9...3d568bdda5

$ git log 2f2e72bae..3d568bdda --date=short --no-merges --format='%ad %ae %s'
2023-02-06 absl-team Add support for the alternative base64 encoding in RFC 4648 section 5 to `WhenBase64Unescaped`.

Created with:
  roll-dep external/googletest

Co-authored-by: GitHub Actions[bot] <>
2023-02-07 14:17:24 +00:00
Caio Oliveira
0ce2bc4ce0
spirv-val: Conditional Branch without an exit is invalid in loop header (#5069)
* Update fuzz tests to not use invalid combinations of LoopMerge + BranchConditional

New IDs were selected to make clear the transformation being done here, instead
of reordering all IDs in between or refactoring the SPIR-V in the test.

* spirv-val: Conditional Branch without an exit is invalid in loop header

From 2.16.2, for CFG:

    Selections must be structured. That is, an OpSelectionMerge
    instruction is required to precede:

    - an OpSwitch instruction

    - an OpBranchConditional instruction that has different True Label
      and False Label operands where neither are declared merge blocks
      or Continue Targets.
2023-02-06 10:31:47 -05:00