return result;
}
- Value *Builder::ICLAMP(Value* src, Value* low, Value* high)
+ Value *Builder::ICLAMP(Value* src, Value* low, Value* high, const llvm::Twine& name)
{
Value *lowCmp = ICMP_SLT(src, low);
Value *ret = SELECT(lowCmp, low, src);
Value *highCmp = ICMP_SGT(ret, high);
- ret = SELECT(highCmp, high, ret);
+ ret = SELECT(highCmp, high, ret, name);
return ret;
}
return S_EXT(vIndexMask,VectorType::get(mInt32Ty,JM()->mVWidth));
}
-Value *ICLAMP(Value* src, Value* low, Value* high);
+Value *ICLAMP(Value* src, Value* low, Value* high, const llvm::Twine& name = "");
Value *FCLAMP(Value* src, Value* low, Value* high);
Value *FCLAMP(Value* src, float low, float high);