Lines Matching defs:Id
39 const char *types::getTypeName(ID Id) {
40 return getInfo(Id).Name;
43 types::ID types::getPreprocessedType(ID Id) {
44 return getInfo(Id).PreprocessedType;
47 const char *types::getTypeTempSuffix(ID Id, bool CLMode) {
48 if (Id == TY_Object && CLMode)
50 if (Id == TY_Image && CLMode)
52 if (Id == TY_PP_Asm && CLMode)
54 return getInfo(Id).TempSuffix;
57 bool types::onlyAssembleType(ID Id) {
58 return strchr(getInfo(Id).Flags, 'a');
61 bool types::onlyPrecompileType(ID Id) {
62 return strchr(getInfo(Id).Flags, 'p');
65 bool types::canTypeBeUserSpecified(ID Id) {
66 return strchr(getInfo(Id).Flags, 'u');
69 bool types::appendSuffixForType(ID Id) {
70 return strchr(getInfo(Id).Flags, 'A');
73 bool types::canLipoType(ID Id) {
74 return (Id == TY_Nothing ||
75 Id == TY_Image ||
76 Id == TY_Object ||
77 Id == TY_LTO_BC);
80 bool types::isAcceptedByClang(ID Id) {
81 switch (Id) {
103 bool types::isObjC(ID Id) {
104 switch (Id) {
116 bool types::isCXX(ID Id) {
117 switch (Id) {
184 types::ID Id = (types::ID) (i + 1);
185 if (canTypeBeUserSpecified(Id) &&
186 strcmp(Name, getInfo(Id).Name) == 0)
187 return Id;
194 void types::getCompilationPhases(ID Id, llvm::SmallVectorImpl<phases::ID> &P) {
195 if (Id != TY_Object) {
196 if (getPreprocessedType(Id) != TY_INVALID) {
200 if (onlyPrecompileType(Id)) {
203 if (!onlyAssembleType(Id)) {
209 if (!onlyPrecompileType(Id)) {
217 ID types::lookupCXXTypeForCType(ID Id) {
218 switch (Id) {
220 return Id;