diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-02-22 19:06:13 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-02-22 19:06:13 +0000 |
commit | c9c137b463b953fbf8942f655d67f6dc1a0f7965 (patch) | |
tree | fb821df0bf66e260540e0ac69de15d061ae47016 /include/llvm/CodeGen/FunctionLoweringInfo.h | |
parent | 2fc0977a988a49dacb0ca0954e40ddc4e8849d4c (diff) | |
download | external_llvm-c9c137b463b953fbf8942f655d67f6dc1a0f7965.zip external_llvm-c9c137b463b953fbf8942f655d67f6dc1a0f7965.tar.gz external_llvm-c9c137b463b953fbf8942f655d67f6dc1a0f7965.tar.bz2 |
Properly emit _fltused with FastISel. Refactor to share code with SDAG.
Patch by Joe Groff!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/FunctionLoweringInfo.h')
-rw-r--r-- | include/llvm/CodeGen/FunctionLoweringInfo.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/FunctionLoweringInfo.h b/include/llvm/CodeGen/FunctionLoweringInfo.h index 804435a..432fafd 100644 --- a/include/llvm/CodeGen/FunctionLoweringInfo.h +++ b/include/llvm/CodeGen/FunctionLoweringInfo.h @@ -202,7 +202,7 @@ public: /// setArgumentFrameIndex - Record frame index for the byval /// argument. void setArgumentFrameIndex(const Argument *A, int FI); - + /// getArgumentFrameIndex - Get frame index for the byval argument. int getArgumentFrameIndex(const Argument *A); @@ -211,6 +211,13 @@ private: IndexedMap<LiveOutInfo, VirtReg2IndexFunctor> LiveOutRegInfo; }; +/// ComputeUsesVAFloatArgument - Determine if any floating-point values are +/// being passed to this variadic function, and set the MachineModuleInfo's +/// usesVAFloatArgument flag if so. This flag is used to emit an undefined +/// reference to _fltused on Windows, which will link in MSVCRT's +/// floating-point support. +void ComputeUsesVAFloatArgument(const CallInst &I, MachineModuleInfo *MMI); + /// AddCatchInfo - Extract the personality and type infos from an eh.selector /// call, and add them to the specified machine basic block. void AddCatchInfo(const CallInst &I, |