search for: triplestr

Displaying 7 results from an estimated 7 matches for "triplestr".

2010 May 28
0
[LLVMdev] how to get TargetData?
For those targets supported by LLVM, you can get their TargetData by creating TargetMachine first (take X86 as example): ==== BEGIN CODE SNIPPET ==== const std::string TripleStr = "i686-unknown-linux"; // hard coded for example const std::string FeatureStr = ""; // hard coded for example std::string Err; const Target* T; TargetMachine* TM = NULL; const TargetData* TD; // Or just call InitializeAllTargetInfos() and InitializeAllT...
2010 May 28
4
[LLVMdev] how to get TargetData?
Dear all I am trying to get the size of an LLVM pointer type. getPrimitiveSizeInBits() returns 0 for it and the documentation for isSized() suggest to use TargetData. I figured out from Kaleidoscope example that one can get a pointer to TagetData object through the execution engine but it seems to be an overkill. What is the right way to do it? Best regards, Victor -------------- next part
2015 Jul 08
3
[LLVMdev] The Trouble with Triples
> Another very annoying fact is that the Clang driver re-parses triples many > times, and sometimes they change the triple based on a CPU, and then end > up with a different CPU. I’ve recently been tasked with cleaning this up. Before starting on this full gusto, I want to make sure I’m not stepping on any toes or duplicating work. The rough plan is as follows; 1. Replace the call to
2015 Jul 09
2
[LLVMdev] The Trouble with Triples
On 9 July 2015 at 10:39, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote: > TM.createX(llvm::TargetTuple(llvm::Triple(TripleStr)), ...) Could you have a constructor for TargetTuple(string) to build a triple on its own? --renato
2017 Sep 07
2
[ThinLTO] static library failure with object files with the same name
...hinLTOCodeGenerator::addModule(StringRef Identifier, StringRef Data) { - ThinLTOBuffer Buffer(Data, Identifier); + std::string Id = + (Twine(Identifier) + "_" + std::to_string(Modules.size())).str(); + ThinLTOBuffer Buffer(Data, std::move(Id)); LLVMContext Context; StringRef TripleStr; ErrorOr<std::string> TripleOrErr = expectedToErrorOrAndEmitErrors( -- Mehdi 2017-09-07 8:18 GMT-07:00 Teresa Johnson <tejohnson at google.com>: > > > On Wed, Sep 6, 2017 at 1:28 PM, Davide Italiano via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > &g...
2017 Sep 11
2
[ThinLTO] static library failure with object files with the same name
...>> Data) { >> - ThinLTOBuffer Buffer(Data, Identifier); >> + std::string Id = >> + (Twine(Identifier) + "_" + std::to_string(Modules.size())).str(); >> + ThinLTOBuffer Buffer(Data, std::move(Id)); >> LLVMContext Context; >> StringRef TripleStr; >> ErrorOr<std::string> TripleOrErr = expectedToErrorOrAndEmitErrors( >> >> >> >> >> -- >> Mehdi >> >> >> 2017-09-07 8:18 GMT-07:00 Teresa Johnson <tejohnson at google.com>: >> >>> >>> >>> O...
2017 Sep 06
3
[ThinLTO] static library failure with object files with the same name
On Wed, Sep 6, 2017 at 1:10 PM, Johan Engelen via llvm-dev <llvm-dev at lists.llvm.org> wrote: > On Tue, Sep 5, 2017 at 11:34 PM, Davide Italiano <dccitaliano at gmail.com> > wrote: >> >> On Tue, Sep 5, 2017 at 2:09 PM, Teresa Johnson <tejohnson at google.com> >> wrote: >> > >> > Hi Johan, >> > >> > Right, per the bug