added codegen for missing intrinsic functions