File tree 5 files changed +6
-19
lines changed
5 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -1465,7 +1465,6 @@ class APFloat : public APFloatBase {
1465
1465
bool isSmallest () const { APFLOAT_DISPATCH_ON_SEMANTICS (isSmallest ()); }
1466
1466
bool isLargest () const { APFLOAT_DISPATCH_ON_SEMANTICS (isLargest ()); }
1467
1467
bool isInteger () const { APFLOAT_DISPATCH_ON_SEMANTICS (isInteger ()); }
1468
- bool isIEEE () const { return usesLayout<IEEEFloat>(getSemantics ()); }
1469
1468
1470
1469
bool isSmallestNormalized () const {
1471
1470
APFLOAT_DISPATCH_ON_SEMANTICS (isSmallestNormalized ());
Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ class Type {
165
165
bool isPPC_FP128Ty () const { return getTypeID () == PPC_FP128TyID; }
166
166
167
167
// / Return true if this is a well-behaved IEEE-like type, which has a IEEE
168
- // / compatible layout as defined by APFloat::isIEEE() , and does not have
169
- // / non-IEEE values, such as x86_fp80's unnormal values.
168
+ // / compatible layout, and does not have non-IEEE values, such as x86_fp80's
169
+ // / unnormal values.
170
170
bool isIEEELikeFPTy () const {
171
171
switch (getTypeID ()) {
172
172
case DoubleTyID:
@@ -346,10 +346,6 @@ class Type {
346
346
// / ppc long double), this method returns -1.
347
347
int getFPMantissaWidth () const ;
348
348
349
- // / Return whether the type is IEEE compatible, as defined by the eponymous
350
- // / method in APFloat.
351
- bool isIEEE () const ;
352
-
353
349
// / If this is a vector type, return the element type, otherwise return
354
350
// / 'this'.
355
351
inline Type *getScalarType () const {
Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ class Type {
120
120
bool isPPC_FP128Ty () const { return LLVMTy->isPPC_FP128Ty (); }
121
121
122
122
// / Return true if this is a well-behaved IEEE-like type, which has a IEEE
123
- // / compatible layout as defined by APFloat::isIEEE() , and does not have
124
- // / non-IEEE values, such as x86_fp80's unnormal values.
123
+ // / compatible layout, and does not have non-IEEE values, such as x86_fp80's
124
+ // / unnormal values.
125
125
bool isIEEELikeFPTy () const { return LLVMTy->isIEEELikeFPTy (); }
126
126
127
127
// / Return true if this is one of the floating-point types
@@ -262,10 +262,6 @@ class Type {
262
262
// / ppc long double), this method returns -1.
263
263
int getFPMantissaWidth () const { return LLVMTy->getFPMantissaWidth (); }
264
264
265
- // / Return whether the type is IEEE compatible, as defined by the eponymous
266
- // / method in APFloat.
267
- bool isIEEE () const { return LLVMTy->isIEEE (); }
268
-
269
265
// / If this is a vector type, return the element type, otherwise return
270
266
// / 'this'.
271
267
Type *getScalarType () const ;
Original file line number Diff line number Diff line change @@ -117,10 +117,6 @@ const fltSemantics &Type::getFltSemantics() const {
117
117
}
118
118
}
119
119
120
- bool Type::isIEEE () const {
121
- return APFloat::getZero (getFltSemantics ()).isIEEE ();
122
- }
123
-
124
120
bool Type::isScalableTargetExtTy () const {
125
121
if (auto *TT = dyn_cast<TargetExtType>(this ))
126
122
return isa<ScalableVectorType>(TT->getLayoutType ());
Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ define void @foo(i32 %v0) {
180
180
EXPECT_EQ (VecTy32x2->getScalarSizeInBits (), 32u );
181
181
// Check getFPMantissaWidth().
182
182
EXPECT_EQ (FloatTy->getFPMantissaWidth (), LLVMFloatTy->getFPMantissaWidth ());
183
- // Check isIEEE ().
184
- EXPECT_EQ (FloatTy->isIEEE (), LLVMFloatTy->isIEEE ());
183
+ // Check isIEEELikeFPTy ().
184
+ EXPECT_EQ (FloatTy->isIEEELikeFPTy (), LLVMFloatTy->isIEEELikeFPTy ());
185
185
// Check getScalarType().
186
186
EXPECT_EQ (
187
187
Ctx.getType (llvm::FixedVectorType::get (LLVMInt32Ty, 8u ))->getScalarType (),
You can’t perform that action at this time.
0 commit comments