Lines Matching refs:GetIRContext
65 for (auto& global : GetIRContext()->module()->types_values()) { in FindAvailableInstructions()
66 if (instruction_is_relevant(GetIRContext(), &global)) { in FindAvailableInstructions()
74 if (instruction_is_relevant(GetIRContext(), param)) { in FindAvailableInstructions()
82 if (instruction_is_relevant(GetIRContext(), &*prev_inst_it)) { in FindAvailableInstructions()
89 auto dominator_analysis = GetIRContext()->GetDominatorAnalysis(function); in FindAvailableInstructions()
95 if (instruction_is_relevant(GetIRContext(), &dominating_inst)) { in FindAvailableInstructions()
115 GetIRContext()->GetDominatorAnalysis(function); in ForEachInstructionWithInstructionDescriptor()
176 for (auto& function : *GetIRContext()->module()) { in ForEachInstructionWithInstructionDescriptor()
188 if (auto existing_id = fuzzerutil::MaybeGetBoolType(GetIRContext())) { in FindOrCreateBoolType()
198 auto existing_id = GetIRContext()->get_type_mgr()->GetId(&int_type); in FindOrCreateIntegerType()
209 auto existing_id = GetIRContext()->get_type_mgr()->GetId(&float_type); in FindOrCreateFloatType()
227 auto existing_id = fuzzerutil::FindFunctionType(GetIRContext(), type_ids); in FindOrCreateFunctionType()
243 GetIRContext()->get_type_mgr()->GetType(component_type_id); in FindOrCreateVectorType()
246 auto existing_id = GetIRContext()->get_type_mgr()->GetId(&vector_type); in FindOrCreateVectorType()
265 GetIRContext()->get_type_mgr()->GetType(column_type_id); in FindOrCreateMatrixType()
267 auto existing_id = GetIRContext()->get_type_mgr()->GetId(&matrix_type); in FindOrCreateMatrixType()
280 fuzzerutil::MaybeGetStructType(GetIRContext(), component_type_ids)) { in FindOrCreateStructType()
293 GetIRContext(), base_type_id, storage_class); in FindOrCreatePointerType()
314 GetIRContext(), *GetTransformationContext(), words, int_type_id, in FindOrCreateIntegerConstant()
328 GetIRContext(), *GetTransformationContext(), words, float_type_id, in FindOrCreateFloatConstant()
341 GetIRContext(), *GetTransformationContext(), {value ? 1u : 0u}, in FindOrCreateBoolConstant()
356 const auto* type = GetIRContext()->get_type_mgr()->GetType(type_id); in FindOrCreateConstant()
379 GetIRContext(), *GetTransformationContext(), component_ids, type_id, in FindOrCreateCompositeConstant()
390 for (auto& inst : GetIRContext()->types_values()) { in FindOrCreateGlobalUndef()
403 GetIRContext()->get_type_mgr()->GetType(type_id)); in FindOrCreateNullConstant()
405 GetIRContext()->get_constant_mgr()->FindConstant(&null_constant); in FindOrCreateNullConstant()
409 return GetIRContext() in FindOrCreateNullConstant()
431 for (auto& inst : GetIRContext()->types_values()) { in GetAvailableBasicTypesAndPointers()
458 if (!fuzzerutil::HasBlockOrBufferBlockDecoration(GetIRContext(), in GetAvailableBasicTypesAndPointers()
497 GetIRContext()->get_def_use_mgr()->GetDef(scalar_or_composite_type_id); in FindOrCreateZeroConstant()
518 fuzzerutil::GetArraySize(*type_instruction, GetIRContext()); in FindOrCreateZeroConstant()
537 GetIRContext(), scalar_or_composite_type_id) && in FindOrCreateZeroConstant()
560 if (!GetIRContext()->get_instr_block(use_inst)) { in MaybeAddUseToReplace()
568 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in_operand_index); in MaybeAddUseToReplace()
575 auto header_block = fuzzerutil::MaybeFindBlock(GetIRContext(), header_id); in GetOrCreateSimpleLoopPreheader()
580 auto predecessors = GetIRContext()->cfg()->preds(header_id); in GetOrCreateSimpleLoopPreheader()
593 if (GetIRContext()->GetDominatorAnalysis(function)->Dominates( in GetOrCreateSimpleLoopPreheader()
636 auto block = fuzzerutil::MaybeFindBlock(GetIRContext(), block_id); in SplitBlockAfterOpPhiOrOpVariable()
650 MakeInstructionDescriptor(GetIRContext(), non_phi_or_var_inst), in SplitBlockAfterOpPhiOrOpVariable()
660 auto pointer_type = GetIRContext()->get_type_mgr()->GetType(pointer_type_id); in FindOrCreateLocalVariable()
668 auto function = fuzzerutil::FindFunction(GetIRContext(), function_id); in FindOrCreateLocalVariable()
692 GetIRContext(), pointer_type_id); in FindOrCreateLocalVariable()
703 auto pointer_type = GetIRContext()->get_type_mgr()->GetType(pointer_type_id); in FindOrCreateGlobalVariable()
715 for (auto& instruction : GetIRContext()->module()->types_values()) { in FindOrCreateGlobalVariable()
734 GetIRContext(), pointer_type_id); in FindOrCreateGlobalVariable()
736 GetIRContext(), pointer_type_id); in FindOrCreateGlobalVariable()