Commit 669f10dc by Nicolas Capens

Remove unused createIntCast() method.

Bug swiftshader:6 Change-Id: Iba0a4904e99f7323c7e2044be03bb7dd950929d9 Reviewed-on: https://swiftshader-review.googlesource.com/7951Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent ce5fa388
...@@ -508,11 +508,6 @@ namespace sw ...@@ -508,11 +508,6 @@ namespace sw
return V(::builder->CreateBitCast(v, destType)); return V(::builder->CreateBitCast(v, destType));
} }
Value *Nucleus::createIntCast(Value *v, Type *destType, bool isSigned)
{
return V(::builder->CreateIntCast(v, destType, isSigned));
}
Value *Nucleus::createICmpEQ(Value *lhs, Value *rhs) Value *Nucleus::createICmpEQ(Value *lhs, Value *rhs)
{ {
return V(::builder->CreateICmpEQ(lhs, rhs)); return V(::builder->CreateICmpEQ(lhs, rhs));
......
...@@ -110,7 +110,6 @@ namespace sw ...@@ -110,7 +110,6 @@ namespace sw
static Value *createFPTrunc(Value *V, Type *destType); static Value *createFPTrunc(Value *V, Type *destType);
static Value *createFPExt(Value *V, Type *destType); static Value *createFPExt(Value *V, Type *destType);
static Value *createBitCast(Value *V, Type *destType); static Value *createBitCast(Value *V, Type *destType);
static Value *createIntCast(Value *V, Type *destType, bool isSigned);
// Compare instructions // Compare instructions
static Value *createICmpEQ(Value *lhs, Value *rhs); static Value *createICmpEQ(Value *lhs, Value *rhs);
......
...@@ -2443,13 +2443,13 @@ namespace sw ...@@ -2443,13 +2443,13 @@ namespace sw
template<class T> template<class T>
RValue<T>::RValue(typename IntLiteral<T>::type i) RValue<T>::RValue(typename IntLiteral<T>::type i)
{ {
value = (Value*)Nucleus::createConstantInt(i); value = Nucleus::createConstantInt(i);
} }
template<class T> template<class T>
RValue<T>::RValue(typename FloatLiteral<T>::type f) RValue<T>::RValue(typename FloatLiteral<T>::type f)
{ {
value = (Value*)Nucleus::createConstantFloat(f); value = Nucleus::createConstantFloat(f);
} }
template<class T> template<class T>
...@@ -2687,7 +2687,7 @@ namespace sw ...@@ -2687,7 +2687,7 @@ namespace sw
template<class T> template<class T>
Reference<T> Pointer<T>::operator[](int index) Reference<T> Pointer<T>::operator[](int index)
{ {
Value *element = Nucleus::createGEP(LValue<Pointer<T>>::loadValue(), T::getType(), (Value*)Nucleus::createConstantInt(index)); Value *element = Nucleus::createGEP(LValue<Pointer<T>>::loadValue(), T::getType(), Nucleus::createConstantInt(index));
return Reference<T>(element, alignment); return Reference<T>(element, alignment);
} }
...@@ -2714,7 +2714,7 @@ namespace sw ...@@ -2714,7 +2714,7 @@ namespace sw
template<class T, int S> template<class T, int S>
Reference<T> Array<T, S>::operator[](int index) Reference<T> Array<T, S>::operator[](int index)
{ {
Value *element = LValue<T>::getAddress((Value*)Nucleus::createConstantInt(index)); Value *element = LValue<T>::getAddress(Nucleus::createConstantInt(index));
return Reference<T>(element); return Reference<T>(element);
} }
......
...@@ -830,11 +830,6 @@ namespace sw ...@@ -830,11 +830,6 @@ namespace sw
return createCast(Ice::InstCast::Bitcast, v, destType); return createCast(Ice::InstCast::Bitcast, v, destType);
} }
Value *Nucleus::createIntCast(Value *v, Type *destType, bool isSigned)
{
assert(false && "UNIMPLEMENTED"); return nullptr;
}
static Value *createIntCompare(Ice::InstIcmp::ICond condition, Value *lhs, Value *rhs) static Value *createIntCompare(Ice::InstIcmp::ICond condition, Value *lhs, Value *rhs)
{ {
assert(lhs->getType() == rhs->getType()); assert(lhs->getType() == rhs->getType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment