[llvm-commits] [llvm-gcc-4.2] r72435 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-convert.cpp llvm-types.cpp
Dale Johannesen
dalej at apple.com
Tue May 26 14:25:07 PDT 2009
Author: johannes
Date: Tue May 26 16:25:01 2009
New Revision: 72435
URL: http://llvm.org/viewvc/llvm-project?rev=72435&view=rev
Log:
Change the names of a couple functions to be more accurate.
No functional change.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-abi.h
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-abi.h?rev=72435&r1=72434&r2=72435&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Tue May 26 16:25:01 2009
@@ -66,17 +66,17 @@
/// returns an aggregate value using multiple return values.
void HandleAggregateResultAsAggregate(const Type *AggrTy) {}
- /// HandleAggregateShadowArgument - This callback is invoked if the function
+ /// HandleAggregateShadowResult - This callback is invoked if the function
/// returns an aggregate value by using a "shadow" first parameter, which is
/// a pointer to the aggregate, of type PtrArgTy. If RetPtr is set to true,
/// the pointer argument itself is returned from the function.
- void HandleAggregateShadowArgument(const PointerType *PtrArgTy, bool RetPtr){}
+ void HandleAggregateShadowResult(const PointerType *PtrArgTy, bool RetPtr){}
- /// HandleScalarShadowArgument - This callback is invoked if the function
+ /// HandleScalarShadowResult - This callback is invoked if the function
/// returns a scalar value by using a "shadow" first parameter, which is a
/// pointer to the scalar, of type PtrArgTy. If RetPtr is set to true,
/// the pointer argument itself is returned from the function.
- void HandleScalarShadowArgument(const PointerType *PtrArgTy, bool RetPtr) {}
+ void HandleScalarShadowResult(const PointerType *PtrArgTy, bool RetPtr) {}
/// HandleScalarArgument - This is the primary callback that specifies an
@@ -382,7 +382,7 @@
if (ScalarType)
C.HandleAggregateResultAsScalar(ConvertType(ScalarType));
else if (LLVM_SHOULD_RETURN_VECTOR_AS_SHADOW(type, isBuiltin))
- C.HandleScalarShadowArgument(PointerType::getUnqual(Ty), false);
+ C.HandleScalarShadowResult(PointerType::getUnqual(Ty), false);
else
C.HandleScalarResult(Ty);
} else if (Ty->isSingleValueType() || Ty == Type::VoidTy) {
@@ -414,7 +414,7 @@
// FIXME: should return the hidden first argument for some targets
// (e.g. ELF i386).
- C.HandleAggregateShadowArgument(PointerType::getUnqual(Ty), false);
+ C.HandleAggregateShadowResult(PointerType::getUnqual(Ty), false);
}
}
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=72435&r1=72434&r2=72435&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Tue May 26 16:25:01 2009
@@ -263,7 +263,7 @@
LocStack.clear();
}
- void HandleAggregateShadowArgument(const PointerType *PtrArgTy,
+ void HandleAggregateShadowResult(const PointerType *PtrArgTy,
bool RetPtr) {
// If the function returns a structure by value, we transform the function
// to take a pointer to the result as the first argument of the function
@@ -297,7 +297,7 @@
++AI;
}
- void HandleScalarShadowArgument(const PointerType *PtrArgTy, bool RetPtr) {
+ void HandleScalarShadowResult(const PointerType *PtrArgTy, bool RetPtr) {
assert(AI != Builder.GetInsertBlock()->getParent()->arg_end() &&
"No explicit return value?");
AI->setName("scalar.result");
@@ -2451,11 +2451,11 @@
isAggrRet = true;
}
- /// HandleAggregateShadowArgument - This callback is invoked if the function
+ /// HandleAggregateShadowResult - This callback is invoked if the function
/// returns an aggregate value by using a "shadow" first parameter. If
/// RetPtr is set to true, the pointer argument itself is returned from the
/// function.
- void HandleAggregateShadowArgument(const PointerType *PtrArgTy,
+ void HandleAggregateShadowResult(const PointerType *PtrArgTy,
bool RetPtr) {
// We need to pass memory to write the return value into.
// FIXME: alignment and volatility are being ignored!
@@ -2481,11 +2481,11 @@
isShadowRet = true;
}
- /// HandleScalarShadowArgument - This callback is invoked if the function
+ /// HandleScalarShadowResult - This callback is invoked if the function
/// returns a scalar value by using a "shadow" first parameter, which is a
/// pointer to the scalar, of type PtrArgTy. If RetPtr is set to true,
/// the pointer argument itself is returned from the function.
- void HandleScalarShadowArgument(const PointerType *PtrArgTy, bool RetPtr) {
+ void HandleScalarShadowResult(const PointerType *PtrArgTy, bool RetPtr) {
assert(DestLoc == 0 &&
"Call returns a scalar but caller expects aggregate!");
// Create a buffer to hold the result. The result will be loaded out of
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=72435&r1=72434&r2=72435&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Tue May 26 16:25:01 2009
@@ -951,8 +951,8 @@
RetTy = AggrTy;
}
- /// HandleShadowArgument - Handle an aggregate or scalar shadow argument.
- void HandleShadowArgument(const PointerType *PtrArgTy, bool RetPtr) {
+ /// HandleShadowResult - Handle an aggregate or scalar shadow argument.
+ void HandleShadowResult(const PointerType *PtrArgTy, bool RetPtr) {
// This function either returns void or the shadow argument,
// depending on the target.
RetTy = RetPtr ? PtrArgTy : Type::VoidTy;
@@ -964,21 +964,21 @@
isShadowRet = true;
}
- /// HandleAggregateShadowArgument - This callback is invoked if the function
+ /// HandleAggregateShadowResult - This callback is invoked if the function
/// returns an aggregate value by using a "shadow" first parameter, which is
/// a pointer to the aggregate, of type PtrArgTy. If RetPtr is set to true,
/// the pointer argument itself is returned from the function.
- void HandleAggregateShadowArgument(const PointerType *PtrArgTy,
+ void HandleAggregateShadowResult(const PointerType *PtrArgTy,
bool RetPtr) {
- HandleShadowArgument(PtrArgTy, RetPtr);
+ HandleShadowResult(PtrArgTy, RetPtr);
}
- /// HandleScalarShadowArgument - This callback is invoked if the function
+ /// HandleScalarShadowResult - This callback is invoked if the function
/// returns a scalar value by using a "shadow" first parameter, which is a
/// pointer to the scalar, of type PtrArgTy. If RetPtr is set to true,
/// the pointer argument itself is returned from the function.
- void HandleScalarShadowArgument(const PointerType *PtrArgTy, bool RetPtr) {
- HandleShadowArgument(PtrArgTy, RetPtr);
+ void HandleScalarShadowResult(const PointerType *PtrArgTy, bool RetPtr) {
+ HandleShadowResult(PtrArgTy, RetPtr);
}
void HandleScalarArgument(const llvm::Type *LLVMTy, tree type,
More information about the llvm-commits
mailing list