FailedChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. Remarks - fix shadow variable warnings. NFCI. (details)
  2. Fix shadow variable warning by reducing scope of CC/InverseCC CondCodes. (details)
  3. Remove superfluous break after return. NFC. (details)
  4. Statistic - Fix shadow variable warning. NFCI. (details)
  5. Remove duplicate MemVT to fix shadow variable warning. NFCI. (details)
  6. Remarks - fix static analyzer warnings. NFCI.  - Fix uninitialized (details)
  7. llvm-exegesis - fix shadow variable warnings. NFCI. (details)
  8. Fix builds where LLVM_ENABLE_STATS is disabled (details)
  9. [NFC] Supress GCC "Bitfield too small to hold all values of enum" (details)
  10. [Parser] Warn when ScopeDepthOrObjCQuals overflows (details)
  11. [libc++] Validate the entire regex is consumed (details)
  12. [BPF] Add preserve_access_index attribute for record definition (details)
  13. Revert "[BPF] Add preserve_access_index attribute for record definition" (details)
Commit 0d5ad57ae34bacbc4f5e5f42508d579bf39bb8cf by llvm-dev
Remarks - fix shadow variable warnings. NFCI.
Avoid conflict with llvm::remarks::Magic global variable.
The file was modifiedllvm/lib/Remarks/RemarkFormat.cpp
The file was modifiedllvm/lib/Remarks/BitstreamRemarkParser.cpp
Commit 59a14f9d4b9fc322e7af634970ef6d236ebc8d07 by llvm-dev
Fix shadow variable warning by reducing scope of CC/InverseCC CondCodes.
NFCI.
The file was modifiedllvm/lib/Target/AMDGPU/R600ISelLowering.cpp
Commit a35a44fd4b5e5b3c0bb9ca05e968b844b0c5e02d by llvm-dev
Remove superfluous break after return. NFC.
The file was modifiedllvm/lib/Target/AMDGPU/R600ISelLowering.cpp
Commit 3fb832fe8bdc317687d5a4d2ca20f5f73b089341 by llvm-dev
Statistic - Fix shadow variable warning. NFCI.
Rename option 'Stats' to 'EnableStats' and prevent clash with
StatisticInfo::Stats member
The file was modifiedllvm/lib/Support/Statistic.cpp
Commit dda8015434c41fcad81c49dee581666b05c40a08 by llvm-dev
Remove duplicate MemVT to fix shadow variable warning. NFCI.
The file was modifiedllvm/lib/Target/AMDGPU/R600ISelLowering.cpp
Commit 56a725ae5e1d5ad8673658bbd7717a9fe1ef054f by llvm-dev
Remarks - fix static analyzer warnings. NFCI.  - Fix uninitialized
variable warnings.  - Reuse BitstreamEntry iterator to avoid Wshadow
warning.  - Match declaration + definition arg names in
BitstreamRemarkParser::processCommonMeta  - Make
BitstreamRemarkParser(StringRef) constructor explicit
The file was modifiedllvm/lib/Remarks/BitstreamRemarkParser.cpp
The file was modifiedllvm/include/llvm/Bitstream/BitstreamReader.h
The file was modifiedllvm/include/llvm/Remarks/Remark.h
The file was modifiedllvm/lib/Remarks/BitstreamRemarkParser.h
Commit aedb528d4300a1dcb0980780f8ab45ecf64dc1d8 by llvm-dev
llvm-exegesis - fix shadow variable warnings. NFCI.
The file was modifiedllvm/tools/llvm-exegesis/llvm-exegesis.cpp
The file was modifiedllvm/tools/llvm-exegesis/lib/Assembler.cpp
Commit 2fb9d72c774ab7de26be079fe474e35f683859bc by llvm-dev
Fix builds where LLVM_ENABLE_STATS is disabled
Missed Stats->EnableStats rename in
rG3fb832fe8bdc317687d5a4d2ca20f5f73b089341
The file was modifiedllvm/lib/Support/Statistic.cpp
Commit 56b5eab12970e540c629e9b9a8a95256c116a547 by richard
[NFC] Supress GCC "Bitfield too small to hold all values of enum"
warning.
Patch by Wang Tianqing!
Differential Revision: https://reviews.llvm.org/D69792
The file was modifiedclang/include/clang/Sema/Overload.h
The file was modifiedclang/lib/Sema/SemaOverload.cpp
Commit b9be5ce8f3e0e697a61ad16e2c669de6ea8f8739 by koraq
[Parser] Warn when ScopeDepthOrObjCQuals overflows
Before when the overflow occured an assertion was triggered. Now check
whether the maximum has been reached and warn properly.
This patch fixes the original submission of PR19607.
Differential Revision: https://reviews.llvm.org/D63975
The file was addedclang/test/Parser/nested_blocks_overflow.cpp
The file was modifiedclang/lib/Parse/ParseDecl.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticParseKinds.td
The file was addedclang/test/Parser/nested_function_prototype_overflow.cpp
The file was modifiedclang/include/clang/AST/Decl.h
The file was addedclang/test/Parser/nested_lambda_overflow.cpp
Commit 27c4eaac8c066eb1f7c5ad26c6fbc3e78eded778 by koraq
[libc++] Validate the entire regex is consumed
This change would have warned about the bug found in D62451. No unit
tests since the exception should never throw.
Differential Revision: https://reviews.llvm.org/D62452
The file was modifiedlibcxx/include/regex
The file was modifiedlibcxx/src/regex.cpp
Commit 4a5aa1a7bf8b1714b817ede8e09cd28c0784228a by yhs
[BPF] Add preserve_access_index attribute for record definition
This patch introduced a new bpf specific attribute which can be added to
struct or union definition. For example,
struct s { ... } __attribute__((preserve_access_index));
union u { ... } __attribute__((preserve_access_index)); The goal is to
simplify user codes for cases where preserve access index happens for
certain struct/union, so user does not need to use clang
__builtin_preserve_access_index for every members.
The attribute has no effect if -g is not specified.
When the attribute is specified and -g is specified, any member access
defined by that structure or union, including array subscript access and
inner records, will be preserved through
__builtin_preserve_{array,struct,union}_access_index() IR intrinsics,
which will enable relocation generation in bpf backend.
The following is an example to illustrate the usage:
-bash-4.4$ cat t.c
#define __reloc__ __attribute__((preserve_access_index))
struct s1 {
   int c;
} __reloc__;
  struct s2 {
   union {
     struct s1 b[3];
   };
} __reloc__;
  struct s3 {
   struct s2 a;
} __reloc__;
  int test(struct s3 *arg) {
   return arg->a.b[2].c;
}
-bash-4.4$ clang -target bpf -g -S -O2 t.c
A relocation with access string "0:0:0:0:2:0" will be generated
representing access offset of arg->a.b[2].c.
forward declaration with attribute is also handled properly such that
the attribute is copied and populated in real record definition.
Differential Revision: https://reviews.llvm.org/D69759
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-3.c
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was addedclang/test/Sema/bpf-attr-preserve-access-index.c
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-8.c
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-7.c
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-5.c
The file was modifiedclang/lib/CodeGen/CGExpr.cpp
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-1.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-6.c
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-2.c
The file was addedclang/test/CodeGen/bpf-attr-preserve-access-index-4.c
The file was modifiedclang/include/clang/Basic/Attr.td
Commit 9434360401218ae02aaea1fbb53a42bc3af2bc76 by yhs
Revert "[BPF] Add preserve_access_index attribute for record definition"
This reverts commit 4a5aa1a7bf8b1714b817ede8e09cd28c0784228a.
There are some other test failures. Investigate them first.
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-7.c
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-3.c
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-8.c
The file was modifiedclang/lib/CodeGen/CGExpr.cpp
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-5.c
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-2.c
The file was modifiedclang/include/clang/Basic/Attr.td
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-4.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-1.c
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was removedclang/test/Sema/bpf-attr-preserve-access-index.c
The file was removedclang/test/CodeGen/bpf-attr-preserve-access-index-6.c