Displaying 17 results from an estimated 17 matches for "registertargetmachin".
Did you mean:
registertargetmachine
2014 Jan 06
2
[LLVMdev] Why do X86_32TargetMachine and X86_64TargetMachine classes exist?
...he 64-bit target. And the 16-bit target too. And nothing seems to have
broken AFAICT...
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -24,8 +24,9 @@ using namespace llvm;
extern "C" void LLVMInitializeX86Target() {
// Register the target.
+ RegisterTargetMachine<X86_32TargetMachine> W(TheX86_16Target);
RegisterTargetMachine<X86_32TargetMachine> X(TheX86_32Target);
- RegisterTargetMachine<X86_64TargetMachine> Y(TheX86_64Target);
+ RegisterTargetMachine<X86_32TargetMachine> Y(TheX86_64Target);
}
@@ -74,7 +75,7 @@ X86_32TargetMa...
2014 Dec 23
4
[LLVMdev] [RFC] Stripping unusable intrinsics
On Dec 23, 2014, at 10:28 AM, Chris Bieneman <beanz at apple.com> wrote:
>>> It should be straight-forward to have something like LLVMInitializeX86Target/RegisterTargetMachine install the intrinsics into a registry.
>>
>> I tried doing that a few years ago. It’s not nearly as easy as it sounds because we’ve got hardcoded references to various target intrinsics scattered throughout the code.
>
> I was just writing to say exactly this. There are a numb...
2014 Dec 23
3
[LLVMdev] [RFC] Stripping unusable intrinsics
...move to a model where intrinsic tables are registered by any targets that are activated. That would allow the intrinsic tables (including these switch/lookup mapping tables) to be in the target that uses them.
>
> It should be straight-forward to have something like LLVMInitializeX86Target/RegisterTargetMachine install the intrinsics into a registry.
I tried doing that a few years ago. It’s not nearly as easy as it sounds because we’ve got hardcoded references to various target intrinsics scattered throughout the code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <h...
2010 Oct 13
4
[LLVMdev] How to register a new LLVM backend
...ibLLVMRiscoCodeGen.so -march=risco, but the
target isn't recognized (it doesn't even appear in the llc -version output).
The main steps I did for registering the backend were:
- At RiscoTargetMachine.cpp:
extern "C" void LLVMInitializeRiscoTarget() {
// Register the target.
RegisterTargetMachine<RiscoTargetMachine> X(TheRiscoTarget);
RegisterAsmInfo<RiscoMCAsmInfo> A(TheRiscoTarget);
}
- At Risco.td:
def Risco : Target {
let InstructionSet = RiscoInstrInfo;
}
- At RiscoTargetInfo.cpp:
Target llvm::TheRiscoTarget;
extern "C" void LLVMInitializeRiscoTargetInfo...
2018 Sep 27
2
Ubuntu LLVM packages incompatible with clang built projects?
...t mailing list target, but I'm trying out the
new LLVM 7.0 packages found at http://apt.llvm.org by porting over an
existing LLVM 6.0 project of ours to the new version. In doing so, I found
that the executable always segfaulted at the same spot with no explanation:
0x0000000000fefe33 in
llvm::RegisterTargetMachine<llvm::X86TargetMachine>::Allocator(llvm::Target
const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef,
llvm::TargetOptions const&, llvm::Optional<llvm::R
eloc::Model>, llvm::Optional<llvm::CodeModel::Model>,
llvm::CodeGenOpt::Level, bool) ()
This happens if I...
2018 Sep 28
3
Ubuntu LLVM packages incompatible with clang built projects?
...#39;m trying out the
> new LLVM 7.0 packages found at http://apt.llvm.org by porting over an
> existing LLVM 6.0 project of ours to the new version. In doing so, I found
> that the executable always segfaulted at the same spot with no explanation:
>
> 0x0000000000fefe33 in
> llvm::RegisterTargetMachine<llvm::X86TargetMachine>::Allocator(llvm::Target
> const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef,
> llvm::TargetOptions const&, llvm::Optional<llvm::R
> eloc::Model>, llvm::Optional<llvm::CodeModel::Model>,
> llvm::CodeGenOpt::Level, bool) (...
2019 Jan 24
2
LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
...of 1:
==4153== Invalid read of size 1
==4153== at 0x4AFEE0:
llvm::optional_detail::OptionalStorage<llvm::Reloc::Model,
true>::OptionalStorage(llvm::optional_detail::OptionalStorage<llvm::Reloc::Model,
true> const&) (in /home/preejackie/kld/toy)
==4153== by 0x4B098D:
llvm::RegisterTargetMachine<llvm::X86TargetMachine>::Allocator(llvm::Target
const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef,
llvm::TargetOptions const&, llvm::Optional<llvm::Reloc::Model>,
llvm::Optional<llvm::CodeModel::Model>, llvm::CodeGenOpt::Level, bool)
(in /home/preejack...
2018 Oct 01
2
Ubuntu LLVM packages incompatible with clang built projects?
...ackages found at http://apt.llvm.org by porting over an
>>> existing LLVM 6.0 project of ours to the new version. In doing so, I found
>>> that the executable always segfaulted at the same spot with no explanation:
>>>
>>> 0x0000000000fefe33 in
>>> llvm::RegisterTargetMachine<llvm::X86TargetMachine>::Allocator(llvm::Target
>>> const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef,
>>> llvm::TargetOptions const&, llvm::Optional<llvm::R
>>> eloc::Model>, llvm::Optional<llvm::CodeModel::Model>,
>>>...
2014 Dec 22
2
[LLVMdev] [RFC] Stripping unusable intrinsics
Circling back to Chandler on file size differences. Here are the highlights of what is different.
For my analysis I built LLVM and Clang using a clang built with my patches. The same clang was used for the baseline and the stripped build. I used the following CMake command:
cmake -G "Sublime Text 2 - Ninja" -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=Yes
2014 Dec 23
5
[LLVMdev] [RFC] Stripping unusable intrinsics
...clattner at apple.com <mailto:clattner at apple.com>> wrote:
>>
>> On Dec 23, 2014, at 10:28 AM, Chris Bieneman <beanz at apple.com <mailto:beanz at apple.com>> wrote:
>>>>> It should be straight-forward to have something like LLVMInitializeX86Target/RegisterTargetMachine install the intrinsics into a registry.
>>>>
>>>> I tried doing that a few years ago. It’s not nearly as easy as it sounds because we’ve got hardcoded references to various target intrinsics scattered throughout the code.
>>>
>>> I was just writing to sa...
2019 Jan 24
2
LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
Hi all :)
I'm new to llvm!
I'm going through the kaleidoscope : compiling llvm IR to object code
tutorial, code in the listings breaks and causes a segmentation fault.
After some investigation through gdb, probably this constructor call,
causing the segfault.
|Program received signal SIGSEGV, Segmentation fault.||
||0x00000000004afee0 in
2013 Jul 05
0
[LLVMdev] Any suggestion for "Unknown instruction type encountered" error?
hacker cling wrote:
> Hello all,
> I was playing with LLVM pass. I changed the
> lib/Transforms/Hello/Hello.cpp 's content to be my own pass. Then I make
> install the pass and use an example test1.c to see whether it works or
> not. When I run example using the following command:
> clang -emit-llvm test1.c -c -o test1.bc
> opt -load
2013 Jul 05
2
[LLVMdev] Any suggestion for "Unknown instruction type encountered" error?
Hello all,
I was playing with LLVM pass. I changed the
lib/Transforms/Hello/Hello.cpp 's content to be my own pass. Then I make
install the pass and use an example test1.c to see whether it works or not.
When I run example using the following command:
clang -emit-llvm test1.c -c -o test1.bc
opt -load ../build_llvm/Debug+Asserts/lib/LLVMHello.so -hello < test1.bc >
/dev/null
It
2012 Oct 12
3
[LLVMdev] Newbie question for registering new target with LLVM
..._CURRENT_BINARY_DIR}/.. $ \
{CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMRxInfo
RxTargetInfo.cpp
)
add_llvm_library_dependencies(LLVMRxInfo
LLVMSupport
LLVMTarget
)
7) lib/Target/Rx/RxTargetMachine.cpp
using namespace llvm;
extern "C" void LLVMInitializeRxTarget() {
RegisterTargetMachine<RxTargetMachine> X(TheRxTarget);
}
RxTargetMachine::RxTargetMachine(const Target &T, StringRef TT,
StringRef CPU, StringRef FS,
Reloc::Model RM, CodeModel::Model CM)
: LLVMTargetMachine(T,...
2013 Apr 01
0
[LLVMdev] proposed change to class BasicTTI and dual mode mips16/32 working
...#include "llvm/PassManager.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;
+
+
extern "C" void LLVMInitializeMipsTarget() {
// Register the target.
RegisterTargetMachine<MipsebTargetMachine> X(TheMipsTarget);
@@ -42,7 +56,7 @@ MipsTargetMachine(const Target &T, StringRef TT,
CodeGenOpt::Level OL,
bool isLittle)
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
- Subtarget(TT, CPU, FS, isLittle, RM),
+...
2013 Apr 01
3
[LLVMdev] proposed change to class BasicTTI and dual mode mips16/32 working
On Thu, Mar 28, 2013 at 12:22 PM, Nadav Rotem <nrotem at apple.com> wrote:
> IMHO the right way to handle target function attributes is to
> re-initialize the target machine and TTI for every function (if the
> attributes changed). Do you have another solution in mind ?
I don't really understand this.
TargetMachine and TTI may be quite expensive to initialize. Doing so for
2012 Jul 16
3
[LLVMdev] RFC: LLVM incubation, or requirements for committing new backends
...t; +#include "llvm/Support/raw_os_ostream.h"
> +#include "llvm/Transforms/IPO.h"
> +#include "llvm/Transforms/Scalar.h"
> +
> +using namespace llvm;
> +
> +extern "C" void LLVMInitializeAMDGPUTarget() {
> + // Register the target
> + RegisterTargetMachine<AMDGPUTargetMachine> X(TheAMDGPUTarget);
> +}
> +
> +AMDGPUTargetMachine::AMDGPUTargetMachine(const Target &T, StringRef TT,
> + StringRef CPU, StringRef FS,
> + TargetOptions Options,
> + Reloc::Model RM, CodeModel::Model CM,
> + CodeGenOpt::Level OptLevel
>...