Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: src/IceClFlags.cpp

Issue 1191573003: Add a basic enum for ARM InstructionSet / cpu features. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: comment Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.h » ('j') | src/IceTargetLoweringX8632.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlags.cpp
diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp
index a433b9a7ee836a5d2f06075634e139a79909fc90..5cd4a6b7272c2d7077c4d520a78e0e12f7a7f23c 100644
--- a/src/IceClFlags.cpp
+++ b/src/IceClFlags.cpp
@@ -142,11 +142,17 @@ cl::opt<Ice::TargetArch> TargetArch(
clEnumValEnd));
cl::opt<Ice::TargetInstructionSet> TargetInstructionSet(
"mattr", cl::desc("Target architecture attributes"),
- cl::init(Ice::X86InstructionSet_SSE2),
- cl::values(clEnumValN(Ice::X86InstructionSet_SSE2, "sse2",
- "Enable SSE2 instructions (default)"),
+ cl::init(Ice::BaseInstructionSet),
+ cl::values(clEnumValN(Ice::BaseInstructionSet, "base",
+ "Target chooses baseline instruction set (default)"),
+ clEnumValN(Ice::X86InstructionSet_SSE2, "sse2",
+ "Enable X86 SSE2 instructions"),
clEnumValN(Ice::X86InstructionSet_SSE4_1, "sse4.1",
- "Enable SSE 4.1 instructions"),
+ "Enable X86 SSE 4.1 instructions"),
+ clEnumValN(Ice::ARM32InstructionSet_Neon, "neon",
+ "Enable ARM Neon instructions"),
+ clEnumValN(Ice::ARM32InstructionSet_HWDivArm, "hwdiv-arm",
+ "Enable ARM integer divide instructions in ARM mode"),
clEnumValEnd));
cl::opt<std::string>
TestPrefix("prefix",
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.h » ('j') | src/IceTargetLoweringX8632.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698