Skip to content

Commit

Permalink
Flatten il directory (#3952)
Browse files Browse the repository at this point in the history
Flatten il directory
  • Loading branch information
fjeremic committed Oct 16, 2019
2 parents 72859a4 + b2d6ed3 commit 1bc0b85
Show file tree
Hide file tree
Showing 211 changed files with 669 additions and 695 deletions.
2 changes: 1 addition & 1 deletion compiler/aarch64/codegen/ARM64Instruction.hpp
Expand Up @@ -32,7 +32,7 @@
#include "codegen/MemoryReference.hpp"
#include "codegen/RegisterDependency.hpp"
#include "codegen/UnresolvedDataSnippet.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/LabelSymbol.hpp"
#include "infra/Assert.hpp"

namespace TR { class SymbolReference; }
Expand Down
2 changes: 1 addition & 1 deletion compiler/aarch64/codegen/ARM64SystemLinkage.cpp
Expand Up @@ -28,8 +28,8 @@
#include "codegen/Linkage_inlines.hpp"
#include "codegen/MemoryReference.hpp"
#include "env/StackMemoryRegion.hpp"
#include "il/AutomaticSymbol.hpp"
#include "il/Node_inlines.hpp"
#include "il/symbol/AutomaticSymbol.hpp"


TR::ARM64SystemLinkage::ARM64SystemLinkage(TR::CodeGenerator *cg)
Expand Down
6 changes: 3 additions & 3 deletions compiler/aarch64/codegen/BinaryEvaluator.cpp
Expand Up @@ -27,9 +27,9 @@
#include "codegen/Linkage.hpp"
#include "codegen/RegisterDependency.hpp"
#include "codegen/TreeEvaluator.hpp"
#include "il/AutomaticSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/symbol/AutomaticSymbol.hpp"
#include "infra/Bit.hpp"

/**
Expand Down Expand Up @@ -615,7 +615,7 @@ bool findLogicImmediateBitPattern(T value, int elementSize, int32_t &rotateCount
* @param[out] n : N bit
* @param[out] immEncoded : immr and imms encoded in 12bit field
* @return true if value can be encoded as immediate operand
*/
*/
static inline bool
logicImmediateHelper(uint64_t value, bool is64Bit, bool &n, uint32_t &immEncoded)
{
Expand All @@ -629,7 +629,7 @@ logicImmediateHelper(uint64_t value, bool is64Bit, bool &n, uint32_t &immEncoded
mask >>= elementSize;
imms >>= 1;
}
// all zeroes or all ones are not allowed
// all zeroes or all ones are not allowed
if ((value == 0) || (value == mask))
{
return false;
Expand Down
2 changes: 1 addition & 1 deletion compiler/aarch64/codegen/OMRMemoryReference.cpp
Expand Up @@ -30,7 +30,7 @@
#include "codegen/UnresolvedDataSnippet.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "il/StaticSymbol.hpp"


static void loadRelocatableConstant(TR::Node *node,
Expand Down
8 changes: 4 additions & 4 deletions compiler/aarch64/codegen/OMRTreeEvaluator.cpp
Expand Up @@ -29,12 +29,12 @@
#include "codegen/RegisterDependency.hpp"
#include "codegen/Relocation.hpp"
#include "codegen/TreeEvaluator.hpp"
#include "il/AutomaticSymbol.hpp"
#include "il/LabelSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/symbol/AutomaticSymbol.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "il/ParameterSymbol.hpp"
#include "il/StaticSymbol.hpp"

TR::Instruction *loadConstant32(TR::CodeGenerator *cg, TR::Node *node, int32_t value, TR::Register *trgReg, TR::Instruction *cursor)
{
Expand Down
14 changes: 7 additions & 7 deletions compiler/arm/codegen/ARMSystemLinkage.cpp
Expand Up @@ -20,12 +20,14 @@
*******************************************************************************/

#include "env/CompilerEnv.hpp"
#include "il/LabelSymbol.hpp"
#include "il/MethodSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "codegen/ARMInstruction.hpp"
#include "codegen/Linkage.hpp"
#include "codegen/Linkage_inlines.hpp"
Expand All @@ -38,8 +40,6 @@
#include "codegen/CallSnippet.hpp"
#endif
#include "codegen/StackCheckFailureSnippet.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"

struct UnsupportedParameterType : public virtual TR::CompilationException
{
Expand Down
2 changes: 1 addition & 1 deletion compiler/arm/codegen/ConstantDataSnippet.cpp
Expand Up @@ -31,8 +31,8 @@
#include "env/jittypes.h"
#include "il/ILOpCodes.hpp"
#include "il/Node.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "infra/Assert.hpp"
#include "infra/Bit.hpp"
#include "runtime/Runtime.hpp"
Expand Down
2 changes: 1 addition & 1 deletion compiler/arm/codegen/OMRCodeGenerator.cpp
Expand Up @@ -49,8 +49,8 @@
#include "env/jittypes.h"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/ParameterSymbol.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/symbol/ParameterSymbol.hpp"

TR_Processor OMR::ARM::CodeGenerator::_processor=TR_NullProcessor;

Expand Down
12 changes: 6 additions & 6 deletions compiler/arm/codegen/OMRLinkage.cpp
Expand Up @@ -42,16 +42,16 @@
#include "codegen/StackCheckFailureSnippet.hpp"
#include "env/CompilerEnv.hpp"
#include "env/StackMemoryRegion.hpp"
#include "il/LabelSymbol.hpp"
#include "il/MethodSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/TreeTop.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/Symbol.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"

#ifdef J9_PROJECT_SPECIFIC
#include "env/VMJ9.h"
Expand Down
10 changes: 5 additions & 5 deletions compiler/arm/codegen/OMRMemoryReference.hpp
Expand Up @@ -38,13 +38,13 @@ namespace OMR { typedef OMR::ARM::MemoryReference MemoryReferenceConnector; }
#include <stdint.h>
#include "codegen/ARMOps.hpp"
#include "env/jittypes.h"
#include "il/LabelSymbol.hpp"
#include "il/MethodSymbol.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"

namespace TR { class ARMPairedRelocation; }
namespace TR { class CodeGenerator; }
Expand Down
2 changes: 1 addition & 1 deletion compiler/arm/codegen/OMRTreeEvaluator.cpp
Expand Up @@ -43,9 +43,9 @@
#include "il/Block.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/ParameterSymbol.hpp"
#include "il/TreeTop.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "infra/Annotations.hpp"
#include "infra/Bit.hpp"

Expand Down
10 changes: 5 additions & 5 deletions compiler/arm/codegen/StackCheckFailureSnippet.cpp
Expand Up @@ -19,12 +19,12 @@
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
*******************************************************************************/

#include "il/LabelSymbol.hpp"
#include "il/MethodSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "codegen/CodeGenerator.hpp"
#include "codegen/Linkage.hpp"
#include "codegen/Linkage_inlines.hpp"
Expand Down
6 changes: 3 additions & 3 deletions compiler/codegen/CodeGenGC.cpp
Expand Up @@ -38,12 +38,12 @@
#include "env/CompilerEnv.hpp"
#include "env/TRMemory.hpp"
#include "env/jittypes.h"
#include "il/AutomaticSymbol.hpp"
#include "il/Node.hpp"
#include "il/ParameterSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/symbol/AutomaticSymbol.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "infra/Assert.hpp"
#include "infra/BitVector.hpp"
#include "infra/IGNode.hpp"
Expand Down
12 changes: 6 additions & 6 deletions compiler/codegen/CodeGenPrep.cpp
Expand Up @@ -52,22 +52,22 @@
#include "env/PersistentInfo.hpp"
#include "env/TRMemory.hpp"
#include "env/jittypes.h"
#include "il/AutomaticSymbol.hpp"
#include "il/Block.hpp"
#include "il/DataTypes.hpp"
#include "il/ILOpCodes.hpp"
#include "il/ILOps.hpp"
#include "il/MethodSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/ParameterSymbol.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/TreeTop.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/symbol/AutomaticSymbol.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "infra/Array.hpp"
#include "infra/Assert.hpp"
#include "infra/BitVector.hpp"
Expand Down
8 changes: 4 additions & 4 deletions compiler/codegen/CodeGenRA.cpp
Expand Up @@ -48,20 +48,20 @@
#include "env/StackMemoryRegion.hpp"
#include "env/TRMemory.hpp"
#include "il/AliasSetInterface.hpp"
#include "il/AutomaticSymbol.hpp"
#include "il/Block.hpp"
#include "il/DataTypes.hpp"
#include "il/ILOpCodes.hpp"
#include "il/ILOps.hpp"
#include "il/MethodSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/ParameterSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/TreeTop.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/symbol/AutomaticSymbol.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "infra/Array.hpp"
#include "infra/Assert.hpp"
#include "infra/BitVector.hpp"
Expand Down
4 changes: 2 additions & 2 deletions compiler/codegen/GCStackMap.hpp
Expand Up @@ -22,15 +22,15 @@
#ifndef GCSTACKMAP_INCL
#define GCSTACKMAP_INCL

#include "il/symbol/LabelSymbol.hpp"

#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "codegen/GCRegisterMap.hpp"
#include "env/TRMemory.hpp"
#include "env/jittypes.h"
#include "il/symbol/AutomaticSymbol.hpp"
#include "il/AutomaticSymbol.hpp"
#include "il/LabelSymbol.hpp"
#include "infra/Assert.hpp"
#include "infra/List.hpp"

Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/OMRCodeGenPhase.cpp
Expand Up @@ -54,7 +54,7 @@
#include "env/TRMemory.hpp"
#include "il/Block.hpp"
#include "il/Node.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "infra/Assert.hpp"
#include "infra/BitVector.hpp"
#include "infra/ILWalk.hpp"
Expand Down
10 changes: 5 additions & 5 deletions compiler/codegen/OMRCodeGenerator.cpp
Expand Up @@ -70,22 +70,22 @@
#include "env/TRMemory.hpp"
#include "env/jittypes.h"
#include "il/AliasSetInterface.hpp"
#include "il/AutomaticSymbol.hpp"
#include "il/Block.hpp"
#include "il/DataTypes.hpp"
#include "il/ILOpCodes.hpp"
#include "il/ILOps.hpp"
#include "il/LabelSymbol.hpp"
#include "il/Node.hpp"
#include "il/NodePool.hpp"
#include "il/Node_inlines.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/ResolvedMethodSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/TreeTop.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/symbol/AutomaticSymbol.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/ResolvedMethodSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "infra/Array.hpp"
#include "infra/Assert.hpp"
#include "infra/Bit.hpp"
Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/OMRLinkage.cpp
Expand Up @@ -24,7 +24,7 @@
#include "codegen/RegisterConstants.hpp"
#include "il/ILOps.hpp"
#include "il/Node.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "il/ParameterSymbol.hpp"


bool
Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/OMRLinkage.hpp
Expand Up @@ -32,7 +32,7 @@ namespace OMR { typedef OMR::Linkage LinkageConnector; }
#endif

#include "infra/List.hpp"
#include "il/symbol/ParameterSymbol.hpp"
#include "il/ParameterSymbol.hpp"

#include <stddef.h>
#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/OMRSnippet.cpp
Expand Up @@ -20,7 +20,7 @@
*******************************************************************************/

#include <stddef.h>
#include "il/symbol/LabelSymbol.hpp"
#include "il/LabelSymbol.hpp"
#include "codegen/Snippet.hpp"
#include "codegen/CodeGenerator.hpp"

Expand Down
8 changes: 4 additions & 4 deletions compiler/codegen/OMRTreeEvaluator.cpp
Expand Up @@ -36,15 +36,15 @@
#include "il/Block.hpp"
#include "il/ILOpCodes.hpp"
#include "il/ILOps.hpp"
#include "il/MethodSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/RegisterMappedSymbol.hpp"
#include "il/StaticSymbol.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/TreeTop.hpp"
#include "il/TreeTop_inlines.hpp"
#include "il/symbol/MethodSymbol.hpp"
#include "il/symbol/RegisterMappedSymbol.hpp"
#include "il/symbol/StaticSymbol.hpp"
#include "infra/Assert.hpp"
#include "infra/Bit.hpp"
#include "infra/List.hpp"
Expand Down Expand Up @@ -393,7 +393,7 @@ bool OMR::TreeEvaluator::instanceOfOrCheckCastNeedSuperTest(TR::Node * node, TR:
return false;
}

TR_GlobalRegisterNumber
TR_GlobalRegisterNumber
OMR::TreeEvaluator::getHighGlobalRegisterNumberIfAny(TR::Node *node, TR::CodeGenerator *cg)
{
//No need for register pairs in 64-bit mode
Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/OMRUnresolvedDataSnippet.cpp
Expand Up @@ -24,7 +24,7 @@
#include "codegen/CodeGenerator.hpp"
#include "codegen/UnresolvedDataSnippet.hpp"
#include "codegen/UnresolvedDataSnippet_inlines.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "il/LabelSymbol.hpp"

namespace TR { class Node; }
namespace TR { class SymbolReference; }
Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/OutOfLineCodeSection.cpp
Expand Up @@ -27,11 +27,11 @@
#include "codegen/TreeEvaluator.hpp"
#include "compile/Compilation.hpp"
#include "il/ILOps.hpp"
#include "il/LabelSymbol.hpp"
#include "il/Node.hpp"
#include "il/Node_inlines.hpp"
#include "il/Symbol.hpp"
#include "il/SymbolReference.hpp"
#include "il/symbol/LabelSymbol.hpp"
#include "infra/Assert.hpp"

TR_OutOfLineCodeSection::TR_OutOfLineCodeSection(TR::Node *callNode,
Expand Down

0 comments on commit 1bc0b85

Please sign in to comment.