Home
last modified time | relevance | path

Searched refs:complexEltTy (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Complex/IR/
H A DComplexOps.cpp35 auto complexEltTy = complexTy.getElementType(); in isBuildableWith() local
36 return arrAttr.size() == 2 && arrAttr[0].getType() == complexEltTy && in isBuildableWith()
37 arrAttr[1].getType() == complexEltTy; in isBuildableWith()
50 auto complexEltTy = getType().getElementType(); in verify() local
51 if (complexEltTy != arrayAttr[0].getType() || in verify()
52 complexEltTy != arrayAttr[1].getType()) { in verify()
57 << complexEltTy << ")"; in verify()
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinAttributes.cpp611 auto complexEltTy = complexTy.getElementType(); in operator *() local
613 if (complexEltTy.isa<IntegerType>()) { in operator *()
615 auto real = IntegerAttr::get(complexEltTy, value.real()); in operator *()
616 auto imag = IntegerAttr::get(complexEltTy, value.imag()); in operator *()
622 complexEltTy.cast<FloatType>().getFloatSemantics(), complexIntIt); in operator *()
624 auto real = FloatAttr::get(complexEltTy, value.real()); in operator *()
625 auto imag = FloatAttr::get(complexEltTy, value.imag()); in operator *()