AbortedChanges

Summary

  1. Clang-format: Add Whitesmiths indentation style (details)
  2. [Cost][X86] Add v2i64 truncation costs (details)
  3. [Hexagon] Don't dereference dyn_cast<ConstantFPSDNode> result. NFCI. (details)
  4. [MIPS] Don't dereference dyn_cast<> Constant results. NFCI. (details)
  5. AMDGPUPrintfRuntimeBinding - silence static analyzer null dereference (details)
  6. [VPlan] Silence static analyzer dyn_cast null dereference warning. NFCI. (details)
  7. [Lanai] LanaiAsmParser - Silence static analyzer dyn_cast null (details)
  8. [NVPTX] NVPTXLowerAggrCopies - Silence static analyzer (details)
  9. gn build: Add build files for llvm/lib/Target/AVR (details)
  10. gn build: Add missing RISCV to llvm_targets_to_build="all" (details)
  11. [AArch64] AArch64StackTagging - Silence static analyzer dyn_cast<> null (details)
  12. Fix uninitialized variable warning. NFCI. (details)
Commit a506ed256aeba5f3d71d1cf58f8d193444a3c694 by mydeveloperday
Clang-format: Add Whitesmiths indentation style
Summary: This patch adds support for the Whitesmiths indentation style
to clang-format. It’s an update to a patch submitted in 2015 (D6833),
but reworks it to use the newer API.
There are still some issues with this patch, primarily around `switch`
and `case` support. The added unit test won’t currently pass because of
the remaining issues.
Reviewers: mboehme, MyDeveloperDay, djasper
Reviewed By: MyDeveloperDay
Subscribers: krasimir, MyDeveloperDay, echristo, cfe-commits
Patch By: @timwoj (Tim Wojtulewicz)
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67627
llvm-svn: 372497
The file was modifiedclang/docs/ClangFormatStyleOptions.rst (diff)
The file was modifiedclang/lib/Format/ContinuationIndenter.cpp (diff)
The file was modifiedclang/lib/Format/UnwrappedLineFormatter.cpp (diff)
The file was modifiedclang/lib/Format/Format.cpp (diff)
The file was modifiedclang/include/clang/Format/Format.h (diff)
The file was modifiedclang/unittests/Format/FormatTest.cpp (diff)
Commit 665ccbff60ff35b750002e28e8ac85cbaf1821c7 by llvm-dev
[Cost][X86] Add v2i64 truncation costs
We are missing costs for a lot of truncation cases, I'm hoping to
address all the 'zero cost' cases in trunc.ll
I thought this was a vector widening side effect, but even before this
we had some interesting LV decisions (notably over indvars) being made
due to these zero costs.
llvm-svn: 372498
The file was modifiedllvm/test/Analysis/CostModel/X86/arith-fix.ll (diff)
The file was modifiedllvm/test/Analysis/CostModel/X86/trunc.ll (diff)
The file was modifiedllvm/test/Analysis/CostModel/X86/cast.ll (diff)
The file was modifiedllvm/test/Analysis/CostModel/X86/arith-overflow.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/arith-fix.ll (diff)
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp (diff)
Commit 0b68a825ac1a3af837b9bec4dcaadbd3e15ec4ce by llvm-dev
[Hexagon] Don't dereference dyn_cast<ConstantFPSDNode> result. NFCI.
The static analyzer is warning about potential null dereference, but we
should be able to use cast<ConstantFPSDNode> directly and if not assert
will fire for us.
llvm-svn: 372499
The file was modifiedllvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp (diff)
Commit eb2941f10d06e7594a02c7b8749db3659ba13877 by llvm-dev
[MIPS] Don't dereference dyn_cast<> Constant results. NFCI.
The static analyzer is warning about potential null dereferences, but we
should be able to use cast<> directly and if not assert will fire for
us.
llvm-svn: 372500
The file was modifiedllvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp (diff)
Commit 2de9b107facc2a0320e081787e8dfae43be83008 by llvm-dev
AMDGPUPrintfRuntimeBinding - silence static analyzer null dereference
warnings. NFCI.
llvm-svn: 372501
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp (diff)
Commit a56bd6c51e9fbbc88a63fbec442964b5ebd8c3a0 by llvm-dev
[VPlan] Silence static analyzer dyn_cast null dereference warning. NFCI.
llvm-svn: 372502
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp (diff)
Commit 837959077001fabc556dbfe553e96dcfa8b8a9b8 by llvm-dev
[Lanai] LanaiAsmParser - Silence static analyzer dyn_cast null
dereference warnings. NFCI.
We were already doing this dyn_cast && isa<> && cast<> pattern for some
add*Operands methods, just do this more consistently to stop clang
static analyzer warning so much.
llvm-svn: 372503
The file was modifiedllvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp (diff)
Commit a75b947014ad3f38da7195aa7e2e7adb8e7e4bde by llvm-dev
[NVPTX] NVPTXLowerAggrCopies - Silence static analyzer
dyn_cast<StoreInst> null dereference warning. NFCI.
llvm-svn: 372504
The file was modifiedllvm/lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp (diff)
Commit 2e8d5d73992c3eece02b6a6a5f45b42df2ac65d0 by nicolasweber
gn build: Add build files for llvm/lib/Target/AVR
Differential Revision: https://reviews.llvm.org/D67872
llvm-svn: 372505
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/Disassembler/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/targets.gni (diff)
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/AsmParser/BUILD.gn
The file was modifiedllvm/utils/gn/TODO.txt (diff)
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/MCTargetDesc/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/TargetInfo/BUILD.gn
Commit 597ec24c14575f7857f260a4d9257c1d6f14fe7c by nicolasweber
gn build: Add missing RISCV to llvm_targets_to_build="all"
llvm-svn: 372506
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/targets.gni (diff)
Commit 62ed3fea67072724e825101188a77e6cd2b57669 by llvm-dev
[AArch64] AArch64StackTagging - Silence static analyzer dyn_cast<> null
dereference warning. NFCI.
The static analyzer is warning about potential null dereferences, but we
should be able to use cast<> directly and if not assert will fire for
us.
llvm-svn: 372507
The file was modifiedllvm/lib/Target/AArch64/AArch64StackTagging.cpp (diff)
Commit 8bfea8178038d3115e172e518af40db5b580e44b by llvm-dev
Fix uninitialized variable warning. NFCI.
llvm-svn: 372508
The file was modifiedllvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp (diff)