• Home
  • Raw
  • Download

Lines Matching refs:SPIR

954 SPIR::TypePrimitiveEnum
956 return StringSwitch<SPIR::TypePrimitiveEnum>(TyName) in getOCLTypePrimitiveEnum()
957 .Case("opencl.image1d_t", SPIR::PRIMITIVE_IMAGE_1D_T) in getOCLTypePrimitiveEnum()
958 .Case("opencl.image1d_array_t", SPIR::PRIMITIVE_IMAGE_1D_ARRAY_T) in getOCLTypePrimitiveEnum()
959 .Case("opencl.image1d_buffer_t", SPIR::PRIMITIVE_IMAGE_1D_BUFFER_T) in getOCLTypePrimitiveEnum()
960 .Case("opencl.image2d_t", SPIR::PRIMITIVE_IMAGE_2D_T) in getOCLTypePrimitiveEnum()
961 .Case("opencl.image2d_array_t", SPIR::PRIMITIVE_IMAGE_2D_ARRAY_T) in getOCLTypePrimitiveEnum()
962 .Case("opencl.image3d_t", SPIR::PRIMITIVE_IMAGE_3D_T) in getOCLTypePrimitiveEnum()
963 .Case("opencl.image2d_msaa_t", SPIR::PRIMITIVE_IMAGE_2D_MSAA_T) in getOCLTypePrimitiveEnum()
964 .Case("opencl.image2d_array_msaa_t", SPIR::PRIMITIVE_IMAGE_2D_ARRAY_MSAA_T) in getOCLTypePrimitiveEnum()
965 .Case("opencl.image2d_msaa_depth_t", SPIR::PRIMITIVE_IMAGE_2D_MSAA_DEPTH_T) in getOCLTypePrimitiveEnum()
966 .Case("opencl.image2d_array_msaa_depth_t", SPIR::PRIMITIVE_IMAGE_2D_ARRAY_MSAA_DEPTH_T) in getOCLTypePrimitiveEnum()
967 .Case("opencl.image2d_depth_t", SPIR::PRIMITIVE_IMAGE_2D_DEPTH_T) in getOCLTypePrimitiveEnum()
968 .Case("opencl.image2d_array_depth_t", SPIR::PRIMITIVE_IMAGE_2D_ARRAY_DEPTH_T) in getOCLTypePrimitiveEnum()
969 .Case("opencl.event_t", SPIR::PRIMITIVE_EVENT_T) in getOCLTypePrimitiveEnum()
970 .Case("opencl.pipe_t", SPIR::PRIMITIVE_PIPE_T) in getOCLTypePrimitiveEnum()
971 .Case("opencl.reserve_id_t", SPIR::PRIMITIVE_RESERVE_ID_T) in getOCLTypePrimitiveEnum()
972 .Case("opencl.queue_t", SPIR::PRIMITIVE_QUEUE_T) in getOCLTypePrimitiveEnum()
973 .Case("opencl.clk_event_t", SPIR::PRIMITIVE_CLK_EVENT_T) in getOCLTypePrimitiveEnum()
974 .Case("opencl.sampler_t", SPIR::PRIMITIVE_SAMPLER_T) in getOCLTypePrimitiveEnum()
975 .Case("struct.ndrange_t", SPIR::PRIMITIVE_NDRANGE_T) in getOCLTypePrimitiveEnum()
976 .Default( SPIR::PRIMITIVE_NONE); in getOCLTypePrimitiveEnum()
981 static SPIR::RefParamType
987 return SPIR::RefParamType(new SPIR::PrimitiveType(Info.Enum)); in transTypeDesc()
989 return SPIR::RefParamType(new SPIR::PrimitiveType( in transTypeDesc()
990 SPIR::PRIMITIVE_SAMPLER_T)); in transTypeDesc()
994 return SPIR::RefParamType(new SPIR::AtomicType( in transTypeDesc()
1000 return SPIR::RefParamType(new SPIR::PrimitiveType(SPIR::PRIMITIVE_BOOL)); in transTypeDesc()
1002 return SPIR::RefParamType(new SPIR::PrimitiveType(Signed? in transTypeDesc()
1003 SPIR::PRIMITIVE_CHAR:SPIR::PRIMITIVE_UCHAR)); in transTypeDesc()
1005 return SPIR::RefParamType(new SPIR::PrimitiveType(Signed? in transTypeDesc()
1006 SPIR::PRIMITIVE_SHORT:SPIR::PRIMITIVE_USHORT)); in transTypeDesc()
1008 return SPIR::RefParamType(new SPIR::PrimitiveType(Signed? in transTypeDesc()
1009 SPIR::PRIMITIVE_INT:SPIR::PRIMITIVE_UINT)); in transTypeDesc()
1011 return SPIR::RefParamType(new SPIR::PrimitiveType(Signed? in transTypeDesc()
1012 SPIR::PRIMITIVE_LONG:SPIR::PRIMITIVE_ULONG)); in transTypeDesc()
1018 return SPIR::RefParamType(new SPIR::PrimitiveType(SPIR::PRIMITIVE_VOID)); in transTypeDesc()
1020 return SPIR::RefParamType(new SPIR::PrimitiveType(SPIR::PRIMITIVE_HALF)); in transTypeDesc()
1022 return SPIR::RefParamType(new SPIR::PrimitiveType(SPIR::PRIMITIVE_FLOAT)); in transTypeDesc()
1024 return SPIR::RefParamType(new SPIR::PrimitiveType(SPIR::PRIMITIVE_DOUBLE)); in transTypeDesc()
1026 return SPIR::RefParamType(new SPIR::VectorType( in transTypeDesc()
1055 return SPIR::RefParamType(new SPIR::UserDefinedType(Name)); in transTypeDesc()
1060 SPIR::ParamType *EPT = nullptr; in transTypeDesc()
1064 EPT = new SPIR::BlockType; in transTypeDesc()
1080 auto BlockTy = new SPIR::BlockType; in transTypeDesc()
1083 SPIR::RefParamType VoidTyRef(new SPIR::PrimitiveType(SPIR::PRIMITIVE_VOID)); in transTypeDesc()
1084 auto VoidPtrTy = new SPIR::PointerType(VoidTyRef); in transTypeDesc()
1085 VoidPtrTy->setAddressSpace(SPIR::ATTR_LOCAL); in transTypeDesc()
1087 BlockTy->setParam(0, SPIR::RefParamType(VoidPtrTy)); in transTypeDesc()
1089 BlockTy->setParam(1, SPIR::RefParamType( in transTypeDesc()
1090 new SPIR::PrimitiveType(SPIR::PRIMITIVE_VAR_ARG))); in transTypeDesc()
1093 } else if (Prim != SPIR::PRIMITIVE_NONE) { in transTypeDesc()
1094 if (Prim == SPIR::PRIMITIVE_PIPE_T) { in transTypeDesc()
1095 SPIR::RefParamType OpaqueTyRef(new SPIR::PrimitiveType(Prim)); in transTypeDesc()
1096 auto OpaquePtrTy = new SPIR::PointerType(OpaqueTyRef); in transTypeDesc()
1101 EPT = new SPIR::PrimitiveType(Prim); in transTypeDesc()
1104 } else if (Prim == SPIR::PRIMITIVE_NDRANGE_T) in transTypeDesc()
1106 EPT = new SPIR::PrimitiveType(SPIR::PRIMITIVE_NDRANGE_T); in transTypeDesc()
1109 return SPIR::RefParamType(EPT); in transTypeDesc()
1113 auto PT = new SPIR::PointerType(transTypeDesc(ET, Info)); in transTypeDesc()
1114 PT->setAddressSpace(static_cast<SPIR::TypeAttributeEnum>( in transTypeDesc()
1115 Ty->getPointerAddressSpace() + (unsigned)SPIR::ATTR_ADDR_SPACE_FIRST)); in transTypeDesc()
1116 for (unsigned I = SPIR::ATTR_QUALIFIER_FIRST, in transTypeDesc()
1117 E = SPIR::ATTR_QUALIFIER_LAST; I <= E; ++I) in transTypeDesc()
1118 PT->setQualifier(static_cast<SPIR::TypeAttributeEnum>(I), I & Attr); in transTypeDesc()
1119 return SPIR::RefParamType(PT); in transTypeDesc()
1123 return SPIR::RefParamType(new SPIR::PrimitiveType(SPIR::PRIMITIVE_INT)); in transTypeDesc()
1389 SPIR::NameMangler Mangler(SPIR::SPIR20); in mangleBuiltin()
1390 SPIR::FunctionDescriptor FD; in mangleBuiltin()
1398 FD.parameters.emplace_back(SPIR::RefParamType(new SPIR::PrimitiveType( in mangleBuiltin()
1399 SPIR::PRIMITIVE_VOID))); in mangleBuiltin()
1413 FD.parameters.emplace_back(SPIR::RefParamType(new SPIR::PrimitiveType( in mangleBuiltin()
1414 SPIR::PRIMITIVE_VAR_ARG))); in mangleBuiltin()