@@ -1779,9 +1779,9 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
1779
1779
llvm_utils->set_api ->remove_item (pset, el, *module , asr_el_type);
1780
1780
}
1781
1781
1782
- void visit_IntrinsicFunction (const ASR::IntrinsicFunction_t & x) {
1783
- switch (static_cast <ASRUtils::IntrinsicFunctions >(x.m_intrinsic_id )) {
1784
- case ASRUtils::IntrinsicFunctions ::ListIndex: {
1782
+ void visit_IntrinsicScalarFunction (const ASR::IntrinsicScalarFunction_t & x) {
1783
+ switch (static_cast <ASRUtils::IntrinsicScalarFunctions >(x.m_intrinsic_id )) {
1784
+ case ASRUtils::IntrinsicScalarFunctions ::ListIndex: {
1785
1785
ASR::expr_t * m_arg = x.m_args [0 ];
1786
1786
ASR::expr_t * m_ele = x.m_args [1 ];
1787
1787
ASR::expr_t * m_start = nullptr ;
@@ -1807,11 +1807,11 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
1807
1807
generate_ListIndex (m_arg, m_ele, m_start, m_end);
1808
1808
break ;
1809
1809
}
1810
- case ASRUtils::IntrinsicFunctions ::ListReverse: {
1810
+ case ASRUtils::IntrinsicScalarFunctions ::ListReverse: {
1811
1811
generate_ListReverse (x.m_args [0 ]);
1812
1812
break ;
1813
1813
}
1814
- case ASRUtils::IntrinsicFunctions ::ListPop: {
1814
+ case ASRUtils::IntrinsicScalarFunctions ::ListPop: {
1815
1815
switch (x.m_overload_id ) {
1816
1816
case 0 :
1817
1817
generate_ListPop_0 (x.m_args [0 ]);
@@ -1822,27 +1822,27 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
1822
1822
}
1823
1823
break ;
1824
1824
}
1825
- case ASRUtils::IntrinsicFunctions ::Reserve: {
1825
+ case ASRUtils::IntrinsicScalarFunctions ::Reserve: {
1826
1826
generate_Reserve (x.m_args [0 ], x.m_args [1 ]);
1827
1827
break ;
1828
1828
}
1829
- case ASRUtils::IntrinsicFunctions ::DictKeys: {
1829
+ case ASRUtils::IntrinsicScalarFunctions ::DictKeys: {
1830
1830
generate_DictElems (x.m_args [0 ], 0 );
1831
1831
break ;
1832
1832
}
1833
- case ASRUtils::IntrinsicFunctions ::DictValues: {
1833
+ case ASRUtils::IntrinsicScalarFunctions ::DictValues: {
1834
1834
generate_DictElems (x.m_args [0 ], 1 );
1835
1835
break ;
1836
1836
}
1837
- case ASRUtils::IntrinsicFunctions ::SetAdd: {
1837
+ case ASRUtils::IntrinsicScalarFunctions ::SetAdd: {
1838
1838
generate_SetAdd (x.m_args [0 ], x.m_args [1 ]);
1839
1839
break ;
1840
1840
}
1841
- case ASRUtils::IntrinsicFunctions ::SetRemove: {
1841
+ case ASRUtils::IntrinsicScalarFunctions ::SetRemove: {
1842
1842
generate_SetRemove (x.m_args [0 ], x.m_args [1 ]);
1843
1843
break ;
1844
1844
}
1845
- case ASRUtils::IntrinsicFunctions ::Exp: {
1845
+ case ASRUtils::IntrinsicScalarFunctions ::Exp: {
1846
1846
switch (x.m_overload_id ) {
1847
1847
case 0 : {
1848
1848
ASR::expr_t * m_arg = x.m_args [0 ];
@@ -1856,7 +1856,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
1856
1856
}
1857
1857
break ;
1858
1858
}
1859
- case ASRUtils::IntrinsicFunctions ::Exp2: {
1859
+ case ASRUtils::IntrinsicScalarFunctions ::Exp2: {
1860
1860
switch (x.m_overload_id ) {
1861
1861
case 0 : {
1862
1862
ASR::expr_t * m_arg = x.m_args [0 ];
@@ -1870,7 +1870,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
1870
1870
}
1871
1871
break ;
1872
1872
}
1873
- case ASRUtils::IntrinsicFunctions ::Expm1: {
1873
+ case ASRUtils::IntrinsicScalarFunctions ::Expm1: {
1874
1874
switch (x.m_overload_id ) {
1875
1875
case 0 : {
1876
1876
ASR::expr_t * m_arg = x.m_args [0 ];
@@ -1885,7 +1885,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
1885
1885
break ;
1886
1886
}
1887
1887
default : {
1888
- throw CodeGenError ( ASRUtils::IntrinsicFunctionRegistry ::
1888
+ throw CodeGenError ( ASRUtils::IntrinsicScalarFunctionRegistry ::
1889
1889
get_intrinsic_function_name (x.m_intrinsic_id ) +
1890
1890
" is not implemented by LLVM backend." , x.base .base .loc );
1891
1891
}
0 commit comments