Home
last modified time | relevance | path

Searched refs:TypeSwitch (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DTypeSwitch.h107 class TypeSwitch : public detail::TypeSwitchBase<TypeSwitch<T, ResultT>, T> {
109 using BaseT = detail::TypeSwitchBase<TypeSwitch<T, ResultT>, T>;
112 TypeSwitch(TypeSwitch &&other) = default;
116 TypeSwitch<T, ResultT> &Case(CallableT &&caseFn) { in Case()
154 class TypeSwitch<T, void>
155 : public detail::TypeSwitchBase<TypeSwitch<T, void>, T> {
157 using BaseT = detail::TypeSwitchBase<TypeSwitch<T, void>, T>;
160 TypeSwitch(TypeSwitch &&other) = default;
164 TypeSwitch<T, void> &Case(CallableT &&caseFn) { in Case()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DTypeSwitchTest.cpp33 return TypeSwitch<Base *, int>(&value) in TEST()
47 return TypeSwitch<Base *, int>(&value) in TEST()
62 TypeSwitch<Base *>(&value) in TEST()
78 TypeSwitch<Base *>(&value) in TEST()
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DLLVM.h82 class TypeSwitch; variable
142 using TypeSwitch = llvm::TypeSwitch<T, ResultT>; variable
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DCPPGen.cpp141 TypeSwitch<Operation *>(op) in generateConstraintAndRewrites()
147 TypeSwitch<const ast::Decl *>(decl) in generateConstraintAndRewrites()
172 return llvm::TypeSwitch<ast::Type, StringRef>(type) in getNativeTypeName()
H A DMLIRGen.cpp159 return TypeSwitch<ast::Type, Type>(type) in genType()
178 TypeSwitch<const ast::Node *>(node) in gen()
317 TypeSwitch<const ast::Node *, Value>(constraint.constraint) in genNonInitializerVar()
378 return TypeSwitch<const ast::Expr *, Value>(expr) in genSingleExpr()
391 return TypeSwitch<const ast::Expr *, SmallVector<Value>>(expr) in genExpr()
/llvm-project-15.0.7/mlir/test/lib/Analysis/
H A DTestMemRefBoundCheck.cpp45 TypeSwitch<Operation *>(opInst) in runOnOperation()
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DType.cpp53 return TypeSwitch<llvm::Init *, Optional<StringRef>>(builderCall->getValue()) in getBuilderCall()
/llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/
H A DPredicateTree.cpp71 TypeSwitch<Operation *>(val.getDefiningOp()) in getOperandTreePredicates()
239 TypeSwitch<Position *>(pos) in getTreePredicates()
331 TypeSwitch<Operation *>(&op) in getNonTreePredicates()
374 TypeSwitch<Operation *>(operand.getDefiningOp()) in detectRoots()
452 TypeSwitch<Operation *>(entry.value.getDefiningOp()) in buildCostGraph()
524 TypeSwitch<Operation *>(value.getDefiningOp()) in visitUpward()
/llvm-project-15.0.7/mlir/lib/IR/
H A DLocation.cpp44 return TypeSwitch<LocationAttr, WalkResult>(*this) in walk()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DTargetRewrite.cpp213 llvm::TypeSwitch<mlir::Type>(ty) in convertCallOp()
235 llvm::TypeSwitch<mlir::Type>(ty) in convertCallOp()
378 llvm::TypeSwitch<mlir::Type>(ty) in convertAddrOp()
389 llvm::TypeSwitch<mlir::Type>(ty) in convertAddrOp()
482 llvm::TypeSwitch<mlir::Type>(ty) in convertSignature()
502 llvm::TypeSwitch<mlir::Type>(ty) in convertSignature()
/llvm-project-15.0.7/mlir/lib/Conversion/AsyncToLLVM/
H A DAsyncToLLVM.cpp626 TypeSwitch<Type, StringRef>(op.operand().getType()) in matchAndRewrite()
652 TypeSwitch<Type, StringRef>(op.operand().getType()) in matchAndRewrite()
677 TypeSwitch<Type, StringRef>(op.operand().getType()) in matchAndRewrite()
702 TypeSwitch<Type, StringRef>(op.operand().getType()) in matchAndRewrite()
730 TypeSwitch<Type, StringRef>(op.operand().getType()) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodePrinter.cpp130 TypeSwitch<Type>(type) in print()
164 TypeSwitch<const Node *>(node) in print()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Linalg/
H A DTestLinalgElementwiseFusion.cpp27 TypeSwitch<Operation *, void>(op) in addOperands()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypes.cpp805 llvm::TypeSwitch<Type, bool>(type) in isCompatibleImpl()
889 return llvm::TypeSwitch<Type, Type>(type) in getVectorElementType()
898 return llvm::TypeSwitch<Type, llvm::ElementCount>(type) in getVectorNumElements()
967 return llvm::TypeSwitch<Type, llvm::TypeSize>(type) in getPrimitiveTypeSizeInBits()
/llvm-project-15.0.7/mlir/lib/Dialect/NVGPU/IR/
H A DNVGPUDialect.cpp49 TypeSwitch<Type>(type) in printType()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DLoopCanonicalization.cpp47 llvm::TypeSwitch<Operation *, Value>(opResult.getOwner()) in isShapePreserving()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DTypeFromLLVM.cpp36 llvm::TypeSwitch<llvm::Type *, Type>(type) in translateType()
H A DTypeToLLVM.cpp38 llvm::TypeSwitch<Type, llvm::Type *>(type) in translateType()
/llvm-project-15.0.7/mlir/examples/toy/Ch3/parser/
H A DAST.cpp79 llvm::TypeSwitch<ExprAST *>(expr) in dump()
/llvm-project-15.0.7/mlir/examples/toy/Ch1/parser/
H A DAST.cpp79 llvm::TypeSwitch<ExprAST *>(expr) in dump()
/llvm-project-15.0.7/mlir/examples/toy/Ch2/parser/
H A DAST.cpp79 llvm::TypeSwitch<ExprAST *>(expr) in dump()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/parser/
H A DAST.cpp79 llvm::TypeSwitch<ExprAST *>(expr) in dump()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/parser/
H A DAST.cpp79 llvm::TypeSwitch<ExprAST *>(expr) in dump()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/parser/
H A DAST.cpp79 llvm::TypeSwitch<ExprAST *>(expr) in dump()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DDataLayoutInterfaces.cpp238 return llvm::TypeSwitch<Operation *, DataLayoutSpecInterface>(operation) in getSpec()
258 llvm::TypeSwitch<Operation *>(parent) in collectParentLayouts()

123