Skip to content

Commit 7c00299

Browse files
committed
FPInfo: LLT changes
1 parent 97aa56a commit 7c00299

File tree

7 files changed

+481
-186
lines changed

7 files changed

+481
-186
lines changed

llvm/include/llvm/CodeGen/LowLevelTypeUtils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ class Type;
2626
struct fltSemantics;
2727

2828
/// Construct a low-level type based on an LLVM type.
29-
LLT getLLTForType(Type &Ty, const DataLayout &DL);
29+
LLT getLLTForType(Type &Ty, const DataLayout &DL, bool EnableFPInfo = false);
3030

3131
/// Get a rough equivalent of an MVT for a given LLT. MVT can't distinguish
3232
/// pointers, so these will convert to a plain integer.
33-
MVT getMVTForLLT(LLT Ty);
33+
MVT getMVTForLLT(LLT Ty, bool EnableFPInfo = false);
3434
EVT getApproximateEVTForLLT(LLT Ty, LLVMContext &Ctx);
3535

3636
/// Get a rough equivalent of an LLT for a given MVT. LLT does not yet support
3737
/// scalarable vector types, and will assert if used.
38-
LLT getLLTForMVT(MVT Ty);
38+
LLT getLLTForMVT(MVT Ty, bool EnableFPInfo = false);
3939

4040
/// Get the appropriate floating point arithmetic semantic based on the bit size
4141
/// of the given scalar LLT.
4242
const llvm::fltSemantics &getFltSemanticForLLT(LLT Ty);
43-
}
43+
} // namespace llvm
4444

4545
#endif // LLVM_CODEGEN_LOWLEVELTYPEUTILS_H

0 commit comments

Comments
 (0)