Home
last modified time | relevance | path

Searched refs:defineMacro (Results 1 – 25 of 39) sorted by relevance

12

/external/llvm-project/clang/lib/Frontend/
DInitPreprocessor.cpp55 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
57 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
60 Builder.defineMacro(Macro); in DefineBuiltinMacro()
144 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros()
145 Builder.defineMacro(DefPrefix + "HAS_DENORM__"); in DefineFloatMacros()
146 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros()
147 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros()
148 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros()
149 Builder.defineMacro(DefPrefix + "HAS_INFINITY__"); in DefineFloatMacros()
150 Builder.defineMacro(DefPrefix + "HAS_QUIET_NAN__"); in DefineFloatMacros()
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
60 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
63 Builder.defineMacro(Macro); in DefineBuiltinMacro()
162 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros()
163 Builder.defineMacro(DefPrefix + "HAS_DENORM__"); in DefineFloatMacros()
164 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros()
165 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros()
166 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros()
167 Builder.defineMacro(DefPrefix + "HAS_INFINITY__"); in DefineFloatMacros()
168 Builder.defineMacro(DefPrefix + "HAS_QUIET_NAN__"); in DefineFloatMacros()
[all …]
/external/llvm-project/clang/lib/Basic/Targets/
DMips.cpp75 Builder.defineMacro("_MIPSEB"); in getTargetDefines()
78 Builder.defineMacro("_MIPSEL"); in getTargetDefines()
81 Builder.defineMacro("__mips__"); in getTargetDefines()
82 Builder.defineMacro("_mips"); in getTargetDefines()
84 Builder.defineMacro("mips"); in getTargetDefines()
87 Builder.defineMacro("__mips", "32"); in getTargetDefines()
88 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS32"); in getTargetDefines()
90 Builder.defineMacro("__mips", "64"); in getTargetDefines()
91 Builder.defineMacro("__mips64"); in getTargetDefines()
92 Builder.defineMacro("__mips64__"); in getTargetDefines()
[all …]
DOSTargets.cpp25 Builder.defineMacro("__APPLE_CC__", "6000"); in getDarwinDefines()
26 Builder.defineMacro("__APPLE__"); in getDarwinDefines()
27 Builder.defineMacro("__STDC_NO_THREADS__"); in getDarwinDefines()
32 Builder.defineMacro("_FORTIFY_SOURCE", "0"); in getDarwinDefines()
37 Builder.defineMacro("__weak", "__attribute__((objc_gc(weak)))"); in getDarwinDefines()
38 Builder.defineMacro("__strong", ""); in getDarwinDefines()
39 Builder.defineMacro("__unsafe_unretained", ""); in getDarwinDefines()
43 Builder.defineMacro("__STATIC__"); in getDarwinDefines()
45 Builder.defineMacro("__DYNAMIC__"); in getDarwinDefines()
48 Builder.defineMacro("_REENTRANT"); in getDarwinDefines()
[all …]
DOSTargets.h44 Builder.defineMacro("__CloudABI__"); in getOSDefines()
45 Builder.defineMacro("__ELF__"); in getOSDefines()
48 Builder.defineMacro("__STDC_ISO_10646__", "201206L"); in getOSDefines()
49 Builder.defineMacro("__STDC_UTF_16__"); in getOSDefines()
50 Builder.defineMacro("__STDC_UTF_32__"); in getOSDefines()
65 Builder.defineMacro("__Ananas__"); in getOSDefines()
66 Builder.defineMacro("__ELF__"); in getOSDefines()
186 Builder.defineMacro("__DragonFly__"); in getOSDefines()
187 Builder.defineMacro("__DragonFly_cc_version", "100001"); in getOSDefines()
188 Builder.defineMacro("__ELF__"); in getOSDefines()
[all …]
DX86.cpp366 Builder.defineMacro("__GCC_ASM_FLAG_OUTPUTS__"); in getTargetDefines()
371 Builder.defineMacro("__code_model_" + CodeModel + "__"); in getTargetDefines()
375 Builder.defineMacro("__amd64__"); in getTargetDefines()
376 Builder.defineMacro("__amd64"); in getTargetDefines()
377 Builder.defineMacro("__x86_64"); in getTargetDefines()
378 Builder.defineMacro("__x86_64__"); in getTargetDefines()
380 Builder.defineMacro("__x86_64h"); in getTargetDefines()
381 Builder.defineMacro("__x86_64h__"); in getTargetDefines()
387 Builder.defineMacro("__SEG_GS"); in getTargetDefines()
388 Builder.defineMacro("__SEG_FS"); in getTargetDefines()
[all …]
DHexagon.cpp24 Builder.defineMacro("__qdsp6__", "1"); in getTargetDefines()
25 Builder.defineMacro("__hexagon__", "1"); in getTargetDefines()
27 Builder.defineMacro("__ELF__"); in getTargetDefines()
33 Builder.defineMacro("__HEXAGON_V5__"); in getTargetDefines()
34 Builder.defineMacro("__HEXAGON_ARCH__", "5"); in getTargetDefines()
36 Builder.defineMacro("__QDSP6_V5__"); in getTargetDefines()
37 Builder.defineMacro("__QDSP6_ARCH__", "5"); in getTargetDefines()
40 Builder.defineMacro("__HEXAGON_V55__"); in getTargetDefines()
41 Builder.defineMacro("__HEXAGON_ARCH__", "55"); in getTargetDefines()
42 Builder.defineMacro("__QDSP6_V55__"); in getTargetDefines()
[all …]
DPPC.cpp82 Builder.defineMacro("__ppc__"); in getTargetDefines()
83 Builder.defineMacro("__PPC__"); in getTargetDefines()
84 Builder.defineMacro("_ARCH_PPC"); in getTargetDefines()
85 Builder.defineMacro("__powerpc__"); in getTargetDefines()
86 Builder.defineMacro("__POWERPC__"); in getTargetDefines()
88 Builder.defineMacro("_ARCH_PPC64"); in getTargetDefines()
89 Builder.defineMacro("__powerpc64__"); in getTargetDefines()
90 Builder.defineMacro("__ppc64__"); in getTargetDefines()
91 Builder.defineMacro("__PPC64__"); in getTargetDefines()
96 Builder.defineMacro("_LITTLE_ENDIAN"); in getTargetDefines()
[all …]
DAArch64.cpp158 Builder.defineMacro("__ARM_FEATURE_QRDMX", "1"); in getTargetDefinesARMV81A()
159 Builder.defineMacro("__ARM_FEATURE_ATOMICS", "1"); in getTargetDefinesARMV81A()
160 Builder.defineMacro("__ARM_FEATURE_CRC32", "1"); in getTargetDefinesARMV81A()
171 Builder.defineMacro("__ARM_FEATURE_COMPLEX", "1"); in getTargetDefinesARMV83A()
172 Builder.defineMacro("__ARM_FEATURE_JCVT", "1"); in getTargetDefinesARMV83A()
202 Builder.defineMacro("__aarch64__"); in getTargetDefines()
206 Builder.defineMacro("__ELF__"); in getTargetDefines()
210 Builder.defineMacro("_LP64"); in getTargetDefines()
211 Builder.defineMacro("__LP64__"); in getTargetDefines()
219 Builder.defineMacro("__AARCH64_CMODEL_" + CodeModel + "__"); in getTargetDefines()
[all …]
DSparc.cpp141 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
144 Builder.defineMacro("SOFT_FLOAT", "1"); in getTargetDefines()
151 Builder.defineMacro("__sparcv8"); in getTargetDefines()
155 Builder.defineMacro("__sparcv8"); in getTargetDefines()
156 Builder.defineMacro("__sparcv8__"); in getTargetDefines()
159 Builder.defineMacro("__sparcv9"); in getTargetDefines()
160 Builder.defineMacro("__sparcv9__"); in getTargetDefines()
161 Builder.defineMacro("__sparc_v9__"); in getTargetDefines()
167 Builder.defineMacro("__sparc_v8__"); in getTargetDefines()
168 Builder.defineMacro("__leon__"); in getTargetDefines()
[all …]
DRISCV.cpp88 Builder.defineMacro("__ELF__"); in getTargetDefines()
89 Builder.defineMacro("__riscv"); in getTargetDefines()
91 Builder.defineMacro("__riscv_xlen", Is64Bit ? "64" : "32"); in getTargetDefines()
97 Builder.defineMacro("__riscv_cmodel_medlow"); in getTargetDefines()
99 Builder.defineMacro("__riscv_cmodel_medany"); in getTargetDefines()
103 Builder.defineMacro("__riscv_float_abi_single"); in getTargetDefines()
105 Builder.defineMacro("__riscv_float_abi_double"); in getTargetDefines()
107 Builder.defineMacro("__riscv_float_abi_soft"); in getTargetDefines()
110 Builder.defineMacro("__riscv_abi_rve"); in getTargetDefines()
113 Builder.defineMacro("__riscv_mul"); in getTargetDefines()
[all …]
DARM.cpp596 Builder.defineMacro("__ARM_FEATURE_QRDMX", "1"); in getTargetDefinesARMV81A()
608 Builder.defineMacro("__ARM_FEATURE_COMPLEX", "1"); in getTargetDefinesARMV83A()
615 Builder.defineMacro("__arm"); in getTargetDefines()
616 Builder.defineMacro("__arm__"); in getTargetDefines()
621 Builder.defineMacro("__ELF__"); in getTargetDefines()
624 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
629 Builder.defineMacro("__ARM_ARCH_7K__", "2"); in getTargetDefines()
632 Builder.defineMacro("__ARM_ARCH_" + CPUAttr + "__"); in getTargetDefines()
636 Builder.defineMacro("__ARM_ARCH", Twine(ArchVersion)); in getTargetDefines()
641 Builder.defineMacro("__ARM_FEATURE_CRYPTO", "1"); in getTargetDefines()
[all …]
DVE.cpp23 Builder.defineMacro("_LP64", "1"); in getTargetDefines()
24 Builder.defineMacro("unix", "1"); in getTargetDefines()
25 Builder.defineMacro("__unix__", "1"); in getTargetDefines()
26 Builder.defineMacro("__linux__", "1"); in getTargetDefines()
27 Builder.defineMacro("__ve", "1"); in getTargetDefines()
28 Builder.defineMacro("__ve__", "1"); in getTargetDefines()
29 Builder.defineMacro("__STDC_HOSTED__", "1"); in getTargetDefines()
30 Builder.defineMacro("__STDC__", "1"); in getTargetDefines()
31 Builder.defineMacro("__NEC__", "1"); in getTargetDefines()
DSystemZ.cpp130 Builder.defineMacro("__s390__"); in getTargetDefines()
131 Builder.defineMacro("__s390x__"); in getTargetDefines()
132 Builder.defineMacro("__zarch__"); in getTargetDefines()
133 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
135 Builder.defineMacro("__ARCH__", Twine(ISARevision)); in getTargetDefines()
137 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
138 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
139 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
140 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
143 Builder.defineMacro("__HTM__"); in getTargetDefines()
[all …]
DTCE.cpp23 Builder.defineMacro("__TCE__"); in getTargetDefines()
24 Builder.defineMacro("__TCE_V1__"); in getTargetDefines()
30 Builder.defineMacro("__TCE__"); in getTargetDefines()
31 Builder.defineMacro("__TCE_V1__"); in getTargetDefines()
32 Builder.defineMacro("__TCELE__"); in getTargetDefines()
33 Builder.defineMacro("__TCELE_V1__"); in getTargetDefines()
DAMDGPU.cpp356 Builder.defineMacro("__AMD__"); in getTargetDefines()
357 Builder.defineMacro("__AMDGPU__"); in getTargetDefines()
360 Builder.defineMacro("__AMDGCN__"); in getTargetDefines()
362 Builder.defineMacro("__R600__"); in getTargetDefines()
367 Builder.defineMacro(Twine("__") + Twine(CanonName) + Twine("__")); in getTargetDefines()
369 Builder.defineMacro("__amdgcn_processor__", in getTargetDefines()
371 Builder.defineMacro("__amdgcn_target_id__", in getTargetDefines()
379 Builder.defineMacro(Twine("__amdgcn_feature_") + Twine(NewF) + in getTargetDefines()
390 Builder.defineMacro("__HAS_FMAF__"); in getTargetDefines()
392 Builder.defineMacro("FP_FAST_FMAF"); in getTargetDefines()
[all …]
DWebAssembly.cpp75 Builder.defineMacro("__wasm_simd128__"); in getTargetDefines()
77 Builder.defineMacro("__wasm_unimplemented_simd128__"); in getTargetDefines()
79 Builder.defineMacro("__wasm_nontrapping_fptoint__"); in getTargetDefines()
81 Builder.defineMacro("__wasm_sign_ext__"); in getTargetDefines()
83 Builder.defineMacro("__wasm_exception_handling__"); in getTargetDefines()
85 Builder.defineMacro("__wasm_bulk_memory__"); in getTargetDefines()
87 Builder.defineMacro("__wasm_atomics__"); in getTargetDefines()
89 Builder.defineMacro("__wasm_mutable_globals__"); in getTargetDefines()
91 Builder.defineMacro("__wasm_multivalue__"); in getTargetDefines()
93 Builder.defineMacro("__wasm_tail_call__"); in getTargetDefines()
[all …]
DAVR.cpp307 Builder.defineMacro("AVR"); in getTargetDefines()
308 Builder.defineMacro("__AVR"); in getTargetDefines()
309 Builder.defineMacro("__AVR__"); in getTargetDefines()
310 Builder.defineMacro("__ELF__"); in getTargetDefines()
317 Builder.defineMacro(It->DefineName); in getTargetDefines()
DMSP430.cpp30 Builder.defineMacro("MSP430"); in getTargetDefines()
31 Builder.defineMacro("__MSP430__"); in getTargetDefines()
32 Builder.defineMacro("__ELF__"); in getTargetDefines()
DX86.h545 Builder.defineMacro("_M_IX86", "600"); in getTargetDefines()
561 Builder.defineMacro("_X86_"); in getTargetDefines()
579 Builder.defineMacro("_X86_"); in getTargetDefines()
580 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
581 Builder.defineMacro("__CYGWIN32__"); in getTargetDefines()
585 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
599 Builder.defineMacro("__INTEL__"); in getTargetDefines()
623 Builder.defineMacro("__iamcu"); in getTargetDefines()
624 Builder.defineMacro("__iamcu__"); in getTargetDefines()
643 Builder.defineMacro("__INTEL__"); in getTargetDefines()
[all …]
DPNaCl.cpp27 Builder.defineMacro("__le32__"); in getArchDefines()
28 Builder.defineMacro("__pnacl__"); in getArchDefines()
DBPF.cpp30 Builder.defineMacro("__bpf__"); in getTargetDefines()
31 Builder.defineMacro("__BPF__"); in getTargetDefines()
DLanai.cpp60 Builder.defineMacro("__lanai__"); in getTargetDefines()
65 Builder.defineMacro("__LANAI_V11__"); in getTargetDefines()
/external/clang/lib/Basic/
DTargets.cpp52 Builder.defineMacro(MacroName); in DefineStd()
55 Builder.defineMacro("__" + MacroName); in DefineStd()
58 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
63 Builder.defineMacro("__" + CPUName); in defineCPUMacros()
64 Builder.defineMacro("__" + CPUName + "__"); in defineCPUMacros()
66 Builder.defineMacro("__tune_" + CPUName + "__"); in defineCPUMacros()
99 Builder.defineMacro("__CloudABI__"); in getOSDefines()
100 Builder.defineMacro("__ELF__"); in getOSDefines()
103 Builder.defineMacro("__STDC_ISO_10646__", "201206L"); in getOSDefines()
104 Builder.defineMacro("__STDC_UTF_16__"); in getOSDefines()
[all …]
/external/llvm-project/clang/lib/Basic/
DTargets.cpp62 Builder.defineMacro(MacroName); in DefineStd()
65 Builder.defineMacro("__" + MacroName); in DefineStd()
68 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
72 Builder.defineMacro("__" + CPUName); in defineCPUMacros()
73 Builder.defineMacro("__" + CPUName + "__"); in defineCPUMacros()
75 Builder.defineMacro("__tune_" + CPUName + "__"); in defineCPUMacros()
83 Builder.defineMacro("__declspec", "__declspec"); in addCygMingDefines()
85 Builder.defineMacro("__declspec(a)", "__attribute__((a))"); in addCygMingDefines()
96 Builder.defineMacro(Twine("_") + CC, GCCSpelling); in addCygMingDefines()
97 Builder.defineMacro(Twine("__") + CC, GCCSpelling); in addCygMingDefines()

12