Home
last modified time | relevance | path

Searched refs:vardecl (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/mlir/examples/toy/Ch2/mlir/
DMLIRGen.cpp373 mlir::Value mlirGen(VarDeclExprAST &vardecl) { in mlirGen() argument
374 auto init = vardecl.getInitVal(); in mlirGen()
376 emitError(loc(vardecl.loc()), in mlirGen()
388 if (!vardecl.getType().shape.empty()) { in mlirGen()
389 value = builder.create<ReshapeOp>(loc(vardecl.loc()), in mlirGen()
390 getType(vardecl.getType()), value); in mlirGen()
394 if (failed(declare(vardecl.getName(), value))) in mlirGen()
406 if (auto *vardecl = dyn_cast<VarDeclExprAST>(expr.get())) { in mlirGen() local
407 if (!mlirGen(*vardecl)) in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch3/mlir/
DMLIRGen.cpp373 mlir::Value mlirGen(VarDeclExprAST &vardecl) { in mlirGen() argument
374 auto init = vardecl.getInitVal(); in mlirGen()
376 emitError(loc(vardecl.loc()), in mlirGen()
388 if (!vardecl.getType().shape.empty()) { in mlirGen()
389 value = builder.create<ReshapeOp>(loc(vardecl.loc()), in mlirGen()
390 getType(vardecl.getType()), value); in mlirGen()
394 if (failed(declare(vardecl.getName(), value))) in mlirGen()
406 if (auto *vardecl = dyn_cast<VarDeclExprAST>(expr.get())) { in mlirGen() local
407 if (!mlirGen(*vardecl)) in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch4/mlir/
DMLIRGen.cpp377 mlir::Value mlirGen(VarDeclExprAST &vardecl) { in mlirGen() argument
378 auto init = vardecl.getInitVal(); in mlirGen()
380 emitError(loc(vardecl.loc()), in mlirGen()
392 if (!vardecl.getType().shape.empty()) { in mlirGen()
393 value = builder.create<ReshapeOp>(loc(vardecl.loc()), in mlirGen()
394 getType(vardecl.getType()), value); in mlirGen()
398 if (failed(declare(vardecl.getName(), value))) in mlirGen()
410 if (auto *vardecl = dyn_cast<VarDeclExprAST>(expr.get())) { in mlirGen() local
411 if (!mlirGen(*vardecl)) in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch5/mlir/
DMLIRGen.cpp377 mlir::Value mlirGen(VarDeclExprAST &vardecl) { in mlirGen() argument
378 auto init = vardecl.getInitVal(); in mlirGen()
380 emitError(loc(vardecl.loc()), in mlirGen()
392 if (!vardecl.getType().shape.empty()) { in mlirGen()
393 value = builder.create<ReshapeOp>(loc(vardecl.loc()), in mlirGen()
394 getType(vardecl.getType()), value); in mlirGen()
398 if (failed(declare(vardecl.getName(), value))) in mlirGen()
410 if (auto *vardecl = dyn_cast<VarDeclExprAST>(expr.get())) { in mlirGen() local
411 if (!mlirGen(*vardecl)) in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DMLIRGen.cpp377 mlir::Value mlirGen(VarDeclExprAST &vardecl) { in mlirGen() argument
378 auto init = vardecl.getInitVal(); in mlirGen()
380 emitError(loc(vardecl.loc()), in mlirGen()
392 if (!vardecl.getType().shape.empty()) { in mlirGen()
393 value = builder.create<ReshapeOp>(loc(vardecl.loc()), in mlirGen()
394 getType(vardecl.getType()), value); in mlirGen()
398 if (failed(declare(vardecl.getName(), value))) in mlirGen()
410 if (auto *vardecl = dyn_cast<VarDeclExprAST>(expr.get())) { in mlirGen() local
411 if (!mlirGen(*vardecl)) in mlirGen()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dreadability-function-size.cpp301 #define vardecl(type, name) type name; macro
303 vardecl(int, a); in variables_16()
304 vardecl(int, b); in variables_16()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DMLIRGen.cpp571 mlir::Value mlirGen(VarDeclExprAST &vardecl) { in mlirGen() argument
572 auto init = vardecl.getInitVal(); in mlirGen()
574 emitError(loc(vardecl.loc()), in mlirGen()
584 VarType varType = vardecl.getType(); in mlirGen()
588 mlir::Type type = getType(varType, vardecl.loc()); in mlirGen()
592 emitError(loc(vardecl.loc())) in mlirGen()
603 value = builder.create<ReshapeOp>(loc(vardecl.loc()), in mlirGen()
608 if (failed(declare(vardecl, value))) in mlirGen()
620 if (auto *vardecl = dyn_cast<VarDeclExprAST>(expr.get())) { in mlirGen() local
621 if (!mlirGen(*vardecl)) in mlirGen()
/external/python/cpython3/Lib/test/
Dtest_type_comments.py70 vardecl = """\ variable
305 for tree in self.parse_all(vardecl):
307 tree = self.classic_parse(vardecl)