Home
last modified time | relevance | path

Searched refs:ScopedContext (Results 1 – 25 of 65) sorted by relevance

123

/external/llvm-project/mlir/lib/EDSC/
DBuilders.cpp18 mlir::edsc::ScopedContext::ScopedContext(OpBuilder &b) in ScopedContext() function in mlir::edsc::ScopedContext
19 : ScopedContext(b, b.getInsertionPoint()->getLoc()) {} in ScopedContext()
21 mlir::edsc::ScopedContext::ScopedContext(OpBuilder &b, Location location) in ScopedContext() function in mlir::edsc::ScopedContext
23 enclosingScopedContext(ScopedContext::getCurrentScopedContext()) { in ScopedContext()
30 mlir::edsc::ScopedContext::ScopedContext(OpBuilder &b, in ScopedContext() function in mlir::edsc::ScopedContext
34 enclosingScopedContext(ScopedContext::getCurrentScopedContext()) { in ScopedContext()
39 mlir::edsc::ScopedContext::~ScopedContext() { in ~ScopedContext()
43 ScopedContext *&mlir::edsc::ScopedContext::getCurrentScopedContext() { in getCurrentScopedContext()
44 thread_local ScopedContext *context = nullptr; in getCurrentScopedContext()
48 OpBuilder &mlir::edsc::ScopedContext::getBuilderRef() { in getBuilderRef()
[all …]
/external/llvm-project/mlir/lib/Dialect/SCF/EDSC/
DBuilders.cpp22 assert(ScopedContext::getContext() && "EDSC ScopedContext not set up"); in loopNestBuilder()
24 ScopedContext::getBuilderRef(), ScopedContext::getLocation(), lbs, ubs, in loopNestBuilder()
26 ScopedContext context(builder, loc); in loopNestBuilder()
50 assert(ScopedContext::getContext() && "EDSC ScopedContext not set up"); in loopNestBuilder()
52 ScopedContext::getBuilderRef(), ScopedContext::getLocation(), lb, ub, in loopNestBuilder()
56 ScopedContext context(builder, loc); in loopNestBuilder()
70 assert(ScopedContext::getContext() && "EDSC ScopedContext not set up"); in loopNestBuilder()
72 ScopedContext::getBuilderRef(), ScopedContext::getLocation(), lbs, ubs, in loopNestBuilder()
75 ScopedContext context(builder, loc); in loopNestBuilder()
87 ScopedContext context(builder, loc); in wrapIfBody()
[all …]
/external/llvm-project/mlir/include/mlir/EDSC/
DBuilders.h31 class ScopedContext {
33 ScopedContext(OpBuilder &b);
34 ScopedContext(OpBuilder &b, Location location);
39 ScopedContext(OpBuilder &b, OpBuilder::InsertPoint newInsertPt,
41 ~ScopedContext();
52 ScopedContext() = delete;
53 ScopedContext(const ScopedContext &) = delete;
54 ScopedContext &operator=(const ScopedContext &) = delete;
56 static ScopedContext *&getCurrentScopedContext();
65 ScopedContext *enclosingScopedContext;
[all …]
/external/llvm-project/mlir/lib/Dialect/Affine/EDSC/
DBuilders.cpp20 assert(ScopedContext::getContext() && "EDSC ScopedContext not set up"); in affineLoopNestBuilder()
26 ScopedContext context(nestedBuilder, nestedLoc); in affineLoopNestBuilder()
34 OpBuilder &builder = ScopedContext::getBuilderRef(); in affineLoopNestBuilder()
35 Location loc = ScopedContext::getLocation(); in affineLoopNestBuilder()
42 assert(ScopedContext::getContext() && "EDSC ScopedContext not set up"); in affineLoopBuilder()
43 OpBuilder &builder = ScopedContext::getBuilderRef(); in affineLoopBuilder()
44 Location loc = ScopedContext::getLocation(); in affineLoopBuilder()
54 ScopedContext nestedContext(nestedBuilder, nestedLoc); in affineLoopBuilder()
66 assert(ScopedContext::getContext() && "EDSC ScopedContext not set up"); in affineLoopBuilder()
67 OpBuilder &builder = ScopedContext::getBuilderRef(); in affineLoopBuilder()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dtest_fixture.h26 struct ScopedContext { struct
27 ScopedContext(spv_target_env env = SPV_ENV_UNIVERSAL_1_0)
29 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
67 spvTextToBinary(ScopedContext(env).context, txt.c_str(), txt.size(),
87 spvTextToBinary(ScopedContext(env).context, txt.c_str(),
102 ScopedContext context(env);
141 spvBinaryToText(ScopedContext().context, code.data(), code.size(), in EncodeSuccessfullyDecodeFailed()
Dassembly_format_test.cpp20 using spvtest::ScopedContext;
26 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
40 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dbinary_destroy_test.cpp22 using spvtest::ScopedContext;
37 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dbinary_parse_test.cpp44 using ::spvtest::ScopedContext;
217 spvBinaryParse(ScopedContext().context, &client_, in Parse()
253 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
264 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
383 EXPECT_EQ(SPV_SUCCESS, spvBinaryParse(ScopedContext().context, &client_, in TEST_F()
394 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
559 spvBinaryParse(ScopedContext().context, nullptr, GetParam().words, in TEST_P()
595 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
833 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/
Dtest_fixture.h26 struct ScopedContext { struct
27 ScopedContext(spv_target_env env = SPV_ENV_UNIVERSAL_1_0)
29 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
67 spvTextToBinary(ScopedContext(env).context, txt.c_str(), txt.size(),
87 spvTextToBinary(ScopedContext(env).context, txt.c_str(),
102 ScopedContext context(env);
141 spvBinaryToText(ScopedContext().context, code.data(), code.size(), in EncodeSuccessfullyDecodeFailed()
Dassembly_format_test.cpp20 using spvtest::ScopedContext;
26 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
40 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dbinary_destroy_test.cpp22 using spvtest::ScopedContext;
37 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dbinary_parse_test.cpp44 using ::spvtest::ScopedContext;
217 spvBinaryParse(ScopedContext().context, &client_, in Parse()
253 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
264 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
383 EXPECT_EQ(SPV_SUCCESS, spvBinaryParse(ScopedContext().context, &client_, in TEST_F()
394 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
559 spvBinaryParse(ScopedContext().context, nullptr, GetParam().words, in TEST_P()
595 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
833 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
/external/swiftshader/third_party/SPIRV-Tools/test/
Dtest_fixture.h26 struct ScopedContext { struct
27 ScopedContext(spv_target_env env = SPV_ENV_UNIVERSAL_1_0)
29 ~ScopedContext() { spvContextDestroy(context); } in ~ScopedContext() argument
67 spvTextToBinary(ScopedContext(env).context, txt.c_str(), txt.size(),
87 spvTextToBinary(ScopedContext(env).context, txt.c_str(),
102 ScopedContext context(env);
141 spvBinaryToText(ScopedContext().context, code.data(), code.size(), in EncodeSuccessfullyDecodeFailed()
Dassembly_format_test.cpp20 using spvtest::ScopedContext;
26 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
40 spvTextToBinary(ScopedContext().context, text.str, text.length, in TEST_F()
Dbinary_destroy_test.cpp22 using spvtest::ScopedContext;
37 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, in TEST_F()
Dbinary_parse_test.cpp44 using ::spvtest::ScopedContext;
217 spvBinaryParse(ScopedContext().context, &client_, in Parse()
253 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
264 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
383 EXPECT_EQ(SPV_SUCCESS, spvBinaryParse(ScopedContext().context, &client_, in TEST_F()
394 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
559 spvBinaryParse(ScopedContext().context, nullptr, GetParam().words, in TEST_P()
595 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
833 EXPECT_THAT(spvBinaryParse(ScopedContext().context, nullptr, words.data(), in TEST_P()
/external/llvm-project/mlir/test/EDSC/
Dbuilder-api-test.cpp71 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
121 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
143 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
165 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
186 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
217 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
244 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
283 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
323 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
376 ScopedContext scope(builder, f.getLoc()); in TEST_FUNC()
[all …]
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DLoops.cpp58 return permutation ? applyMapToValues(ScopedContext::getBuilderRef(), in permuteIvs()
59 ScopedContext::getLocation(), in permuteIvs()
69 auto &b = ScopedContext::getBuilderRef(); in inlineRegionAndEmitStore()
97 auto &b = ScopedContext::getBuilderRef(); in getInputAndOutputIndices()
98 auto loc = ScopedContext::getLocation(); in getInputAndOutputIndices()
142 auto &b = ScopedContext::getBuilderRef(); in emitScalarImplementation()
143 auto loc = ScopedContext::getLocation(); in emitScalarImplementation()
227 auto *context = ScopedContext::getContext(); in getPaddedInput()
277 auto &b = ScopedContext::getBuilderRef(); in getPadValueAttr()
296 auto &b = ScopedContext::getBuilderRef(); in getPadValueAttr()
[all …]
/external/llvm-project/mlir/include/mlir/Dialect/Linalg/EDSC/
DFoldedIntrinsics.h25 value = folder ? folder->create<Op>(ScopedContext::getBuilderRef(), in FoldedValueBuilder()
26 ScopedContext::getLocation(), args...) in FoldedValueBuilder()
27 : ScopedContext::getBuilderRef().create<Op>( in FoldedValueBuilder()
28 ScopedContext::getLocation(), args...); in FoldedValueBuilder()
/external/libchrome/base/test/
Dtest_mock_time_task_runner.h105 class ScopedContext {
111 explicit ScopedContext(scoped_refptr<TestMockTimeTaskRunner> scope);
112 ~ScopedContext();
116 DISALLOW_COPY_AND_ASSIGN(ScopedContext);
/external/llvm-project/mlir/lib/Dialect/Linalg/EDSC/
DBuilders.cpp30 OpBuilder &builder = edsc::ScopedContext::getBuilderRef(); in makeGenericLinalgOp()
61 edsc::ScopedContext::getBuilderRef() in makeGenericLinalgOp()
63 edsc::ScopedContext::getLocation(), in makeGenericLinalgOp()
90 ScopedContext scope(opBuilder, op->getLoc()); in makeGenericLinalgOp()
179 bindDims(ScopedContext::getContext(), m, n, k); in linalg_generic_matmul()
197 bindDims(ScopedContext::getContext(), m, n, k); in linalg_generic_matmul()
213 MLIRContext *ctx = ScopedContext::getContext(); in linalg_generic_conv_nhwc()
249 MLIRContext *ctx = ScopedContext::getContext(); in linalg_generic_dilated_conv_nhwc()
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_fixtures.h114 spvTextToBinary(ScopedContext(env).context, code.c_str(), in CompileFailure()
126 ScopedContext context(env); in CompileSuccessfully()
155 return spvValidateWithOptions(ScopedContext(env).context, options_, in ValidateInstructions()
164 ScopedContext(env).context, options_, get_const_binary()->code, in ValidateAndRetrieveValidationState()
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_fixtures.h114 spvTextToBinary(ScopedContext(env).context, code.c_str(), in CompileFailure()
126 ScopedContext context(env); in CompileSuccessfully()
155 return spvValidateWithOptions(ScopedContext(env).context, options_, in ValidateInstructions()
164 ScopedContext(env).context, options_, get_const_binary()->code, in ValidateAndRetrieveValidationState()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/val/
Dval_fixtures.h114 spvTextToBinary(ScopedContext(env).context, code.c_str(), in CompileFailure()
126 ScopedContext context(env); in CompileSuccessfully()
155 return spvValidateWithOptions(ScopedContext(env).context, options_, in ValidateInstructions()
164 ScopedContext(env).context, options_, get_const_binary()->code, in ValidateAndRetrieveValidationState()
/external/llvm-project/mlir/lib/Dialect/Linalg/Utils/
DUtils.cpp132 OpBuilder &builder = edsc::ScopedContext::getBuilderRef(); in doit()
133 Location loc = edsc::ScopedContext::getLocation(); in doit()
241 edsc::ScopedContext context(nestedBuilder, nestedLoc); in __anon7ecdf6bc0302()
271 edsc::ScopedContext context(nestedBuilder, nestedLoc); in __anon7ecdf6bc0402()
338 OpBuilder &builder = edsc::ScopedContext::getBuilderRef(); in doit()
339 Location loc = edsc::ScopedContext::getLocation(); in doit()

123