Commit Graph

364354 Commits

Author SHA1 Message Date
Luke Street 078a5389e5 [hsh] Cast enum values to int in SpecializationTree 2020-10-02 07:07:31 -04:00
Jack Andersen 381ad7535f Merge pull request #5 from encounter/macos10.15
[hsh] macOS 10.15 build fixes
2020-09-30 13:38:01 -10:00
Jack Andersen 85aa55ce59 Merge pull request #4 from encounter/tex_load
[hsh] Add texture Load (aka read) prototype & float3 splat functions
2020-09-30 13:36:42 -10:00
Luke Street b9d4f1a2de [hsh] Fix GLSL ivec/uvec naming & cast texelFetch arg 2020-09-30 19:30:06 -04:00
Luke Street bbe28ff67e [hsh] Use uint for read prototype to make Metal happy 2020-09-30 19:09:17 -04:00
Luke Street b8184b01be [hsh] macOS 10.15 build fixes
Fixes compiling without HSH_METAL_BINARY_ARCHIVE
Patches UAM to use more modern python3 search
2020-09-30 18:54:25 -04:00
Luke Street 6425ae3000 [hsh] Ignore CXXDefaultArgExpr in overrideCallArguments PrintExpr 2020-09-30 18:43:37 -04:00
Jack Andersen 844e50b1a3 Merge pull request #3 from encounter/fixed_render_texture2d
[hsh] Add create_render_texture2d overload with fixed extents & format
2020-09-30 12:11:15 -10:00
Jack Andersen 7b8e7a28f8 Merge pull request #2 from encounter/vertex_instance_id
[hsh] Add vertex ID and instance ID pipeline fields
2020-09-30 12:07:43 -10:00
Luke Street be4fc6055f [hsh] Add texture Load (aka read) prototype & float3 splat functions 2020-09-30 16:46:04 -04:00
Luke Street 7778f36b69 [hsh] Add create_render_texture2d overload with fixed extents & format 2020-09-29 20:16:25 -04:00
Luke Street 5b579afa82 [hsh] Add vertex ID and instance ID pipeline fields 2020-09-29 04:03:12 -04:00
Jack Andersen 48d07b3bd9 [hsh] Support for iOS 2020-08-23 22:29:48 -10:00
Jack Andersen e4ef4ce9cf [hsh] handle zero-sized WSI surfaces 2020-08-22 16:57:24 -10:00
Jack Andersen e5243b0b54 [hsh] fix libhsh MSVC compiler warnings 2020-08-22 16:41:04 -10:00
Jack Andersen 1a756476ea Merge branch 'master' into hsh 2020-08-22 15:05:33 -10:00
Mehdi Amini f164534ca8 Add a dialect_registration callback for "translations" registered with mlir-translate
This will allow out-of-tree translation to register the dialects they expect
to see in their input, on the model of getDependentDialects() for passes.

Differential Revision: https://reviews.llvm.org/D86409
2020-08-23 01:00:39 +00:00
Mehdi Amini 96cb8cdeb0 Refactor mlir-translate to extract the main() logic in a helper on the model of MlirOptMain() (NFC)
Differential Revision: https://reviews.llvm.org/D86408
2020-08-23 01:00:31 +00:00
Jack Andersen 34ed8794f1 [hsh] Update DXC 2020-08-22 14:57:42 -10:00
Mehdi Amini 12541b5ed5 Use TranslateFromMLIRRegistration for SPIRV roundtrip (NFC)
This is aligning it with the other "translation" which operates on a MLIR input.
2020-08-23 00:40:50 +00:00
Ryan Prichard 3c1b2e338d [libunwind] Make findUnwindSectionsByPhdr static
Currently, this function is present in the dynsym table of
libunwind.so (on ELF targets). Make the function static instead.

In the previous release (LLVM 10.x), this function was instead a lambda
function inside LocalAddressSpace::findUnwindSections, and because
LocalAddressSpace was marked with _LIBUNWIND_HIDDEN, the lambda
function was also a hidden symbol.

Differential Revision: https://reviews.llvm.org/D86372
2020-08-22 17:12:52 -07:00
Craig Topper cc7bf9bcbf [X86] Allow 32-bit mode only CPUs with -mtune on 64-bit targets
gcc errors on this, but I'm nervous that since -mtune has been
ignored by clang for so long that there may be code bases out
there that pass 32-bit cpus to clang.
2020-08-22 16:38:05 -07:00
Fangrui Song ba93844d11 [DebugInfo][test] Fix dwarf-callsite-related-attrs.ll after llvm-dwarfdump --statistics change 2020-08-22 14:09:19 -07:00
Fangrui Song 481c3b8c94 [llvm-dwarfdump] --statistics: break lines and indent by 2
so that the user does not have to pipe the output to `jq` or `python -m json.tool`.
This change makes testing more convenient because `-NEXT` patterns can be used.
The "prettify by default" is a good tradeoff to make. The output size increases a bit.

Differential Revision: https://reviews.llvm.org/D86318
2020-08-22 13:58:18 -07:00
Sanjay Patel 79cb289a95 [DAGCombiner] add early exit for store merging of truncs
This should be NFC in terms of output because the endian
check further down would bail out too, but we are wasting
time by waiting to that point to give up. If we generalize
that function to deal with more than i8 types, we should
not have to deal with the degenerate case.
2020-08-22 16:25:16 -04:00