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
4ac3ed02
Commit
4ac3ed02
authored
14 years ago
by
Eric Christopher
Browse files
Options
Downloads
Patches
Plain Diff
Custom lower f64 args passed in integer registers.
llvm-svn: 116977
parent
8cdb3f7d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Target/ARM/ARMFastISel.cpp
+15
-0
15 additions, 0 deletions
llvm/lib/Target/ARM/ARMFastISel.cpp
with
15 additions
and
0 deletions
llvm/lib/Target/ARM/ARMFastISel.cpp
+
15
−
0
View file @
4ac3ed02
...
...
@@ -1356,6 +1356,21 @@ bool ARMFastISel::ProcessCallArgs(SmallVectorImpl<Value*> &Args,
VA
.
getLocReg
())
.
addReg
(
Arg
);
RegArgs
.
push_back
(
VA
.
getLocReg
());
}
else
if
(
VA
.
needsCustom
())
{
// TODO: We need custom lowering for vector (v2f64) args.
if
(
VA
.
getLocVT
()
!=
MVT
::
f64
)
return
false
;
CCValAssign
&
NextVA
=
ArgLocs
[
++
i
];
// TODO: Only handle register args for now.
if
(
!
(
VA
.
isRegLoc
()
&&
NextVA
.
isRegLoc
()))
return
false
;
AddOptionalDefs
(
BuildMI
(
*
FuncInfo
.
MBB
,
FuncInfo
.
InsertPt
,
DL
,
TII
.
get
(
ARM
::
VMOVRRD
),
VA
.
getLocReg
())
.
addReg
(
NextVA
.
getLocReg
(),
RegState
::
Define
)
.
addReg
(
Arg
));
RegArgs
.
push_back
(
VA
.
getLocReg
());
RegArgs
.
push_back
(
NextVA
.
getLocReg
());
}
else
{
// Need to store
return
false
;
...
...
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