DirectXShaderCompiler/lib/HLSL
Greg Roth a89e4e48f1 [linux-port] Casts for compares and assigns (#1328)
Various comparisons produce warnings because the values differ in
signedness. This either changes the type of one of the parameters
or else it casts one. This includes adding casts to all of the
defined return error values. Which is more than was needed, but
consistent with some existing values anyway.
Fixes 11 clang and 12 gcc warnings.

Eliminate a few greater than or equal comparisons of unsigned
values which are always true. The most aggressive of this is
the exclusion of a function that has become a no-op because of
HLSL initialization of a key variable that had some invalid
comparisons because of the same const value.
Fixes 4 clang and 7 gcc warnings.

Additionally casts a few parameters to the proper type to silence
warnings about confusing or problem casts. This includes printing
functions, array indices, and deletes of void pointers. The latter
of which might have caused problems.
Fixes 6 clang 6 gcc warnings.

One incidental change that silences a warning about security for
using a string variable as the format for printf. Since it just
outputs the string, fputs is more appropriate anyway. Also
directed to stderr as more appropriate for debug info.
2018-06-07 12:49:02 -04:00
..
CMakeLists.txt Don't sink sample coordinate into control flow. (#1188) 2018-03-29 16:33:59 -07:00
ComputeViewIdState.cpp [linux-port] Replace tests of never null addresses (#1318) 2018-06-05 13:54:01 -04:00
ControlDependence.cpp Fix ViewID state for flow control and consistent ViewID detection (#484) 2017-07-28 11:51:15 -07:00
DxcOptimizer.cpp [linux-port] Mark all overridden methods (#1319) 2018-05-30 09:07:16 -04:00
DxilAddPixelHitInstrumentation.cpp [linux-port] Casts for compares and assigns (#1328) 2018-06-07 12:49:02 -04:00
DxilCBuffer.cpp fixes #37 - License cleanup. 2017-01-27 16:48:08 -08:00
DxilCompType.cpp Native Int16 and Uint16 types (#783) 2017-11-09 10:03:27 -08:00
DxilCondenseResources.cpp Support resource select for lib profile. (#940) 2017-12-20 10:47:29 -08:00
DxilContainer.cpp fixes #37 - License cleanup. 2017-01-27 16:48:08 -08:00
DxilContainerAssembler.cpp [linux-port] Scalar initialization warnings (#1316) 2018-05-30 08:51:05 -04:00
DxilContainerReflection.cpp Change SAL __override to C++11 override (#1212) 2018-04-26 15:18:56 -04:00
DxilConvergent.cpp Don't sink sample coordinate into control flow. (#1188) 2018-03-29 16:33:59 -07:00
DxilDebugInstrumentation.cpp [linux-port] Compile improvements (helps gcc). (#1307) 2018-05-24 16:32:06 -04:00
DxilEliminateOutputDynamicIndexing.cpp Fix typo in StoreOutput outputSigId parameter (#385) 2017-06-26 16:39:19 -07:00
DxilExpandTrigIntrinsics.cpp Expand tan to sin/cos in DxilExpandTrigIntrinsics. (#343) 2017-06-07 18:36:00 -07:00
DxilForceEarlyZ.cpp Move PIX options out of DxilGenerationPass.*, use option string properly, reduce header usage (#1022) 2018-01-26 15:43:44 -08:00
DxilGenerationPass.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
DxilInterpolationMode.cpp fixes #37 - License cleanup. 2017-01-27 16:48:08 -08:00
DxilLegalizeSampleOffsetPass.cpp Legalize sample offset when optimization is disabled. (#97) 2017-02-18 00:46:17 -08:00
DxilLinker.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
DxilMetadataHelper.cpp [linux-port] Correct const casts (#1324) 2018-05-30 16:14:59 -04:00
DxilModule.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
DxilOperations.cpp [linux-port] Replace tests of never null addresses (#1318) 2018-06-05 13:54:01 -04:00
DxilOutputColorBecomesConstant.cpp Move PIX options out of DxilGenerationPass.*, use option string properly, reduce header usage (#1022) 2018-01-26 15:43:44 -08:00
DxilPreparePasses.cpp Support isfrontface as uint. (#919) 2017-12-13 20:41:51 -08:00
DxilPreserveAllOutputs.cpp Add pass to preserve all outputs (#326) 2017-05-30 09:41:54 -07:00
DxilReduceMSAAToSingleSample.cpp Move PIX options out of DxilGenerationPass.*, use option string properly, reduce header usage (#1022) 2018-01-26 15:43:44 -08:00
DxilRemoveDiscards.cpp Move PIX options out of DxilGenerationPass.*, use option string properly, reduce header usage (#1022) 2018-01-26 15:43:44 -08:00
DxilResource.cpp allows Texture2DMS(Array).Load() to have offsets (#1254) 2018-05-11 10:27:14 -07:00
DxilResourceBase.cpp fixes #37 - License cleanup. 2017-01-27 16:48:08 -08:00
DxilRootSignature.cpp [linux-port] Casts for compares and assigns (#1328) 2018-06-07 12:49:02 -04:00
DxilSampler.cpp fixes #37 - License cleanup. 2017-01-27 16:48:08 -08:00
DxilSemantic.cpp Various small code tweaks (#398) 2017-07-16 18:28:35 -07:00
DxilShaderAccessTracking.cpp [linux-port] Casts for compares and assigns (#1328) 2018-06-07 12:49:02 -04:00
DxilShaderModel.cpp [linux-port] Compile improvements (helps gcc). (#1307) 2018-05-24 16:32:06 -04:00
DxilSignature.cpp Group Signature Elements by Element Width (#610) 2017-09-06 11:04:33 -07:00
DxilSignatureElement.cpp [linux-port] Fix DXASSERT warnings (#1322) 2018-05-31 15:27:06 -04:00
DxilTargetLowering.cpp Merge DivergenceAnalysis from llvm3.8. (#528) 2017-08-07 12:14:46 -07:00
DxilTargetTransformInfo.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
DxilTargetTransformInfo.h Merge DivergenceAnalysis from llvm3.8. (#528) 2017-08-07 12:14:46 -07:00
DxilTypeSystem.cpp [linux-port] Replace tests of never null addresses (#1318) 2018-06-05 13:54:01 -04:00
DxilUtil.cpp Support local resource array which don't have dynamic indexing. (#938) 2017-12-19 15:29:11 -08:00
DxilValidation.cpp [linux-port] Correct conditional groupings (#1326) 2018-06-02 04:19:14 -04:00
HLMatrixLowerPass.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
HLModule.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
HLOperationLower.cpp [linux-port] Unused variables in conditionals (#1336) 2018-06-02 11:23:51 -04:00
HLOperationLowerExtension.cpp [linux-port] Remove extra semicolons (#1317) 2018-05-30 06:36:14 -04:00
HLOperations.cpp [linux-port] Fix preprocessor warnings (#1323) 2018-05-30 12:50:46 -04:00
HLPreprocess.cpp Remove stacksave and stackstore. (#914) 2017-12-12 18:50:01 -08:00
HLResource.cpp fixes #37 - License cleanup. 2017-01-27 16:48:08 -08:00
HLSignatureLower.cpp [linux-port] Dummy access to unused variables (#1325) 2018-06-01 19:44:16 -04:00
HLSignatureLower.h Code cleanup. 2017-06-19 15:15:38 -07:00
LLVMBuild.txt [linux-port] Define LLVMBuild.txt for DxcSupport. (#1292) 2018-05-17 22:55:54 -04:00
PauseResumePasses.cpp [linux-port] Casts for compares and assigns (#1328) 2018-06-07 12:49:02 -04:00
ReducibilityAnalysis.cpp Add reducibility analysis to the list of passes and paramless ctor. (#133) 2017-03-14 17:41:11 -07:00
WaveSensitivityAnalysis.cpp Match filename cases (#199) 2017-04-10 22:52:10 -07:00