[PATCH] D16265: [opaque pointer types] GEP: replace getPointerElementType uses with get{Source, Result}ElementType.

Eduard Burtescu via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 16 16:59:23 PST 2016


eddyb created this revision.
eddyb added a reviewer: mjacob.
eddyb added subscribers: dblaikie, llvm-commits.

[breaking-change] SimplifyGEPInst: take the source element type of the GEP as an argument.

[breaking-change] gep_type_{begin,end} now take source element type and address space.

[breaking-change] DataLayout::getIndexedOffset: take source element type instead of pointer type.

GEPOperator: provide getResultElementType alongside getSourceElementType.

ConstantFoldInstOperands: add a form taking the Instruction or ConstantExpr for GEPs.

GEP: replace getPointerElementType uses with get{Source,Result}ElementType.

http://reviews.llvm.org/D16265

Files:
  include/llvm/Analysis/ConstantFolding.h
  include/llvm/Analysis/InstructionSimplify.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/IR/DataLayout.h
  include/llvm/IR/GetElementPtrTypeIterator.h
  include/llvm/IR/Operator.h
  lib/Analysis/BasicAliasAnalysis.cpp
  lib/Analysis/ConstantFolding.cpp
  lib/Analysis/InlineCost.cpp
  lib/Analysis/InstructionSimplify.cpp
  lib/Analysis/PHITransAddr.cpp
  lib/Analysis/ScalarEvolution.cpp
  lib/Analysis/ValueTracking.cpp
  lib/Analysis/VectorUtils.cpp
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  lib/CodeGen/SelectionDAG/FastISel.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/IR/ConstantFold.cpp
  lib/IR/ConstantFold.h
  lib/IR/Constants.cpp
  lib/IR/ConstantsContext.h
  lib/IR/DataLayout.cpp
  lib/IR/Operator.cpp
  lib/Target/AArch64/AArch64FastISel.cpp
  lib/Transforms/IPO/GlobalOpt.cpp
  lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  lib/Transforms/InstCombine/InstructionCombining.cpp
  lib/Transforms/Scalar/NaryReassociate.cpp
  lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  lib/Transforms/Scalar/ScalarReplAggregates.cpp
  lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  lib/Transforms/Utils/SimplifyCFG.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16265.45086.patch
Type: text/x-patch
Size: 45708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160117/fb9c1def/attachment.bin>


More information about the llvm-commits mailing list