Displaying 2 results from an estimated 2 matches for "initasminfo".
2017 Aug 22
2
Subtarget Initialization in <ARCH>TargetMachine constructor
...vel OL, bool JIT)
: LLVMTargetMachine(T, computeDataLayout(TT), TT, CPU, FS, Options,
getEffectiveRelocModel(RM),
getEffectiveCodeModel(CM),
OL),
TLOF(make_unique<TargetLoweringObjectFileELF>()),
Subtarget(TT, CPU, FS, *this) {
initAsmInfo();
}
LanaiTargetMachine::LanaiTargetMachine(const Target &T, const Triple &TT,
StringRef Cpu, StringRef
FeatureString,
const TargetOptions &Options,
Optional<Reloc::Mo...
2017 Aug 23
2
Subtarget Initialization in <ARCH>TargetMachine constructor
...> I found some different discrepancy on how Subtarget is created
>> between some arch specific TargetMachine constructor.
>> For example, for BPF/Lanai:
>>
>> <snip>
>>
>> Note that Subtarget is created as part of constructor. On the other hard,
>> initAsmInfo() tries to create a subtargetinfo as well. The "Subtarget"
>> created here later on is returned through:
>> const LanaiSubtarget *
>> getSubtargetImpl(const llvm::Function & /*Fn*/) const override {
>> return &Subtarget;
>> }
>
> Ok, s...