Home
last modified time | relevance | path

Searched refs:Sem (Results 1 – 25 of 40) sorted by relevance

12

/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPFloat.h194 static APFloat getZero(const fltSemantics &Sem, bool Negative = false) {
195 return APFloat(Sem, fcZero, Negative);
197 static APFloat getInf(const fltSemantics &Sem, bool Negative = false) {
198 return APFloat(Sem, fcInfinity, Negative);
206 static APFloat getNaN(const fltSemantics &Sem, bool Negative = false,
210 return getQNaN(Sem, Negative, &fill);
212 return getQNaN(Sem, Negative, 0);
217 static APFloat getQNaN(const fltSemantics &Sem,
220 return makeNaN(Sem, false, Negative, payload);
224 static APFloat getSNaN(const fltSemantics &Sem,
[all …]
/external/llvm/include/llvm/ADT/
DAPFloat.h218 static APFloat getZero(const fltSemantics &Sem, bool Negative = false) {
219 APFloat Val(Sem, uninitialized);
227 static APFloat getInf(const fltSemantics &Sem, bool Negative = false) {
228 APFloat Val(Sem, uninitialized);
238 static APFloat getNaN(const fltSemantics &Sem, bool Negative = false,
242 return getQNaN(Sem, Negative, &fill);
244 return getQNaN(Sem, Negative, nullptr);
249 static APFloat getQNaN(const fltSemantics &Sem, bool Negative = false,
251 return makeNaN(Sem, false, Negative, payload);
255 static APFloat getSNaN(const fltSemantics &Sem, bool Negative = false,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DOpDescriptor.cpp26 auto &Sem = T->getFltSemantics(); in makeConstantsWithType() local
27 Cs.push_back(ConstantFP::get(Ctx, APFloat::getZero(Sem))); in makeConstantsWithType()
28 Cs.push_back(ConstantFP::get(Ctx, APFloat::getLargest(Sem))); in makeConstantsWithType()
29 Cs.push_back(ConstantFP::get(Ctx, APFloat::getSmallest(Sem))); in makeConstantsWithType()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPFloat.h208 static unsigned getSizeInBits(const fltSemantics &Sem);
554 void initFromAPInt(const fltSemantics *Sem, const APInt &api);
841 static APFloat getZero(const fltSemantics &Sem, bool Negative = false) {
842 APFloat Val(Sem, uninitialized);
850 static APFloat getInf(const fltSemantics &Sem, bool Negative = false) {
851 APFloat Val(Sem, uninitialized);
861 static APFloat getNaN(const fltSemantics &Sem, bool Negative = false,
865 return getQNaN(Sem, Negative, &fill);
867 return getQNaN(Sem, Negative, nullptr);
872 static APFloat getQNaN(const fltSemantics &Sem, bool Negative = false,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPFloat.h221 static unsigned getSizeInBits(const fltSemantics &Sem);
528 void initFromAPInt(const fltSemantics *Sem, const APInt &api);
855 static APFloat getZero(const fltSemantics &Sem, bool Negative = false) {
856 APFloat Val(Sem, uninitialized);
864 static APFloat getInf(const fltSemantics &Sem, bool Negative = false) {
865 APFloat Val(Sem, uninitialized);
875 static APFloat getNaN(const fltSemantics &Sem, bool Negative = false,
879 return getQNaN(Sem, Negative, &fill);
881 return getQNaN(Sem, Negative, nullptr);
886 static APFloat getQNaN(const fltSemantics &Sem, bool Negative = false,
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp115 static T PickFP(const llvm::fltSemantics *Sem, T IEEESingleVal, in PickFP() argument
118 if (Sem == (const llvm::fltSemantics*)&llvm::APFloat::IEEEsingle) in PickFP()
120 if (Sem == (const llvm::fltSemantics*)&llvm::APFloat::IEEEdouble) in PickFP()
122 if (Sem == (const llvm::fltSemantics*)&llvm::APFloat::x87DoubleExtended) in PickFP()
124 if (Sem == (const llvm::fltSemantics*)&llvm::APFloat::PPCDoubleDouble) in PickFP()
126 assert(Sem == (const llvm::fltSemantics*)&llvm::APFloat::IEEEquad); in PickFP()
131 const llvm::fltSemantics *Sem, StringRef Ext) { in DefineFloatMacros() argument
133 DenormMin = PickFP(Sem, "1.40129846e-45", "4.9406564584124654e-324", in DefineFloatMacros()
137 int Digits = PickFP(Sem, 6, 15, 18, 31, 33); in DefineFloatMacros()
138 int DecimalDigits = PickFP(Sem, 9, 17, 21, 33, 36); in DefineFloatMacros()
[all …]
/external/llvm/lib/Support/
DAPFloat.cpp670 APFloat APFloat::makeNaN(const fltSemantics &Sem, bool SNaN, bool Negative, in makeNaN() argument
672 APFloat value(Sem, uninitialized); in makeNaN()
3356 APFloat::initFromAPInt(const fltSemantics* Sem, const APInt& api) in initFromAPInt() argument
3358 if (Sem == &IEEEhalf) in initFromAPInt()
3360 if (Sem == &IEEEsingle) in initFromAPInt()
3362 if (Sem == &IEEEdouble) in initFromAPInt()
3364 if (Sem == &x87DoubleExtended) in initFromAPInt()
3366 if (Sem == &IEEEquad) in initFromAPInt()
3368 if (Sem == &PPCDoubleDouble) in initFromAPInt()
3395 unsigned APFloat::getSizeInBits(const fltSemantics &Sem) { in getSizeInBits() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DAPFloat.cpp678 APFloat APFloat::makeNaN(const fltSemantics &Sem, bool SNaN, bool Negative, in makeNaN() argument
680 APFloat value(Sem, uninitialized); in makeNaN()
3228 APFloat APFloat::getLargest(const fltSemantics &Sem, bool Negative) { in getLargest() argument
3229 APFloat Val(Sem, fcNormal, Negative); in getLargest()
3236 Val.exponent = Sem.maxExponent; // unbiased in getLargest()
3241 unsigned N = partCountForBits(Sem.precision); in getLargest()
3246 if (Sem.precision % integerPartWidth != 0) in getLargest()
3248 (((integerPart) 1) << (Sem.precision % integerPartWidth)) - 1; in getLargest()
3253 APFloat APFloat::getSmallest(const fltSemantics &Sem, bool Negative) { in getSmallest() argument
3254 APFloat Val(Sem, fcNormal, Negative); in getSmallest()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp130 auto &Sem = Op0->getType()->getFltSemantics(); in convertFCmp() local
131 APFloat Smallest = APFloat::getSmallestNormalized(Sem); in convertFCmp()
/external/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp130 auto &Sem = Op0->getType()->getFltSemantics(); in convertFCmp() local
131 APFloat Smallest = APFloat::getSmallestNormalized(Sem); in convertFCmp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp89 void convertToFpType(const fltSemantics &Sem);
94 APFloat createAPFloatFromInt(const fltSemantics &Sem, int Val);
229 void FAddendCoef::convertToFpType(const fltSemantics &Sem) { in convertToFpType() argument
235 new(P) APFloat(Sem, IntVal); in convertToFpType()
237 new(P) APFloat(Sem, 0 - IntVal); in convertToFpType()
243 APFloat FAddendCoef::createAPFloatFromInt(const fltSemantics &Sem, int Val) { in createAPFloatFromInt() argument
245 return APFloat(Sem, Val); in createAPFloatFromInt()
247 APFloat T(Sem, 0 - Val); in createAPFloatFromInt()
DInstCombineCompares.cpp4601 const fltSemantics *Sem; in visitFCmpInst() local
4604 Sem = &APFloat::IEEEhalf; in visitFCmpInst()
4606 Sem = &APFloat::IEEEsingle; in visitFCmpInst()
4608 Sem = &APFloat::IEEEdouble; in visitFCmpInst()
4610 Sem = &APFloat::IEEEquad; in visitFCmpInst()
4612 Sem = &APFloat::x87DoubleExtended; in visitFCmpInst()
4614 Sem = &APFloat::PPCDoubleDouble; in visitFCmpInst()
4620 F.convert(*Sem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
4627 ((Fabs.compare(APFloat::getSmallestNormalized(*Sem)) != in visitFCmpInst()
DInstCombineCasts.cpp1218 static Constant *fitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) { in fitsInFPType() argument
1221 (void)F.convert(Sem, APFloat::rmNearestTiesToEven, &losesInfo); in fitsInFPType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp845 const fltSemantics &Sem = CE->getOperand(0)->getType()->getFltSemantics(); in getConstantValue() local
846 APFloat apfLHS = APFloat(Sem, LHS.IntVal); in getConstantValue()
850 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue()
854 apfLHS.subtract(APFloat(Sem, RHS.IntVal), in getConstantValue()
859 apfLHS.multiply(APFloat(Sem, RHS.IntVal), in getConstantValue()
864 apfLHS.divide(APFloat(Sem, RHS.IntVal), in getConstantValue()
869 apfLHS.mod(APFloat(Sem, RHS.IntVal)); in getConstantValue()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp842 const fltSemantics &Sem = CE->getOperand(0)->getType()->getFltSemantics(); in getConstantValue() local
843 APFloat apfLHS = APFloat(Sem, LHS.IntVal); in getConstantValue()
847 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue()
851 apfLHS.subtract(APFloat(Sem, RHS.IntVal), in getConstantValue()
856 apfLHS.multiply(APFloat(Sem, RHS.IntVal), in getConstantValue()
861 apfLHS.divide(APFloat(Sem, RHS.IntVal), in getConstantValue()
866 apfLHS.mod(APFloat(Sem, RHS.IntVal)); in getConstantValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp105 void convertToFpType(const fltSemantics &Sem);
110 APFloat createAPFloatFromInt(const fltSemantics &Sem, int Val);
245 void FAddendCoef::convertToFpType(const fltSemantics &Sem) { in convertToFpType() argument
251 new(P) APFloat(Sem, IntVal); in convertToFpType()
253 new(P) APFloat(Sem, 0 - IntVal); in convertToFpType()
259 APFloat FAddendCoef::createAPFloatFromInt(const fltSemantics &Sem, int Val) { in createAPFloatFromInt() argument
261 return APFloat(Sem, Val); in createAPFloatFromInt()
263 APFloat T(Sem, 0 - Val); in createAPFloatFromInt()
DInstCombineCompares.cpp5200 const fltSemantics *Sem; in visitFCmpInst() local
5203 Sem = &APFloat::IEEEhalf(); in visitFCmpInst()
5205 Sem = &APFloat::IEEEsingle(); in visitFCmpInst()
5207 Sem = &APFloat::IEEEdouble(); in visitFCmpInst()
5209 Sem = &APFloat::IEEEquad(); in visitFCmpInst()
5211 Sem = &APFloat::x87DoubleExtended(); in visitFCmpInst()
5213 Sem = &APFloat::PPCDoubleDouble(); in visitFCmpInst()
5219 F.convert(*Sem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
5226 ((Fabs.compare(APFloat::getSmallestNormalized(*Sem)) != in visitFCmpInst()
/external/clang/test/SemaCXX/
Dcrashes.cpp163 const fltSemantics &Sem = foobar(); in VisitCastExpr() local
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DAPFloat.cpp170 unsigned APFloatBase::getSizeInBits(const fltSemantics &Sem) { in getSizeInBits() argument
171 return Sem.sizeInBits; in getSizeInBits()
3231 void IEEEFloat::initFromAPInt(const fltSemantics *Sem, const APInt &api) { in initFromAPInt() argument
3232 if (Sem == &semIEEEhalf) in initFromAPInt()
3234 if (Sem == &semIEEEsingle) in initFromAPInt()
3236 if (Sem == &semIEEEdouble) in initFromAPInt()
3238 if (Sem == &semX87DoubleExtended) in initFromAPInt()
3240 if (Sem == &semIEEEquad) in initFromAPInt()
3242 if (Sem == &semPPCDoubleDoubleLegacy) in initFromAPInt()
3300 IEEEFloat::IEEEFloat(const fltSemantics &Sem, const APInt &API) { in IEEEFloat() argument
[all …]
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPFloatTest.cpp398 static APInt nanbits(const fltSemantics &Sem, in nanbits() argument
402 return APFloat::getSNaN(Sem, Negative, &apfill).bitcastToAPInt(); in nanbits()
404 return APFloat::getQNaN(Sem, Negative, &apfill).bitcastToAPInt(); in nanbits()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2823 const fltSemantics *Sem; in visitFCmpInst() local
2826 Sem = &APFloat::IEEEsingle; in visitFCmpInst()
2828 Sem = &APFloat::IEEEdouble; in visitFCmpInst()
2830 Sem = &APFloat::IEEEquad; in visitFCmpInst()
2832 Sem = &APFloat::x87DoubleExtended; in visitFCmpInst()
2838 F.convert(*Sem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
2845 ((Fabs.compare(APFloat::getSmallestNormalized(*Sem)) != in visitFCmpInst()
DInstCombineCasts.cpp1144 static Constant *FitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) { in FitsInFPType() argument
1147 (void)F.convert(Sem, APFloat::rmNearestTiesToEven, &losesInfo); in FitsInFPType()
/external/clang/lib/AST/
DExpr.cpp774 void FloatingLiteral::setSemantics(const llvm::fltSemantics &Sem) { in setSemantics() argument
775 if (&Sem == &llvm::APFloat::IEEEhalf) in setSemantics()
777 else if (&Sem == &llvm::APFloat::IEEEsingle) in setSemantics()
779 else if (&Sem == &llvm::APFloat::IEEEdouble) in setSemantics()
781 else if (&Sem == &llvm::APFloat::x87DoubleExtended) in setSemantics()
783 else if (&Sem == &llvm::APFloat::IEEEquad) in setSemantics()
785 else if (&Sem == &llvm::APFloat::PPCDoubleDouble) in setSemantics()
DExprConstant.cpp5907 const llvm::fltSemantics &Sem = Info.Ctx.getFloatTypeSemantics(EltTy); in VisitCastExpr() local
5909 if (&Sem == &APFloat::x87DoubleExtended) in VisitCastExpr()
5917 Elts.push_back(APValue(APFloat(Sem, Elt))); in VisitCastExpr()
8243 const llvm::fltSemantics &Sem = Context.getFloatTypeSemantics(ResultTy); in TryEvaluateBuiltinNaN() local
8255 Result = llvm::APFloat::getSNaN(Sem, false, &fill); in TryEvaluateBuiltinNaN()
8257 Result = llvm::APFloat::getQNaN(Sem, false, &fill); in TryEvaluateBuiltinNaN()
8265 Result = llvm::APFloat::getQNaN(Sem, false, &fill); in TryEvaluateBuiltinNaN()
8267 Result = llvm::APFloat::getSNaN(Sem, false, &fill); in TryEvaluateBuiltinNaN()
8284 const llvm::fltSemantics &Sem = in VisitCallExpr() local
8286 Result = llvm::APFloat::getInf(Sem); in VisitCallExpr()
[all …]
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTPFXParser.cpp2602 const SPVRTPFXParserSemantic& Sem = effect.Uniforms[uiUniform]; in ParseEffect() local
2603 if(strcmp(Sem.pszValue, "TEXTURE") == 0 && Sem.nIdx == uiTexUnit) in ParseEffect()

12