Displaying 5 results from an estimated 5 matches for "getintwidth".
Did you mean:
getbitwidth
2008 Mar 25
0
[LLVMdev] 16 bit integers
I was able to build and play with clang today.
Clang also promotes integer arithmetic to 32-bit.
Any pointers on how to tweak it so that it generate i16 for "int" and also
promote int operations to 16-bit operations only?
Thanks,
Sanjiv
On 3/20/08, Chris Lattner <sabre at nondot.org> wrote:
>
> On Wed, 19 Mar 2008, Duncan Sands wrote:
> >> How can I build the
2008 Mar 19
3
[LLVMdev] 16 bit integers
On Wed, 19 Mar 2008, Duncan Sands wrote:
>> How can I build the front-end to generate 16-bit integers?
>
> Please clarify your question.
> If you are asking how to build llvm-gcc for a 16 bit target,
> I think the answer is: (1) gcc itself doesn't support 16 bit
> targets; (2) llvm doesn't currently support any 16 bit targets
> (but could with a little work). So
2013 Aug 22
0
[LLVMdev] [RFC PATCH] X32 ABI support for Clang/compiler-rt (Clang patch)
...uilder.defineMacro("__x86_64__");
+ if (PointerWidth == 64 && getLongWidth() == 64) {
+ Builder.defineMacro("_LP64");
+ Builder.defineMacro("__LP64__");
+ } else if (PointerWidth == 32 && getLongWidth() == 32 &&
+ getIntWidth() == 32) {
+ Builder.defineMacro("_ILP32");
+ Builder.defineMacro("__ILP32__");
+ }
} else {
DefineStd(Builder, "i386", Opts);
}
@@ -3013,20 +3021,31 @@
class X86_64TargetInfo : public X86TargetInfo {
public:
X86_64TargetInfo(const llvm::...
2013 Aug 22
7
[LLVMdev] [RFC PATCH] X32 ABI support for Clang/compiler-rt
Hi,
I'm working on bringing up complete coverage for a Gentoo x32 "desktop"
system. I've been cooking up quite a few patches for various packages
to push upstream, but right now, the biggest blocker is the lack of
support for building with/codegen targeting x32 in llvm/clang. Since
the x32 patches were sent last year, I see support code has landed in
LLVM, and basic handling of
2013 Aug 22
3
[LLVMdev] [NEW PATCH] X32 ABI support for Clang/compiler-rt (Clang patch)
...uilder.defineMacro("__x86_64__");
+ if (PointerWidth == 64 && getLongWidth() == 64) {
+ Builder.defineMacro("_LP64");
+ Builder.defineMacro("__LP64__");
+ } else if (PointerWidth == 32 && getLongWidth() == 32 &&
+ getIntWidth() == 32) {
+ Builder.defineMacro("_ILP32");
+ Builder.defineMacro("__ILP32__");
+ }
} else {
DefineStd(Builder, "i386", Opts);
}
@@ -3013,20 +3021,31 @@
class X86_64TargetInfo : public X86TargetInfo {
public:
X86_64TargetInfo(const llvm::...