1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[PM] Rename InstCombine.h to InstCombineInternal.h in preparation for

creating a non-internal header file for the InstCombine pass.

I thought about calling this InstCombiner.h or in some way more clearly
associating it with the InstCombiner clas that it is primarily defining,
but there are several other utility interfaces defined within this for
InstCombine. If, in the course of refactoring, those end up moving
elsewhere or going away, it might make more sense to make this the
combiner's header alone.

Naturally, this is a bikeshed to a certain degree, so feel free to lobby
for a different shade of paint if this name just doesn't suit you.

llvm-svn: 226783
This commit is contained in:
Chandler Carruth 2015-01-22 05:25:13 +00:00
parent 001ed18423
commit 5b2abcc667
14 changed files with 21 additions and 16 deletions

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/IR/DataLayout.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/IR/ConstantRange.h"
#include "llvm/IR/Intrinsics.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/IR/CallSite.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/PatternMatch.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ConstantFolding.h"

View File

@ -1,4 +1,4 @@
//===- InstCombine.h - Main InstCombine pass definition ---------*- C++ -*-===//
//===- InstCombineInternal.h - InstCombine pass internals -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@ -6,9 +6,14 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
/// \file
///
/// This file provides internal interfaces used to implement the InstCombine.
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TRANSFORMS_INSTCOMBINE_INSTCOMBINE_H
#define LLVM_LIB_TRANSFORMS_INSTCOMBINE_INSTCOMBINE_H
#ifndef LLVM_LIB_TRANSFORMS_INSTCOMBINE_INSTCOMBINEINTERNAL_H
#define LLVM_LIB_TRANSFORMS_INSTCOMBINE_INSTCOMBINEINTERNAL_H
#include "InstCombineWorklist.h"
#include "llvm/Analysis/AssumptionCache.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/IR/DataLayout.h"

View File

@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/PatternMatch.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Analysis/InstructionSimplify.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/IR/PatternMatch.h"

View File

@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/IR/IntrinsicInst.h"

View File

@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/PatternMatch.h"

View File

@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm/IR/PatternMatch.h"
using namespace llvm;
using namespace PatternMatch;

View File

@ -34,7 +34,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Scalar.h"
#include "InstCombine.h"
#include "InstCombineInternal.h"
#include "llvm-c/Initialization.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"