Home
last modified time | relevance | path

Searched refs:builder_ (Results 1 – 25 of 45) sorted by relevance

12

/third_party/ninja/src/
Dbuild_test.cc490 builder_(&state_, config_, NULL, NULL, &fs_, &status_, 0) { in BuildTest()
495 builder_(&state_, config_, NULL, log, &fs_, &status_, 0) {} in BuildTest()
500 builder_.command_runner_.reset(&command_runner_); in SetUp()
511 builder_.command_runner_.release(); in ~BuildTest()
536 Builder builder_; member
733 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
741 EXPECT_TRUE(builder_.AddTarget("cat1", &err)); in TEST_F()
743 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
755 EXPECT_TRUE(builder_.AddTarget("cat1", &err)); in TEST_F()
757 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
[all …]
/third_party/gn/src/gn/
Danalyzer_unittest.cc50 builder_(loader_.get()), in AnalyzerTest()
93 Analyzer analyzer(builder_, SourceFile("//build/config/BUILDCONFIG.gn"), in RunAnalyzerTest()
105 Builder builder_; member in gn_analyzer_unittest::AnalyzerTest
121 builder_.ItemDefined(std::move(t)); in TEST_F()
152 builder_.ItemDefined(std::move(t));
183 builder_.ItemDefined(std::move(t));
214 builder_.ItemDefined(std::move(c));
246 builder_.ItemDefined(std::move(ssc));
247 builder_.ItemDefined(std::move(sc));
248 builder_.ItemDefined(std::move(c));
[all …]
Dbuilder_unittest.cc75 builder_(loader_.get()), in BuilderTest()
86 builder_.ItemDefined(std::unique_ptr<Item>(tc)); in DefineToolchain()
92 Builder builder_; member in gn_builder_unittest::BuilderTest
113 builder_.ItemDefined(std::unique_ptr<Item>(a)); in TEST_F()
122 builder_.GetRecord(settings_.toolchain_label()); in TEST_F()
127 BuilderRecord* a_record = builder_.GetRecord(a_label); in TEST_F()
133 BuilderRecord* b_record = builder_.GetRecord(b_label); in TEST_F()
157 builder_.ItemDefined(std::unique_ptr<Item>(c)); in TEST_F()
168 builder_.ItemDefined(std::unique_ptr<Item>(b)); in TEST_F()
175 BuilderRecord* c_record = builder_.GetRecord(c_label); in TEST_F()
[all …]
Declipse_writer.cc41 : build_settings_(build_settings), builder_(builder), out_(out) { in EclipseWriter()
79 std::vector<const Target*> targets = builder_.GetAllResolvedTargets(); in GetAllIncludeDirs()
94 std::vector<const Target*> targets = builder_.GetAllResolvedTargets(); in GetAllDefines()
118 builder_.loader()->GetDefaultToolchain(); in UsesDefaultToolchain()
Dninja_writer.cc15 NinjaWriter::NinjaWriter(const Builder& builder) : builder_(builder) {} in NinjaWriter()
42 builder_.loader()->GetToolchainSettings(toolchain->label()); in WriteToolchains()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver.cc86 : builder_(builder), in Resolver()
93 if (builder_->Diagnostics().contains_errors()) { in Resolve()
97 if (!DependencyGraph::Build(builder_->AST(), builder_->Symbols(), in Resolve()
98 builder_->Diagnostics(), dependencies_, in Resolve()
115 Mark(&builder_->AST()); in ResolveInternal()
119 for (auto* decl : builder_->AST().GlobalDeclarations()) { in ResolveInternal()
151 for (auto* node : builder_->ASTNodes().Objects()) { in ResolveInternal()
168 return builder_->create<sem::Void>(); in Type()
171 return builder_->create<sem::Bool>(); in Type()
174 return builder_->create<sem::I32>(); in Type()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dfunction.cc740 builder_(pi->builder()), in FunctionEmitter()
761 builder_(other.builder_), in FunctionEmitter()
829 Source{}, builder_.Symbols().Register(guard_name)); in PushGuard()
854 entry.Finalize(&builder_); in ast_body()
910 builder_.AST().AddFunction(create<ast::Function>( in Emit()
911 decl.source, builder_.Symbols().Register(decl.name), in Emit()
912 std::move(decl.params), decl.return_type->Build(builder_), body, in Emit()
938 statements_stack_[0].Finalize(&builder_); in MakeFunctionBody()
1026 builder_.Param(param_name, param_type->Build(builder_), *decos)); in EmitPipelineInput()
1030 const ast::Expression* param_value = builder_.Expr(param_name); in EmitPipelineInput()
[all …]
Dparser_impl.cc328 return tint::Program(std::move(builder_)); in program()
502 builder_.ASTNodes().Create<ast::DisableValidationDecoration>( in ConvertMemberDecoration()
503 builder_.ID(), ast::DisabledValidation::kIgnoreStrideDecoration), in ConvertMemberDecoration()
1180 Source{}, builder_.Symbols().Register(member_name), in ConvertType()
1181 ast_member_ty->Build(builder_), std::move(ast_member_decorations)); in ConvertType()
1195 auto sym = builder_.Symbols().Register(name); in ConvertType()
1215 builder_.AST().AddTypeDecl(decl); in AddTypeDecl()
1408 builder_.AST().AddGlobalVariable(ast_var); in EmitScalarSpecConstants()
1448 const auto sym = builder_.Symbols().Register(name); in MaybeGenerateAlias()
1450 builder_.ty.alias(sym, ast_underlying_type->Build(builder_)); in MaybeGenerateAlias()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl.cc87 if (!builder_.HasTransformApplied<transform::Glsl>()) { in Generate()
105 for (auto* decl : builder_.AST().GlobalDeclarations()) { in Generate()
127 if (!EmitStructType(current_buffer_, builder_.Sem().Get(str))) { in Generate()
415 auto* call = builder_.Sem().Get(expr); in EmitCall()
442 auto name = builder_.Symbols().NameFor(ident->symbol); in EmitFunctionCall()
1232 auto* packed = AppendVector(&builder_, param_coords, array_index); in EmitTextureCall()
1456 out << builder_.Symbols().NameFor(expr->symbol); in EmitIdentifier()
1508 auto* sem = builder_.Sem().Get(func); in EmitFunction()
1517 auto name = builder_.Symbols().NameFor(func->symbol); in EmitFunction()
1552 builder_.Symbols().NameFor(v->Declaration()->symbol))) { in EmitFunction()
[all …]
/third_party/mindspore/patches/
D0001-generate-schema-headers-manually.patch132 + TuneParamBuilder builder_(_fbb);
133 + builder_.add_opPara(opPara);
134 + builder_.add_shape(shape);
135 + builder_.add_block(block);
136 + builder_.add_local(local);
137 + return builder_.Finish();
225 + ProgramBinaryBuilder builder_(_fbb);
226 + builder_.add_data(data);
227 + builder_.add_tune(tune);
228 + builder_.add_build_option(build_option);
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dbytestrietest.cpp74 BytesTrieBuilder *builder_; member in BytesTrieTest
81 BytesTrieTest::BytesTrieTest() : builder_(NULL) { in BytesTrieTest()
83 builder_=new BytesTrieBuilder(errorCode); in BytesTrieTest()
87 delete builder_; in ~BytesTrieTest()
120 builder_->clear(); in TestBuilder()
121 delete builder_->build(USTRINGTRIE_BUILD_FAST, errorCode); in TestBuilder()
127builder_->add("=", 0, errorCode).add("=", 1, errorCode).build(USTRINGTRIE_BUILD_FAST, errorCode); in TestBuilder()
585 builder_->clear(); in TestIteratorFromBytes()
588 builder_->add(data[i].s, data[i].value, errorCode); in TestIteratorFromBytes()
590 StringPiece trieBytes=builder_->buildStringPiece(USTRINGTRIE_BUILD_FAST, errorCode); in TestIteratorFromBytes()
[all …]
Ducharstrietest.cpp80 UCharsTrieBuilder *builder_; member in UCharsTrieTest
87 UCharsTrieTest::UCharsTrieTest() : builder_(NULL) { in UCharsTrieTest()
89 builder_=new UCharsTrieBuilder(errorCode); in UCharsTrieTest()
93 delete builder_; in ~UCharsTrieTest()
127 delete builder_->build(USTRINGTRIE_BUILD_FAST, errorCode); in TestBuilder()
133builder_->add("=", 0, errorCode).add("=", 1, errorCode).build(USTRINGTRIE_BUILD_FAST, errorCode); in TestBuilder()
374 builder_->clear(); in buildLargeTrie()
376 builder_->add(gen.getString(), gen.getValue(), errorCode); in buildLargeTrie()
381 builder_->buildUnicodeString(USTRINGTRIE_BUILD_FAST, trieUChars, errorCode); in buildLargeTrie()
740 builder_->clear(); in TestIteratorFromUChars()
[all …]
/third_party/flutter/txt/src/skia/
Dparagraph_builder_skia.cc142 : builder_(skt::ParagraphBuilder::make( in ParagraphBuilderSkia()
150 builder_->pushStyle(TxtToSkia(style)); in PushStyle()
155 builder_->pop(); in Pop()
164 builder_->addText(text); in AddText()
176 builder_->addPlaceholder(placeholder_style); in AddPlaceholder()
180 return std::unique_ptr<Paragraph>(new ParagraphSkia(builder_->Build())); in Build()
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl.cc211 for (auto* decl : builder_.AST().GlobalDeclarations()) { in Generate()
232 auto* ty = builder_.Sem().Get(str); in Generate()
313 TINT_UNREACHABLE(Writer, builder_.Diagnostics()) in EmitDynamicVectorAssignment()
480 TINT_UNREACHABLE(Writer, builder_.Diagnostics()) in EmitDynamicMatrixScalarAssignment()
572 auto* rhs_col_idx_sem = builder_.Sem().Get(lhs_access->index); in EmitAssign()
573 auto* rhs_row_idx_sem = builder_.Sem().Get(lhs_sub_access->index); in EmitAssign()
584 auto* lhs_index_sem = builder_.Sem().Get(lhs_access->index); in EmitAssign()
592 auto* rhs_sem = builder_.Sem().Get(lhs_access->index); in EmitAssign()
735 if (auto val = builder_.Sem().Get(expr->rhs)->ConstantValue()) { in EmitBinary()
795 auto* call = builder_.Sem().Get(expr); in EmitCall()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder.cc298 : builder_(ProgramBuilder::Wrap(program)), scope_stack_({}) {} in Builder()
309 for (auto* var : builder_.AST().GlobalVariables()) { in Build()
315 for (auto* func : builder_.AST().Functions()) { in Build()
465 Operand::String(builder_.Symbols().NameFor(func->symbol))}; in GenerateEntryPoint()
467 auto* func_sem = builder_.Sem().Get(func); in GenerateEntryPoint()
479 builder_.Symbols().NameFor(var->Declaration()->symbol); in GenerateEntryPoint()
491 auto* func_sem = builder_.Sem().Get(func); in GenerateExecutionModes()
507 TINT_ICE(Writer, builder_.Diagnostics()) in GenerateExecutionModes()
513 builder_.create<sem::Vector>(builder_.create<sem::U32>(), 3); in GenerateExecutionModes()
529 auto* sem_const = builder_.Sem().Get<sem::GlobalVariable>( in GenerateExecutionModes()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl.cc289 builder_.Diagnostics().add_error(diag::System::Reader, err, source); in add_error()
295 builder_.Diagnostics().add_warning( in deprecated()
339 if (builder_.Diagnostics().error_count() >= max_errors_) { in translation_unit()
374 builder_.AST().AddGlobalVariable(gv.value); in expect_global_decl()
386 builder_.AST().AddGlobalVariable(gc.value); in expect_global_decl()
398 builder_.AST().AddTypeDecl(ta.value); in expect_global_decl()
410 builder_.AST().AddTypeDecl(str.value); in expect_global_decl()
429 builder_.AST().AddFunction(func.value); in expect_global_decl()
492 builder_.Symbols().Register(decl->name), // symbol in global_variable_decl()
528 builder_.Symbols().Register(decl->name), // symbol in global_constant_decl()
[all …]
Dparser_impl.h326 bool has_error() const { return builder_.Diagnostics().contains_errors(); } in has_error()
331 return formatter.format(builder_.Diagnostics()); in error()
336 Program program() { return Program(std::move(builder_)); } in program()
339 ProgramBuilder& builder() { return builder_; } in builder()
836 return synchronized_ && builder_.Diagnostics().error_count() < max_errors_; in continue_parsing()
875 return builder_.create<T>(std::forward<ARGS>(args)...); in create()
885 ProgramBuilder builder_; variable
/third_party/flutter/engine/flutter/third_party/txt/src/skia/
Dparagraph_builder_skia.cc131 : builder_(skt::ParagraphBuilder::make( in ParagraphBuilderSkia()
139 builder_->pushStyle(TxtToSkia(style)); in PushStyle()
144 builder_->pop(); in Pop()
153 builder_->addText(text); in AddText()
161 return std::make_unique<ParagraphSkia>(builder_->Build()); in Build()
/third_party/skia/third_party/externals/tint/src/writer/
Dtext_generator.h199 return builder_.TypeOf(expr); in TypeOf()
205 return builder_.TypeOf(type); in TypeOf()
211 return builder_.TypeOf(type_decl); in TypeOf()
226 ProgramBuilder builder_; variable
Dtext_generator.cc26 : program_(program), builder_(ProgramBuilder::Wrap(program)) {} in TextGenerator()
31 return builder_.Symbols().NameFor(builder_.Symbols().New(prefix)); in UniqueIdentifier()
35 auto name = builder_.Symbols().NameFor(s->Name()); in StructName()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCharsTrieTest.java39 builder_.clear(); in Test00Builder()
41 builder_.build(StringTrieBuilder.Option.FAST); in Test00Builder()
48 builder_.add("=", 0).add("=", 1); in Test00Builder()
311 builder_.clear(); in buildLargeTrie()
313 builder_.add(gen.getString(), gen.getValue()); in buildLargeTrie()
317 CharSequence trieChars=builder_.buildCharSequence(StringTrieBuilder.Option.FAST); in buildLargeTrie()
632 builder_.clear(); in Test59IteratorFromChars()
634 builder_.add(item.s, item.value); in Test59IteratorFromChars()
636 CharSequence trieChars=builder_.buildCharSequence(StringTrieBuilder.Option.FAST); in Test59IteratorFromChars()
698 builder_.clear(); in buildTrie()
[all …]
DBytesTrieTest.java39 builder_.clear(); in Test00Builder()
41 builder_.build(StringTrieBuilder.Option.FAST); in Test00Builder()
49 builder_.add(equal, 1, 0).add(equal, 1, 1); in Test00Builder()
504 builder_.clear(); in Test59IteratorFromBytes()
506 builder_.add(item.bytes, item.bytes.length, item.value); in Test59IteratorFromBytes()
508 ByteBuffer trieBytes=builder_.buildByteBuffer(StringTrieBuilder.Option.FAST); in Test59IteratorFromBytes()
608 builder_.clear(); in buildTrie()
610 builder_.add(data[index].bytes, data[index].bytes.length, data[index].value); in buildTrie()
613 BytesTrie trie=builder_.build(buildOption); in buildTrie()
615 builder_.add(/* "zzz" */ new byte[] { 0x7a, 0x7a, 0x7a }, 0, 999); in buildTrie()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DCharsTrieTest.java42 builder_.clear(); in Test00Builder()
44 builder_.build(StringTrieBuilder.Option.FAST); in Test00Builder()
51 builder_.add("=", 0).add("=", 1); in Test00Builder()
314 builder_.clear(); in buildLargeTrie()
316 builder_.add(gen.getString(), gen.getValue()); in buildLargeTrie()
320 CharSequence trieChars=builder_.buildCharSequence(StringTrieBuilder.Option.FAST); in buildLargeTrie()
635 builder_.clear(); in Test59IteratorFromChars()
637 builder_.add(item.s, item.value); in Test59IteratorFromChars()
639 CharSequence trieChars=builder_.buildCharSequence(StringTrieBuilder.Option.FAST); in Test59IteratorFromChars()
701 builder_.clear(); in buildTrie()
[all …]
DBytesTrieTest.java41 builder_.clear(); in Test00Builder()
43 builder_.build(StringTrieBuilder.Option.FAST); in Test00Builder()
51 builder_.add(equal, 1, 0).add(equal, 1, 1); in Test00Builder()
506 builder_.clear(); in Test59IteratorFromBytes()
508 builder_.add(item.bytes, item.bytes.length, item.value); in Test59IteratorFromBytes()
510 ByteBuffer trieBytes=builder_.buildByteBuffer(StringTrieBuilder.Option.FAST); in Test59IteratorFromBytes()
574 builder_.clear(); in buildTrie()
576 builder_.add(data[index].bytes, data[index].bytes.length, data[index].value); in buildTrie()
579 BytesTrie trie=builder_.build(buildOption); in buildTrie()
581 builder_.add(/* "zzz" */ new byte[] { 0x7a, 0x7a, 0x7a }, 0, 999); in buildTrie()
[all …]
/third_party/skia/third_party/externals/tint/fuzzers/
Dtransform_builder.h34 explicit TransformBuilder(uint64_t seed) : builder_(seed) {} in TransformBuilder()
40 : builder_(data, size) { in TransformBuilder()
71 DataBuilder builder_;
75 DataBuilder* builder() { return &builder_; } in builder()

12