SuccessChanges

Summary

  1. Revert r310716 (and r310735): [globalisel][tablegen] Support zero-instruction emission. Two of the Windows bots are failing test\CodeGen\X86\GlobalISel\select-inc.mir which should not have been affected by the change. Reverting while I investigate. Also reverted r310735 because it builds on r310716.
  2. Add documentation for llvm-pdbutil.
  3. [LLD/PDB] Write actual records to the globals stream. Previously we were writing an empty globals stream. Windows tools interpret this as "private symbols are not present in this PDB", even when they are, so we need to fix this. Regardless, without it we don't have information about global variables, so we need to fix it anyway. This patch does that. With this patch, the "lm" command in WinDbg correctly reports that we have private symbols available, but the "dv" command still refuses to display local variables. Differential Revision: https://reviews.llvm.org/D36535
  4. [mips] clang-format MipsSubtarget.cpp. This only fixes a few things and serves as my initial test commit.
  5. [opt-viewer] Decode HTML bytes for Python 3 Summary: When using Python 3, `pygments.highlight()` returns a `bytes` object, not a `str`, causing the call to `str.replace` on the following line to fail with a runtime exception: `TypeError: 'str' does not support the buffer interface`. Decode the bytes into a string in order to fix the exception. Test Plan: Run `opt-viewer.py` with Python 3.4, and confirm no runtime error occurs when calling `str.replace`. Reviewers: anemet Reviewed By: anemet Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36624
Revision 310745 by dsanders:
Revert r310716 (and r310735): [globalisel][tablegen] Support zero-instruction emission.

Two of the Windows bots are failing test\CodeGen\X86\GlobalISel\select-inc.mir
which should not have been affected by the change. Reverting while I investigate.

Also reverted r310735 because it builds on r310716.
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cppllvm.src/lib/Target/AArch64/AArch64InstructionSelector.cpp
The file was modified/llvm/trunk/test/CodeGen/AArch64/GlobalISel/select-bitcast.mirllvm.src/test/CodeGen/AArch64/GlobalISel/select-bitcast.mir
The file was modified/llvm/trunk/test/TableGen/GlobalISelEmitter.tdllvm.src/test/TableGen/GlobalISelEmitter.td
The file was modified/llvm/trunk/utils/TableGen/GlobalISelEmitter.cppllvm.src/utils/TableGen/GlobalISelEmitter.cpp
Revision 310744 by zturner:
Add documentation for llvm-pdbutil.
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/docs/CommandGuide/index.rstllvm.src/docs/CommandGuide/index.rst
The file was added/llvm/trunk/docs/CommandGuide/llvm-pdbutil.rstllvm.src/docs/CommandGuide/llvm-pdbutil.rst
Revision 310743 by zturner:
[LLD/PDB] Write actual records to the globals stream.

Previously we were writing an empty globals stream.  Windows
tools interpret this as "private symbols are not present in
this PDB", even when they are, so we need to fix this.  Regardless,
without it we don't have information about global variables, so
we need to fix it anyway.  This patch does that.

With this patch, the "lm" command in WinDbg correctly reports
that we have private symbols available, but the "dv" command
still refuses to display local variables.

Differential Revision: https://reviews.llvm.org/D36535
Change TypePath in RepositoryPath in Workspace
The file was modified/lld/trunk/COFF/PDB.cppN/A
The file was added/lld/trunk/test/COFF/Inputs/pdb-globals.yamlN/A
The file was modified/lld/trunk/test/COFF/pdb-comdat.testN/A
The file was modified/lld/trunk/test/COFF/pdb-global-gc.yamlN/A
The file was added/lld/trunk/test/COFF/pdb-globals.testN/A
The file was modified/lld/trunk/test/COFF/pdb-import-gc.yamlN/A
The file was modified/lld/trunk/test/COFF/pdb-safeseh.yamlN/A
The file was modified/lld/trunk/test/COFF/pdb-secrel-absolute.yamlN/A
The file was modified/lld/trunk/test/COFF/pdb-symbol-types.yamlN/A
The file was modified/lld/trunk/test/COFF/pdb-type-server-simple.testN/A
The file was added/llvm/trunk/include/llvm/DebugInfo/CodeView/RecordName.hllvm.src/include/llvm/DebugInfo/CodeView/RecordName.h
The file was modified/llvm/trunk/include/llvm/DebugInfo/CodeView/TypeDeserializer.hllvm.src/include/llvm/DebugInfo/CodeView/TypeDeserializer.h
The file was removed/llvm/trunk/include/llvm/DebugInfo/CodeView/TypeName.hllvm.src/include/llvm/DebugInfo/CodeView/TypeName.h
The file was modified/llvm/trunk/include/llvm/DebugInfo/CodeView/TypeRecord.hllvm.src/include/llvm/DebugInfo/CodeView/TypeRecord.h
The file was modified/llvm/trunk/include/llvm/DebugInfo/PDB/Native/GSIStreamBuilder.hllvm.src/include/llvm/DebugInfo/PDB/Native/GSIStreamBuilder.h
The file was modified/llvm/trunk/lib/DebugInfo/CodeView/CMakeLists.txtllvm.src/lib/DebugInfo/CodeView/CMakeLists.txt
The file was modified/llvm/trunk/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cppllvm.src/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp
The file was added/llvm/trunk/lib/DebugInfo/CodeView/RecordName.cppllvm.src/lib/DebugInfo/CodeView/RecordName.cpp
The file was removed/llvm/trunk/lib/DebugInfo/CodeView/TypeName.cppllvm.src/lib/DebugInfo/CodeView/TypeName.cpp
The file was modified/llvm/trunk/lib/DebugInfo/CodeView/TypeTableCollection.cppllvm.src/lib/DebugInfo/CodeView/TypeTableCollection.cpp
The file was modified/llvm/trunk/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cppllvm.src/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
Revision 310742 by jhb:
[mips] clang-format MipsSubtarget.cpp.

This only fixes a few things and serves as my initial test commit.
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/lib/Target/Mips/MipsSubtarget.cppllvm.src/lib/Target/Mips/MipsSubtarget.cpp
Revision 310741 by modocache:
[opt-viewer] Decode HTML bytes for Python 3

Summary:
When using Python 3, `pygments.highlight()` returns a `bytes` object, not
a `str`, causing the call to `str.replace` on the following line to fail
with a runtime exception:
`TypeError: 'str' does not support the buffer interface`. Decode the
bytes into a string in order to fix the exception.

Test Plan:
Run `opt-viewer.py` with Python 3.4, and confirm no runtime error occurs
when calling `str.replace`.

Reviewers: anemet

Reviewed By: anemet

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D36624
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/tools/opt-viewer/opt-viewer.pyllvm.src/tools/opt-viewer/opt-viewer.py