Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement AArch64 and ARMv8 Processor Information #4111

Merged
merged 1 commit into from
Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions compiler/aarch64/env/ARM64ProcessorEnum.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://eclipse.org/legal/epl-2.0
* or the Apache License, Version 2.0 which accompanies this distribution
* and is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License, v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception [1] and GNU General Public
* License, version 2 with the OpenJDK Assembly Exception [2].
*
* [1] https://www.gnu.org/software/classpath/license.html
* [2] http://openjdk.java.net/legal/assembly-exception.html
*
* 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
*******************************************************************************/

/*
* This file will be included within an enum. Only comments and enumerator
* definitions are permitted.
*/

ARMv8_A,
11 changes: 11 additions & 0 deletions compiler/env/Processors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ enum Processor
#include "arm/env/ARMProcessorEnum.hpp"
LastARMProcessorMark,

FirstARM64ProcessorMark,
#include "aarch64/env/ARM64ProcessorEnum.hpp"
LastARM64ProcessorMark,

FirstPowerProcessorMark,
#include "p/env/PPCProcessorEnum.hpp"
LastPowerProcessorMark,
Expand All @@ -47,6 +51,7 @@ enum Processor
LastX86ProcessorMark,

NumARMProcessors = LastARMProcessorMark-FirstARMProcessorMark-1,
NumARM64Processors = LastARM64ProcessorMark-FirstARM64ProcessorMark-1,
NumPowerProcessors = LastPowerProcessorMark-FirstPowerProcessorMark-1,
NumZProcessors = LastZProcessorMark-FirstZProcessorMark-1,
NumX86Processors = LastX86ProcessorMark-FirstX86ProcessorMark-1
Expand Down Expand Up @@ -88,6 +93,12 @@ enum TR_Processor
TR_LastARMProcessor,
TR_ARMv7 = TR_LastARMProcessor,

// ARM64 / AArch64 Processors
TR_FirstARM64Processor,
TR_DefaultARM64Processor = TR_FirstARM64Processor,
TR_LastARM64Processor,
TR_ARMv8_A = TR_LastARM64Processor,

// PPC Processors
// This list is in order
TR_FirstPPCProcessor,
Expand Down