Home
last modified time | relevance | path

Searched refs:fromType (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DExpectedTypeTest.cpp68 auto Type = OpaqueType::fromType(astCtx(), typeOf(Name)); in buildEquivClasses()
143 OpaqueType IntTy = *OpaqueType::fromType(astCtx(), typeOf("int_")); in TEST_F()
146 OpaqueType IntPtrTy = *OpaqueType::fromType(astCtx(), typeOf("int_ptr")); in TEST_F()
165 auto IntPtrTy = *OpaqueType::fromType(astCtx(), typeOf("int_ptr_")); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DMemoryPromotion.cpp124 auto fromType = from.getType().cast<MemRefType>(); in insertCopies() local
126 (void)fromType; in insertCopies()
128 assert(fromType.getShape() == toType.getShape()); in insertCopies()
129 assert(fromType.getRank() != 0); in insertCopies()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DExpectedTypes.h41 static llvm::Optional<OpaqueType> fromType(ASTContext &Ctx, QualType Type);
H A DExpectedTypes.cpp80 llvm::Optional<OpaqueType> OpaqueType::fromType(ASTContext &Ctx, in fromType() function in clang::clangd::OpaqueType
H A DCodeComplete.cpp1646 OpaqueType::fromType(Recorder->CCSema->getASTContext(), in runWithSema()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp656 auto fromType = castOp.getSource().getType().dyn_cast<MemRefType>(); in matchAndRewrite() local
659 if (fromType && toType) { in matchAndRewrite()
660 if (fromType.getShape() == toType.getShape() && in matchAndRewrite()
661 fromType.getElementType() == toType.getElementType()) { in matchAndRewrite()
672 auto fromType = castOp.getSource().getType().dyn_cast<MemRefType>(); in matchAndRewrite() local
675 if (fromType && toType) { in matchAndRewrite()
676 if (fromType.getShape() == toType.getShape() && in matchAndRewrite()
677 fromType.getElementType() == toType.getElementType()) { in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dtools.cpp665 if (auto fromType{x.GetType()}) { in ConvertToType() local
666 if (type.IsTkCompatibleWith(*fromType)) { in ConvertToType()
1076 if (auto fromType{expr.GetType()}) { in DataConstantConversionExtension() local
1078 fromType->category() == TypeCategory::Integer) { in DataConstantConversionExtension()
1083 fromType->category() == TypeCategory::Logical) { in DataConstantConversionExtension()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp889 unsigned int fromType; in tryLoad() local
900 fromType = NVPTX::PTXLdStInstCode::Signed; in tryLoad()
903 fromType = ScalarVT.SimpleTy == MVT::f16 ? NVPTX::PTXLdStInstCode::Untyped in tryLoad()
906 fromType = NVPTX::PTXLdStInstCode::Unsigned; in tryLoad()
924 getI32Imm(vecType, dl), getI32Imm(fromType, dl), in tryLoad()
936 getI32Imm(vecType, dl), getI32Imm(fromType, dl), in tryLoad()
954 getI32Imm(vecType, dl), getI32Imm(fromType, dl), in tryLoad()
972 getI32Imm(vecType, dl), getI32Imm(fromType, dl), in tryLoad()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp783 Type fromType = operation.operand().getType(); in matchAndRewrite() local
790 if (getBitWidth(fromType) < getBitWidth(toType)) { in matchAndRewrite()
795 if (getBitWidth(fromType) > getBitWidth(toType)) { in matchAndRewrite()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaInit.cpp8985 QualType fromType = op->getType(); in emitBadConversionNotes() local
8986 QualType fromPointeeType = fromType.getCanonicalType()->getPointeeType(); in emitBadConversionNotes()
8988 auto *fromDecl = fromType->getPointeeCXXRecordDecl(); in emitBadConversionNotes()