Home
last modified time | relevance | path

Searched defs:RealAttributeStorage (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRAttr.cpp25 struct RealAttributeStorage : public mlir::AttributeStorage { struct
26 using KeyTy = std::pair<int, llvm::APFloat>;
28 RealAttributeStorage(int kind, const llvm::APFloat &value) in RealAttributeStorage() function
30 RealAttributeStorage(const KeyTy &key) in RealAttributeStorage() argument
33 static unsigned hashKey(const KeyTy &key) { return llvm::hash_value(key); } in hashKey()
35 bool operator==(const KeyTy &key) const { in operator ==()
41 construct(mlir::AttributeStorageAllocator &allocator, const KeyTy &key) { in construct()
46 KindTy getFKind() const { return kind; } in getFKind()
47 llvm::APFloat getValue() const { return value; } in getValue()
50 int kind;
[all …]