[PATCH] D25930: IR: Introduce a GlobalPointer type for all GlobalValues of pointer type.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 24 18:11:56 PDT 2016


pcc created this revision.
pcc added reviewers: efriedma, chandlerc, lattner.
pcc added a subscriber: llvm-commits.
Herald added subscribers: nhaehnle, nemanjai, mehdi_amini, dschuff, arsenm, jfb, jholewinski.
Herald added a reviewer: tstellarAMD.

At the moment, all GlobalValues are of pointer type, but a future
change will introduce a GlobalValue which is not of pointer type. See:
http://lists.llvm.org/pipermail/llvm-dev/2016-October/106434.html

To begin with, move PointerType *getType() and getValueType() to
GlobalPointer. Future changes will move other functionality to GlobalPointer.


https://reviews.llvm.org/D25930

Files:
  clang/lib/CodeGen/CGVTables.cpp
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/CodeGen/CodeGenModule.h
  clang/lib/CodeGen/ItaniumCXXABI.cpp
  llvm/include/llvm/CodeGen/SelectionDAGNodes.h
  llvm/include/llvm/IR/GlobalAlias.h
  llvm/include/llvm/IR/GlobalIndirectSymbol.h
  llvm/include/llvm/IR/GlobalObject.h
  llvm/include/llvm/IR/GlobalPointer.h
  llvm/include/llvm/IR/GlobalValue.h
  llvm/include/llvm/LTO/LTO.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  llvm/lib/IR/Globals.cpp
  llvm/lib/Linker/IRMover.cpp
  llvm/lib/Linker/LinkModules.cpp
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
  llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
  llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
  llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  llvm/lib/Target/XCore/XCoreISelLowering.cpp
  llvm/lib/Transforms/IPO/GlobalOpt.cpp
  llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  llvm/tools/llvm-nm/llvm-nm.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25930.75664.patch
Type: text/x-patch
Size: 39397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161025/0c7e7167/attachment.bin>


More information about the llvm-commits mailing list