numba_dpex.core.passes.passes module

class numba_dpex.core.passes.passes.ConstantSizeStaticLocalMemoryPass

Bases: FunctionPass

pass_id = 45
run_pass(state)

Preprocessing for data-parallel computations.

class numba_dpex.core.passes.passes.DumpParforDiagnostics

Bases: AnalysisPass

pass_id = 47
run_pass(state)

Runs the pass itself. Must return True/False depending on whether statement level modification took place.

class numba_dpex.core.passes.passes.NoPythonBackend

Bases: FunctionPass

pass_id = 46
run_pass(state)

Back-end: Generate LLVM IR from Numba IR, compile to machine code

class numba_dpex.core.passes.passes.QualNameDisambiguationLowering

Bases: NativeLowering

Qualified name disambiguation lowering pass

If there are multiple @func decorated functions exist inside another @func decorated block, the numba compiler machinery creates same qualified names for different compiled function. Therefore, we utilize unique_name to resolve the ambiguity.

Args:

NativeLowering (CompilerPass): Superclass from which this class has been inherited.

Returns:

bool: True if run_pass() of the superclass is successful.

pass_id = 48
run_pass(state)

Runs the pass itself. Must return True/False depending on whether statement level modification took place.