Revision d5a81186a0093bc4e1b02bd37757a5f1ba8b2390 authored by Andrew Adams on 26 September 2022, 21:47:13 UTC, committed by GitHub on 26 September 2022, 21:47:13 UTC
* Clean up some pointless code * Improve comment on Halide::round * Make Halide::round round to even as documented * Explicitly set the rounding mode in the C backend * Use rint on ptx, which is documented to round to even * round to even on win32 * the nvidia libdevice is buggy for doubles See https://reviews.llvm.org/D85236 * Add missing include to C output * Fix rounding in opencl * Don't test opencl with doubles if CLDoubles is not enabled * Work around hexagon issue * Don't try to emit roundeven on wasm * wasm doesn't support float16 * Add vectorizable lowering for round on platforms without roundeven * Use rint on metal for Halide::round * Make round an intrinsic * Constant-fold round in simplifier * d3d12 fix * Bounds of Call::round * Teach the mullapudi cost model about round * Handle PureIntrinsics of const args in bounds * scatter, undef, and require aren't pure * metal doesn't support doubles * More parens * Add missing return * Add vector versions of rint for wasm * Use nearbyint for wasm instead of rint * revert change to mangling * d3d12 doesn't like double input/output buffers * Lower round on arm-32 not-linux * Don't simplify lowering of round-to-nearest-ties-to-even in codegen * Fix infinite loop in round lowering on arm-32-notlinux * Take care to never revisit args in bounds call visitor * Remove defunct comment Co-authored-by: Steven Johnson <srj@google.com>
1 parent 59353ab
.clang-tidy
# TODO: some of the blocklisted bugprone checks can/should be re-enabled
# one at a time (with careful code fixes made as necessary).
---
Checks: >
-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-integer-division,
-bugprone-narrowing-conversions,
-bugprone-reserved-identifier,
-bugprone-signed-char-misuse,
clang-diagnostic-shadow-field,
misc-*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-misc-unconventional-assign-operator,
-misc-unused-parameters,
modernize-deprecated-headers,
modernize-loop-convert,
modernize-make-shared,
modernize-make-unique,
modernize-redundant-void-arg,
modernize-use-bool-literals,
# Disabled: there is not consensus on whether the Clang-14 behavior
# of this checker is always desirable or not, and there isn't currently
# a way to revert to the Clang-13 behavior. We may revisit this
# check the next time we examine clang-tidy options.
# modernize-use-default-member-init,
modernize-use-emplace,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-nullptr,
modernize-use-override,
performance-*,
-performance-inefficient-string-concatenation,
-performance-inefficient-vector-operation,
-performance-no-int-to-ptr,
readability-avoid-const-params-in-decls,
readability-braces-around-statements,
readability-const-return-type,
readability-container-size-empty,
readability-misplaced-array-index,
readability-qualified-auto,
readability-redundant-access-specifiers,
readability-redundant-control-flow,
readability-redundant-function-ptr-dereference,
readability-redundant-preprocessor,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: 'file'
#CheckOptions:
# - key: modernize-use-default-member-init.UseAssignment
# value: 1
...
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...