Home
last modified time | relevance | path

Searched refs:pConfig (Results 1 – 25 of 126) sorted by relevance

123456

/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64Emulation.cpp18 LinkerConfig& pConfig) { in MCLDEmulateAArch64ELF() argument
19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateAArch64ELF()
23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateAArch64ELF()
24 pConfig.targets().setBitClass(64); in MCLDEmulateAArch64ELF()
27 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateAArch64ELF()
28 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateAArch64ELF()
29 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateAArch64ELF()
32 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateAArch64ELF()
33 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateAArch64ELF()
34 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateAArch64ELF()
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMEmulation.cpp17 static bool MCLDEmulateARMELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateARMELF() argument
18 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateARMELF()
22 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateARMELF()
23 pConfig.targets().setBitClass(32); in MCLDEmulateARMELF()
26 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateARMELF()
27 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateARMELF()
28 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateARMELF()
31 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateARMELF()
32 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateARMELF()
33 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateARMELF()
[all …]
DARMELFAttributeData.cpp144 bool ARMELFAttributeData::merge(const LinkerConfig& pConfig, in merge() argument
282 if (pConfig.options().warnMismatch()) in merge()
320 pConfig.options().warnMismatch()) in merge()
334 if (pConfig.options().warnMismatch()) in merge()
377 if (pConfig.options().warnMismatch()) in merge()
389 if (pConfig.options().warnMismatch()) in merge()
401 if (pConfig.options().warnMismatch()) in merge()
413 pConfig.options().warnMismatch()) in merge()
430 if (pConfig.options().warnMismatch()) in merge()
449 if (pConfig.options().warnMismatch()) { in merge()
[all …]
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonEmulation.cpp18 LinkerConfig& pConfig) { in MCLDEmulateHexagonELF() argument
19 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateHexagonELF()
23 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateHexagonELF()
24 pConfig.targets().setBitClass(32); in MCLDEmulateHexagonELF()
27 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateHexagonELF()
28 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateHexagonELF()
29 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateHexagonELF()
32 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateHexagonELF()
33 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateHexagonELF()
34 pConfig.attribute().predefined().setDynamic(); in MCLDEmulateHexagonELF()
[all …]
/frameworks/compile/mclinker/lib/Target/X86/
DX86Emulation.cpp17 static bool MCLDEmulateX86ELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateX86ELF() argument
18 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateX86ELF()
22 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateX86ELF()
24 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in MCLDEmulateX86ELF()
27 pConfig.targets().triple().getEnvironment() == llvm::Triple::GNUX32) { in MCLDEmulateX86ELF()
32 pConfig.targets().setBitClass(bitclass); in MCLDEmulateX86ELF()
35 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateX86ELF()
36 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateX86ELF()
37 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateX86ELF()
40 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateX86ELF()
[all …]
DX86LDBackend.cpp36 X86GNULDBackend::X86GNULDBackend(const LinkerConfig& pConfig, in X86GNULDBackend() argument
39 : GNULDBackend(pConfig, pInfo), in X86GNULDBackend()
47 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in X86GNULDBackend()
50 pConfig.targets().triple().getEnvironment() == llvm::Triple::GNUX32) { in X86GNULDBackend()
326 X86_32GNULDBackend::X86_32GNULDBackend(const LinkerConfig& pConfig, in X86_32GNULDBackend() argument
328 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_386_COPY), in X86_32GNULDBackend()
511 X86_64GNULDBackend::X86_64GNULDBackend(const LinkerConfig& pConfig, in X86_64GNULDBackend() argument
513 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_X86_64_COPY), in X86_64GNULDBackend()
699 TargetLDBackend* createX86LDBackend(const LinkerConfig& pConfig) { in createX86LDBackend() argument
700 if (pConfig.targets().triple().isOSDarwin()) { in createX86LDBackend()
[all …]
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsEmulation.cpp17 static bool MCLDEmulateMipsELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateMipsELF() argument
18 if (!MCLDEmulateELF(pScript, pConfig)) in MCLDEmulateMipsELF()
22 pConfig.targets().setEndian(TargetOptions::Little); in MCLDEmulateMipsELF()
24 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in MCLDEmulateMipsELF()
27 pConfig.targets().setBitClass(bitclass); in MCLDEmulateMipsELF()
30 pConfig.attribute().constraint().enableWholeArchive(); in MCLDEmulateMipsELF()
31 pConfig.attribute().constraint().enableAsNeeded(); in MCLDEmulateMipsELF()
32 pConfig.attribute().constraint().setSharedSystem(); in MCLDEmulateMipsELF()
35 pConfig.attribute().predefined().unsetWholeArchive(); in MCLDEmulateMipsELF()
36 pConfig.attribute().predefined().unsetAsNeeded(); in MCLDEmulateMipsELF()
[all …]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
DLVCS_BypassMix.cpp72 LVCS_BypassMix_t* pConfig = (LVCS_BypassMix_t*)&pInstance->BypassMix; in LVCS_BypassMixInit() local
99 pConfig->Mixer_Instance.MixerStream[0].CallbackParam = 0; in LVCS_BypassMixInit()
100 pConfig->Mixer_Instance.MixerStream[0].pCallbackHandle = LVM_NULL; in LVCS_BypassMixInit()
101 pConfig->Mixer_Instance.MixerStream[0].pCallBack = LVM_NULL; in LVCS_BypassMixInit()
102 pConfig->Mixer_Instance.MixerStream[0].CallbackSet = 1; in LVCS_BypassMixInit()
104 Current = LVC_Mixer_GetCurrent(&pConfig->Mixer_Instance.MixerStream[0]); in LVCS_BypassMixInit()
105 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0], (LVM_FLOAT)(Gain), Current); in LVCS_BypassMixInit()
106 LVC_Mixer_VarSlope_SetTimeConstant(&pConfig->Mixer_Instance.MixerStream[0], in LVCS_BypassMixInit()
115 Current = LVC_Mixer_GetCurrent(&pConfig->Mixer_Instance.MixerStream[1]); in LVCS_BypassMixInit()
116 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1], (LVM_FLOAT)(Gain), Current); in LVCS_BypassMixInit()
[all …]
DLVCS_ReverbGenerator.cpp65 LVCS_ReverbGenerator_t* pConfig = (LVCS_ReverbGenerator_t*)&pInstance->Reverberation; in LVCS_ReverbGeneratorInit() local
81 pConfig->DelaySize = in LVCS_ReverbGeneratorInit()
83 pConfig->DelayOffset = 0; in LVCS_ReverbGeneratorInit()
84 memset(pConfig->StereoSamples, 0, sizeof(pConfig->StereoSamples)); in LVCS_ReverbGeneratorInit()
101 pConfig->ProcGain = (LVM_UINT16)(HEADPHONEGAINPROC); in LVCS_ReverbGeneratorInit()
102 pConfig->UnprocGain = (LVM_UINT16)(HEADPHONEGAINUNPROC); in LVCS_ReverbGeneratorInit()
108 pConfig->ReverbLevel = ((LVM_FLOAT)(ReverbPercentage >> 8)) / 32767.0f; in LVCS_ReverbGeneratorInit()
153 LVCS_ReverbGenerator_t* pConfig = (LVCS_ReverbGenerator_t*)&pInstance->Reverberation; in LVCS_ReverbGenerator() local
200 Mult3s_Float((LVM_FLOAT*)pScratch, pConfig->ReverbLevel, (LVM_FLOAT*)pScratch, in LVCS_ReverbGenerator()
206 DelayMix_Float((LVM_FLOAT*)pScratch, &pConfig->StereoSamples[0], pConfig->DelaySize, in LVCS_ReverbGenerator()
[all …]
/frameworks/av/media/libeffects/downmix/tests/
Ddownmixtest.cpp64 int32_t DownmixDefaultConfig(effect_config_t *pConfig) { in DownmixDefaultConfig() argument
65 pConfig->inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in DownmixDefaultConfig()
66 pConfig->inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in DownmixDefaultConfig()
67 pConfig->inputCfg.channels = AUDIO_CHANNEL_OUT_7POINT1; in DownmixDefaultConfig()
68 pConfig->inputCfg.bufferProvider.getBuffer = nullptr; in DownmixDefaultConfig()
69 pConfig->inputCfg.bufferProvider.releaseBuffer = nullptr; in DownmixDefaultConfig()
70 pConfig->inputCfg.bufferProvider.cookie = nullptr; in DownmixDefaultConfig()
71 pConfig->inputCfg.mask = EFFECT_CONFIG_ALL; in DownmixDefaultConfig()
73 pConfig->inputCfg.samplingRate = 44100; in DownmixDefaultConfig()
74 pConfig->outputCfg.samplingRate = pConfig->inputCfg.samplingRate; in DownmixDefaultConfig()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFObjectWriter.h33 ELFObjectWriter(GNULDBackend& pBackend, const LinkerConfig& pConfig);
51 void writeELFHeader(const LinkerConfig& pConfig,
55 uint64_t getEntryPoint(const LinkerConfig& pConfig,
61 const LinkerConfig& pConfig,
79 void emitRelocation(const LinkerConfig& pConfig,
85 void emitRel(const LinkerConfig& pConfig,
91 void emitRela(const LinkerConfig& pConfig,
101 const LinkerConfig& pConfig) const;
DGNUArchiveReader.h34 bool readArchive(const LinkerConfig& pConfig, Archive& pArchive);
80 size_t includeMember(const LinkerConfig& pConfig,
86 bool includeAllMembers(const LinkerConfig& pConfig, Archive& pArchive);
/frameworks/compile/mclinker/lib/Support/
DTarget.cpp43 LinkerConfig& pConfig, in createMCLinker() argument
48 return MCLinkerCtorFn(pTriple, pConfig, pModule, pFileHandle); in createMCLinker()
53 bool Target::emulate(LinkerScript& pScript, LinkerConfig& pConfig) const { in emulate()
56 return EmulationFn(pScript, pConfig); in emulate()
60 TargetLDBackend* Target::createLDBackend(const LinkerConfig& pConfig) const { in createLDBackend()
63 return TargetLDBackendCtorFn(pConfig); in createLDBackend()
DMsgHandling.cpp30 void InitializeDiagnosticEngine(const LinkerConfig& pConfig, in InitializeDiagnosticEngine() argument
32 g_pEngine->reset(pConfig); in InitializeDiagnosticEngine()
37 new TextDiagnosticPrinter(errs(), pConfig); in InitializeDiagnosticEngine()
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp44 const LinkerConfig& pConfig) in ELFObjectWriter() argument
45 : ObjectWriter(), m_Backend(pBackend), m_Config(pConfig) { in ELFObjectWriter()
203 void ELFObjectWriter::writeELFHeader(const LinkerConfig& pConfig, in writeELFHeader() argument
219 pConfig.targets().isLittleEndian() in writeELFHeader()
226 switch (pConfig.codeGenType()) { in writeELFHeader()
237 llvm::errs() << "unspported output file type: " << pConfig.codeGenType() in writeELFHeader()
243 header->e_entry = getEntryPoint(pConfig, pModule); in writeELFHeader()
245 if (LinkerConfig::Object != pConfig.codeGenType()) in writeELFHeader()
261 uint64_t ELFObjectWriter::getEntryPoint(const LinkerConfig& pConfig, in getEntryPoint() argument
267 LinkerConfig::Object != pConfig.codeGenType() && in getEntryPoint()
[all …]
DELFDynObjReader.cpp32 const LinkerConfig& pConfig) in ELFDynObjReader() argument
34 if (pConfig.targets().is32Bits() && pConfig.targets().isLittleEndian()) in ELFDynObjReader()
36 else if (pConfig.targets().is64Bits() && pConfig.targets().isLittleEndian()) in ELFDynObjReader()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp120 int Equalizer_setConfig(EqualizerContext *pContext, effect_config_t *pConfig);
227 int Equalizer_setConfig(EqualizerContext *pContext, effect_config_t *pConfig) in Equalizer_setConfig() argument
232 CHECK_ARG(pConfig != NULL); in Equalizer_setConfig()
234 CHECK_ARG(pConfig->inputCfg.samplingRate == pConfig->outputCfg.samplingRate); in Equalizer_setConfig()
235 CHECK_ARG(pConfig->inputCfg.channels == pConfig->outputCfg.channels); in Equalizer_setConfig()
236 CHECK_ARG(pConfig->inputCfg.format == pConfig->outputCfg.format); in Equalizer_setConfig()
237 CHECK_ARG((pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) || in Equalizer_setConfig()
238 (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_STEREO)); in Equalizer_setConfig()
239 CHECK_ARG(pConfig->outputCfg.accessMode == EFFECT_BUFFER_ACCESS_WRITE in Equalizer_setConfig()
240 || pConfig->outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE); in Equalizer_setConfig()
[all …]
/frameworks/compile/libbcc/lib/
DCompiler.cpp165 Compiler::Compiler(const CompilerConfig &pConfig) : mTarget(nullptr), in Compiler() argument
167 const std::string &triple = pConfig.getTriple(); in Compiler()
169 enum ErrorCode err = config(pConfig); in Compiler()
172 triple.c_str(), pConfig.getFeatureString().c_str()); in Compiler()
179 enum Compiler::ErrorCode Compiler::config(const CompilerConfig &pConfig) { in config() argument
180 if (pConfig.getTarget() == nullptr) { in config()
185 (pConfig.getTarget())->createTargetMachine(pConfig.getTriple(), in config()
186 pConfig.getCPU(), in config()
187 pConfig.getFeatureString(), in config()
188 pConfig.getTargetOptions(), in config()
[all …]
/frameworks/compile/mclinker/lib/MC/
DInputFactory.cpp20 InputFactory::InputFactory(size_t pNum, const LinkerConfig& pConfig) in InputFactory() argument
22 m_pAttrSet = new AttributeSet(16, pConfig.attribute().predefined()); in InputFactory()
24 pConfig.attribute().predefined(), in InputFactory()
25 pConfig.attribute().constraint()); in InputFactory()
DInputBuilder.cpp20 InputBuilder::InputBuilder(const LinkerConfig& pConfig) in InputBuilder() argument
21 : m_Config(pConfig), in InputBuilder()
26 m_pInputFactory = new InputFactory(MCLD_NUM_OF_INPUTS, pConfig); in InputBuilder()
31 InputBuilder::InputBuilder(const LinkerConfig& pConfig, in InputBuilder() argument
36 : m_Config(pConfig), in InputBuilder()
/frameworks/compile/mclinker/lib/Target/
DELFEmulation.cpp71 bool MCLDEmulateELF(LinkerScript& pScript, LinkerConfig& pConfig) { in MCLDEmulateELF() argument
73 if (pConfig.options().getScriptList().empty() && in MCLDEmulateELF()
74 pConfig.codeGenType() != LinkerConfig::Object) { in MCLDEmulateELF()
88 if (!pConfig.options().nostdlib()) { in MCLDEmulateELF()
91 switch (pConfig.targets().triple().getOS()) { in MCLDEmulateELF()
DTargetLDBackend.cpp15 TargetLDBackend::TargetLDBackend(const LinkerConfig& pConfig) in TargetLDBackend() argument
16 : m_Config(pConfig) { in TargetLDBackend()
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp117 int LE_setConfig(LoudnessEnhancerContext *pContext, effect_config_t *pConfig) in LE_setConfig() argument
121 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in LE_setConfig()
122 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in LE_setConfig()
123 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in LE_setConfig()
124 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in LE_setConfig()
125 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in LE_setConfig()
126 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in LE_setConfig()
127 if (pConfig->inputCfg.format != kProcessFormat) return -EINVAL; in LE_setConfig()
129 pContext->mConfig = *pConfig; in LE_setConfig()
151 void LE_getConfig(LoudnessEnhancerContext *pContext, effect_config_t *pConfig) in LE_getConfig() argument
[all …]
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.cpp75 static int Downmix_Configure(downmix_module_t *pDwmModule, effect_config_t *pConfig, bool init);
640 static int Downmix_Configure(downmix_module_t *pDwmModule, effect_config_t *pConfig, bool init) { in Downmix_Configure() argument
645 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate in Downmix_Configure()
646 || pConfig->outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO in Downmix_Configure()
647 || pConfig->inputCfg.format != AUDIO_FORMAT_PCM_FLOAT in Downmix_Configure()
648 || pConfig->outputCfg.format != AUDIO_FORMAT_PCM_FLOAT) { in Downmix_Configure()
653 if (!Downmix_validChannelMask(pConfig->inputCfg.channels)) { in Downmix_Configure()
655 pConfig->inputCfg.channels); in Downmix_Configure()
659 if (&pDwmModule->config != pConfig) { in Downmix_Configure()
660 memcpy(&pDwmModule->config, pConfig, sizeof(effect_config_t)); in Downmix_Configure()
[all …]
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp151 int Visualizer_setConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_setConfig() argument
155 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in Visualizer_setConfig()
156 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in Visualizer_setConfig()
157 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in Visualizer_setConfig()
158 const uint32_t channelCount = audio_channel_count_from_out_mask(pConfig->inputCfg.channels); in Visualizer_setConfig()
164 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in Visualizer_setConfig()
165 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in Visualizer_setConfig()
166 if (pConfig->inputCfg.format != kProcessFormat) return -EINVAL; in Visualizer_setConfig()
169 pContext->mConfig = *pConfig; in Visualizer_setConfig()
191 void Visualizer_getConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_getConfig() argument
[all …]

123456