Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
42bb89c7
Commit
42bb89c7
authored
15 years ago
by
Jim Grosbach
Browse files
Options
Downloads
Patches
Plain Diff
need to fix 'make check' tests first. revert for a moment.
llvm-svn: 99569
parent
7fce4e39
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/lib/Target/ARM/ARM.td
+3
-10
3 additions, 10 deletions
llvm/lib/Target/ARM/ARM.td
llvm/lib/Target/ARM/ARMSubtarget.cpp
+13
-1
13 additions, 1 deletion
llvm/lib/Target/ARM/ARMSubtarget.cpp
with
16 additions
and
11 deletions
llvm/lib/Target/ARM/ARM.td
+
3
−
10
View file @
42bb89c7
...
...
@@ -49,14 +49,8 @@ def FeatureFP16 : SubtargetFeature<"fp16", "HasFP16", "true",
// FIXME: Currently, this is only flagged for Cortex-A8. It may be true for
// others as well. We should do more benchmarking and confirm one way or
// the other.
def FeatureHasSlowVMLx : SubtargetFeature<"vmlx", "SlowVMLx", "true",
"Disable VFP MAC instructions">;
// Some processors benefit from using NEON instructions for scalar
// single-precision FP operations.
def FeatureNEONForFP : SubtargetFeature<"neonfp", "UseNEONForSinglePrecisionFP",
"true",
"Use NEON for single precision FP">;
def HasSlowVMLx : SubtargetFeature<"vmlx", "SlowVMLx", "true",
"Disable VFP MAC instructions">;
//===----------------------------------------------------------------------===//
// ARM Processors supported.
...
...
@@ -121,8 +115,7 @@ def : Processor<"arm1156t2f-s", ARMV6Itineraries,
// V7 Processors.
def : Processor<"cortex-a8", CortexA8Itineraries,
[ArchV7A, FeatureThumb2, FeatureNEON, FeatureHasSlowVMLx,
FeatureNEONForFP]>;
[ArchV7A, FeatureThumb2, FeatureNEON, HasSlowVMLx]>;
def : ProcNoItin<"cortex-a9", [ArchV7A, FeatureThumb2, FeatureNEON]>;
//===----------------------------------------------------------------------===//
...
...
This diff is collapsed.
Click to expand it.
llvm/lib/Target/ARM/ARMSubtarget.cpp
+
13
−
1
View file @
42bb89c7
...
...
@@ -22,6 +22,10 @@ using namespace llvm;
static
cl
::
opt
<
bool
>
ReserveR9
(
"arm-reserve-r9"
,
cl
::
Hidden
,
cl
::
desc
(
"Reserve R9, making it unavailable as GPR"
));
static
cl
::
opt
<
bool
>
UseNEONFP
(
"arm-use-neon-fp"
,
cl
::
desc
(
"Use NEON for single-precision FP"
),
cl
::
init
(
false
),
cl
::
Hidden
);
static
cl
::
opt
<
bool
>
UseMOVT
(
"arm-use-movt"
,
...
...
@@ -31,7 +35,7 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS,
bool
isT
)
:
ARMArchVersion
(
V4
)
,
ARMFPUType
(
None
)
,
UseNEONForSinglePrecisionFP
(
false
)
,
UseNEONForSinglePrecisionFP
(
UseNEONFP
)
,
SlowVMLx
(
false
)
,
IsThumb
(
isT
)
,
ThumbMode
(
Thumb1
)
...
...
@@ -112,6 +116,14 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS,
if
(
!
isThumb
()
||
hasThumb2
())
PostRAScheduler
=
true
;
// Set CPU specific features.
if
(
CPUString
==
"cortex-a8"
)
{
// On Cortex-a8, it's faster to perform some single-precision FP
// operations with NEON instructions.
if
(
UseNEONFP
.
getPosition
()
==
0
)
UseNEONForSinglePrecisionFP
=
true
;
}
}
/// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment